]> git.saurik.com Git - apple/libc.git/blob - net/FreeBSD/inet.3.patch
8f84aa00dbd04bfa17597df2e29c7d5abfcd5392
[apple/libc.git] / net / FreeBSD / inet.3.patch
1 --- inet.3.bsdnew 2009-11-10 16:23:10.000000000 -0800
2 +++ inet.3 2009-11-10 16:35:18.000000000 -0800
3 @@ -32,32 +32,51 @@
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_ntoa_r ,
16 .Nm inet_ntop ,
17 -.Nm inet_pton ,
18 -.Nm inet_makeaddr ,
19 -.Nm inet_lnaof ,
20 -.Nm inet_netof
21 +.Nm inet_pton
22 .Nd Internet address manipulation routines
23 .Sh LIBRARY
24 .Lb libc
25 .Sh SYNOPSIS
26 -.In sys/types.h
27 -.In sys/socket.h
28 -.In netinet/in.h
29 .In arpa/inet.h
30 +.Ft in_addr_t
31 +.Fo inet_addr
32 +.Fa "const char *cp"
33 +.Fc
34 .Ft int
35 -.Fn inet_aton "const char *cp" "struct in_addr *pin"
36 +.Fo inet_aton
37 +.Fa "const char *cp"
38 +.Fa "struct in_addr *pin"
39 +.Fc
40 +.Ft in_addr_t
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_addr "const char *cp"
51 +.Fo inet_netof
52 +.Fa "struct in_addr in"
53 +.Fc
54 .Ft in_addr_t
55 -.Fn inet_network "const char *cp"
56 +.Fo inet_network
57 +.Fa "const char *cp"
58 +.Fc
59 .Ft char *
60 -.Fn inet_ntoa "struct in_addr in"
61 +.Fo inet_ntoa
62 +.Fa "struct in_addr in"
63 +.Fc
64 .Ft char *
65 .Fo inet_ntoa_r
66 .Fa "struct in_addr in"
67 @@ -72,13 +91,11 @@
68 .Fa "socklen_t size"
69 .Fc
70 .Ft int
71 -.Fn inet_pton "int af" "const char * restrict src" "void * restrict dst"
72 -.Ft struct in_addr
73 -.Fn inet_makeaddr "in_addr_t net" "in_addr_t lna"
74 -.Ft in_addr_t
75 -.Fn inet_lnaof "struct in_addr in"
76 -.Ft in_addr_t
77 -.Fn inet_netof "struct in_addr in"
78 +.Fo inet_pton
79 +.Fa "int af"
80 +.Fa "const char * restrict src"
81 +.Fa "void * restrict dst"
82 +.Fc
83 .Sh DESCRIPTION
84 The routines
85 .Fn inet_aton ,
86 @@ -241,9 +258,6 @@ The
87 .Fn inet_ntop
88 call fails if:
89 .Bl -tag -width Er
90 -.It Bq Er ENOSPC
91 -.Fa size
92 -was not large enough to store the presentation form of the address.
93 .It Bq Er EAFNOSUPPORT
94 .Fa *src
95 was not an
96 @@ -251,7 +265,17 @@ was not an
97 or
98 .Dv AF_INET6
99 family address.
100 +.It Bq Er ENOSPC
101 +.Fa size
102 +was not large enough to store the presentation form of the address.
103 .El
104 +.Sh LEGACY SYNOPSIS
105 +.Fd #include <sys/types.h>
106 +.Fd #include <sys/socket.h>
107 +.Fd #include <netinet/in.h>
108 +.Fd #include <arpa/inet.h>
109 +.Pp
110 +These include files are necessary for all functions.
111 .Sh SEE ALSO
112 .Xr byteorder 3 ,
113 .Xr getaddrinfo 3 ,