GETRPCENT - Online Linux Manual PageSection : 3
Updated : December 14, 1987
NAME getrpcent, getrpcbyname, getrpcbynumber, endrpcent, setrpcent —get RPC entry
SYNOPSIS #include <rpc/rpc.h>
struct rpcent * getrpcent(void);
struct rpcent * getrpcbyname(char *name);
struct rpcent * getrpcbynumber(int number);
void setrpcent(int stayopen);
void endrpcent(void);
DESCRIPTIONThe getrpcent(), getrpcbyname(), and getrpcbynumber() functions each return a pointer to an object with the following structure containing the broken-out fields of a line in the rpc program number data base, /etc/rpc: struct rpcent {
char*r_name;/* name of server for this rpc program */
char**r_aliases;/* alias list */
longr_number;/* rpc program number */
};The members of this structure are: Va r_name The name of the server for this rpc program. Va r_aliases A zero terminated list of alternate names for the rpc program. Va r_number The rpc program number for this service. The getrpcent() function reads the next line of the file, opening the file if necessary. The setrpcent() function opens and rewinds the file. If the stayopen flag is non-zero, the net data base will not be closed after each call to getrpcent() (either directly, or indirectly through one of the other ‟getrpc” calls). The endrpcent() function closes the file. The getrpcbyname() and getrpcbynumber() functions sequentially search from the beginning of the file until a matching rpc program name or program number is found, or until end-of-file is encountered.
FILES /etc/rpc
AVAILABILITYThese functions are part of libtirpc.
SEE ALSOrpc(5), rpcinfo(8)
DIAGNOSTICSA NULL pointer is returned on EOF or error.
BUGSAll information is contained in a static area so it must be copied if it is to be saved. 0
Johanes Gumabo
Data Size : 8,531 byte
man-getrpcent.3tBuild : 2024-12-05, 20:55 :
Visitor Screen : x
Visitor Counter ( page / site ) : 2 / 201,965
Visitor ID : :
Visitor IP : 3.17.181.112 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (mdoc_err|80|getrpcent.3t|47|Va|.It Va r_name
) (mdoc_err|80|getrpcent.3t|49|Va|.It Va r_aliases
) (mdoc_err|80|getrpcent.3t|51|Va|.It Va r_number
)