OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / draft / man3 / getipnodebyname.3
1 .\" Copyright 2000 Sam Varshavchik <mrsam@courier-mta.com>
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References: RFC 2553
24 .\"
25 .\" Japanese Version Copyright (c) 2001 NAKANO Takeo all rights reserved.
26 .\" Translated Sun Jan 14 2001 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
27 .\" Updated Tue Nov 26 2002 by Kentaro Shirakata <argrath@ub32.org>
28 .\"
29 .\"WORD:        null pointer    ¥Ì¥ë¡¦¥Ý¥¤¥ó¥¿¡¼
30 .\"
31 .TH GETIPNODEBYNAME 3 2010-09-04 "Linux" "Linux Programmer's Manual"
32 .\"O .SH NAME
33 .\"O getipnodebyname, getipnodebyaddr, freehostent \- get network
34 .\"O hostnames and addresses
35 .SH Ì¾Á°
36 getipnodebyname, getipnodebyaddr, freehostent \- ¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Î̾Á°¤È¥¢¥É¥ì¥¹¤Î¼èÆÀ
37 .\"O .SH SYNOPSIS
38 .SH ½ñ¼°
39 .nf
40 .B #include <sys/types.h>
41 .B #include <sys/socket.h>
42 .B #include <netdb.h>
43 .sp
44 .BI "struct hostent *getipnodebyname(const char *" name ", int " af ,
45 .BI "                                int " flags ", int *" error_num );
46 .sp
47 .BI "struct hostent *getipnodebyaddr(const void *" addr ", size_t " len ,
48 .BI "                                int " af ", int *" "error_num" );
49 .sp
50 .BI "void freehostent(struct hostent *" "ip" );
51 .fi
52 .\"O .SH DESCRIPTION
53 .SH ÀâÌÀ
54 .\"O These functions are deprecated (and unavailable in glibc).
55 .\"O Use
56 .\"O .BR getaddrinfo (3)
57 .\"O and
58 .\"O .BR getnameinfo (3)
59 .\"O instead.
60 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÈó¿ä¾©¤Ç¤¢¤ë (glibc ¤Ç¤ÏÍøÍѤǤ­¤Ê¤¤)¡£
61 Âå¤ï¤ê¤Ë
62 .BR getaddrinfo (3)
63 ¤È
64 .BR getnameinfo (3)
65 ¤ò»È¤¦¤³¤È¡£
66 .LP
67 .\"O The
68 .\"O .BR getipnodebyname ()
69 .\"O and
70 .\"O .BR getipnodebyaddr ()
71 .\"O functions return the names and addresses of a network host.
72 .\"O These functions return a pointer to the
73 .\"O following structure:
74 .BR getipnodebyname ()
75 ¤È
76 .BR getipnodebyaddr ()
77 ¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Î̾Á°¤È¥¢¥É¥ì¥¹¤òÊÖ¤¹¡£
78 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢°Ê²¼¤Î¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤òÊÖ¤¹¡£
79 .sp
80 .in +4n
81 .nf
82 struct hostent {
83     char  *h_name;
84     char **h_aliases;
85     int    h_addrtype;
86     int    h_length;
87     char **h_addr_list;
88 };
89 .fi
90 .in
91 .PP
92 .\"O These functions replace the
93 .\"O .BR gethostbyname (3)
94 .\"O and
95 .\"O .BR gethostbyaddr (3)
96 .\"O functions, which could only access the IPv4 network address family.
97 .\"O The
98 .\"O .BR getipnodebyname ()
99 .\"O and
100 .\"O .BR getipnodebyaddr ()
101 .\"O functions can access multiple network address families.
102 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢ IPv4 ¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¤Ë¤·¤«¥¢¥¯¥»¥¹¤Ç¤­¤Ê¤¤
103 .BR gethostbyname (3)
104 ¤ä
105 .BR gethostbyaddr (3)
106 ¤òÃÖ¤­´¹¤¨¤ë¤â¤Î¤Ç¤¢¤ë¡£
107 .BR getipnodebyname ()
108 ´Ø¿ô¤È
109 .BR getipnodebyaddr ()
110 ´Ø¿ô¤ÏÊ£¿ô¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤Ë¥¢¥¯¥»¥¹²Äǽ¤Ë¤Ê¤Ã¤Æ¤¤¤ë¡£
111 .PP
112 .\"O Unlike the
113 .\"O .B gethostby
114 .\"O functions,
115 .\"O these functions return pointers to dynamically allocated memory.
116 .\"O The
117 .\"O .BR freehostent ()
118 .\"O function is used to release the dynamically allocated memory
119 .\"O after the caller no longer needs the
120 .\"O .I hostent
121 .\"O structure.
122 ¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢
123 .B gethostby
124 ¤Î´Ø¿ô·²¤È°Û¤Ê¤ê¡¢Æ°Åª¤Ë³ä¤êÅö¤Æ¤é¤ì¤¿¥á¥â¥ê¤Ø¤Î¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
125 ¸Æ¤Ó½Ð¤·¸µ¤¬¤³¤ì¤é¤Î
126 .I hostent
127 ¹½Â¤ÂΤòɬÍפȤ·¤Ê¤¯¤Ê¤Ã¤¿¸å¤Ï¡¢
128 .BR freehostent ()
129 ´Ø¿ô¤òÍѤ¤¤ì¤ÐưŪ¤Ê³ä¤êÅö¤Æ¥á¥â¥ê¤ò²òÊü¤Ç¤­¤ë¡£
130 .\"O .SS getipnodebyname() arguments
131 .SS getipnodebyname() ¤Î°ú¤­¿ô
132 .\"O The
133 .\"O .BR getipnodebyname ()
134 .\"O function
135 .\"O looks up network addresses for the host
136 .\"O specified by the
137 .\"O .I name
138 .\"O argument.
139 .\"O The
140 .\"O .I af
141 .\"O argument specifies one of the following values:
142 .BR getipnodebyname ()
143 ´Ø¿ô¤Ï
144 .I name
145 °ú¤­¿ô¤Ç»ØÄꤵ¤ì¤¿¥Û¥¹¥È¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤ò°ú¤¯¡£
146 .I af
147 °ú¤­¿ô¤Ë¤Ï°Ê²¼¤ÎÃͤΤ¤¤º¤ì¤«¤ò»ØÄꤹ¤ë¡£
148 .TP
149 .B AF_INET
150 .\"O The
151 .\"O .I name
152 .\"O argument points to a dotted-quad IPv4 address or a name
153 .\"O of an IPv4 network host.
154 .I name
155 °ú¤­¿ô¤Ï¡¢¥É¥Ã¥È¤Ç 4 ¤Ä¤Ë¶èÀÚ¤é¤ì¤¿ IPv4 ¥¢¥É¥ì¥¹¤«¡¢
156 IPv4 ¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Î̾Á°¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¡£
157 .TP
158 .B AF_INET6
159 .\"O The
160 .\"O .I name
161 .\"O argument points to a hexadecimal IPv6 address or a name
162 .\"O of an IPv6 network host.
163 .I name
164 °ú¤­¿ô¤Ï¡¢16 ¿Ê¤Î IPv6 ¥¢¥É¥ì¥¹¤«¡¢
165 IPv6 ¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Î̾Á°¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤¢¤ë¡£
166 .PP
167 .\"O The
168 .\"O .I flags
169 .\"O argument specifies additional options.
170 .\"O More than one option can be specified by bitwise OR-ing
171 .\"O them together.
172 .\"O .I flags
173 .\"O should be set to 0
174 .\"O if no options are desired.
175 .I flags
176 ¥Ñ¥é¥á¡¼¥¿¤Ë¤ÏÄɲäΥª¥×¥·¥ç¥ó¤ò»ØÄꤹ¤ë¡£
177 Ê£¿ô¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤Ë¤Ï¡¢¤½¤ì¤é¤Î¥Ó¥Ã¥Èñ°Ì¤Î OR ¤ò¤È¤Ã¤Æ»ØÄꤹ¤ì¤Ð¤è¤¤¡£
178 ¥ª¥×¥·¥ç¥ó¤ò¤Ò¤È¤Ä¤â»ØÄꤷ¤¿¤¯¤Ê¤¤¤È¤­¤Ë¤Ï¡¢
179 .I flags
180 ¤Ë 0 ¤òÀßÄꤹ¤ëɬÍפ¬¤¢¤ë¡£
181 .TP
182 .B AI_V4MAPPED
183 .\"O This flag is used with
184 .\"O .B AF_INET6
185 .\"O to request a query for IPv4 addresses instead of
186 .\"O IPv6 addresses; the IPv4 addresses will
187 .\"O be mapped to IPv6 addresses.
188 ¤³¤Î¥Õ¥é¥°¤Ï
189 .B AF_INET6
190 ¤È¶¦¤ËÍѤ¤¤é¤ì¡¢IPv6 ¥¢¥É¥ì¥¹¤ÎÂå¤ï¤ê¤Ë IPv4 ¥¢¥É¥ì¥¹¤òÌ䤤¹ç¤ï¤»¤ë¡£
191 Ì䤤¹ç¤ï¤»¤ë IPv4 ¥¢¥É¥ì¥¹¤Ï IPv6 ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥×¤µ¤ì¤ë¡£
192 .TP
193 .B AI_ALL
194 .\"O This flag is used with
195 .\"O .B AI_V4MAPPED
196 .\"O to request a query for both IPv4 and IPv6 addresses.
197 .\"O Any IPv4 address found will be mapped to an IPv6 address.
198 ¤³¤Î¥Õ¥é¥°¤Ï
199 .B AI_V4MAPPED
200 ¤È¶¦¤ËÍѤ¤¤é¤ì¡¢IPv4 ¥¢¥É¥ì¥¹¤È IPv6 ¥¢¥É¥ì¥¹¤ÎξÊý¤òÌ䤤¹ç¤ï¤»¤ë¡£
201 ¸«¤Ä¤«¤Ã¤¿ IPv4 ¥¢¥É¥ì¥¹¤Ï¡¢¤¹¤Ù¤Æ IPv6 ¥¢¥É¥ì¥¹¤Ë¥Þ¥Ã¥×¤µ¤ì¤ë¡£
202 .TP
203 .B AI_ADDRCONFIG
204 .\"O This flag is used with
205 .\"O .B AF_INET6
206 .\"O to
207 .\"O further request that queries for IPv6 addresses should not be made unless
208 .\"O the system has at least one IPv6 address assigned to a network interface,
209 .\"O and that queries for IPv4 addresses should not be made unless the
210 .\"O system has at least one IPv4 address assigned to a network interface.
211 .\"O This flag may be used by itself or with the
212 .\"O .B AI_V4MAPPED
213 .\"O flag.
214 ¤³¤Î¥Õ¥é¥°¤Ï
215 .B AF_INET6
216 ¤È¶¦¤ËÍѤ¤¤é¤ì¡¢
217 IPv6 ¤¬³ä¤êÅö¤Æ¤é¤ì¤¿¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬
218 ¥·¥¹¥Æ¥à¤Ë¤Ò¤È¤Ä¤â¤Ê¤±¤ì¤Ð IPv6 ¥¢¥É¥ì¥¹¤ÎÌ䤤¹ç¤ï¤»¤ò¹Ô¤ï¤º¡¢
219 IPv4 ¤¬³ä¤êÅö¤Æ¤é¤ì¤¿¥Í¥Ã¥È¥ï¡¼¥¯¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤¬
220 ¥·¥¹¥Æ¥à¤Ë¤Ò¤È¤Ä¤â¤Ê¤±¤ì¤Ð IPv4 ¥¢¥É¥ì¥¹¤ÎÌ䤤¹ç¤ï¤»¤ò¹Ô¤ï¤Ê¤¤¤è¤¦¤ËÍ׵᤹¤ë¡£
221 ¤³¤Î¥Õ¥é¥°¤ÏñÆȤǤ⡢¤¢¤ë¤¤¤Ï
222 .B AI_V4MAPPED
223 ¥Õ¥é¥°¤È¶¦¤Ë¤Ç¤âÍѤ¤¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
224 .TP
225 .B AI_DEFAULT
226 .\"O This flag is equivalent to
227 .\"O .BR "(AI_ADDRCONFIG | AI_V4MAPPED)" .
228 ¤³¤Î¥Õ¥é¥°¤Ï
229 .BR (AI_ADDRCONFIG | AI_V4MAPPED)
230 ¤ÈÅù²Á¤Ç¤¢¤ë¡£
231 .\"O .SS getipnodebyaddr() arguments
232 .SS "getipnodebyaddr() ¤Î°ú¤­¿ô"
233 .\"O The
234 .\"O .BR getipnodebyaddr ()
235 .\"O function
236 .\"O looks up the name of the host whose
237 .\"O network address is
238 .\"O specified by the
239 .\"O .I addr
240 .\"O argument.
241 .\"O The
242 .\"O .I af
243 .\"O argument specifies one of the following values:
244 .BR getipnodebyaddr ()
245 ´Ø¿ô¤Ï¡¢¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤¬
246 .I addr
247 °ú¤­¿ô¤Ç»ØÄꤵ¤ì¤¿¥Û¥¹¥È¤Î̾Á°¤ò°ú¤¯¡£
248 .I af
249 °ú¤­¿ô¤Ë¤Ï°Ê²¼¤ÎÃͤΤ¤¤º¤ì¤«¤ò»ØÄꤹ¤ë¡£
250 .TP
251 .B AF_INET
252 .\"O The
253 .\"O .I addr
254 .\"O argument points to a
255 .\"O .I struct in_addr
256 .\"O and
257 .\"O .I len
258 .\"O must be set to
259 .\"O .IR "sizeof(struct in_addr)" .
260 .I addr
261 °ú¤­¿ô¤Ï
262 .I struct in_addr
263 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ê¡¢
264 .I len
265 °ú¤­¿ô¤Ï
266 .I sizeof(struct in_addr)
267 ¤ËÀßÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
268 .TP
269 .B AF_INET6
270 .\"O The
271 .\"O .I addr
272 .\"O argument points to a
273 .\"O .I struct in6_addr
274 .\"O and
275 .\"O .I len
276 .\"O must be set to
277 .\"O .IR "sizeof(struct in6_addr)" .
278 .I addr
279 °ú¤­¿ô¤Ï
280 .I struct in6_addr
281 ¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤Ç¤¢¤ê¡¢
282 .I len
283 °ú¤­¿ô¤Ï
284 .I sizeof(struct in6_addr)
285 ¤ËÀßÄꤷ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
286 .\"O .SH "RETURN VALUE"
287 .SH ÊÖ¤êÃÍ
288 .\"O A NULL pointer is returned if an error occurred, and
289 .\"O .I error_num
290 .\"O will contain an error code from the following list:
291 ¥¨¥é¡¼¤¬µ¯¤³¤ë¤È¥Ì¥ë¡¦¥Ý¥¤¥ó¥¿¡¼¤¬ÊÖ¤µ¤ì¡¢
292 .I error_num
293 ¤Ë°Ê²¼¤Ë¥ê¥¹¥È¤µ¤ì¤¿¥¨¥é¡¼¥³¡¼¥É¤Î¤¤¤º¤ì¤«¤¬ÀßÄꤵ¤ì¤ë¡£
294 .TP
295 .B HOST_NOT_FOUND
296 .\"O The hostname or network address was not found.
297 ¥Û¥¹¥È̾¤Þ¤¿¤Ï¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¡£
298 .TP
299 .B NO_ADDRESS
300 .\"O The domain name server recognized the network address or name,
301 .\"O but no answer was returned.
302 .\"O This can happen if the network host has only IPv4 addresses and
303 .\"O a request has been made for IPv6 information only, or vice versa.
304 ¥É¥á¥¤¥ó¥Í¡¼¥à¥µ¡¼¥Ð¡¼¤Ï
305 ¤½¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤Þ¤¿¤Ï¥Í¥Ã¥È¥ï¡¼¥¯Ì¾¤òǧ¼±¤·¤¿¤¬¡¢
306 ÊÖ»ö¤¬Ê֤äƤ³¤Ê¤«¤Ã¤¿¡£¸¶°ø¤È¤·¤Æ¤Ï¡¢
307 Î㤨¤Ð IPv4 ¥¢¥É¥ì¥¹¤·¤«»ý¤¿¤Ê¤¤¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤ËÂФ·¤Æ
308 IPv6 ¤Î¾ðÊó¤ÎÌ䤤¹ç¤ï¤»¤¬¹Ô¤ï¤ì¤¿ (¤ª¤è¤Ó¤½¤ÎµÕ) ¤Ê¤É¤¬¹Í¤¨¤é¤ì¤ë¡£
309 .TP
310 .B NO_RECOVERY
311 .\"O The domain name server returned a permanent failure response.
312 ¥É¥á¥¤¥ó¥Í¡¼¥à¥µ¡¼¥Ð¡¼¤«¤é¹±µ×Ū¤Ê¼ºÇÔ (permanent failure)
313 ¤ò°ÕÌ£¤¹¤ëÊÖ»ö¤¬ÊÖ¤µ¤ì¤¿¡£
314 .TP
315 .B TRY_AGAIN
316 .\"O The domain name server returned a temporary failure response.
317 .\"O You might have better luck next time.
318 ¥Í¡¼¥à¥µ¡¼¥Ð¡¼¤«¤é°ì»þŪ¤Ê¼ºÇÔ (temporary failure)
319 ¤ò°ÕÌ£¤¹¤ëÊÖ»ö¤¬ÊÖ¤µ¤ì¤¿¡£¼¡¤Ë¤Ï¤â¤¦¤Á¤ç¤Ã¤È±¿¤¬É¬Íפ«¤â¡£
320 .PP
321 .\"O A successful query returns a pointer to a
322 .\"O .I hostent
323 .\"O structure that contains the following fields:
324 Ì䤤¹ç¤ï¤»¤ËÀ®¸ù¤¹¤ë¤È¡¢
325 .I hostent
326 ¹½Â¤ÂΤؤΥݥ¤¥ó¥¿¤¬ÊÖ¤µ¤ì¤ë¡£
327 ¤³¤Î¹½Â¤ÂΤϰʲ¼¤Î¥Õ¥£¡¼¥ë¥É¤«¤é¤Ê¤ë¡£
328 .TP
329 .I h_name
330 .\"O This is the official name of this network host.
331 ¤³¤ì¤Ï¤³¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤Î¥ª¥Õ¥£¥·¥ã¥ë¤Ê̾Á°¤Ç¤¢¤ë¡£
332 .TP
333 .I h_aliases
334 .\"O This is an array of pointers to unofficial aliases for the same host.
335 .\"O The array is terminated by a NULL pointer.
336 ¤³¤ì¤Ï¡¢¤½¤Î¥Û¥¹¥È¤Î¥ª¥Õ¥£¥·¥ã¥ë¤Ç¤Ê¤¤ÊÌ̾¤Ø¤Î¥Ý¥¤¥ó¥¿¡¼¤ÎÇÛÎó¤Ç¤¢¤ë¡£
337 ÇÛÎó¤Ï¥Ì¥ë¡¦¥Ý¥¤¥ó¥¿¡¼¤Ç½ªÃ¼¤¹¤ë¡£
338 .TP
339 .I h_addrtype
340 .\"O This is a copy of the
341 .\"O .I af
342 .\"O argument to
343 .\"O .BR getipnodebyname ()
344 .\"O or
345 .\"O .BR getipnodebyaddr ().
346 .\"O .I h_addrtype
347 .\"O will always be
348 .\"O .B AF_INET
349 .\"O if the
350 .\"O .I af
351 .\"O argument was
352 .\"O .BR AF_INET .
353 .\"O .I h_addrtype
354 .\"O will always be
355 .\"O .B AF_INET6
356 .\"O if the
357 .\"O .I af
358 .\"O argument was
359 .\"O .BR AF_INET6 .
360 ¤³¤ì¤Ï
361 .BR getipnodebyname ()
362 ¤Þ¤¿¤Ï
363 .BR getipnodebyaddr ()
364 ¤ËÍ¿¤¨¤é¤ì¤¿
365 .I af
366 °ú¤­¿ô¤Î¥³¥Ô¡¼¤Ç¤¢¤ë¡£
367 .I af
368 °ú¤­¿ô¤¬
369 .B AF_INET
370 ¤Ê¤é
371 .I h_addrtype
372 ¤Ï¾ï¤Ë
373 .B AF_INET
374 ¤Ë¤Ê¤ê¡¢
375 .I af
376 °ú¤­¿ô¤¬
377 .B AF_INET6
378 ¤Ê¤é
379 .I h_addrtype
380 ¤â¾ï¤Ë
381 .B AF_INET6
382 ¤Ë¤Ê¤ë¡£
383 .TP
384 .I h_length
385 .\"O This field will be set to
386 .\"O .I sizeof(struct in_addr)
387 .\"O if
388 .\"O .I h_addrtype
389 .\"O is
390 .\"O .BR AF_INET ,
391 .\"O and to
392 .\"O .I sizeof(struct in6_addr)
393 .\"O if
394 .\"O .I h_addrtype
395 .\"O is
396 .\"O .BR AF_INET6 .
397 ¤³¤Î¥Õ¥£¡¼¥ë¥É¤Ï¡¢
398 .I h_addrtype
399 ¤¬
400 .B AF_INET
401 ¤Ê¤é
402 .I sizeof(struct in_addr)
403 ¤Ë¡¢
404 .I h_addrtype
405 ¤¬
406 .B AF_INET6
407 ¤Ê¤é
408 .I sizeof(struct in6_addr)
409 ¤ËÀßÄꤵ¤ì¤ë¡£
410 .TP
411 .I h_addr_list
412 .\"O This is an array of one or more pointers to network address structures for the
413 .\"O network host.
414 .\"O The array is terminated by a NULL pointer.
415 ¤³¤ì¤Ï¤Ò¤È¤Ä°Ê¾å¤Î¥Ý¥¤¥ó¥¿¡¼¤ÎÇÛÎó¤Ç¡¢
416 ¤½¤ì¤¾¤ì¤Î¥Ý¥¤¥ó¥¿¡¼¤Ï¡¢
417 ¤½¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥Û¥¹¥È¤ËÂбþ¤¹¤ë¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¹½Â¤ÂΤò»Ø¤¹¡£
418 ¤³¤ÎÇÛÎó¤Ï¥Ì¥ë¡¦¥Ý¥¤¥ó¥¿¡¼¤Ç½ªÃ¼¤¹¤ë¡£
419 .\"O .SH "CONFORMING TO"
420 .SH ½àµò
421 RFC\ 2553.
422 .\"O .\" Not in POSIX.1-2001.
423 .\" POSIX.1-2001 ¤Ë¤Ï¤Ê¤¤¡£
424 .\"O .SH NOTES
425 .SH Ãí°Õ
426 .\"O These functions were present in glibc 2.1.91-95, but were
427 .\"O removed again.
428 .\"O Several UNIX-like systems support them, but all
429 .\"O call them deprecated.
430 ¤³¤ì¤é¤Î´Ø¿ô¤Ï glibc 2.1.91-95 ¤Ë¸ºß¤·¤¿¤¬¡¢ºÆ¤Óºï½ü¤µ¤ì¤¿¡£
431 ¤¤¤¯¤Ä¤«¤Î UNIX É÷¥·¥¹¥Æ¥à¤Ï¤³¤ì¤é¤Î´Ø¿ô¤ËÂбþ¤·¤Æ¤¤¤ë¤¬¡¢
432 ¤³¤ì¤é¤Î´Ø¿ô¤ÏÁ´¤Æ¿ä¾©¤µ¤ì¤Ê¤¤¡£
433 .\"O .SH "SEE ALSO"
434 .SH ´ØÏ¢¹àÌÜ
435 .BR getaddrinfo (3),
436 .BR getnameinfo (3),
437 .BR inet_ntop (3),
438 .BR inet_pton (3)