diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-07 21:17:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2015-07-07 21:17:23 +0000 |
commit | 65fe38c65df5807a0f3421b3d62c1ad91a6237f5 (patch) | |
tree | 3891394876546cd16343e5c07c5c79fe87be868c | |
parent | 087097faa52791f941daaab5c14200a470f6aebe (diff) | |
download | s6-rc-65fe38c65df5807a0f3421b3d62c1ad91a6237f5.tar.xz |
Added s6-rc-update skeleton
-rw-r--r-- | package/deps.mak | 3 | ||||
-rw-r--r-- | package/modes | 1 | ||||
-rw-r--r-- | package/targets.mak | 3 | ||||
-rw-r--r-- | src/s6-rc/deps-exe/s6-rc-update | 4 | ||||
-rw-r--r-- | src/s6-rc/s6-rc-init.c | 1 | ||||
-rw-r--r-- | src/s6-rc/s6-rc-update.c | 13 |
6 files changed, 23 insertions, 2 deletions
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 <skalibs/sgetopt.h> +#include <skalibs/strerr2.h> + +#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 ; +} |