summaryrefslogtreecommitdiffstats
path: root/man3/getprotoent.3
diff options
context:
space:
mode:
Diffstat (limited to 'man3/getprotoent.3')
-rw-r--r--man3/getprotoent.324
1 files changed, 12 insertions, 12 deletions
diff --git a/man3/getprotoent.3 b/man3/getprotoent.3
index 8aad2d3..1eb9773 100644
--- a/man3/getprotoent.3
+++ b/man3/getprotoent.3
@@ -8,7 +8,7 @@
.\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\" 386BSD man pages
.\" Modified Sat Jul 24 19:26:03 1993 by Rik Faith (faith@cs.unc.edu)
-.TH getprotoent 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH getprotoent 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
getprotoent, getprotobyname, getprotobynumber, setprotoent,
endprotoent \- get protocol entry
@@ -18,12 +18,12 @@ Standard C library
.SH SYNOPSIS
.nf
.B #include <netdb.h>
-.PP
+.P
.B struct protoent *getprotoent(void);
-.PP
+.P
.BI "struct protoent *getprotobyname(const char *" name );
.BI "struct protoent *getprotobynumber(int " proto );
-.PP
+.P
.BI "void setprotoent(int " stayopen );
.B void endprotoent(void);
.fi
@@ -37,7 +37,7 @@ and returns a
structure
containing the broken-out fields from the entry.
A connection is opened to the database if necessary.
-.PP
+.P
The
.BR getprotobyname ()
function returns a
@@ -47,7 +47,7 @@ for the entry from the database
that matches the protocol name
.IR name .
A connection is opened to the database if necessary.
-.PP
+.P
The
.BR getprotobynumber ()
function returns a
@@ -57,7 +57,7 @@ for the entry from the database
that matches the protocol number
.IR number .
A connection is opened to the database if necessary.
-.PP
+.P
The
.BR setprotoent ()
function opens a connection to the database,
@@ -69,17 +69,17 @@ then the connection to the database
will not be closed between calls to one of the
.BR getproto* ()
functions.
-.PP
+.P
The
.BR endprotoent ()
function closes the connection to the database.
-.PP
+.P
The
.I protoent
structure is defined in
.I <netdb.h>
as follows:
-.PP
+.P
.in +4n
.EX
struct protoent {
@@ -89,7 +89,7 @@ struct protoent {
}
.EE
.in
-.PP
+.P
The members of the
.I protoent
structure are:
@@ -169,7 +169,7 @@ MT-Unsafe race:protoent
locale
T}
.TE
-.sp 1
+.P
In the above table,
.I protoent
in