RETURN VALUE: emphasize that returned pointer points to a

statically allocated structure.
SEE ALSO: add getservent_r.3.
This commit is contained in:
Michael Kerrisk 2008-08-18 13:39:34 +00:00
parent b5991a6e70
commit 23b211585a
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,8 @@ The
.BR getservbyname ()
and
.BR getservbyport ()
functions return the \fIservent\fP structure, or a NULL pointer if an
functions return a pointer to a
statically allocated \fIservent\fP structure, or a NULL pointer if an
error occurs or the end of the file is reached.
.SH FILES
.TP
@ -130,4 +131,5 @@ services database file
.SH "SEE ALSO"
.BR getnetent (3),
.BR getprotoent (3),
.BR getservent_r (3),
.BR services (5)