Commit | Line | Data |
---|---|---|
238fc413 KM |
1 | .\" Copyright (c) 1989 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
91cff1e1 | 4 | .\" %sccs.include.redist.man% |
238fc413 | 5 | .\" |
91cff1e1 | 6 | .\" @(#)nfssvc.2 6.4 (Berkeley) %G% |
238fc413 KM |
7 | .\" |
8 | .TH NFSSVC 2 "" | |
9 | .UC 7 | |
10 | .SH NAME | |
9b470aa6 | 11 | nfssvc \- create a remote NFS server |
238fc413 KM |
12 | .SH SYNOPSIS |
13 | .nf | |
14 | .ft B | |
15 | .LP | |
16 | nfssvc(sock) | |
17 | int sock; | |
18 | .fi | |
19 | .ft R | |
20 | .SH DESCRIPTION | |
21 | .I Nfssvc | |
22 | starts an | |
23 | .SM NFS | |
24 | daemon listening on socket | |
25 | .IR sock . | |
26 | The socket must be in the | |
27 | .SM AF_INET | |
28 | family and of type | |
29 | .SM SOCK_DGRAM . | |
30 | .SH RETURN VALUE | |
d273622a KM |
31 | Normally this system calls does not return unless the server |
32 | is terminated by a signal at which time a value of 0 is returned. | |
238fc413 KM |
33 | Otherwise, \-1 is returned and the global variable |
34 | .I errno | |
35 | is set to indicate the error. | |
36 | .SH ERRORS | |
37 | .I Nfssvc | |
38 | fails if one or more of the following are true: | |
39 | .TP 15 | |
40 | EBADF | |
41 | .I fd | |
42 | is not a valid open file descriptor. | |
43 | .TP 15 | |
44 | EPERM | |
45 | The caller is not the super-user. | |
9b470aa6 KM |
46 | .SH SEE ALSO |
47 | .IR nfsd (8) |