1.\" Copyright (c) 1989, 1991 The Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)nfssvc.2 6.6 (Berkeley) 07/23/91 7.\" 8.Dd 9.Dt NFSSVC 2 10.Os 11.Sh NAME 12.Nm nfssvc 13.Nd create a remote NFS server 14.Sh SYNOPSIS 15.Fd #include <unistd.h> 16.Ft int 17.Fn nfssvc "int sock" 18.Sh DESCRIPTION 19.Bf -symbolic 20The calling sequence of this function is expected to change 21.Ef 22.Fn Nfssvc 23starts an 24.Tn NFS 25daemon listening on socket 26.Fa sock . 27The socket must be in the 28.Dv AF_INET 29family. 30.Sh RETURN VALUES 31Normally 32.Nm nfssvc 33does not return unless the server 34is terminated by a signal at which time a value of 0 is returned. 35Otherwise, -1 is returned and the global variable 36.Va errno 37is set to indicate the error. 38.Sh ERRORS 39.Fn Nfssvc 40fails if: 41.Bl -tag -width [EPERM] 42.It Bq Er EBADF 43.Fa Fd 44is not a valid open file descriptor. 45.It Bq Er EPERM 46The caller is not the super-user. 47.El 48.Sh SEE ALSO 49.Xr nfsd 8 50.Sh HISTORY 51The 52.Nm nfssvc 53function call is 54.Ud . 55