aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6/help.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-10-24 16:46:58 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-10-24 16:46:58 +0000
commit5f46f6f2d649b2bb8664f9c749e15acd8f529b6c (patch)
tree3eb2a3f71488b932afd24a03b1dad909fa6e9c50 /src/s6/help.c
parentad3cffc4b2c3e43053aa914e19cd5649868a7d74 (diff)
downloads6-frontend-5f46f6f2d649b2bb8664f9c749e15acd8f529b6c.tar.gz
Separate s6 from s6-frontend, fix configure for no-nsss build
Diffstat (limited to 'src/s6/help.c')
-rw-r--r--src/s6/help.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/s6/help.c b/src/s6/help.c
deleted file mode 100644
index ac2205c..0000000
--- a/src/s6/help.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/* ISC license. */
-
-#include <skalibs/buffer.h>
-#include <skalibs/strerr.h>
-
-#include "s6-internal.h"
-
-#define MAIN_HELP_MESSAGE "This is the main help message.\n"
-
-#define PROCESS_HELP_MESSAGE "This is the process help message.\n"
-
-#define SERVICE_HELP_MESSAGE "This is the service help message.\n"
-
-static int print_help (char const *msg)
-{
- if (!buffer_putsflush(buffer_1, msg))
- strerr_diefu1sys(111, "write to stdout") ;
- return 0 ;
-}
-
-int process_help (char const* const *argv)
-{
- (void)argv ;
- return print_help(PROCESS_HELP_MESSAGE) ;
-}
-
-int service_help (char const* const *argv)
-{
- (void)argv ;
- return print_help(SERVICE_HELP_MESSAGE) ;
-}
-
-int help (char const *const *argv)
-{
- (void)argv ;
- return print_help(MAIN_HELP_MESSAGE) ;
-}