From 3f75ffee7c0c7d6b70cf305d60435ac862ea9ab5 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 6 Jun 2025 13:48:20 +0000 Subject: Implement "s6 process" Signed-off-by: Laurent Bercot --- src/s6/process_help.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/s6/process_help.c (limited to 'src/s6/process_help.c') diff --git a/src/s6/process_help.c b/src/s6/process_help.c new file mode 100644 index 0000000..1e51ebe --- /dev/null +++ b/src/s6/process_help.c @@ -0,0 +1,16 @@ +/* ISC license. */ + +#include +#include + +#include "s6-internal.h" + +#define HELP_MESSAGE "This is the \"s6 process\" help message.\n" + +int process_help (char const *const *argv) +{ + (void)argv ; + if (!buffer_putsflush(buffer_1, HELP_MESSAGE)) + strerr_diefu1sys(111, "write to stdout") ; + return 0 ; +} -- cgit v1.3.1