FreeBSD Bugzilla – Attachment 11236 Details for
Bug 22198
inet_ntop may set errno to ENOSPC and needs better docs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1020 bytes, created by
Nick Johnson
on 2000-10-21 21:20:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Nick Johnson
Created:
2000-10-21 21:20:01 UTC
Size:
1020 bytes
patch
obsolete
>--- inet.3.orig Sat Oct 21 13:02:33 2000 >+++ inet.3 Sat Oct 21 13:02:04 2000 >@@ -114,10 +114,16 @@ > .Pp > The function > .Fn inet_ntop >-converts an address from network format (usually a >+converts an address from network format specified by >+.Fa *src >+(usually a > .Ft struct in_addr >-or some other binary form, in network byte order) to presentation format >-(suitable for external display purposes). >+or some other binary form, in network byte order) to presentation format in >+.Fa *dst >+(suitable for external display purposes). The max size of >+.Fa *dst >+is specified by >+.Fa size > It returns NULL if a system error occurs (in which case, > .Va errno > will have been set), or it returns a pointer to the destination string. >@@ -221,6 +227,15 @@ > and > .Fn inet_network > for malformed requests. >+.Sh ERRORS >+The >+.Fn inet_pton >+call fails if: >+.Bl -tag -width Er >+.It Bq Er EINVAL >+.Fa size >+was not large enough to store the presentation form of the address. >+.El > .Sh SEE ALSO > .Xr addr2ascii 3 , > .Xr gethostbyname 3 ,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 22198
:
11235
| 11236