]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/getprotoent.3
time.1, _syscall.2, acct.2, getsockname.2, nanosleep.2, pciconfig_read.2, sched_get_p...
[thirdparty/man-pages.git] / man3 / getprotoent.3
index 6734bbd83713d3de33a4532ba5944d99670d1659..552fbbf0aa3ee695f9a0c25f7edb0c31fec43239 100644 (file)
@@ -50,29 +50,39 @@ The
 .BR getprotoent ()
 function reads the next entry from the protocols database (see
 .BR protocols (5))
-and returns a \fIprotoent\fP structure
+and returns a
+.I protoent
+structure
 containing the broken-out fields from the entry.
 A connection is opened to the database if necessary.
 .PP
 The
 .BR getprotobyname ()
-function returns a \fIprotoent\fP structure
+function returns a
+.I protoent
+structure
 for the entry from the database
-that matches the protocol name \fIname\fP.
+that matches the protocol name
+.IR name .
 A connection is opened to the database if necessary.
 .PP
 The
 .BR getprotobynumber ()
-function returns a \fIprotoent\fP structure
+function returns a
+.I protoent
+structure
 for the entry from the database
-that matches the protocol number \fInumber\fP.
+that matches the protocol number
+.IR number .
 A connection is opened to the database if necessary.
 .PP
 The
 .BR setprotoent ()
 function opens a connection to the database,
 and sets the next entry to the first entry.
-If \fIstayopen\fP is nonzero,
+If
+.I stayopen
+is nonzero,
 then the connection to the database
 will not be closed between calls to one of the
 .BR getproto* ()
@@ -82,7 +92,11 @@ The
 .BR endprotoent ()
 function closes the connection to the database.
 .PP
-The \fIprotoent\fP structure is defined in \fI<netdb.h>\fP as follows:
+The
+.I protoent
+structure is defined in
+.I <netdb.h>
+as follows:
 .sp
 .in +4n
 .nf
@@ -94,7 +108,9 @@ struct protoent {
 .fi
 .in
 .PP
-The members of the \fIprotoent\fP structure are:
+The members of the
+.I protoent
+structure are:
 .TP
 .I p_name
 The official name of the protocol.
@@ -111,7 +127,9 @@ The
 and
 .BR getprotobynumber ()
 functions return a pointer to a
-statically allocated \fIprotoent\fP structure, or a NULL pointer if an
+statically allocated
+.I protoent
+structure, or a NULL pointer if an
 error occurs or the end of the file is reached.
 .SH FILES
 .PD 0