add cleandir
[unix-history] / usr / src / lib / libc / net / inet.3
index eaea5ad..eecdad3 100644 (file)
@@ -2,9 +2,9 @@
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
 .\" All rights reserved.  The Berkeley software License Agreement
 .\" specifies the terms and conditions for redistribution.
 .\"
-.\"    @(#)inet.3      5.1 (Berkeley) %G%
+.\"    @(#)inet.3      6.6 (Berkeley) %G%
 .\"
 .\"
-.TH INET 3N "18 July 1983"
+.TH INET 3N ""
 .UC 5
 .SH NAME
 inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines
 .UC 5
 .SH NAME
 inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Internet address manipulation routines
@@ -14,22 +14,22 @@ inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, inet_netof \- Int
 .B "#include <netinet/in.h>
 .B "#include <arpa/inet.h>
 .PP
 .B "#include <netinet/in.h>
 .B "#include <arpa/inet.h>
 .PP
-.B "struct in_addr inet_addr(cp)
+.B "unsigned long inet_addr(cp)
 .B "char *cp;
 .PP
 .B "char *cp;
 .PP
-.B "int inet_network(cp)
+.B "unsigned long inet_network(cp)
 .B "char *cp;
 .PP
 .B "char *inet_ntoa(in)
 .B "char *cp;
 .PP
 .B "char *inet_ntoa(in)
-.B "struct inet_addr in;
+.B "struct in_addr in;
 .PP
 .B "struct in_addr inet_makeaddr(net, lna)
 .B "int net, lna;
 .PP
 .PP
 .B "struct in_addr inet_makeaddr(net, lna)
 .B "int net, lna;
 .PP
-.B "int inet_lnaof(in)
+.B "unsigned long inet_lnaof(in)
 .B "struct in_addr in;
 .PP
 .B "struct in_addr in;
 .PP
-.B "int inet_netof(in)
+.B "unsigned long inet_netof(in)
 .B "struct in_addr in;
 .fi
 .SH DESCRIPTION
 .B "struct in_addr in;
 .fi
 .SH DESCRIPTION
@@ -100,13 +100,13 @@ rearrangement.
 .PP
 All numbers supplied as \*(lqparts\*(rq in a \*(lq.\*(rq notation
 may be decimal, octal, or hexadecimal, as specified
 .PP
 All numbers supplied as \*(lqparts\*(rq in a \*(lq.\*(rq notation
 may be decimal, octal, or hexadecimal, as specified
-in the C language (i.e. a leading 0x or 0X implies
+in the C language (i.e., a leading 0x or 0X implies
 hexadecimal; otherwise, a leading 0 implies octal;
 otherwise, the number is interpreted as decimal).
 .SH "SEE ALSO"
 hexadecimal; otherwise, a leading 0 implies octal;
 otherwise, the number is interpreted as decimal).
 .SH "SEE ALSO"
-gethostent(3N), getnetent(3N), hosts(5), networks(5),
+gethostbyname(3N), getnetent(3N), hosts(5), networks(5),
 .SH DIAGNOSTICS
 .SH DIAGNOSTICS
-The value \-1 is returned by
+The constant \fBINADDR_NONE\fP is returned by
 .I inet_addr
 and
 .I inet_network
 .I inet_addr
 and
 .I inet_network
@@ -118,3 +118,5 @@ similar to that for Class B and Class A is needed.
 The string returned by
 .I inet_ntoa
 resides in a static memory area.
 The string returned by
 .I inet_ntoa
 resides in a static memory area.
+.br
+Inet_addr should return a struct in_addr.