Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ nfssvc(2) — OSF/1 SILVER Baselevel 4 rev36

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

async_daemon(2)

nfssvc(2)  —  System Calls

OSF

NAME

nfssvc − Creates a remote NFS server

SYNOPSIS

nfssvc(
int sock,
int mask,
int match );

PARAMETERS

sockSpecifies the socket.  The sock parameter must be in the AF_INET family and of type SOCK_DGRAM. 

maskSpecifies a mask to be supplied to the client host address. 

matchSpecifies a value to be compared against the value of the client host address ANDED with the value in the mask parameter.  If the values are equal, the daemon is started;  otherwise, the request is dropped by the server. 

DESCRIPTION

The nfssvc() function starts an NFS daemon listening on a specified socket. 

RETURN VALUES

Normally this function does not return unless the server is terminated by a signal, at which time a value of 0 (zero) is returned.  Otherwise, −1 is returned and errno is set to indicate the error. 

ERRORS

If the nfssvc() function fails, errno may be set to one of the following values:

[EBADF]An invalid file descriptor has been passed to the nfssvc() function. 

[EPERM]The caller is not the superuser. 

RELATED INFORMATION

Functions: async_daemon(2)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026