good enough for now
[unix-history] / usr / src / lib / libc / sys / nfssvc.2
CommitLineData
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 11nfssvc \- create a remote NFS server
238fc413
KM
12.SH SYNOPSIS
13.nf
14.ft B
15.LP
16nfssvc(sock)
17int sock;
18.fi
19.ft R
20.SH DESCRIPTION
21.I Nfssvc
22starts an
23.SM NFS
24daemon listening on socket
25.IR sock .
26The socket must be in the
27.SM AF_INET
28family and of type
29.SM SOCK_DGRAM .
30.SH RETURN VALUE
d273622a
KM
31Normally this system calls does not return unless the server
32is terminated by a signal at which time a value of 0 is returned.
238fc413
KM
33Otherwise, \-1 is returned and the global variable
34.I errno
35is set to indicate the error.
36.SH ERRORS
37.I Nfssvc
38fails if one or more of the following are true:
39.TP 15
40EBADF
41.I fd
42is not a valid open file descriptor.
43.TP 15
44EPERM
45The caller is not the super-user.
9b470aa6
KM
46.SH SEE ALSO
47.IR nfsd (8)