OSDN Git Service

(split) Fixed #25191 (typo in fenv.3).
[linuxjm/LDP_man-pages.git] / release / man3 / inet_ntop.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 2001-01-14, NAKANO Takeo <nakano@apm.seikei.ac.jp>
27 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
28 .\" Updated 2008-08-08, Akihiro MOTOKI, LDP v3.05
29 .\"
30 .TH INET_NTOP 3 2008-11-11 "Linux" "Linux Programmer's Manual"
31 .SH Ì¾Á°
32 inet_ntop \- IPv4/IPv6 ¥¢¥É¥ì¥¹¤ò¥Ð¥¤¥Ê¥ê·Á¼°¤«¤é¥Æ¥­¥¹¥È·Á¼°¤ËÊÑ´¹¤¹¤ë
33 .SH ½ñ¼°
34 .nf
35 .B #include <arpa/inet.h>
36 .sp
37 .BI "const char *inet_ntop(int " "af" ", const void *" "src" ,
38 .BI "                      char *" "dst" ", socklen_t " "size" );
39 .fi
40 .SH ÀâÌÀ
41 ¤³¤Î´Ø¿ô¤Ï¡¢
42 .I af
43 ¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¹½Â¤ÂÎ
44 .I src
45 ¤òʸ»úÎó¤ËÊÑ´¹¤¹¤ë¡£
46 ÊÑ´¹·ë²Ì¤Îʸ»úÎó¤Ï¡¢
47 .I dst
48 ¤¬»Ø¤¹¥Ð¥Ã¥Õ¥¡¤Ë¥³¥Ô¡¼¤µ¤ì¤ë¡£
49 .I dst
50 ¤Ï NULL ¤Ç¤Ê¤¤¥Ý¥¤¥ó¥¿¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
51 ¸Æ¤Ó½Ð¤·»þ¤Ë¡¢¤³¤Î¥Ð¥Ã¥Õ¥¡¤ÇÍøÍѤǤ­¤ë¥Ð¥¤¥È¿ô¤ò
52 °ú¤­¿ô
53 .I size
54 ¤Ë»ØÄꤹ¤ë¡£
55 .PP
56 .BR inet_ntop ()
57 ¤Ï
58 .BR inet_ntoa (3)
59 ´Ø¿ô¤ò³ÈÄ¥¤·¤ÆÊ£¿ô¤Î¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤ò°·¤¨¤ë¤è¤¦¤Ë¤·¤¿¤â¤Î¤Ç¤¢¤ë¡£
60 º£¸å¤Ï
61 .BR inet_ntoa (3)
62 ¤Ï»È¤ï¤º¡¢
63 .BR inet_ntop ()
64 ¤ò»È¤¦¤è¤¦¤Ë¤¹¤ë¤ÈÎɤ¤¤À¤í¤¦¡£
65 ¸½ºß¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤Ï°Ê²¼¤ÎÄ̤ê:
66 .TP
67 .B AF_INET
68 ¤³¤Î¾ì¹ç
69 .I src
70 ¤Ï (¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Î)
71 .I "struct in_addr"
72 ¤Ø¤Î¥Ý¥¤¥ó¥¿¤È¤ß¤Ê¤µ¤ì¡¢¤³¤Î¹½Â¤ÂΤÎÆâÍƤ¬
73 ¥É¥Ã¥È¶èÀÚ¤ê¤Î 10 ¿Ê¿ô·Á¼° "\fIddd.ddd.ddd.ddd\fP" ¤Î
74 IPv4 ¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤ËÊÑ´¹¤µ¤ì¤ë¡£
75 ¥Ð¥Ã¥Õ¥¡
76 .I dst
77 ¤Ï¾¯¤Ê¤¯¤È¤â
78 .B INET_ADDRSTRLEN
79 ¥Ð¥¤¥È¤ÎŤµ¤ò»ý¤¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
80 .TP
81 .B AF_INET6
82 ¤³¤Î¾ì¹ç
83 .I src
84 ¤Ï (¥Í¥Ã¥È¥ï¡¼¥¯¥Ð¥¤¥È¥ª¡¼¥À¡¼¤Î)
85 .I "struct in6_addr"
86 ¤Ø¤Î¥Ý¥¤¥ó¥¿¤È¤ß¤Ê¤µ¤ì¡¢¤³¤Î¹½Â¤ÂΤÎÆâÍƤ¬¡¢
87 (¤³¤Î¥¢¥É¥ì¥¹¤ËÂФ·¤Æ¤â¤Ã¤È¤âŬÀÚ¤Ê)
88 IPv6 ¥Í¥Ã¥È¥ï¡¼¥¯¥¢¥É¥ì¥¹¤Îɽ¼¨·Á¼°¤ËÊÑ´¹¤µ¤ì¤ë¡£
89 ¥Ð¥Ã¥Õ¥¡
90 .I dst
91 ¤Ï¾¯¤Ê¤¯¤È¤â
92 .B INET6_ADDRSTRLEN
93 ¥Ð¥¤¥È¤ÎŤµ¤ò»ý¤¿¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
94 .SH ÊÖ¤êÃÍ
95 À®¸ù¤¹¤ë¤È¡¢
96 .BR inet_ntop ()
97 ¤Ï
98 .I dst
99 ¤Ø¤Î (NULL ¤Ç¤Ê¤¤) ¥Ý¥¤¥ó¥¿¤òÊÖ¤¹¡£
100 ¥¨¥é¡¼¤¬¤¢¤Ã¤¿¾ì¹ç¤Ï NULL ¤òÊÖ¤·¡¢
101 .I errno
102 ¤ò¥¨¥é¡¼¤ò¼¨¤¹ÃͤËŬÀÚ¤ËÀßÄꤹ¤ë¡£
103 .SH ¥¨¥é¡¼
104 .TP
105 .B EAFNOSUPPORT
106 .I af
107 ¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¥¢¥É¥ì¥¹¥Õ¥¡¥ß¥ê¡¼¤Ç¤Ê¤«¤Ã¤¿¡£
108 .TP
109 .B ENOSPC
110 ÊÑ´¹¤µ¤ì¤¿¥¢¥É¥ì¥¹Ê¸»úÎó¤ÎŤµ¤¬
111 .I size
112 ¤Ç»ØÄꤵ¤ì¤¿¥µ¥¤¥º¤òĶ²á¤·¤Æ¤·¤Þ¤¦¡£
113 .SH ½àµò
114 POSIX.1-2001.
115 RFC\ 2553 ¤Ç¤ÏºÇ¸å¤Î°ú¤­¿ô
116 .I size
117 ¤Î¥×¥í¥È¥¿¥¤¥×¤ò
118 .I size_t
119 ·¿¤ÈÄêµÁ¤·¤Æ¤¤¤ë¡£Â¿¤¯¤Î¥·¥¹¥Æ¥à¤Ç¤Ï RFC\ 2553 ¤Ë¤·¤¿¤¬¤Ã¤Æ¤¤¤ë¡£
120 glibc 2.0 ¤È 2.1 ¤Ç¤Ï
121 .I size_t
122 ¤À¤¬¡¢
123 glibc 2.2 °Ê¹ß¤Ç¤Ï
124 .I socklen_t
125 ¤È¤Ê¤Ã¤Æ¤¤¤ë¡£
126 .\" 2.1.3: size_t, 2.1.91: socklen_t
127 .SH ¥Ð¥°
128 .B AF_INET6
129 ¤Ï IPv4 ¤¬¥Þ¥Ã¥×¤µ¤ì¤¿ IPv6 ¥¢¥É¥ì¥¹¤ò
130 IPv6 ·Á¼°¤ËÊÑ´¹¤·¤Æ¤·¤Þ¤¦¡£
131 .SH Îã
132 .BR inet_pton (3)
133 ¤ò»²¾È¡£
134 .SH ´ØÏ¢¹àÌÜ
135 .BR getnameinfo (3),
136 .BR inet (3),
137 .BR inet_pton (3)