]> git.decadent.org.uk Git - nfs-utils.git/blob - utils/lockd/lockd.c
Updated to nfs-utils 0.1.1.
[nfs-utils.git] / utils / lockd / lockd.c
1 /*
2  * lockd
3  *
4  * This is the user level part of lockd. This is very primitive, because
5  * all the work is now done in the kernel module.
6  *
7  */
8
9 #include "config.h"
10
11 #include <stdio.h>
12 #include "nfslib.h"
13
14 static void     usage(const char *);
15
16 int
17 main(int argc, char **argv)
18 {
19         int error;
20
21         if (argc > 1)
22                 usage (argv [0]);
23
24         if ((error = lockdsvc()) < 0)
25                 perror("lockdsvc");
26
27         return (error != 0);
28 }
29
30 static void
31 usage(const char *prog)
32 {
33         fprintf(stderr, "usage:\n%s\n", prog);
34         exit(2);
35 }