Commit | Line | Data |
---|---|---|
238fc413 KM |
1 | .\" Copyright (c) 1989 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms are permitted | |
5 | .\" provided that the above copyright notice and this paragraph are | |
6 | .\" duplicated in all such forms and that any documentation, | |
7 | .\" advertising materials, and other materials related to such | |
8 | .\" distribution and use acknowledge that the software was developed | |
9 | .\" by the University of California, Berkeley. The name of the | |
10 | .\" University may not be used to endorse or promote products derived | |
11 | .\" from this software without specific prior written permission. | |
12 | .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
13 | .\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
14 | .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
15 | .\" | |
16 | .\" @(#)nfssvc.2 6.1 (Berkeley) %G% | |
17 | .\" | |
18 | .TH NFSSVC 2 "" | |
19 | .UC 7 | |
20 | .SH NAME | |
21 | nfssvc \- get file system statistics | |
22 | .SH SYNOPSIS | |
23 | .nf | |
24 | .ft B | |
25 | .LP | |
26 | nfssvc(sock) | |
27 | int sock; | |
28 | .fi | |
29 | .ft R | |
30 | .SH DESCRIPTION | |
31 | .I Nfssvc | |
32 | starts an | |
33 | .SM NFS | |
34 | daemon listening on socket | |
35 | .IR sock . | |
36 | The socket must be in the | |
37 | .SM AF_INET | |
38 | family and of type | |
39 | .SM SOCK_DGRAM . | |
40 | .SH RETURN VALUE | |
41 | Upon successful completion, a value of 0 is returned. | |
42 | Otherwise, \-1 is returned and the global variable | |
43 | .I errno | |
44 | is set to indicate the error. | |
45 | .SH ERRORS | |
46 | .I Nfssvc | |
47 | fails if one or more of the following are true: | |
48 | .TP 15 | |
49 | EBADF | |
50 | .I fd | |
51 | is not a valid open file descriptor. | |
52 | .TP 15 | |
53 | EPERM | |
54 | The caller is not the super-user. |