X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=servexec.c;h=fa8b8ac033d4d6e65a179e1e893184469e2af571;hp=2b110126abc0fa5fabf93d530eb5c6ff8733c77c;hb=70d3947fb471e0e12ef89c35f915f6acec217f4a;hpb=db59ee1476515a65cfcca10a3059d8ccb2d24d32 diff --git a/servexec.c b/servexec.c index 2b11012..fa8b8ac 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,11 +58,19 @@ 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; - printf("uservd version " VERSION "; copyright (C)1996-1997 Ian Jackson.\n" + printf("uservd version " VERSION VEREXT "; copyright (C)1996-1997 Ian Jackson.\n" #ifdef DEBUG "DEBUGGING VERSION" #else @@ -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