#include "trbrpc.h"
+static const char trbnetd_version[] = "$Revision: 1.11 $";
+
int trbnetrpcprog_1_freeresult(SVCXPRT * transp,
xdrproc_t xdr_result, caddr_t result)
{
fprintf(stdout, "Options:\n");
fprintf(stdout, " -h give this help\n");
fprintf(stdout, " -f execute as foreground process\n");
+ fprintf(stdout, " -V version number\n");
}
static pid_t myPid = -1;
int opt;
optind = 1;
- while ((opt = getopt(argc, argv, "+hfd:")) != -1) {
+ while ((opt = getopt(argc, argv, "+hfVd:")) != -1) {
switch (opt) {
case '?':
usage(basename(argv[0]));
case 'd':
trb_debug = strtoul(optarg, NULL, 0);
break;
+ case 'V':
+ printf("%s %s, using libtrbnet %s\n",
+ basename(argv[0]), trbnetd_version, trbnet_version);
+ exit(EXIT_SUCCESS);
+ break;
default:
break;