]> git.saurik.com Git - apple/libc.git/blob - net/FreeBSD/inet.3.patch
Libc-583.tar.gz
[apple/libc.git] / net / FreeBSD / inet.3.patch
1 --- inet.3 2004-11-25 11:38:29.000000000 -0800
2 +++ inet.3.edit 2006-07-12 11:23:50.000000000 -0700
3 @@ -36,50 +36,67 @@
4 .Dt INET 3
5 .Os
6 .Sh NAME
7 -.Nm inet_aton ,
8 .Nm inet_addr ,
9 +.Nm inet_aton ,
10 +.Nm inet_lnaof ,
11 +.Nm inet_makeaddr ,
12 +.Nm inet_netof ,
13 .Nm inet_network ,
14 .Nm inet_ntoa ,
15 .Nm inet_ntop ,
16 -.Nm inet_pton ,
17 -.Nm inet_makeaddr ,
18 -.Nm inet_lnaof ,
19 -.Nm inet_netof
20 +.Nm inet_pton
21 .Nd Internet address manipulation routines
22 .Sh LIBRARY
23 .Lb libc
24 .Sh SYNOPSIS
25 -.In sys/types.h
26 -.In sys/socket.h
27 -.In netinet/in.h
28 .In arpa/inet.h
29 +.Ft in_addr_t
30 +.Fo inet_addr
31 +.Fa "const char *cp"
32 +.Fc
33 .Ft int
34 -.Fn inet_aton "const char *cp" "struct in_addr *pin"
35 +.Fo inet_aton
36 +.Fa "const char *cp"
37 +.Fa "struct in_addr *pin"
38 +.Fc
39 .Ft in_addr_t
40 -.Fn inet_addr "const char *cp"
41 +.Fo inet_lnaof
42 +.Fa "struct in_addr in"
43 +.Fc
44 +.Ft struct in_addr
45 +.Fo inet_makeaddr
46 +.Fa "in_addr_t net"
47 +.Fa "in_addr_t lna"
48 +.Fc
49 .Ft in_addr_t
50 -.Fn inet_network "const char *cp"
51 +.Fo inet_netof
52 +.Fa "struct in_addr in"
53 +.Fc
54 +.Ft in_addr_t
55 +.Fo inet_network
56 +.Fa "const char *cp"
57 +.Fc
58 .Ft char *
59 -.Fn inet_ntoa "struct in_addr in"
60 +.Fo inet_ntoa
61 +.Fa "struct in_addr in"
62 +.Fc
63 .Ft const char *
64 .Fo inet_ntop
65 .Fa "int af"
66 -.Fa "const void * restrict src"
67 -.Fa "char * restrict dst"
68 +.Fa "const void *restrict src"
69 +.Fa "char *restrict dst"
70 .Fa "socklen_t size"
71 .Fc
72 .Ft int
73 -.Fn inet_pton "int af" "const char * restrict src" "void * restrict dst"
74 -.Ft struct in_addr
75 -.Fn inet_makeaddr "in_addr_t net" "in_addr_t lna"
76 -.Ft in_addr_t
77 -.Fn inet_lnaof "struct in_addr in"
78 -.Ft in_addr_t
79 -.Fn inet_netof "struct in_addr in"
80 +.Fo inet_pton
81 +.Fa "int af"
82 +.Fa "const char *restrict src"
83 +.Fa "void *restrict dst"
84 +.Fc
85 .Sh DESCRIPTION
86 The routines
87 .Fn inet_aton ,
88 -.Fn inet_addr
89 +.Fn inet_addr ,
90 and
91 .Fn inet_network
92 interpret character strings representing
93 @@ -242,9 +259,6 @@
94 .Fn inet_ntop
95 call fails if:
96 .Bl -tag -width Er
97 -.It Bq Er ENOSPC
98 -.Fa size
99 -was not large enough to store the presentation form of the address.
100 .It Bq Er EAFNOSUPPORT
101 .Fa *src
102 was not an
103 @@ -252,13 +266,24 @@
104 or
105 .Dv AF_INET6
106 family address.
107 +.It Bq Er ENOSPC
108 +.Fa size
109 +was not large enough to store the presentation form of the address.
110 .El
111 +.Sh LEGACY SYNOPSIS
112 +.Fd #include <sys/types.h>
113 +.Fd #include <sys/socket.h>
114 +.Fd #include <netinet/in.h>
115 +.Fd #include <arpa/inet.h>
116 +.Pp
117 +These include files are necessary for all functions.
118 .Sh SEE ALSO
119 .Xr addr2ascii 3 ,
120 .Xr byteorder 3 ,
121 .Xr gethostbyname 3 ,
122 .Xr getnetent 3 ,
123 .Xr inet_net 3 ,
124 +.Xr compat 5 ,
125 .Xr hosts 5 ,
126 .Xr networks 5
127 .Rs