aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6/process_help.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-06-06 13:48:20 +0000
committerLaurent Bercot <ska@appnovation.com>2025-06-06 13:48:20 +0000
commit3f75ffee7c0c7d6b70cf305d60435ac862ea9ab5 (patch)
tree45d86cdc414e6534305d2b723666c1291d74b940 /src/s6/process_help.c
parent73988ba1cfa375582c86302116192fb8ec567f48 (diff)
downloads6-frontend-3f75ffee7c0c7d6b70cf305d60435ac862ea9ab5.tar.gz
Implement "s6 process"
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/s6/process_help.c')
-rw-r--r--src/s6/process_help.c16
1 files changed, 16 insertions, 0 deletions
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 <skalibs/buffer.h>
+#include <skalibs/strerr.h>
+
+#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 ;
+}