aboutsummaryrefslogtreecommitdiffstats
path: root/src/s6-frontend/set_help.c
blob: 27715a1b5c758edb4e2a259a2933b7325593a4d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ISC license. */

#include <unistd.h>

#include <skalibs/buffer.h>
#include <skalibs/strerr.h>

#include "s6-frontend-internal.h"

#define SET_HELP_MESSAGE "This is the set help message.\n"

void set_help (char const *const *argv)
{
  (void)argv ;
  if (!buffer_putsflush(buffer_1, SET_HELP_MESSAGE))
    strerr_diefu1sys(111, "write to stdout") ;
  _exit(0) ;
}