4 * This is the user level part of nfsd. This is very primitive, because
5 * all the work is now done in the kernel module.
7 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
17 static void usage(const char *);
20 main(int argc, char **argv)
22 int count = 1, c, error, port;
26 /* FIXME: Check for nfs in /etc/services */
28 while ((c = getopt(argc, argv, "hp:P:")) != EOF) {
30 case 'P': /* XXX for nfs-server compatibility */
33 if (port <= 0 || port > 65535) {
34 fprintf(stderr, "%s: bad port number: %s\n",
47 if ((count = atoi(argv[optind])) < 0) {
48 /* insane # of servers */
50 "%s: invalid server count (%d), using 1\n",
56 if ((error = nfssvc(port, count)) < 0)
63 usage(const char *prog)
65 fprintf(stderr, "usage:\n"
66 "%s nrservs\n", prog);