Chapter Contents

Previous

Next
setrpcent

setrpcent



Opens the /etc/rpc Protocols File

Portability: UNIX compatible


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTION
PORTABILITY
IMPLEMENTATION
RELATED FUNCTIONS


SYNOPSIS

#include <netdb.h>

int setrpcent(int stayopen);


DESCRIPTION

setrpcent opens the Sun RPC program numbers file, that is, a file with the same format as /etc/rpc in the UNIX environment. If the file is already open, setrpcent rewinds the file so that succeeding getrpcent calls can read it sequentially. Specifying a nonzero value for stayopen causes the protocols file to remain open between subsequent getrpcbyname and getrpcbynumber calls. Refer to /etc/rpc and Network Administration for information on naming this file for your system.


RETURN VALUE

setrpcent does not return a value.


CAUTION

The value that getrpcbynumber returns points to a static structure within the library. You must copy the information from this structure before you make further getrpcbyname , getrpcbynumber , or getrpcent calls.


PORTABILITY

setrpcent is portable to other systems that support Sun RPC 4.0.


IMPLEMENTATION

This function is built from the Sun RPC 4.0 distribution.


RELATED FUNCTIONS

endrpcent , getrpcbyname , getrpcbynumber , getrpcent


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.