OSDN Git Service

Update README
[linuxjm/LDP_man-pages.git] / original / man3 / inet.3
index b6ff4d8..685a739 100644 (file)
@@ -39,7 +39,7 @@
 .\"     Add discussion of Classful Addressing, noting that it is obsolete.
 .\"     Added an EXAMPLE program.
 .\"
-.TH INET 3  2013-02-10 "GNU" "Linux Programmer's Manual"
+.TH INET 3  2014-05-28 "GNU" "Linux Programmer's Manual"
 .SH NAME
 inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof,
 inet_netof \- Internet address manipulation routines
@@ -57,7 +57,7 @@ inet_netof \- Internet address manipulation routines
 .sp
 .BI "char *inet_ntoa(struct in_addr " in );
 .sp
-.BI "struct in_addr inet_makeaddr(int " net ", int " host );
+.BI "struct in_addr inet_makeaddr(in_addr_t " net ", in_addr_t " host );
 .sp
 .BI "in_addr_t inet_lnaof(struct in_addr " in );
 .sp
@@ -108,7 +108,7 @@ Part
 .I b
 is interpreted as a 24-bit value that defines the rightmost three bytes
 of the binary address.
-This notation is suitable for specifying (outmoded) Class C
+This notation is suitable for specifying (outmoded) Class A
 network addresses.
 .TP
 .I a
@@ -129,6 +129,14 @@ The form that uses exactly four decimal numbers is referred to as
 .IR "IPv4 dotted-decimal notation"
 (or sometimes:
 .IR "IPv4 dotted-quad notation" ).
+
+.BR inet_aton ()
+returns 1 if the supplied string was successfully interpreted,
+or 0 if the string is invalid
+.RB ( errno
+is
+.I not
+set on error).
 .PP
 The
 .BR inet_addr ()
@@ -144,7 +152,7 @@ Avoid its use in favor of
 .BR inet_aton (),
 .BR inet_pton (3),
 or
-.BR getaddrinfo (3)
+.BR getaddrinfo (3),
 which provide a cleaner way to indicate error return.
 .PP
 The
@@ -300,15 +308,17 @@ main(int argc, char *argv[])
 .BR gethostbyname (3),
 .BR getnameinfo (3),
 .BR getnetent (3),
+.BR inet_net_pton (3),
 .BR inet_ntop (3),
 .BR inet_pton (3),
 .BR hosts (5),
 .BR networks (5)
 .SH COLOPHON
-This page is part of release 3.64 of the Linux
+This page is part of release 3.79 of the Linux
 .I man-pages
 project.
 A description of the project,
-and information about reporting bugs,
+information about reporting bugs,
+and the latest version of this page,
 can be found at
 \%http://www.kernel.org/doc/man\-pages/.