and in the function calling signature and return value.
This manual page describes just the differences from
the nonreentrant functions.
-
+.PP
Instead of returning a pointer to a statically allocated
.I netent
structure as the function result,
these functions copy the structure into the location pointed to by
.IR result_buf .
-
+.PP
The
.I buf
array is used to store the string fields pointed to by the returned
(A buffer of length 1024 bytes should be sufficient for most applications.)
.\" I can find no information on the required/recommended buffer size;
.\" the nonreentrant functions use a 1024 byte buffer -- mtk.
-
+.PP
If the function call successfully obtains a network record, then
.I *result
is set pointing to
otherwise,
.I *result
is set to NULL.
-
+.PP
The buffer pointed to by
.I h_errnop
is used to return the value that would be stored in the global variable
.SH RETURN VALUE
On success, these functions return 0.
On error, they return one of the positive error numbers listed in ERRORS.
-
+.PP
On error, record not found
.RB ( getnetbyname_r (),
.BR getnetbyaddr_r ()),