Deleted Added
full compact
getrpcent.3 (84306) getrpcent.3 (108037)
1.\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2.\" $NetBSD: getrpcent.3,v 1.6 1998/02/05 18:49:06 perry Exp $
1.\" @(#)getrpcent.3n 2.2 88/08/02 4.0 RPCSRC; from 1.11 88/03/14 SMI
2.\" $NetBSD: getrpcent.3,v 1.6 1998/02/05 18:49:06 perry Exp $
3.\" $FreeBSD: head/lib/libc/rpc/getrpcent.3 84306 2001-10-01 16:09:29Z ru $
3.\" $FreeBSD: head/lib/libc/rpc/getrpcent.3 108037 2002-12-18 12:45:11Z ru $
4.\"
5.Dd December 14, 1987
6.Dt GETRPCENT 3
7.Os
8.Sh NAME
9.Nm getrpcent ,
10.Nm getrpcbyname ,
11.Nm getrpcbynumber ,

--- 10 unchanged lines hidden (view full) ---

22.Fn getrpcbyname "char *name"
23.Ft struct rpcent *
24.Fn getrpcbynumber "int number"
25.Ft void
26.Fn setrpcent "int stayopen"
27.Ft void
28.Fn endrpcent void
29.Sh DESCRIPTION
4.\"
5.Dd December 14, 1987
6.Dt GETRPCENT 3
7.Os
8.Sh NAME
9.Nm getrpcent ,
10.Nm getrpcbyname ,
11.Nm getrpcbynumber ,

--- 10 unchanged lines hidden (view full) ---

22.Fn getrpcbyname "char *name"
23.Ft struct rpcent *
24.Fn getrpcbynumber "int number"
25.Ft void
26.Fn setrpcent "int stayopen"
27.Ft void
28.Fn endrpcent void
29.Sh DESCRIPTION
30The
30.Fn getrpcent ,
31.Fn getrpcbyname ,
32and
33.Fn getrpcbynumber
31.Fn getrpcent ,
32.Fn getrpcbyname ,
33and
34.Fn getrpcbynumber
35functions
34each return a pointer to an object with the
35following structure
36containing the broken-out
37fields of a line in the rpc program number data base,
38.Pa /etc/rpc :
39.Bd -literal
40struct rpcent {
41 char *r_name; /* name of server for this rpc program */

--- 7 unchanged lines hidden (view full) ---

49.It Va r_name
50The name of the server for this rpc program.
51.It Va r_aliases
52A zero terminated list of alternate names for the rpc program.
53.It Va r_number
54The rpc program number for this service.
55.El
56.Pp
36each return a pointer to an object with the
37following structure
38containing the broken-out
39fields of a line in the rpc program number data base,
40.Pa /etc/rpc :
41.Bd -literal
42struct rpcent {
43 char *r_name; /* name of server for this rpc program */

--- 7 unchanged lines hidden (view full) ---

51.It Va r_name
52The name of the server for this rpc program.
53.It Va r_aliases
54A zero terminated list of alternate names for the rpc program.
55.It Va r_number
56The rpc program number for this service.
57.El
58.Pp
59The
57.Fn getrpcent
60.Fn getrpcent
61function
58reads the next line of the file, opening the file if necessary.
59.Pp
62reads the next line of the file, opening the file if necessary.
63.Pp
64The
60.Fn setrpcent
65.Fn setrpcent
66function
61opens and rewinds the file. If the
62.Fa stayopen
63flag is non-zero,
64the net data base will not be closed after each call to
65.Fn getrpcent
66(either directly, or indirectly through one of
67the other
68.Dq getrpc
69calls).
70.Pp
67opens and rewinds the file. If the
68.Fa stayopen
69flag is non-zero,
70the net data base will not be closed after each call to
71.Fn getrpcent
72(either directly, or indirectly through one of
73the other
74.Dq getrpc
75calls).
76.Pp
77The
71.Fn endrpcent
78.Fn endrpcent
79function
72closes the file.
73.Pp
80closes the file.
81.Pp
82The
74.Fn getrpcbyname
75and
76.Fn getrpcbynumber
83.Fn getrpcbyname
84and
85.Fn getrpcbynumber
86functions
77sequentially search from the beginning
78of the file until a matching rpc program name or
79program number is found, or until end-of-file is encountered.
80.Sh FILES
81.Bl -tag -width /etc/rpc -compact
82.It Pa /etc/rpc
83.El
84.Sh SEE ALSO

--- 14 unchanged lines hidden ---
87sequentially search from the beginning
88of the file until a matching rpc program name or
89program number is found, or until end-of-file is encountered.
90.Sh FILES
91.Bl -tag -width /etc/rpc -compact
92.It Pa /etc/rpc
93.El
94.Sh SEE ALSO

--- 14 unchanged lines hidden ---