Copyright (c) 1989 The Regents of the University of California.
All rights reserved.
%sccs.include.redist.man%
@(#)nfssvc.2 6.4 (Berkeley) 06/23/90
All rights reserved.
%sccs.include.redist.man%
@(#)nfssvc.2 6.4 (Berkeley) 06/23/90
NFSSVC 2 ""
C 7 NAME
nfssvc - create a remote NFS server
SYNOPSIS
nfssvc(sock) int sock;
DESCRIPTION
Nfssvc starts an
NFS daemon listening on socket
sock . The socket must be in the
AF_INET family and of type
SOCK_DGRAM . RETURN VALUE
Normally this system calls does not return unless the server
is terminated by a signal 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 one or more of the following are true:
15 EBADF fd is not a valid open file descriptor.
15 EPERM The caller is not the super-user.
SEE ALSO
nfsd (8)