X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=servexec.c;h=168e07657ad427dd16021e5a58662d0af10cd9ef;hp=41c6d37fae884cc885c8fefe600dbe28635a42f1;hb=d237116707105a3ca6cf367a672bc5263cf7856d;hpb=f7dd4f74d0a6b3399fe694f80911657aec351ffd diff --git a/servexec.c b/servexec.c index 41c6d37..168e076 100644 --- a/servexec.c +++ b/servexec.c @@ -2,7 +2,7 @@ * userv - execserv.c * daemon code which executes actual service (ie child process) * - * Copyright (C)1996-1997 Ian Jackson + * Copyright (C)1996-1997,1999 Ian Jackson * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -57,6 +58,14 @@ void bisexec_parameter(const char *const *argv) { serv_checkstdoutexit(); } +void bisexec_help(const char *const *argv) { + const char *const *pp; + + fputs("recognised builtin services:\n",stdout); + for (pp= builtinservicehelpstrings; *pp; pp++) printf(" %s\n",*pp); + serv_checkstdoutexit(); +} + void bisexec_version(const char *const *argv) { const unsigned char *p; int i; @@ -76,8 +85,8 @@ void bisexec_version(const char *const *argv) { BASE_MAGIC, MAX_ALLOW_FD, MAX_GENERAL_STRING, MAX_GIDS, MAX_OVERRIDE_LEN, - MAX_ARGSDEFVAR, ERRMSG_RESERVE_ERRNO, - MAX_INCLUDE_NEST, MAX_ERRMSG_LEN); + MAX_ARGSDEFVAR, MAX_ERRMSG_LEN, + MAX_INCLUDE_NEST, ERRMSG_RESERVE_ERRNO); for (i=0, p=protocolchecksumversion; i