NFSSVC(2) BSD Programmer's Manual NFSSVC(2)
NAME
nfssvc - create a remote NFS server
SYNOPSIS
#include <unistd.h>
int
nfssvc(int sock)
DESCRIPTION
The calling sequence of this function is expected to change Nfssvc()
starts an NFS daemon listening on socket sock. The socket must be in the
AF_INET family.
RETURN VALUES
Normally nfssvc does not return unless the server is terminated by a sig-
nal at which time a value of 0 is returned. Otherwise, -1 is returned
and the global variable errno is set to indicate the error.
ERRORS
Nfssvc() fails if:
[EBADF] Fd is not a valid open file descriptor.
[EPERM] The caller is not the super-user.
SEE ALSO
nfsd(8)
HISTORY
The nfssvc function call is currently under development.
BSDI BSD/386 March 26, 1993 1