From 65fe38c65df5807a0f3421b3d62c1ad91a6237f5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 7 Jul 2015 21:17:23 +0000 Subject: Added s6-rc-update skeleton --- package/deps.mak | 3 +++ package/modes | 1 + package/targets.mak | 3 ++- src/s6-rc/deps-exe/s6-rc-update | 4 ++++ src/s6-rc/s6-rc-init.c | 1 - src/s6-rc/s6-rc-update.c | 13 +++++++++++++ 6 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/s6-rc/deps-exe/s6-rc-update create mode 100644 src/s6-rc/s6-rc-update.c diff --git a/package/deps.mak b/package/deps.mak index 6f9d19f..e3deb3c 100644 --- a/package/deps.mak +++ b/package/deps.mak @@ -14,6 +14,7 @@ src/s6-rc/s6-rc-compile.o src/s6-rc/s6-rc-compile.lo: src/s6-rc/s6-rc-compile.c src/s6-rc/s6-rc-db.o src/s6-rc/s6-rc-db.lo: src/s6-rc/s6-rc-db.c src/include/s6-rc/s6rc.h src/s6-rc/s6-rc-dryrun.o src/s6-rc/s6-rc-dryrun.lo: src/s6-rc/s6-rc-dryrun.c src/s6-rc/s6-rc-init.o src/s6-rc/s6-rc-init.lo: src/s6-rc/s6-rc-init.c src/include/s6-rc/s6rc.h +src/s6-rc/s6-rc-update.o src/s6-rc/s6-rc-update.lo: src/s6-rc/s6-rc-update.c src/s6-rc/s6-rc.o src/s6-rc/s6-rc.lo: src/s6-rc/s6-rc.c src/include/s6-rc/config.h src/include/s6-rc/s6rc.h libs6rc.a: src/libs6rc/s6rc_db_check_depcycles.o src/libs6rc/s6rc_db_read.o src/libs6rc/s6rc_db_read_sizes.o src/libs6rc/s6rc_db_read_uint32.o src/libs6rc/s6rc_db_check_revdeps.o src/libs6rc/s6rc_graph_closure.o @@ -28,3 +29,5 @@ s6-rc-dryrun: private EXTRA_LIBS := ${TAINNOW_LIB} s6-rc-dryrun: src/s6-rc/s6-rc-dryrun.o -lskarnet s6-rc-init: private EXTRA_LIBS := ${TAINNOW_LIB} s6-rc-init: src/s6-rc/s6-rc-init.o ${LIBS6RC} -ls6 -lskarnet +s6-rc-update: private EXTRA_LIBS := ${TAINNOW_LIB} +s6-rc-update: src/s6-rc/s6-rc-update.o ${LIBS6RC} -ls6 -lskarnet diff --git a/package/modes b/package/modes index 7956243..0a1ebe0 100644 --- a/package/modes +++ b/package/modes @@ -3,3 +3,4 @@ s6-rc-db 0755 s6-rc-dryrun 0755 s6-rc-init 0700 s6-rc 0700 +s6-rc-update 0700 diff --git a/package/targets.mak b/package/targets.mak index 2f19728..9bcf975 100644 --- a/package/targets.mak +++ b/package/targets.mak @@ -5,7 +5,8 @@ s6-rc-db SBIN_TARGETS := \ s6-rc-init \ -s6-rc +s6-rc \ +s6-rc-update LIBEXEC_TARGETS := diff --git a/src/s6-rc/deps-exe/s6-rc-update b/src/s6-rc/deps-exe/s6-rc-update new file mode 100644 index 0000000..b76070e --- /dev/null +++ b/src/s6-rc/deps-exe/s6-rc-update @@ -0,0 +1,4 @@ +${LIBS6RC} +-ls6 +-lskarnet +${TAINNOW_LIB} diff --git a/src/s6-rc/s6-rc-init.c b/src/s6-rc/s6-rc-init.c index 7c25464..27ba819 100644 --- a/src/s6-rc/s6-rc-init.c +++ b/src/s6-rc/s6-rc-init.c @@ -18,7 +18,6 @@ #define USAGE "s6-rc-init [ -c compiled ] [ -l live ] [ -t timeout ] scandir" #define dieusage() strerr_dieusage(100, USAGE) -#define dienomem() strerr_diefu1sys(111, "stralloc_catb") ; static void cleanup (char const *live) { diff --git a/src/s6-rc/s6-rc-update.c b/src/s6-rc/s6-rc-update.c new file mode 100644 index 0000000..36df243 --- /dev/null +++ b/src/s6-rc/s6-rc-update.c @@ -0,0 +1,13 @@ +/* ISC license. */ + +#include +#include + +#define USAGE "s6-rc-update [ -l live ]" +#define dieusage() strerr_dieusage(100, USAGE) + +int main (int argc, char const *const *argv) +{ + PROG = "s6-rc-update" ; + return 0 ; +} -- cgit v1.2.3