View | Details | Raw Unified | Return to bug 156
Collapse All | Expand All

(-)a/ChangeLog (+6 lines)
Lines 1-3 Link Here
1
2013-05-17  Yogesh Chaudhari  <mr.yogesh@gmail.com>
2
3
	[BZ #156]
4
	* manual/socket.texi: Added statement about buffer 
5
	for gethostbyname2_r.
6
1
2013-05-13  Joseph Myers  <joseph@codesourcery.com>
7
2013-05-13  Joseph Myers  <joseph@codesourcery.com>
2
8
3
	* math/libm-test.inc (struct test_fi_f_data): New type.
9
	* math/libm-test.inc (struct test_fi_f_data): New type.
(-)a/manual/socket.texi (-8 / +11 lines)
Lines 1290-1303 pointer and the size of the buffer in the @var{buf} and @var{buflen} Link Here
1290
parameters.
1290
parameters.
1291
1291
1292
A pointer to the buffer, in which the result is stored, is available in
1292
A pointer to the buffer, in which the result is stored, is available in
1293
@code{*@var{result}} after the function call successfully returned.  If
1293
@code{*@var{result}} after the function call successfully returned. The 
1294
an error occurs or if no entry is found, the pointer @code{*@var{result}}
1294
buffer passed as the @var{buf} parameter can be freed only once the caller
1295
is a null pointer.  Success is signalled by a zero return value.  If the
1295
has finished with the result hostent struct, or has copied it including all 
1296
function failed the return value is an error number.  In addition to the
1296
the other memory that it points to. If an error occurs or if no entry is 
1297
errors defined for @code{gethostbyname} it can also be @code{ERANGE}.
1297
found, the pointer @code{*@var{result}} is a null pointer. Success is 
1298
In this case the call should be repeated with a larger buffer.
1298
signalled by a zero return value.  If the function failed the return value 
1299
Additional error information is not stored in the global variable
1299
is an error number.  In addition to the errors defined for 
1300
@code{h_errno} but instead in the object pointed to by @var{h_errnop}.
1300
@code{gethostbyname} it can also be @code{ERANGE}. In this case the call 
1301
should be repeated with a larger buffer. Additional error information is 
1302
not stored in the global variable @code{h_errno} but instead in the object 
1303
pointed to by @var{h_errnop}.
1301
1304
1302
Here's a small example:
1305
Here's a small example:
1303
@smallexample
1306
@smallexample

Return to bug 156