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 /src | |
parent | 087097faa52791f941daaab5c14200a470f6aebe (diff) | |
download | s6-rc-65fe38c65df5807a0f3421b3d62c1ad91a6237f5.tar.xz |
Added s6-rc-update skeleton
Diffstat (limited to 'src')
-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 |
3 files changed, 17 insertions, 1 deletions
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 ; +} |