File: lockd.c

package info (click to toggle)
nfs-utils 1%3A0.1.9.1-1.potato1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,248 kB
  • ctags: 1,737
  • sloc: ansic: 14,203; sh: 481; makefile: 241
file content (35 lines) | stat: -rw-r--r-- 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * lockd
 *
 * This is the user level part of lockd. This is very primitive, because
 * all the work is now done in the kernel module.
 *
 */

#include "config.h"

#include <stdio.h>
#include "nfslib.h"

static void	usage(const char *);

int
main(int argc, char **argv)
{
	int error;

	if (argc > 1)
		usage (argv [0]);

	if ((error = lockdsvc()) < 0)
		perror("lockdsvc");

	return (error != 0);
}

static void
usage(const char *prog)
{
	fprintf(stderr, "usage:\n%s\n", prog);
	exit(2);
}