OSDN Git Service

8a3db6fb2f96fc4c22f277d73a97d71f933cef37
[linuxjm/LDP_man-pages.git] / po4a / net / po / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2012-05-01 04:21+0900\n"
10 "PO-Revision-Date: 2012-05-05 03:29+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: TH
19 #: build/C/man7/arp.7:9
20 #, no-wrap
21 msgid "ARP"
22 msgstr "ARP"
23
24 #. type: TH
25 #: build/C/man7/arp.7:9
26 #, no-wrap
27 msgid "2008-11-25"
28 msgstr "2008-11-25"
29
30 #. type: TH
31 #: build/C/man7/arp.7:9 build/C/man3/cmsg.3:7 build/C/man7/ddp.7:7
32 #: build/C/man1/getent.1:23 build/C/man3/getipnodebyname.3:24
33 #: build/C/man2/getpeername.2:40 build/C/man5/host.conf.5:26
34 #: build/C/man7/hostname.7:37 build/C/man5/hosts.5:27
35 #: build/C/man5/hosts.equiv.5:3 build/C/man7/icmp.7:7
36 #: build/C/man3/inet_ntop.3:24 build/C/man3/inet_pton.3:25
37 #: build/C/man7/ip.7:12 build/C/man7/ipv6.7:7 build/C/man7/netdevice.7:15
38 #: build/C/man5/nsswitch.conf.5:24 build/C/man7/packet.7:7
39 #: build/C/man5/protocols.5:28 build/C/man7/raw.7:9 build/C/man3/rcmd.3:41
40 #: build/C/man3/rexec.3:39 build/C/man5/services.5:34
41 #: build/C/man2/shutdown.2:38 build/C/man7/tcp.7:16 build/C/man7/udp.7:8
42 #: build/C/man7/udplite.7:25 build/C/man7/unix.7:15 build/C/man7/x25.7:7
43 #, no-wrap
44 msgid "Linux"
45 msgstr "Linux"
46
47 #. type: TH
48 #: build/C/man7/arp.7:9 build/C/man3/byteorder.3:30 build/C/man3/cmsg.3:7
49 #: build/C/man7/ddp.7:7 build/C/man3/endian.3:26 build/C/man3/ether_aton.3:31
50 #: build/C/man3/getaddrinfo.3:41 build/C/man3/getaddrinfo_a.3:27
51 #: build/C/man3/gethostbyname.3:36 build/C/man3/getipnodebyname.3:24
52 #: build/C/man3/getnameinfo.3:7 build/C/man3/getnetent.3:28
53 #: build/C/man3/getnetent_r.3:24 build/C/man2/getpeername.2:40
54 #: build/C/man3/getprotoent.3:28 build/C/man3/getprotoent_r.3:24
55 #: build/C/man3/getservent.3:32 build/C/man3/getservent_r.3:24
56 #: build/C/man7/hostname.7:37 build/C/man5/hosts.5:27
57 #: build/C/man5/hosts.equiv.5:3 build/C/man7/icmp.7:7 build/C/man3/inet.3:42
58 #: build/C/man3/inet_ntop.3:24 build/C/man3/inet_pton.3:25
59 #: build/C/man7/ip.7:12 build/C/man7/ipv6.7:7 build/C/man7/netdevice.7:15
60 #: build/C/man8/nscd.8:23 build/C/man5/nscd.conf.5:20
61 #: build/C/man5/nsswitch.conf.5:24 build/C/man7/packet.7:7
62 #: build/C/man5/protocols.5:28 build/C/man7/raw.7:9 build/C/man3/rcmd.3:41
63 #: build/C/man5/resolv.conf.5:21 build/C/man3/resolver.3:30
64 #: build/C/man3/rexec.3:39 build/C/man5/services.5:34
65 #: build/C/man3/setnetgrent.3:5 build/C/man2/shutdown.2:38
66 #: build/C/man7/tcp.7:16 build/C/man7/udp.7:8 build/C/man7/udplite.7:25
67 #: build/C/man7/unix.7:15 build/C/man7/x25.7:7
68 #, no-wrap
69 msgid "Linux Programmer's Manual"
70 msgstr "Linux Programmer's Manual"
71
72 #. type: SH
73 #: build/C/man7/arp.7:10 build/C/man3/byteorder.3:31 build/C/man3/cmsg.3:8
74 #: build/C/man7/ddp.7:8 build/C/man3/endian.3:27 build/C/man3/ether_aton.3:32
75 #: build/C/man3/getaddrinfo.3:42 build/C/man3/getaddrinfo_a.3:28
76 #: build/C/man1/getent.1:24 build/C/man3/gethostbyname.3:37
77 #: build/C/man3/getipnodebyname.3:25 build/C/man3/getnameinfo.3:8
78 #: build/C/man3/getnetent.3:29 build/C/man3/getnetent_r.3:25
79 #: build/C/man2/getpeername.2:41 build/C/man3/getprotoent.3:29
80 #: build/C/man3/getprotoent_r.3:25 build/C/man3/getservent.3:33
81 #: build/C/man3/getservent_r.3:25 build/C/man5/host.conf.5:27
82 #: build/C/man7/hostname.7:38 build/C/man5/hosts.5:28
83 #: build/C/man5/hosts.equiv.5:4 build/C/man7/icmp.7:8 build/C/man3/inet.3:43
84 #: build/C/man3/inet_ntop.3:25 build/C/man3/inet_pton.3:26
85 #: build/C/man7/ip.7:13 build/C/man7/ipv6.7:8 build/C/man7/netdevice.7:16
86 #: build/C/man5/networks.5:25 build/C/man8/nscd.8:24
87 #: build/C/man5/nscd.conf.5:21 build/C/man5/nsswitch.conf.5:25
88 #: build/C/man7/packet.7:8 build/C/man5/protocols.5:29 build/C/man7/raw.7:10
89 #: build/C/man3/rcmd.3:42 build/C/man5/resolv.conf.5:23
90 #: build/C/man3/resolver.3:31 build/C/man3/rexec.3:40
91 #: build/C/man5/services.5:35 build/C/man3/setnetgrent.3:6
92 #: build/C/man2/shutdown.2:39 build/C/man7/tcp.7:17 build/C/man7/udp.7:9
93 #: build/C/man7/udplite.7:26 build/C/man7/unix.7:16 build/C/man7/x25.7:8
94 #, no-wrap
95 msgid "NAME"
96 msgstr "名前"
97
98 #. type: Plain text
99 #: build/C/man7/arp.7:12
100 msgid "arp - Linux ARP kernel module."
101 msgstr "arp - Linux ARP カーネルモジュール"
102
103 #. type: SH
104 #: build/C/man7/arp.7:12 build/C/man3/byteorder.3:46 build/C/man3/cmsg.3:33
105 #: build/C/man7/ddp.7:18 build/C/man3/endian.3:51 build/C/man3/ether_aton.3:57
106 #: build/C/man3/getaddrinfo.3:73 build/C/man3/getaddrinfo_a.3:48
107 #: build/C/man1/getent.1:29 build/C/man3/gethostbyname.3:116
108 #: build/C/man3/getipnodebyname.3:42 build/C/man3/getnameinfo.3:29
109 #: build/C/man3/getnetent.3:46 build/C/man3/getnetent_r.3:60
110 #: build/C/man2/getpeername.2:48 build/C/man3/getprotoent.3:46
111 #: build/C/man3/getprotoent_r.3:57 build/C/man3/getservent.3:50
112 #: build/C/man3/getservent_r.3:57 build/C/man5/host.conf.5:29
113 #: build/C/man7/hostname.7:40 build/C/man5/hosts.5:32
114 #: build/C/man5/hosts.equiv.5:7 build/C/man7/icmp.7:10 build/C/man3/inet.3:75
115 #: build/C/man3/inet_ntop.3:34 build/C/man3/inet_pton.3:34
116 #: build/C/man7/ip.7:29 build/C/man7/ipv6.7:20 build/C/man7/netdevice.7:22
117 #: build/C/man5/networks.5:27 build/C/man8/nscd.8:26
118 #: build/C/man5/nscd.conf.5:23 build/C/man5/nsswitch.conf.5:27
119 #: build/C/man7/packet.7:20 build/C/man5/protocols.5:31 build/C/man7/raw.7:18
120 #: build/C/man3/rcmd.3:90 build/C/man5/resolv.conf.5:27
121 #: build/C/man3/resolver.3:83 build/C/man3/rexec.3:54
122 #: build/C/man5/services.5:37 build/C/man3/setnetgrent.3:39
123 #: build/C/man2/shutdown.2:45 build/C/man7/tcp.7:27 build/C/man7/udp.7:17
124 #: build/C/man7/udplite.7:36 build/C/man7/unix.7:27 build/C/man7/x25.7:16
125 #, no-wrap
126 msgid "DESCRIPTION"
127 msgstr "説明"
128
129 #. type: Plain text
130 #: build/C/man7/arp.7:20
131 msgid ""
132 "This kernel protocol module implements the Address Resolution Protocol "
133 "defined in RFC\\ 826.  It is used to convert between Layer2 hardware "
134 "addresses and IPv4 protocol addresses on directly connected networks.  The "
135 "user normally doesn't interact directly with this module except to configure "
136 "it; instead it provides a service for other protocols in the kernel."
137 msgstr ""
138 "このカーネルプロトコルモジュールは、 RFC\\ 826 で定義されている Address "
139 "Resolution Protocol を 実装したものである。 ARP は、ダイレクトに接続された"
140 "ネットワーク上で、 第 2 層のハードウェアアドレスをIPv4 プロトコルアドレスに "
141 "変換するために用いられる。ユーザーは設定の場合を除いて 通常直接このモジュール"
142 "に関ることはない。 これはカーネル内部の他のプロトコルにサービスを提供するもの"
143 "である。"
144
145 #. type: Plain text
146 #: build/C/man7/arp.7:33
147 msgid ""
148 "A user process can receive ARP packets by using B<packet>(7)  sockets.  "
149 "There is also a mechanism for managing the ARP cache in user-space by using "
150 "B<netlink>(7)  sockets.  The ARP table can also be controlled via B<ioctl>"
151 "(2)  on any B<AF_INET> socket."
152 msgstr ""
153 "ユーザープロセスは、 B<packet>(7)  ソケットを用いれば ARP パケットを受信する"
154 "ことができる。 ARP キャッシュをユーザー空間で管理することもできる。 これには "
155 "B<netlink>(7)  を用いる。 ARP テーブルも制御可能で、これには任意の "
156 "B<AF_INET> ソケットに B<ioctl>(2)  を用いる。"
157
158 #. type: Plain text
159 #: build/C/man7/arp.7:45
160 msgid ""
161 "The ARP module maintains a cache of mappings between hardware addresses and "
162 "protocol addresses.  The cache has a limited size so old and less frequently "
163 "used entries are garbage-collected.  Entries which are marked as permanent "
164 "are never deleted by the garbage-collector.  The cache can be directly "
165 "manipulated by the use of ioctls and its behavior can be tuned by the I</"
166 "proc> interfaces described below."
167 msgstr ""
168 "ARP モジュールはハードウェアアドレスからプロトコルアドレスへの マッピングの"
169 "キャッシュを管理する。キャッシュの大きさには制限が あるので、古いエントリや利"
170 "用されないエントリはガベージコレクト される。 permanent (保存) マークがつけら"
171 "れたエントリは、 決してガベージコレクタによって消去されない。 ioctl を用いれ"
172 "ばキャッシュを直接操作することもできる。 また後述の I</proc> インタフェースに"
173 "よりキャッシュの振る舞いを調整できる。"
174
175 #. type: Plain text
176 #: build/C/man7/arp.7:68
177 msgid ""
178 "When there is no positive feedback for an existing mapping after some time "
179 "(see the I</proc> interfaces below), a neighbor cache entry is considered "
180 "stale.  Positive feedback can be gotten from a higher layer; for example "
181 "from a successful TCP ACK.  Other protocols can signal forward progress "
182 "using the B<MSG_CONFIRM> flag to B<sendmsg>(2).  When there is no forward "
183 "progress, ARP tries to reprobe.  It first tries to ask a local arp daemon "
184 "B<app_solicit> times for an updated MAC address.  If that fails and an old "
185 "MAC address is known, a unicast probe is sent B<ucast_solicit> times.  If "
186 "that fails too, it will broadcast a new ARP request to the network.  "
187 "Requests are only sent when there is data queued for sending."
188 msgstr ""
189 "存在しているマッピングに対して、 正のフィードバックが一定時間ない (後述の I</"
190 "proc> インタフェースを見よ) と、 近傍キャッシュエントリ (neighbor cache "
191 "entry) は 古くなった (stale) とみなされる。 正のフィードバックは高位のレイ"
192 "ヤーからも取得できる (例えば TCP ACK が成功した場合など)。 他のプロトコル"
193 "は、 B<sendmsg>(2)  に B<MSG_CONFIRM> フラグを用いることによって、 フォワード"
194 "プログレス (forward progress) をシグナルできる。 フォワードプログレスがなけれ"
195 "ば、 ARP は再びプローブを試みる。 まずローカルな arp デーモンに問合わせを行"
196 "い、 更新された MAC アドレスを取得しようとする。 このリクエストに "
197 "B<app_solicit> 回失敗すると、古い MAC アドレスがわかっている場合は、 unicast "
198 "のプローブが B<ucaset_solicit> 回送られる。これにも失敗すると、新しい ARP リ"
199 "クエスト をネットワークにブロードキャストする。 リクエストは、データが送信"
200 "キューになければ送られない。"
201
202 #. type: Plain text
203 #: build/C/man7/arp.7:73
204 msgid ""
205 "Linux will automatically add a nonpermanent proxy arp entry when it receives "
206 "a request for an address it forwards to and proxy arp is enabled on the "
207 "receiving interface.  When there is a reject route for the target, no proxy "
208 "arp entry is added."
209 msgstr ""
210 "Linux は、あるアドレスへのリクエストを受信・フォワードし、 受信したインター"
211 "フェースで代理 arp が有効になっている場合には、 自動的にそのアドレスを "
212 "nonpermanent な代理 arp エントリに追加する。 そのターゲットに reject route が"
213 "あった場合には、 代理 arp エントリは一切追加されない。"
214
215 #. type: SS
216 #: build/C/man7/arp.7:73 build/C/man7/ddp.7:139 build/C/man7/ip.7:898
217 #: build/C/man7/netdevice.7:69 build/C/man7/packet.7:225
218 #: build/C/man7/tcp.7:997 build/C/man7/udp.7:192 build/C/man7/unix.7:280
219 #, no-wrap
220 msgid "Ioctls"
221 msgstr "ioctl"
222
223 #. type: Plain text
224 #: build/C/man7/arp.7:80
225 msgid ""
226 "Three ioctls are available on all B<AF_INET> sockets.  They take a pointer "
227 "to a I<struct arpreq> as their argument."
228 msgstr ""
229 "すべての B<AF_INET> ソケットでは、 3 つの ioctl が使用できる。 これらは "
230 "I<struct arpreq> へのポインタを引数に取る。"
231
232 #. type: Plain text
233 #: build/C/man7/arp.7:90
234 #, no-wrap
235 msgid ""
236 "struct arpreq {\n"
237 "    struct sockaddr arp_pa;      /* protocol address */\n"
238 "    struct sockaddr arp_ha;      /* hardware address */\n"
239 "    int             arp_flags;   /* flags */\n"
240 "    struct sockaddr arp_netmask; /* netmask of protocol address */\n"
241 "    char            arp_dev[16];\n"
242 "};\n"
243 msgstr ""
244 "struct arpreq {\n"
245 "    struct sockaddr arp_pa;      /* protocol address */\n"
246 "    struct sockaddr arp_ha;      /* hardware address */\n"
247 "    int             arp_flags;   /* flags */\n"
248 "    struct sockaddr arp_netmask; /* netmask of protocol address */\n"
249 "    char            arp_dev[16];\n"
250 "};\n"
251
252 #. type: Plain text
253 #: build/C/man7/arp.7:99
254 msgid ""
255 "B<SIOCSARP>, B<SIOCDARP> and B<SIOCGARP> respectively set, delete and get an "
256 "ARP mapping.  Setting and deleting ARP maps are privileged operations and "
257 "may only be performed by a process with the B<CAP_NET_ADMIN> capability or "
258 "an effective UID of 0."
259 msgstr ""
260 "B<SIOCSARP>, B<SIOCDARP>, B<SIOCGARP> は、それぞれ ARP マッピングを設定・削"
261 "除・取得する。 ARP マップの設定と削除は特権が必要な操作であり、 "
262 "B<CAP_NET_ADMIN> 権限を持つプロセスか、実行ユーザー ID が 0 のプロセス でなけ"
263 "れば実行できない。"
264
265 #. type: Plain text
266 #: build/C/man7/arp.7:109
267 msgid ""
268 "I<arp_pa> must be an B<AF_INET> address and I<arp_ha> must have the same "
269 "type as the device which is specified in I<arp_dev>.  I<arp_dev> is a zero-"
270 "terminated string which names a device."
271 msgstr ""
272 "I<arp_pa> は B<AF_INET> アドレスでなければならず、 I<arp_ha> は I<arp_dev> で"
273 "設定されたデバイスと同じタイプでなければならない。 I<arp_dev> はデバイスの名"
274 "前を示す、ゼロで終端された文字列である。"
275
276 #. type: tbl table
277 #: build/C/man7/arp.7:114
278 #, no-wrap
279 msgid "I<arp_flags>\n"
280 msgstr "I<arp_flags>\n"
281
282 #. type: tbl table
283 #: build/C/man7/arp.7:115
284 #, no-wrap
285 msgid "flag:meaning\n"
286 msgstr "フラグ:意味\n"
287
288 #. type: tbl table
289 #: build/C/man7/arp.7:116
290 #, no-wrap
291 msgid "ATF_COM:Lookup complete\n"
292 msgstr "ATF_COM:参照完了\n"
293
294 #. type: tbl table
295 #: build/C/man7/arp.7:117
296 #, no-wrap
297 msgid "ATF_PERM:Permanent entry\n"
298 msgstr "ATF_PERM:エントリを peramanent にする\n"
299
300 #. type: tbl table
301 #: build/C/man7/arp.7:118
302 #, no-wrap
303 msgid "ATF_PUBL:Publish entry\n"
304 msgstr "ATF_PUBL:エントリを publish する\n"
305
306 #. type: tbl table
307 #: build/C/man7/arp.7:119
308 #, no-wrap
309 msgid "ATF_USETRAILERS:Trailers requested\n"
310 msgstr "ATF_USETRAILERS:trailer が必要\n"
311
312 #. type: tbl table
313 #: build/C/man7/arp.7:120
314 #, no-wrap
315 msgid "ATF_NETMASK:Use a netmask\n"
316 msgstr "ATF_NETMASK:netmask を用いる\n"
317
318 #. type: tbl table
319 #: build/C/man7/arp.7:121
320 #, no-wrap
321 msgid "ATF_DONTPUB:Don't answer\n"
322 msgstr "ATF_DONTPUB:回答しない\n"
323
324 #. type: Plain text
325 #: build/C/man7/arp.7:135
326 msgid ""
327 "If the B<ATF_NETMASK> flag is set, then I<arp_netmask> should be valid.  "
328 "Linux 2.2 does not support proxy network ARP entries, so this should be set "
329 "to 0xffffffff, or 0 to remove an existing proxy arp entry.  "
330 "B<ATF_USETRAILERS> is obsolete and should not be used."
331 msgstr ""
332 "B<ATF_NETMASK> フラグがセットされているときには、 I<arp_netmask> が有効でなけ"
333 "ればならない。 Linux 2.2 は代理ネットワーク ARP エントリをサポートしていない"
334 "ので、 これは 0xffffffff にセットしておくか、あるいは 現存の代理 arp エントリ"
335 "を削除したい場合には 0 にしておく必要がある。 B<ATF_USETRAILERS> は obsolete "
336 "なので、用いるべきでない。"
337
338 #. type: SS
339 #: build/C/man7/arp.7:135 build/C/man7/ddp.7:117 build/C/man7/icmp.7:36
340 #: build/C/man7/ip.7:774 build/C/man7/tcp.7:159 build/C/man7/udp.7:131
341 #, no-wrap
342 msgid "/proc interfaces"
343 msgstr "/proc インタフェース"
344
345 #. type: Plain text
346 #: build/C/man7/arp.7:148
347 msgid ""
348 "ARP supports a range of I</proc> interfaces to configure parameters on a "
349 "global or per-interface basis.  The interfaces can be accessed by reading or "
350 "writing the I</proc/sys/net/ipv4/neigh/*/*> files.  Each interface in the "
351 "system has its own directory in I</proc/sys/net/ipv4/neigh/>.  The setting "
352 "in the \"default\" directory is used for all newly created devices.  Unless "
353 "otherwise specified, time-related interfaces are specified in seconds."
354 msgstr ""
355 "ARP では、グローバルなパラメータやインターフェースごとのパラメータを I</"
356 "proc> インタフェースを通して設定することができる。 これらのインタフェースに"
357 "は、 I<proc/sys/net/ipv4/neigh/*/*> ファイルの読み書きによりアクセスできる。 "
358 "システムにあるそれぞれのインターフェースには、 それぞれ対応するディレクトリ"
359 "が I</proc/sys/net/ipv4/neigh/> 以下にある。 \"default\" ディレクトリに対して"
360 "設定をすると、 それ以降生成されるデバイス全てに対してその設定が用いられる。 "
361 "特に指定がなければ、時間に関る sysctl の単位は秒である。"
362
363 #. type: TP
364 #: build/C/man7/arp.7:148
365 #, no-wrap
366 msgid "I<anycast_delay> (since Linux 2.2)"
367 msgstr "I<anycast_delay> (Linux 2.2 以降)"
368
369 #.  Precisely: 2.1.79
370 #. type: Plain text
371 #: build/C/man7/arp.7:155
372 msgid ""
373 "The maximum number of jiffies to delay before replying to a IPv6 neighbor "
374 "solicitation message.  Anycast support is not yet implemented.  Defaults to "
375 "1 second."
376 msgstr ""
377 "IPv6 の近傍要請メッセージ (neighbor soliciation message)  に応答するまでの最"
378 "大遅延時間 (jiffy 単位)。 anycast のサポートはまだ実装されていない。 デフォル"
379 "トは 1 秒。"
380
381 #. type: TP
382 #: build/C/man7/arp.7:155
383 #, no-wrap
384 msgid "I<app_solicit> (since Linux 2.2)"
385 msgstr "I<app_solicit> (Linux 2.2 以降)"
386
387 #.  Precisely: 2.1.79
388 #. type: Plain text
389 #: build/C/man7/arp.7:162
390 msgid ""
391 "The maximum number of probes to send to the user space ARP daemon via "
392 "netlink before dropping back to multicast probes (see I<mcast_solicit>).  "
393 "Defaults to 0."
394 msgstr ""
395 "ユーザー空間の ARP デーモンに netlink を用いて探索させる最大回数。 これを越え"
396 "るとマルチキャストによる探索に移行する (I<mcast_solicit> を見よ)。"
397
398 #. type: TP
399 #: build/C/man7/arp.7:162
400 #, no-wrap
401 msgid "I<base_reachable_time> (since Linux 2.2)"
402 msgstr "I<base_reachable_time> (Linux 2.2 以降)"
403
404 #.  Precisely: 2.1.79
405 #. type: Plain text
406 #: build/C/man7/arp.7:173
407 msgid ""
408 "Once a neighbor has been found, the entry is considered to be valid for at "
409 "least a random value between I<base_reachable_time>/2 and "
410 "3*I<base_reachable_time>/2.  An entry's validity will be extended if it "
411 "receives positive feedback from higher level protocols.  Defaults to 30 "
412 "seconds.  This file is now obsolete in favor of I<base_reachable_time_ms>."
413 msgstr ""
414 "近傍のホストがみつかると、そのエントリは I<base_reachable_time>/2 から "
415 "3*I<base_reachable_time>/2 の間のランダムな値の時間、有効であるとみなされ"
416 "る。 エントリの有効性は、高位のプロトコルからポジティブなフィードバックを 受"
417 "け取ると延長される。デフォルトは 30 秒。 このファイルは現在は非推奨であり、代"
418 "わりに I<base_reachable_time_ms> を使うこと。"
419
420 #. type: TP
421 #: build/C/man7/arp.7:173
422 #, no-wrap
423 msgid "I<base_reachable_time_ms> (since Linux 2.6.12)"
424 msgstr "I<base_reachable_time_ms> (Linux 2.6.12 以降)"
425
426 #. type: Plain text
427 #: build/C/man7/arp.7:179
428 msgid ""
429 "As for I<base_reachable_time>, but measures time in milliseconds.  Defaults "
430 "to 30000 milliseconds."
431 msgstr ""
432 "I<base_reachable_time> と同じだが、時間をミリ秒単位で測る。 デフォルトは "
433 "30000 ミリ秒である。"
434
435 #. type: TP
436 #: build/C/man7/arp.7:179
437 #, no-wrap
438 msgid "I<delay_first_probe_time> (since Linux 2.2)"
439 msgstr "I<delay_first_probe_time> (Linux 2.2 以降)"
440
441 #.  Precisely: 2.1.79
442 #. type: Plain text
443 #: build/C/man7/arp.7:185
444 msgid ""
445 "Delay before first probe after it has been decided that a neighbor is "
446 "stale.  Defaults to 5 seconds."
447 msgstr ""
448 "近傍ホストのエントリが古くなったと判断された後に 最初に探索を行うまでの遅延時"
449 "間。デフォルトは 5 秒。"
450
451 #. type: TP
452 #: build/C/man7/arp.7:185
453 #, no-wrap
454 msgid "I<gc_interval> (since Linux 2.2)"
455 msgstr "I<gc_interval> (Linux 2.2 以降)"
456
457 #.  Precisely: 2.1.79
458 #. type: Plain text
459 #: build/C/man7/arp.7:191
460 msgid ""
461 "How frequently the garbage collector for neighbor entries should attempt to "
462 "run.  Defaults to 30 seconds."
463 msgstr ""
464 "ガベージ・コレクタを近傍ホストエントリに対して実行させる頻度。 デフォルトは "
465 "30 秒。"
466
467 #. type: TP
468 #: build/C/man7/arp.7:191
469 #, no-wrap
470 msgid "I<gc_stale_time> (since Linux 2.2)"
471 msgstr "I<gc_stale_time> (Linux 2.2 以降)"
472
473 #.  Precisely: 2.1.79
474 #. type: Plain text
475 #: build/C/man7/arp.7:198
476 msgid ""
477 "Determines how often to check for stale neighbor entries.  When a neighbor "
478 "entry is considered stale, it is resolved again before sending data to it.  "
479 "Defaults to 60 seconds."
480 msgstr ""
481 "古くなった近傍ホストエントリに対してチェックを行う頻度。 近傍ホストエントリが"
482 "古くなったとみなされると、そのエントリに データを送る前には再度解決が行われ"
483 "る。 デフォルトは 60 秒。"
484
485 #. type: TP
486 #: build/C/man7/arp.7:198
487 #, no-wrap
488 msgid "I<gc_thresh1> (since Linux 2.2)"
489 msgstr "I<gc_thresh1> (Linux 2.2 以降)"
490
491 #.  Precisely: 2.1.79
492 #. type: Plain text
493 #: build/C/man7/arp.7:205
494 msgid ""
495 "The minimum number of entries to keep in the ARP cache.  The garbage "
496 "collector will not run if there are fewer than this number of entries in the "
497 "cache.  Defaults to 128."
498 msgstr ""
499 "ARP キャッシュに保存するエントリ数の最小値。 この数より少ないエントリしか"
500 "キャッシュになければ、 ガベージ・コレクタは実行されない。 デフォルトは 128。"
501
502 #. type: TP
503 #: build/C/man7/arp.7:205
504 #, no-wrap
505 msgid "I<gc_thresh2> (since Linux 2.2)"
506 msgstr "I<gc_thresh2> (Linux 2.2 以降)"
507
508 #.  Precisely: 2.1.79
509 #. type: Plain text
510 #: build/C/man7/arp.7:212
511 msgid ""
512 "The soft maximum number of entries to keep in the ARP cache.  The garbage "
513 "collector will allow the number of entries to exceed this for 5 seconds "
514 "before collection will be performed.  Defaults to 512."
515 msgstr ""
516 "ARP キャッシュに保存されるエントリ数のソフトな最大値。 キャッシュのエントリが"
517 "この数を 5 秒間越えつづけると、 ガベージ・コレクタが実行される。 デフォルト"
518 "は 512。"
519
520 #. type: TP
521 #: build/C/man7/arp.7:212
522 #, no-wrap
523 msgid "I<gc_thresh3> (since Linux 2.2)"
524 msgstr "I<gc_thresh3> (Linux 2.2 以降)"
525
526 #.  Precisely: 2.1.79
527 #. type: Plain text
528 #: build/C/man7/arp.7:219
529 msgid ""
530 "The hard maximum number of entries to keep in the ARP cache.  The garbage "
531 "collector will always run if there are more than this number of entries in "
532 "the cache.  Defaults to 1024."
533 msgstr ""
534 "ARP キャッシュに保存されるエントリ数のハードな最大値。 キャッシュのエントリが"
535 "この数を越えると、 ガベージ・コレクタはただちに実行される。 デフォルトは "
536 "1024。"
537
538 #. type: TP
539 #: build/C/man7/arp.7:219
540 #, no-wrap
541 msgid "I<locktime> (since Linux 2.2)"
542 msgstr "I<locktime> (Linux 2.2 以降)"
543
544 #.  Precisely: 2.1.79
545 #. type: Plain text
546 #: build/C/man7/arp.7:226
547 msgid ""
548 "The minimum number of jiffies to keep an ARP entry in the cache.  This "
549 "prevents ARP cache thrashing if there is more than one potential mapping "
550 "(generally due to network misconfiguration).  Defaults to 1 second."
551 msgstr ""
552 "ARP エントリをキャッシュに保存する時間の最小値 (jiffy 単位)。 可能性のある"
553 "マッピングが一つ以上ある (たいていはネットワーク設定のミス)  場合に、 ARP "
554 "キャッシュのスラッシングが起きることを防ぐ。 デフォルトは 1 秒。"
555
556 #. type: TP
557 #: build/C/man7/arp.7:226
558 #, no-wrap
559 msgid "I<mcast_solicit> (since Linux 2.2)"
560 msgstr "I<mcast_solicit> (Linux 2.2 以降)"
561
562 #.  Precisely: 2.1.79
563 #. type: Plain text
564 #: build/C/man7/arp.7:232
565 msgid ""
566 "The maximum number of attempts to resolve an address by multicast/broadcast "
567 "before marking the entry as unreachable.  Defaults to 3."
568 msgstr ""
569 "エントリを unreachable マークする前に、 アドレスをマルチキャスト/ブロードキャ"
570 "ストで解決しようとする 試行回数の最大値。 デフォルトは 3。"
571
572 #. type: TP
573 #: build/C/man7/arp.7:232
574 #, no-wrap
575 msgid "I<proxy_delay> (since Linux 2.2)"
576 msgstr "I<proxy_delay> (Linux 2.2 以降)"
577
578 #.  Precisely: 2.1.79
579 #. type: Plain text
580 #: build/C/man7/arp.7:240
581 msgid ""
582 "When an ARP request for a known proxy-ARP address is received, delay up to "
583 "I<proxy_delay> jiffies before replying.  This is used to prevent network "
584 "flooding in some cases.  Defaults to 0.8 seconds."
585 msgstr ""
586 "既知の代理 ARP アドレスに対して ARP リクエストを受信した場合に、 応答前に最"
587 "大 I<proxy_delay> jiffy まで遅延する。これは場合によって生じる ネットワーク・"
588 "フラッディング (network flooding) を避けるために用いる。 デフォルトは 0.8 "
589 "秒。"
590
591 #. type: TP
592 #: build/C/man7/arp.7:240
593 #, no-wrap
594 msgid "I<proxy_qlen> (since Linux 2.2)"
595 msgstr "I<proxy_qlen> (Linux 2.2 以降)"
596
597 #.  Precisely: 2.1.79
598 #. type: Plain text
599 #: build/C/man7/arp.7:245
600 msgid ""
601 "The maximum number of packets which may be queued to proxy-ARP addresses.  "
602 "Defaults to 64."
603 msgstr ""
604 "代理 ARP アドレスに対してキューイングできる最大のパケット数。 デフォルトは "
605 "64。"
606
607 #. type: TP
608 #: build/C/man7/arp.7:245
609 #, no-wrap
610 msgid "I<retrans_time> (since Linux 2.2)"
611 msgstr "I<retrans_time> (Linux 2.2 以降)"
612
613 #.  Precisely: 2.1.79
614 #. type: Plain text
615 #: build/C/man7/arp.7:252
616 msgid ""
617 "The number of jiffies to delay before retransmitting a request.  Defaults to "
618 "1 second.  This file is now obsolete in favor of I<retrans_time_ms>."
619 msgstr ""
620 "リクエストを再度送るまでの遅延時間 (jiffy 単位)。 デフォルトは 1 秒。 この"
621 "ファイルは現在は非推奨であり、代わりに I<retrans_time_ms> を使うこと。"
622
623 #. type: TP
624 #: build/C/man7/arp.7:252
625 #, no-wrap
626 msgid "I<retrans_time_ms> (since Linux 2.6.12)"
627 msgstr "I<retrans_time_ms> (Linux 2.6.12 以降)"
628
629 #. type: Plain text
630 #: build/C/man7/arp.7:256
631 msgid ""
632 "The number of milliseconds to delay before retransmitting a request.  "
633 "Defaults to 1000 milliseconds."
634 msgstr ""
635 "リクエストを再度送るまでの遅延時間 (ミリ秒単位)。 デフォルトは 1000 ミリ秒。"
636
637 #. type: TP
638 #: build/C/man7/arp.7:256
639 #, no-wrap
640 msgid "I<ucast_solicit> (since Linux 2.2)"
641 msgstr "I<ucast_solicit> (Linux 2.2 以降)"
642
643 #.  Precisely: 2.1.79
644 #. type: Plain text
645 #: build/C/man7/arp.7:263
646 msgid ""
647 "The maximum number of attempts to send unicast probes before asking the ARP "
648 "daemon (see I<app_solicit>).  Defaults to 3."
649 msgstr ""
650 "ARP デーモンへの問い合わせを行う前に行う unicast 探索の最大試行数 "
651 "(I<app_solicit> を見よ)。デフォルトは 3。"
652
653 #. type: TP
654 #: build/C/man7/arp.7:263
655 #, no-wrap
656 msgid "I<unres_qlen> (since Linux 2.2)"
657 msgstr "I<unres_qlen> (Linux 2.2 以降)"
658
659 #.  Precisely: 2.1.79
660 #. type: Plain text
661 #: build/C/man7/arp.7:269
662 msgid ""
663 "The maximum number of packets which may be queued for each unresolved "
664 "address by other network layers.  Defaults to 3."
665 msgstr ""
666 "解決されていないアドレスに対して、 他のネットワーク層からキューイングできる最"
667 "大パケット数。 デフォルトは 3。"
668
669 #. type: SH
670 #: build/C/man7/arp.7:269 build/C/man7/ddp.7:216 build/C/man3/endian.3:72
671 #: build/C/man3/getnameinfo.3:200 build/C/man7/icmp.7:155
672 #: build/C/man7/ipv6.7:270 build/C/man7/packet.7:277 build/C/man7/raw.7:171
673 #: build/C/man3/rcmd.3:260 build/C/man3/rexec.3:136 build/C/man7/tcp.7:1114
674 #: build/C/man7/udp.7:241 build/C/man7/udplite.7:142 build/C/man7/unix.7:397
675 #: build/C/man7/x25.7:95
676 #, no-wrap
677 msgid "VERSIONS"
678 msgstr "バージョン"
679
680 #. type: Plain text
681 #: build/C/man7/arp.7:276
682 msgid ""
683 "The I<struct arpreq> changed in Linux 2.0 to include the I<arp_dev> member "
684 "and the ioctl numbers changed at the same time.  Support for the old ioctls "
685 "was dropped in Linux 2.2."
686 msgstr ""
687 "Linux 2.0 で、 I<struct arpreq> に I<arp_dev> メンバーが含まれるように変更が"
688 "あった。また同時に ioctl 番号も変更された。古い ioctl は Linux 2.2 で用いるこ"
689 "とができなくなった。"
690
691 #. type: Plain text
692 #: build/C/man7/arp.7:282
693 msgid ""
694 "Support for proxy arp entries for networks (netmask not equal 0xffffffff)  "
695 "was dropped in Linux 2.2.  It is replaced by automatic proxy arp setup by "
696 "the kernel for all reachable hosts on other interfaces (when forwarding and "
697 "proxy arp is enabled for the interface)."
698 msgstr ""
699 "ネットワークに対する代理 arp エントリ (netmask が 0xffffffff でない)  は、 "
700 "Linux 2.2 で用いることができなくなった。 これはカーネルによって設定される、別"
701 "のインターフェースにおける 到達可能なすべてのホストに対する自動代理 arp に"
702 "よって置き換えられた (そのインターフェースでフォワーディングと代理 arp が有効"
703 "になっている場合)。"
704
705 #. type: Plain text
706 #: build/C/man7/arp.7:286
707 msgid "The I<neigh/*> interfaces did not exist before Linux 2.2."
708 msgstr "I<neigh/*> の各インタフェースは Linux 2.2 以前には存在しない。"
709
710 #. type: SH
711 #: build/C/man7/arp.7:286 build/C/man7/ddp.7:239 build/C/man3/ether_aton.3:125
712 #: build/C/man3/gethostbyname.3:422 build/C/man3/inet_ntop.3:110
713 #: build/C/man3/inet_pton.3:148 build/C/man7/ip.7:1067 build/C/man7/ipv6.7:309
714 #: build/C/man7/netdevice.7:321 build/C/man7/packet.7:358
715 #: build/C/man7/raw.7:248 build/C/man3/rcmd.3:276 build/C/man3/rexec.3:149
716 #: build/C/man7/tcp.7:1121 build/C/man7/udplite.7:124 build/C/man7/x25.7:97
717 #, no-wrap
718 msgid "BUGS"
719 msgstr "バグ"
720
721 #. type: Plain text
722 #: build/C/man7/arp.7:290
723 msgid ""
724 "Some timer settings are specified in jiffies, which is architecture- and "
725 "kernel version-dependent; see B<time>(7)."
726 msgstr ""
727 "いくつかのタイマー設定は jiffy で指定されるが、 jiffy はアーキテクチャやカー"
728 "ネルのバージョンに依存する。 B<time>(7)  を参照のこと。"
729
730 #. type: Plain text
731 #: build/C/man7/arp.7:296
732 msgid ""
733 "There is no way to signal positive feedback from user space.  This means "
734 "connection-oriented protocols implemented in user space will generate "
735 "excessive ARP traffic, because ndisc will regularly reprobe the MAC "
736 "address.  The same problem applies for some kernel protocols (e.g., NFS over "
737 "UDP)."
738 msgstr ""
739 "ユーザー空間からポジティブなフィードバックを送る方法が存在しない。 つまり接続"
740 "指向 (connection-oriented) のプロトコルをユーザー空間で 実装すると、余計な "
741 "ARP トラフィックの原因となる。 なぜなら ndisc は定期的に MAC アドレスを再探索"
742 "するからである。 同様の問題はいくつかのカーネルプロトコル (NFS over UDP な"
743 "ど) にも存在する。"
744
745 #. type: Plain text
746 #: build/C/man7/arp.7:299
747 msgid ""
748 "This man page mashes IPv4 specific and shared between IPv4 and IPv6 "
749 "functionality together."
750 msgstr ""
751 "この man ページでは IPv4 特有の機能と IPv4・IPv6 で共有される機能とがごっちゃ"
752 "になっている。"
753
754 #. type: SH
755 #: build/C/man7/arp.7:299 build/C/man3/byteorder.3:77 build/C/man3/cmsg.3:213
756 #: build/C/man7/ddp.7:244 build/C/man3/endian.3:149
757 #: build/C/man3/ether_aton.3:129 build/C/man3/getaddrinfo.3:813
758 #: build/C/man3/getaddrinfo_a.3:600 build/C/man1/getent.1:367
759 #: build/C/man3/gethostbyname.3:427 build/C/man3/getipnodebyname.3:264
760 #: build/C/man3/getnameinfo.3:272 build/C/man3/getnetent.3:133
761 #: build/C/man3/getnetent_r.3:143 build/C/man2/getpeername.2:114
762 #: build/C/man3/getprotoent.3:122 build/C/man3/getprotoent_r.3:235
763 #: build/C/man3/getservent.3:131 build/C/man3/getservent_r.3:239
764 #: build/C/man5/host.conf.5:199 build/C/man7/hostname.7:83
765 #: build/C/man5/hosts.5:115 build/C/man5/hosts.equiv.5:62
766 #: build/C/man7/icmp.7:185 build/C/man3/inet.3:297
767 #: build/C/man3/inet_ntop.3:116 build/C/man3/inet_pton.3:213
768 #: build/C/man7/ip.7:1086 build/C/man7/ipv6.7:320 build/C/man7/netdevice.7:335
769 #: build/C/man5/networks.5:73 build/C/man8/nscd.8:85
770 #: build/C/man5/nscd.conf.5:186 build/C/man5/nsswitch.conf.5:340
771 #: build/C/man7/packet.7:389 build/C/man5/protocols.5:80
772 #: build/C/man7/raw.7:265 build/C/man3/rcmd.3:283
773 #: build/C/man5/resolv.conf.5:273 build/C/man3/resolver.3:266
774 #: build/C/man3/rexec.3:158 build/C/man5/services.5:209
775 #: build/C/man3/setnetgrent.3:102 build/C/man2/shutdown.2:97
776 #: build/C/man7/tcp.7:1133 build/C/man7/udp.7:246 build/C/man7/udplite.7:144
777 #: build/C/man7/unix.7:441 build/C/man7/x25.7:113
778 #, no-wrap
779 msgid "SEE ALSO"
780 msgstr "関連項目"
781
782 #. type: Plain text
783 #: build/C/man7/arp.7:302
784 msgid "B<capabilities>(7), B<ip>(7)"
785 msgstr "B<capabilities>(7), B<ip>(7)"
786
787 #. type: Plain text
788 #: build/C/man7/arp.7:304
789 msgid "RFC\\ 826 for a description of ARP."
790 msgstr "B<RFC\\ 826>: ARP に関する説明"
791
792 #. type: Plain text
793 #: build/C/man7/arp.7:307
794 msgid ""
795 "RFC\\ 2461 for a description of IPv6 neighbor discovery and the base "
796 "algorithms used."
797 msgstr ""
798 "B<RFC\\ 2461>: IPv6 neighbor discovery に関する説明と、 利用されている基礎ア"
799 "ルゴリズム"
800
801 #. type: Plain text
802 #: build/C/man7/arp.7:309
803 msgid "Linux 2.2+ IPv4 ARP uses the IPv6 algorithms when applicable."
804 msgstr ""
805 "Linux 2.2 以降の IPv4 ARP は、 可能な場合は IPv6 のアルゴリズムを用いる。"
806
807 #. type: SH
808 #: build/C/man7/arp.7:309 build/C/man3/byteorder.3:81 build/C/man3/cmsg.3:218
809 #: build/C/man7/ddp.7:249 build/C/man3/endian.3:151
810 #: build/C/man3/ether_aton.3:131 build/C/man3/getaddrinfo.3:822
811 #: build/C/man3/getaddrinfo_a.3:607 build/C/man1/getent.1:369
812 #: build/C/man3/gethostbyname.3:441 build/C/man3/getipnodebyname.3:269
813 #: build/C/man3/getnameinfo.3:302 build/C/man3/getnetent.3:140
814 #: build/C/man3/getnetent_r.3:146 build/C/man2/getpeername.2:121
815 #: build/C/man3/getprotoent.3:127 build/C/man3/getprotoent_r.3:238
816 #: build/C/man3/getservent.3:136 build/C/man3/getservent_r.3:242
817 #: build/C/man5/host.conf.5:204 build/C/man7/hostname.7:91
818 #: build/C/man5/hosts.5:125 build/C/man5/hosts.equiv.5:66
819 #: build/C/man7/icmp.7:189 build/C/man3/inet.3:307
820 #: build/C/man3/inet_ntop.3:120 build/C/man3/inet_pton.3:217
821 #: build/C/man7/ip.7:1104 build/C/man7/ipv6.7:328 build/C/man7/netdevice.7:340
822 #: build/C/man5/networks.5:79 build/C/man8/nscd.8:91
823 #: build/C/man5/nscd.conf.5:191 build/C/man5/nsswitch.conf.5:343
824 #: build/C/man7/packet.7:404 build/C/man5/protocols.5:84
825 #: build/C/man7/raw.7:279 build/C/man3/rcmd.3:291
826 #: build/C/man5/resolv.conf.5:280 build/C/man3/resolver.3:272
827 #: build/C/man3/rexec.3:161 build/C/man5/services.5:221
828 #: build/C/man3/setnetgrent.3:106 build/C/man2/shutdown.2:101
829 #: build/C/man7/tcp.7:1159 build/C/man7/udp.7:257 build/C/man7/udplite.7:153
830 #: build/C/man7/unix.7:450 build/C/man7/x25.7:123
831 #, no-wrap
832 msgid "COLOPHON"
833 msgstr "この文書について"
834
835 #. type: Plain text
836 #: build/C/man7/arp.7:316 build/C/man3/byteorder.3:88 build/C/man3/cmsg.3:225
837 #: build/C/man7/ddp.7:256 build/C/man3/endian.3:158
838 #: build/C/man3/ether_aton.3:138 build/C/man3/getaddrinfo.3:829
839 #: build/C/man3/getaddrinfo_a.3:614 build/C/man1/getent.1:376
840 #: build/C/man3/gethostbyname.3:448 build/C/man3/getipnodebyname.3:276
841 #: build/C/man3/getnameinfo.3:309 build/C/man3/getnetent.3:147
842 #: build/C/man3/getnetent_r.3:153 build/C/man2/getpeername.2:128
843 #: build/C/man3/getprotoent.3:134 build/C/man3/getprotoent_r.3:245
844 #: build/C/man3/getservent.3:143 build/C/man3/getservent_r.3:249
845 #: build/C/man5/host.conf.5:211 build/C/man7/hostname.7:98
846 #: build/C/man5/hosts.5:132 build/C/man5/hosts.equiv.5:73
847 #: build/C/man7/icmp.7:196 build/C/man3/inet.3:314
848 #: build/C/man3/inet_ntop.3:127 build/C/man3/inet_pton.3:224
849 #: build/C/man7/ip.7:1111 build/C/man7/ipv6.7:335 build/C/man7/netdevice.7:347
850 #: build/C/man5/networks.5:86 build/C/man8/nscd.8:98
851 #: build/C/man5/nscd.conf.5:198 build/C/man5/nsswitch.conf.5:350
852 #: build/C/man7/packet.7:411 build/C/man5/protocols.5:91
853 #: build/C/man7/raw.7:286 build/C/man3/rcmd.3:298
854 #: build/C/man5/resolv.conf.5:287 build/C/man3/resolver.3:279
855 #: build/C/man3/rexec.3:168 build/C/man5/services.5:228
856 #: build/C/man3/setnetgrent.3:113 build/C/man2/shutdown.2:108
857 #: build/C/man7/tcp.7:1166 build/C/man7/udp.7:264 build/C/man7/udplite.7:160
858 #: build/C/man7/unix.7:457 build/C/man7/x25.7:130
859 msgid ""
860 "This page is part of release 3.40 of the Linux I<man-pages> project.  A "
861 "description of the project, and information about reporting bugs, can be "
862 "found at http://www.kernel.org/doc/man-pages/."
863 msgstr ""
864 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.40 の一部\n"
865 "である。プロジェクトの説明とバグ報告に関する情報は\n"
866 "http://www.kernel.org/doc/man-pages/ に書かれている。"
867
868 #. type: TH
869 #: build/C/man3/byteorder.3:30
870 #, no-wrap
871 msgid "BYTEORDER"
872 msgstr "BYTEORDER"
873
874 #. type: TH
875 #: build/C/man3/byteorder.3:30
876 #, no-wrap
877 msgid "2009-01-15"
878 msgstr "2009-01-15"
879
880 #. type: TH
881 #: build/C/man3/byteorder.3:30 build/C/man3/endian.3:26
882 #: build/C/man3/ether_aton.3:31 build/C/man3/getaddrinfo.3:41
883 #: build/C/man3/getaddrinfo_a.3:27 build/C/man3/getnameinfo.3:7
884 #: build/C/man3/getnetent.3:28 build/C/man3/getnetent_r.3:24
885 #: build/C/man3/getprotoent.3:28 build/C/man3/getprotoent_r.3:24
886 #: build/C/man3/getservent.3:32 build/C/man3/getservent_r.3:24
887 #: build/C/man3/inet.3:42 build/C/man8/nscd.8:23 build/C/man5/nscd.conf.5:20
888 #: build/C/man3/resolver.3:30 build/C/man3/setnetgrent.3:5
889 #, no-wrap
890 msgid "GNU"
891 msgstr "GNU"
892
893 #. type: Plain text
894 #: build/C/man3/byteorder.3:34
895 msgid ""
896 "htonl, htons, ntohl, ntohs - convert values between host and network byte "
897 "order"
898 msgstr ""
899 "htonl, htons, ntohl, ntohs - ホストバイトオーダーとネットワークバイトオーダー"
900 "の間で値を変換する"
901
902 #. type: SH
903 #: build/C/man3/byteorder.3:34 build/C/man3/cmsg.3:10 build/C/man7/ddp.7:10
904 #: build/C/man3/endian.3:31 build/C/man3/ether_aton.3:35
905 #: build/C/man3/getaddrinfo.3:45 build/C/man3/getaddrinfo_a.3:31
906 #: build/C/man1/getent.1:26 build/C/man3/gethostbyname.3:44
907 #: build/C/man3/getipnodebyname.3:28 build/C/man3/getnameinfo.3:10
908 #: build/C/man3/getnetent.3:32 build/C/man3/getnetent_r.3:28
909 #: build/C/man2/getpeername.2:43 build/C/man3/getprotoent.3:32
910 #: build/C/man3/getprotoent_r.3:28 build/C/man3/getservent.3:36
911 #: build/C/man3/getservent_r.3:28 build/C/man5/hosts.5:30
912 #: build/C/man3/inet.3:46 build/C/man3/inet_ntop.3:27
913 #: build/C/man3/inet_pton.3:28 build/C/man7/ip.7:15 build/C/man7/ipv6.7:10
914 #: build/C/man7/netdevice.7:18 build/C/man7/packet.7:10 build/C/man7/raw.7:12
915 #: build/C/man3/rcmd.3:46 build/C/man5/resolv.conf.5:25
916 #: build/C/man3/resolver.3:34 build/C/man3/rexec.3:42
917 #: build/C/man3/setnetgrent.3:9 build/C/man2/shutdown.2:41
918 #: build/C/man7/tcp.7:19 build/C/man7/udp.7:11 build/C/man7/udplite.7:28
919 #: build/C/man7/unix.7:19 build/C/man7/x25.7:10
920 #, no-wrap
921 msgid "SYNOPSIS"
922 msgstr "書式"
923
924 #. type: Plain text
925 #: build/C/man3/byteorder.3:37 build/C/man3/inet_ntop.3:30
926 #: build/C/man3/inet_pton.3:31
927 #, no-wrap
928 msgid "B<#include E<lt>arpa/inet.hE<gt>>\n"
929 msgstr "B<#include E<lt>arpa/inet.hE<gt>>\n"
930
931 #. type: Plain text
932 #: build/C/man3/byteorder.3:39
933 #, no-wrap
934 msgid "B<uint32_t htonl(uint32_t >I<hostlong>B<);>\n"
935 msgstr "B<uint32_t htonl(uint32_t >I<hostlong>B<);>\n"
936
937 #. type: Plain text
938 #: build/C/man3/byteorder.3:41
939 #, no-wrap
940 msgid "B<uint16_t htons(uint16_t >I<hostshort>B<);>\n"
941 msgstr "B<uint16_t htons(uint16_t >I<hostshort>B<);>\n"
942
943 #. type: Plain text
944 #: build/C/man3/byteorder.3:43
945 #, no-wrap
946 msgid "B<uint32_t ntohl(uint32_t >I<netlong>B<);>\n"
947 msgstr "B<uint32_t ntohl(uint32_t >I<netlong>B<);>\n"
948
949 #. type: Plain text
950 #: build/C/man3/byteorder.3:45
951 #, no-wrap
952 msgid "B<uint16_t ntohs(uint16_t >I<netshort>B<);>\n"
953 msgstr "B<uint16_t ntohs(uint16_t >I<netshort>B<);>\n"
954
955 #. type: Plain text
956 #: build/C/man3/byteorder.3:51
957 msgid ""
958 "The B<htonl>()  function converts the unsigned integer I<hostlong> from host "
959 "byte order to network byte order."
960 msgstr ""
961 "B<htonl>()  関数は unsigned integer I<hostlong> を ホストバイトオーダーから"
962 "ネットワークバイトオーダーに変換する。"
963
964 #. type: Plain text
965 #: build/C/man3/byteorder.3:56
966 msgid ""
967 "The B<htons>()  function converts the unsigned short integer I<hostshort> "
968 "from host byte order to network byte order."
969 msgstr ""
970 "B<htons>()  関数は unsigned short integer I<hostshort> を ホストバイトオー"
971 "ダーからネットワークバイトオーダーに変換する。"
972
973 #. type: Plain text
974 #: build/C/man3/byteorder.3:61
975 msgid ""
976 "The B<ntohl>()  function converts the unsigned integer I<netlong> from "
977 "network byte order to host byte order."
978 msgstr ""
979 "B<ntohl>()  関数は unsigned integer I<netlong> を ネットワークバイトオーダー"
980 "からホストバイトオーダーに変換する。"
981
982 #. type: Plain text
983 #: build/C/man3/byteorder.3:66
984 msgid ""
985 "The B<ntohs>()  function converts the unsigned short integer I<netshort> "
986 "from network byte order to host byte order."
987 msgstr ""
988 "B<ntohs>()  関数は unsigned short integer I<netshort> を ネットワークバイト"
989 "オーダーからホストバイトオーダーに変換する。"
990
991 #. type: Plain text
992 #: build/C/man3/byteorder.3:70
993 msgid ""
994 "On the i386 the host byte order is Least Significant Byte first, whereas the "
995 "network byte order, as used on the Internet, is Most Significant Byte first."
996 msgstr ""
997 "i80x86 のホストバイトオーダーでは最下位バイトが若いアドレスに配置されるが、 "
998 "インターネットで用いられるネットワークバイトオーダーでは最上位バイト が先に配"
999 "置される。"
1000
1001 #. type: SH
1002 #: build/C/man3/byteorder.3:70 build/C/man3/cmsg.3:137
1003 #: build/C/man3/endian.3:74 build/C/man3/ether_aton.3:123
1004 #: build/C/man3/getaddrinfo.3:580 build/C/man3/getaddrinfo_a.3:303
1005 #: build/C/man3/gethostbyname.3:301 build/C/man3/getipnodebyname.3:256
1006 #: build/C/man3/getnameinfo.3:203 build/C/man3/getnetent.3:124
1007 #: build/C/man3/getnetent_r.3:139 build/C/man2/getpeername.2:99
1008 #: build/C/man3/getprotoent.3:120 build/C/man3/getprotoent_r.3:129
1009 #: build/C/man3/getservent.3:129 build/C/man3/getservent_r.3:128
1010 #: build/C/man3/inet.3:210 build/C/man3/inet_ntop.3:98
1011 #: build/C/man3/inet_pton.3:127 build/C/man3/rcmd.3:268
1012 #: build/C/man3/resolver.3:264 build/C/man3/rexec.3:140
1013 #: build/C/man3/setnetgrent.3:87 build/C/man2/shutdown.2:84
1014 #, no-wrap
1015 msgid "CONFORMING TO"
1016 msgstr "準拠"
1017
1018 #. type: Plain text
1019 #: build/C/man3/byteorder.3:72 build/C/man3/inet_pton.3:129
1020 msgid "POSIX.1-2001."
1021 msgstr "POSIX.1-2001."
1022
1023 #. type: Plain text
1024 #: build/C/man3/byteorder.3:77
1025 msgid ""
1026 "Some systems require the inclusion of I<E<lt>netinet/in.hE<gt>> instead of "
1027 "I<E<lt>arpa/inet.hE<gt>>."
1028 msgstr ""
1029 "いくつかのシステムでは、 I<E<lt>arpa/inet.hE<gt>> の代わりに I<E<lt>netinet/"
1030 "in.hE<gt>> をインクルードする必要がある。"
1031
1032 #. type: Plain text
1033 #: build/C/man3/byteorder.3:81
1034 msgid "B<endian>(3), B<gethostbyname>(3), B<getservent>(3)"
1035 msgstr "B<endian>(3), B<gethostbyname>(3), B<getservent>(3)"
1036
1037 #. type: TH
1038 #: build/C/man3/cmsg.3:7
1039 #, no-wrap
1040 msgid "CMSG"
1041 msgstr "CMSG"
1042
1043 #. type: TH
1044 #: build/C/man3/cmsg.3:7 build/C/man7/ddp.7:7 build/C/man7/raw.7:9
1045 #, no-wrap
1046 msgid "2008-11-20"
1047 msgstr "2008-11-20"
1048
1049 #. type: Plain text
1050 #: build/C/man3/cmsg.3:10
1051 msgid ""
1052 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - Access ancillary data"
1053 msgstr ""
1054 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - 補助データにアクセスす"
1055 "る。"
1056
1057 #. type: Plain text
1058 #: build/C/man3/cmsg.3:12 build/C/man7/ddp.7:12 build/C/man2/getpeername.2:45
1059 #: build/C/man7/ip.7:17 build/C/man7/ipv6.7:12 build/C/man7/raw.7:14
1060 #: build/C/man2/shutdown.2:43 build/C/man7/tcp.7:21 build/C/man7/udp.7:13
1061 #: build/C/man7/udplite.7:30 build/C/man7/unix.7:21 build/C/man7/x25.7:12
1062 msgid "B<#include E<lt>sys/socket.hE<gt>>"
1063 msgstr "B<#include E<lt>sys/socket.hE<gt>>"
1064
1065 #. type: Plain text
1066 #: build/C/man3/cmsg.3:14
1067 msgid "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>"
1068 msgstr "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>"
1069
1070 #. type: Plain text
1071 #: build/C/man3/cmsg.3:16
1072 msgid ""
1073 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<, struct cmsghdr "
1074 "*>I<cmsg>B<);>"
1075 msgstr ""
1076 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<, struct cmsghdr "
1077 "*>I<cmsg>B<);>"
1078
1079 #. type: Plain text
1080 #: build/C/man3/cmsg.3:18
1081 msgid "B<size_t CMSG_ALIGN(size_t >I<length>B<);>"
1082 msgstr "B<size_t CMSG_ALIGN(size_t >I<length>B<);>"
1083
1084 #. type: Plain text
1085 #: build/C/man3/cmsg.3:20
1086 msgid "B<size_t CMSG_SPACE(size_t >I<length>B<);>"
1087 msgstr "B<size_t CMSG_SPACE(size_t >I<length>B<);>"
1088
1089 #. type: Plain text
1090 #: build/C/man3/cmsg.3:22
1091 msgid "B<size_t CMSG_LEN(size_t >I<length>B<);>"
1092 msgstr "B<size_t CMSG_LEN(size_t >I<length>B<);>"
1093
1094 #. type: Plain text
1095 #: build/C/man3/cmsg.3:24
1096 msgid "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>"
1097 msgstr "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>"
1098
1099 #. type: Plain text
1100 #: build/C/man3/cmsg.3:32
1101 #, no-wrap
1102 msgid ""
1103 "struct cmsghdr {\n"
1104 "    socklen_t cmsg_len;    /* data byte count, including header */\n"
1105 "    int       cmsg_level;  /* originating protocol */\n"
1106 "    int       cmsg_type;   /* protocol-specific type */\n"
1107 "    /* followed by unsigned char cmsg_data[]; */\n"
1108 "};\n"
1109 msgstr ""
1110 "struct cmsghdr {\n"
1111 "    socklen_t cmsg_len;    /* data byte count, including header */\n"
1112 "    int       cmsg_level;  /* originating protocol */\n"
1113 "    int       cmsg_type;   /* protocol-specific type */\n"
1114 "    /* followed by unsigned char cmsg_data[]; */\n"
1115 "};\n"
1116
1117 #. type: Plain text
1118 #: build/C/man3/cmsg.3:47
1119 msgid ""
1120 "These macros are used to create and access control messages (also called "
1121 "ancillary data) that are not a part of the socket payload.  This control "
1122 "information may include the interface the packet was received on, various "
1123 "rarely used header fields, an extended error description, a set of file "
1124 "descriptors or UNIX credentials.  For instance, control messages can be used "
1125 "to send additional header fields such as IP options.  Ancillary data is sent "
1126 "by calling B<sendmsg>(2)  and received by calling B<recvmsg>(2).  See their "
1127 "manual pages for more information."
1128 msgstr ""
1129 "これらのマクロは制御メッセージ (補助データ (ancillary data) とも呼ばれる) を"
1130 "作り、 それにアクセスするために使われる。 制御メッセージはソケットにのるデー"
1131 "タではない。 この制御情報は、到着したパケットへのインターフェイス、様々なあま"
1132 "り 使われないヘッダーフィールド、エラー記述の拡張、ファイルデスクリ プタの集"
1133 "合や、UNIXにおける信頼情報 (credential) を含んでいる。 制御メッセージは、例え"
1134 "ば IP オプションのような追加ヘッダーフィールドを 送るのに使う事ができる。 補"
1135 "助データは、 B<sendmsg>(2)  を呼び出して送り、 B<recvmsg>(2)  を呼び出して受"
1136 "け取る。 詳細はそれらのマニュアルページを参照。"
1137
1138 #. type: Plain text
1139 #: build/C/man3/cmsg.3:58
1140 msgid ""
1141 "Ancillary data is a sequence of I<struct cmsghdr> structures with appended "
1142 "data.  This sequence should only be accessed using the macros described in "
1143 "this manual page and never directly.  See the specific protocol man pages "
1144 "for the available control message types.  The maximum ancillary buffer size "
1145 "allowed per socket can be set using I</proc/sys/net/core/optmem_max>; see "
1146 "B<socket>(7)."
1147 msgstr ""
1148 "補助データは I<struct cmsghdr> 構造体のシーケンスに追加データが付加されたもの"
1149 "である。 このシーケンスにはこのマニュアルページに書かれている マクロを使って"
1150 "アクセスすべきで、直接アクセスすべきではない。 使用可能な制御メッセージのタイ"
1151 "プについては、 それぞれのプロトコルのマニュアルページを参照のこと。 接続毎の"
1152 "最大補助用バッファサイズは I</proc/sys/net/core/optmem_max> を使って設定でき"
1153 "る。 B<socket>(7)  を参照。"
1154
1155 #. type: Plain text
1156 #: build/C/man3/cmsg.3:65
1157 msgid ""
1158 "B<CMSG_FIRSTHDR>()  returns a pointer to the first I<cmsghdr> in the "
1159 "ancillary data buffer associated with the passed I<msghdr>."
1160 msgstr ""
1161 "B<CMSG_FIRSTHDR>()  は、渡した I<msghdr> に関連した補助データバッファ中の、最"
1162 "初の I<cmsghdr> へのポインタを返す。"
1163
1164 #. type: Plain text
1165 #: build/C/man3/cmsg.3:72
1166 msgid ""
1167 "B<CMSG_NXTHDR>()  returns the next valid I<cmsghdr> after the passed "
1168 "I<cmsghdr>.  It returns NULL when there isn't enough space left in the "
1169 "buffer."
1170 msgstr ""
1171 "B<CMSG_NXTHDR>()  は、渡した I<cmsghdr> の次にくる (有効な)  I<cmsghdr> を返"
1172 "す。 バッファに十分な空きが無い場合、NULL を返す。"
1173
1174 #. type: Plain text
1175 #: build/C/man3/cmsg.3:77
1176 msgid ""
1177 "B<CMSG_ALIGN>(), given a length, returns it including the required "
1178 "alignment.  This is a constant expression."
1179 msgstr ""
1180 "B<CMSG_ALIGN>()  に長さを与えると、必要なアラインメントを加味した長さを返して"
1181 "くる。 これは定数式である。"
1182
1183 #. type: Plain text
1184 #: build/C/man3/cmsg.3:82
1185 msgid ""
1186 "B<CMSG_SPACE>()  returns the number of bytes an ancillary element with "
1187 "payload of the passed data length occupies.  This is a constant expression."
1188 msgstr ""
1189 "B<CMSG_SPACE>()  は、与えたデータ長が占めるのに必要な補助要素 (ancillary "
1190 "element) の バイト数を返す。これは定数式である。"
1191
1192 #. type: Plain text
1193 #: build/C/man3/cmsg.3:86
1194 msgid "B<CMSG_DATA>()  returns a pointer to the data portion of a I<cmsghdr>."
1195 msgstr "B<CMSG_DATA>()  は、 I<cmsghdr> のデータ部分へのポインタを返す。"
1196
1197 #. type: Plain text
1198 #: build/C/man3/cmsg.3:97
1199 msgid ""
1200 "B<CMSG_LEN>()  returns the value to store in the I<cmsg_len> member of the "
1201 "I<cmsghdr> structure, taking into account any necessary alignment.  It takes "
1202 "the data length as an argument.  This is a constant expression."
1203 msgstr ""
1204 "B<CMSG_LEN>()  は、 I<cmsghdr> 構造体の I<cmsg_len> メンバにデータを格納する"
1205 "際に必要な値を返す。アラインメントも考慮に入れ られる。 引数としてデータ長を"
1206 "とる。これは定数式である。"
1207
1208 #. type: Plain text
1209 #: build/C/man3/cmsg.3:130
1210 msgid ""
1211 "To create ancillary data, first initialize the I<msg_controllen> member of "
1212 "the I<msghdr> with the length of the control message buffer.  Use "
1213 "B<CMSG_FIRSTHDR>()  on the I<msghdr> to get the first control message and "
1214 "B<CMSG_NXTHDR>()  to get all subsequent ones.  In each control message, "
1215 "initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header "
1216 "fields, and the data portion using B<CMSG_DATA>().  Finally, the "
1217 "I<msg_controllen> field of the I<msghdr> should be set to the sum of the "
1218 "B<CMSG_SPACE>()  of the length of all control messages in the buffer.  For "
1219 "more information on the I<msghdr>, see B<recvmsg>(2)."
1220 msgstr ""
1221 "補助データを作るためには最初に I<msghdr> のメンバー I<msg_controllen> を、制"
1222 "御メッセージバッファの長さで初期化する。 B<CMSG_FIRSTHDR>()  を I<msghdr> に"
1223 "用いると最初の制御メッセージが得られ、 B<CMSG_NXTHDR>()  を使うと次の制御メッ"
1224 "セージが得られる。 それぞれの制御メッセージでは、 I<cmsg_len> を初期化する "
1225 "(B<CMSG_LEN>()  を使う)。 その他の I<cmsghdr> ヘッダーフィールド、そしてデー"
1226 "タ部分に対しても B<CMSG_DATA>()  を使って初期化をする。 最後に I<msghdr> の "
1227 "I<msg_controllen> フィールドに、バッファ中の制御メッセージの長さの "
1228 "B<CMSG_SPACE>()  の合計がセットされる。 I<msghdr> についての詳細は B<recvmsg>"
1229 "(2)  を参照。"
1230
1231 #. type: Plain text
1232 #: build/C/man3/cmsg.3:137
1233 msgid ""
1234 "When the control message buffer is too short to store all messages, the "
1235 "B<MSG_CTRUNC> flag is set in the I<msg_flags> member of the I<msghdr>."
1236 msgstr ""
1237 "制御メッセージバッファが全てのメッセージを納めるのには短すぎる場合、 "
1238 "I<msghdr> の I<msg_flags> メンバーに B<MSG_CTRUNC> フラグがセットされる。"
1239
1240 #. type: Plain text
1241 #: build/C/man3/cmsg.3:142
1242 msgid ""
1243 "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the "
1244 "IPv6 advanced API described in RFC\\ 2292 and the SUSv2.  B<CMSG_ALIGN>()  "
1245 "is a Linux extension."
1246 msgstr ""
1247 "この補助データモデルは、POSIX.1g draft, 4.4BSD-Lite, RFC\\ 2292 に 記述されて"
1248 "いる IPv6 advanced API, そして SUSv2 に準拠している。 B<CMSG_ALIGN>()  は "
1249 "Linux の拡張である。"
1250
1251 #. type: SH
1252 #: build/C/man3/cmsg.3:142 build/C/man7/ddp.7:221 build/C/man3/endian.3:89
1253 #: build/C/man3/getaddrinfo.3:585 build/C/man3/getaddrinfo_a.3:306
1254 #: build/C/man3/gethostbyname.3:325 build/C/man3/getipnodebyname.3:259
1255 #: build/C/man3/getnameinfo.3:205 build/C/man3/getnetent.3:126
1256 #: build/C/man2/getpeername.2:103 build/C/man5/host.conf.5:190
1257 #: build/C/man5/hosts.5:88 build/C/man5/hosts.equiv.5:49
1258 #: build/C/man7/icmp.7:163 build/C/man3/inet.3:218
1259 #: build/C/man3/inet_pton.3:129 build/C/man7/ip.7:1006 build/C/man7/ipv6.7:299
1260 #: build/C/man7/netdevice.7:303 build/C/man8/nscd.8:60
1261 #: build/C/man5/nsswitch.conf.5:321 build/C/man7/packet.7:295
1262 #: build/C/man7/raw.7:183 build/C/man3/setnetgrent.3:98
1263 #: build/C/man2/shutdown.2:88 build/C/man7/unix.7:403
1264 #, no-wrap
1265 msgid "NOTES"
1266 msgstr "注意"
1267
1268 #. type: Plain text
1269 #: build/C/man3/cmsg.3:147
1270 msgid ""
1271 "For portability, ancillary data should be accessed only using the macros "
1272 "described here.  B<CMSG_ALIGN>()  is a Linux extension and should be not "
1273 "used in portable programs."
1274 msgstr ""
1275 "移植性のために、補助データへのアクセスには、 ここで述べられているマクロを使う"
1276 "だけにすべきである。 B<CMSG_ALIGN>()  は Linux での拡張であり、移植性を考えた"
1277 "プログラムでは使うべきではない。"
1278
1279 #. type: Plain text
1280 #: build/C/man3/cmsg.3:157
1281 msgid ""
1282 "In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>()  are constant "
1283 "expressions (assuming their argument is constant); this could be used to "
1284 "declare the size of global variables.  This may be not portable, however."
1285 msgstr ""
1286 "Linux では B<CMSG_LEN>(), B<CMSG_DATA>(), B<CMSG_ALIGN>()  は定数式である (そ"
1287 "れらの引数が定数とみなされる)。 このことは、大域変数のサイズを宣言するのに使"
1288 "える。 しかし移植性はなくなるだろう。"
1289
1290 #. type: SH
1291 #: build/C/man3/cmsg.3:157 build/C/man3/endian.3:105
1292 #: build/C/man3/getaddrinfo.3:608 build/C/man3/getaddrinfo_a.3:312
1293 #: build/C/man3/getnameinfo.3:233 build/C/man3/getprotoent_r.3:133
1294 #: build/C/man3/getservent_r.3:132 build/C/man5/hosts.5:107
1295 #: build/C/man3/inet.3:254 build/C/man3/inet_ntop.3:113
1296 #: build/C/man3/inet_pton.3:154 build/C/man7/unix.7:433
1297 #, no-wrap
1298 msgid "EXAMPLE"
1299 msgstr "例"
1300
1301 #. type: Plain text
1302 #: build/C/man3/cmsg.3:161
1303 msgid ""
1304 "This code looks for the B<IP_TTL> option in a received ancillary buffer:"
1305 msgstr ""
1306 "次のコードは、受け取った補助バッファから B<IP_TTL> オプションを探すものであ"
1307 "る。"
1308
1309 #. type: Plain text
1310 #: build/C/man3/cmsg.3:168
1311 #, no-wrap
1312 msgid ""
1313 "struct msghdr msgh;\n"
1314 "struct cmsghdr *cmsg;\n"
1315 "int *ttlptr;\n"
1316 "int received_ttl;\n"
1317 msgstr ""
1318 "struct msghdr msgh;\n"
1319 "struct cmsghdr *cmsg;\n"
1320 "int *ttlptr;\n"
1321 "int received_ttl;\n"
1322
1323 #. type: Plain text
1324 #: build/C/man3/cmsg.3:185
1325 #, no-wrap
1326 msgid ""
1327 "/* Receive auxiliary data in msgh */\n"
1328 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
1329 "        cmsg = CMSG_NXTHDR(&msgh,cmsg)) {\n"
1330 "    if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
1331 "            && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
1332 "        ttlptr = (int *) CMSG_DATA(cmsg);\n"
1333 "        received_ttl = *ttlptr;\n"
1334 "        break;\n"
1335 "    }\n"
1336 "}\n"
1337 "if (cmsg == NULL) {\n"
1338 "    /*\n"
1339 "     * Error: IP_TTL not enabled or small buffer\n"
1340 "     * or I/O error.\n"
1341 "     */\n"
1342 "}\n"
1343 msgstr ""
1344 "/* Receive auxiliary data in msgh */\n"
1345 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
1346 "        cmsg = CMSG_NXTHDR(&msgh,cmsg)) {\n"
1347 "    if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
1348 "            && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
1349 "        ttlptr = (int *) CMSG_DATA(cmsg);\n"
1350 "        received_ttl = *ttlptr;\n"
1351 "        break;\n"
1352 "    }\n"
1353 "}\n"
1354 "if (cmsg == NULL) {\n"
1355 "    /*\n"
1356 "     * Error: IP_TTL not enabled or small buffer\n"
1357 "     * or I/O error.\n"
1358 "     */\n"
1359 "}\n"
1360
1361 #. type: Plain text
1362 #: build/C/man3/cmsg.3:191
1363 msgid ""
1364 "The code below passes an array of file descriptors over a UNIX domain socket "
1365 "using B<SCM_RIGHTS>:"
1366 msgstr ""
1367 "以下のコードは、 B<SCM_RIGHTS> を使い、ファイルデスクリプタの配列を UNIX ドメ"
1368 "インソケットを通して送るものである。"
1369
1370 #. type: Plain text
1371 #: build/C/man3/cmsg.3:199
1372 #, no-wrap
1373 msgid ""
1374 "struct msghdr msg = {0};\n"
1375 "struct cmsghdr *cmsg;\n"
1376 "int myfds[NUM_FD]; /* Contains the file descriptors to pass. */\n"
1377 "char buf[CMSG_SPACE(sizeof myfds)];  /* ancillary data buffer */\n"
1378 "int *fdptr;\n"
1379 msgstr ""
1380 "struct msghdr msg = {0};\n"
1381 "struct cmsghdr *cmsg;\n"
1382 "int myfds[NUM_FD]; /* Contains the file descriptors to pass. */\n"
1383 "char buf[CMSG_SPACE(sizeof myfds)];  /* ancillary data buffer */\n"
1384 "int *fdptr;\n"
1385
1386 #. type: Plain text
1387 #: build/C/man3/cmsg.3:211
1388 #, no-wrap
1389 msgid ""
1390 "msg.msg_control = buf;\n"
1391 "msg.msg_controllen = sizeof buf;\n"
1392 "cmsg = CMSG_FIRSTHDR(&msg);\n"
1393 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
1394 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
1395 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(int) * NUM_FD);\n"
1396 "/* Initialize the payload: */\n"
1397 "fdptr = (int *) CMSG_DATA(cmsg);\n"
1398 "memcpy(fdptr, myfds, NUM_FD * sizeof(int));\n"
1399 "/* Sum of the length of all control messages in the buffer: */\n"
1400 "msg.msg_controllen = cmsg-E<gt>cmsg_len;\n"
1401 msgstr ""
1402 "msg.msg_control = buf;\n"
1403 "msg.msg_controllen = sizeof buf;\n"
1404 "cmsg = CMSG_FIRSTHDR(&msg);\n"
1405 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
1406 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
1407 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(int) * NUM_FD);\n"
1408 "/* Initialize the payload: */\n"
1409 "fdptr = (int *) CMSG_DATA(cmsg);\n"
1410 "memcpy(fdptr, myfds, NUM_FD * sizeof(int));\n"
1411 "/* Sum of the length of all control messages in the buffer: */\n"
1412 "msg.msg_controllen = cmsg-E<gt>cmsg_len;\n"
1413
1414 #. type: Plain text
1415 #: build/C/man3/cmsg.3:216
1416 msgid "B<recvmsg>(2), B<sendmsg>(2)"
1417 msgstr "B<recvmsg>(2), B<sendmsg>(2)"
1418
1419 #. type: Plain text
1420 #: build/C/man3/cmsg.3:218
1421 msgid "RFC\\ 2292"
1422 msgstr "RFC\\ 2292"
1423
1424 #. type: TH
1425 #: build/C/man7/ddp.7:7
1426 #, no-wrap
1427 msgid "DDP"
1428 msgstr "DDP"
1429
1430 #. type: Plain text
1431 #: build/C/man7/ddp.7:10
1432 msgid "ddp - Linux AppleTalk protocol implementation"
1433 msgstr "ddp - Linux での AppleTalk プロトコルの実装"
1434
1435 #. type: Plain text
1436 #: build/C/man7/ddp.7:14
1437 msgid "B<#include E<lt>netatalk/at.hE<gt>>"
1438 msgstr "B<#include E<lt>netatalk/at.hE<gt>>"
1439
1440 #. type: Plain text
1441 #: build/C/man7/ddp.7:16
1442 msgid "I<ddp_socket>B< = socket(AF_APPLETALK, SOCK_DGRAM, 0);>"
1443 msgstr "I<ddp_socket>B< = socket(AF_APPLETALK, SOCK_DGRAM, 0);>"
1444
1445 #. type: Plain text
1446 #: build/C/man7/ddp.7:18
1447 msgid "I<raw_socket>B< = socket(AF_APPLETALK, SOCK_RAW, >I<protocol>B<);>"
1448 msgstr "I<raw_socket>B< = socket(AF_APPLETALK, SOCK_RAW, >I<protocol>B<);>"
1449
1450 #. type: Plain text
1451 #: build/C/man7/ddp.7:29
1452 msgid ""
1453 "Linux implements the Appletalk protocols described in I<Inside Appletalk>.  "
1454 "Only the DDP layer and AARP are present in the kernel.  They are designed to "
1455 "be used via the B<netatalk> protocol libraries.  This page documents the "
1456 "interface for those who wish or need to use the DDP layer directly."
1457 msgstr ""
1458 "Linux は I<Inside Appletalk> に記述されている Appletalk プロトコルを実装して"
1459 "いる。 カーネルにあるのは DDP 層と AARP だけである。これらは B<netatalk> プロ"
1460 "トコルライブラリを通して利用されるように設計されている。 このページは DDP 層"
1461 "を直接利用したいユーザーのために、 インターフェースを記述したものである。"
1462
1463 #. type: Plain text
1464 #: build/C/man7/ddp.7:34
1465 msgid ""
1466 "The communication between Appletalk and the user program works using a BSD-"
1467 "compatible socket interface.  For more information on sockets, see B<socket>"
1468 "(7)."
1469 msgstr ""
1470 "Appletalk とユーザープログラムとの通信には、 BSD 互換のソケットインターフェー"
1471 "スを利用する。 ソケットに関するより詳しい情報は B<socket>(7)  を見よ。"
1472
1473 #. type: Plain text
1474 #: build/C/man7/ddp.7:55
1475 msgid ""
1476 "An AppleTalk socket is created by calling the B<socket>(2)  function with a "
1477 "B<AF_APPLETALK> socket family argument.  Valid socket types are "
1478 "B<SOCK_DGRAM> to open a B<ddp> socket or B<SOCK_RAW> to open a B<raw> "
1479 "socket.  I<protocol> is the Appletalk protocol to be received or sent.  For "
1480 "B<SOCK_RAW> you must specify B<ATPROTO_DDP>."
1481 msgstr ""
1482 "Appletalk ソケットは、 ソケットファミリーの引数に B<AF_APPLETALK> を指定して "
1483 "B<socket>(2)  関数を呼び出すことによって生成される。指定できるソケットタイプ"
1484 "は、 B<ddp> ソケットをオープンする場合には B<SOCK_DGRAM>、 B<raw> ソケットを"
1485 "オープンする場合には B<SOCK_RAW> である。 I<protocol> は送受信される "
1486 "Appletalk プロトコルである。 ソケットタイプに B<SOCK_RAW> を指定した場合は、"
1487 "プロトコルに B<ATPROTO_DDP> を指定しなければならない。"
1488
1489 #. type: Plain text
1490 #: build/C/man7/ddp.7:60
1491 msgid ""
1492 "Raw sockets may be only opened by a process with effective user ID 0 or when "
1493 "the process has the B<CAP_NET_RAW> capability."
1494 msgstr ""
1495 "raw ソケットは実効ユーザー ID が 0 のプロセスか、 B<CAT_NEW_RAW> 権限を持った"
1496 "プロセスでないとオープンできない。"
1497
1498 #. type: SS
1499 #: build/C/man7/ddp.7:60 build/C/man7/ip.7:96 build/C/man7/ipv6.7:63
1500 #: build/C/man7/raw.7:89 build/C/man7/udp.7:92 build/C/man7/udplite.7:56
1501 #: build/C/man7/unix.7:53
1502 #, no-wrap
1503 msgid "Address Format"
1504 msgstr "アドレスのフォーマット"
1505
1506 #. type: Plain text
1507 #: build/C/man7/ddp.7:63
1508 msgid ""
1509 "An Appletalk socket address is defined as a combination of a network number, "
1510 "a node number, and a port number."
1511 msgstr ""
1512 "Appletalk ソケットアドレスはネットワーク番号・ノード番号・ポート番号の 組み合"
1513 "わせで定義される。"
1514
1515 #. type: Plain text
1516 #: build/C/man7/ddp.7:70
1517 #, no-wrap
1518 msgid ""
1519 "struct at_addr {\n"
1520 "    unsigned short s_net;\n"
1521 "    unsigned char  s_node;\n"
1522 "};\n"
1523 msgstr ""
1524 "struct at_addr {\n"
1525 "    unsigned short s_net;\n"
1526 "    unsigned char  s_node;\n"
1527 "};\n"
1528
1529 #. type: Plain text
1530 #: build/C/man7/ddp.7:76
1531 #, no-wrap
1532 msgid ""
1533 "struct sockaddr_atalk {\n"
1534 "    sa_family_t    sat_family;    /* address family */\n"
1535 "    unsigned char  sat_port;      /* port */\n"
1536 "    struct at_addr sat_addr;      /* net/node */\n"
1537 "};\n"
1538 msgstr ""
1539 "struct sockaddr_atalk {\n"
1540 "    sa_family_t    sat_family;    /* address family */\n"
1541 "    unsigned char  sat_port;      /* port */\n"
1542 "    struct at_addr sat_addr;      /* net/node */\n"
1543 "};\n"
1544
1545 #.  FIXME this doesn't make sense [johnl]
1546 #. type: Plain text
1547 #: build/C/man7/ddp.7:115
1548 msgid ""
1549 "I<sat_family> is always set to B<AF_APPLETALK>.  I<sat_port> contains the "
1550 "port.  The port numbers below 129 are known as I<reserved ports>.  Only "
1551 "processes with the effective user ID 0 or the B<CAP_NET_BIND_SERVICE> "
1552 "capability may B<bind>(2)  to these sockets.  I<sat_addr> is the host "
1553 "address.  The I<net> member of I<struct at_addr> contains the host network "
1554 "in network byte order.  The value of B<AT_ANYNET> is a wildcard and also "
1555 "implies \\(lqthis network.\\(rq The I<node> member of I<struct at_addr> "
1556 "contains the host node number.  The value of B<AT_ANYNODE> is a wildcard and "
1557 "also implies \\(lqthis node.\\(rq The value of B<ATADDR_BCAST> is a link "
1558 "local broadcast address."
1559 msgstr ""
1560 "I<sat_family> は常に B<AF_APPLETALK> に設定する。 I<sat_port> はポートを与え"
1561 "る。ポート番号が 129 以下のポートは 「予約ポート (reserved port)」 と呼ばれ"
1562 "る。実効ユーザー ID が 0 のプロセスか、 B<CAP_NET_BIND_SERVICE> 権限を持つプ"
1563 "ロセスだけが、このようなソケットを B<bind>(2)  できる。 I<sat_addr> はホスト"
1564 "アドレスである。 I<struct at_addr> のメンバー I<s_net> にはホストのネットワー"
1565 "クをネットワークバイトオーダーで与える。値 B<AT_ANYNET> はワイルドカードで、"
1566 "「このネットワーク」も暗黙のうちに含まれる。 I<struct at_addr> のメンバー "
1567 "I<s_node> にはホストのノード番号を与える。値 B<AT_ANYNODE> はワイルドカード"
1568 "で、「このノード」も暗黙のうちに含まれる。値 B<ATADDR_BCAST> はローカルなブ"
1569 "ロードキャストアドレスである。"
1570
1571 #. type: SS
1572 #: build/C/man7/ddp.7:115 build/C/man7/ip.7:197 build/C/man7/ipv6.7:113
1573 #: build/C/man7/packet.7:174 build/C/man7/raw.7:105 build/C/man7/tcp.7:809
1574 #: build/C/man7/udp.7:172 build/C/man7/udplite.7:65 build/C/man7/unix.7:133
1575 #: build/C/man7/x25.7:67
1576 #, no-wrap
1577 msgid "Socket Options"
1578 msgstr "ソケットオプション"
1579
1580 #. type: Plain text
1581 #: build/C/man7/ddp.7:117
1582 msgid "No protocol-specific socket options are supported."
1583 msgstr "プロトコル固有のソケットオプションはない。"
1584
1585 #. type: Plain text
1586 #: build/C/man7/ddp.7:123
1587 msgid ""
1588 "IP supports a set of I</proc> interfaces to configure some global AppleTalk "
1589 "parameters.  The parameters can be accessed by reading or writing files in "
1590 "the directory I</proc/sys/net/atalk/>."
1591 msgstr ""
1592 "Appletalk のグローバルパラメータのいくつかは、 I</proc> インタフェースを通し"
1593 "て設定することができる。 これらのパラメータには、 I</proc/sys/net/atalk/> "
1594 "ディレクトリ内のファイルの読み書きでアクセスできる。"
1595
1596 #. type: TP
1597 #: build/C/man7/ddp.7:123
1598 #, no-wrap
1599 msgid "I<aarp-expiry-time>"
1600 msgstr "I<aarp-expiry-time>"
1601
1602 #. type: Plain text
1603 #: build/C/man7/ddp.7:126
1604 msgid "The time interval (in seconds) before an AARP cache entry expires."
1605 msgstr "AARP キャッシュエントリを破棄するまでのタイムインターバル (秒単位)。"
1606
1607 #. type: TP
1608 #: build/C/man7/ddp.7:126
1609 #, no-wrap
1610 msgid "I<aarp-resolve-time>"
1611 msgstr "I<aarp-resolve-time>"
1612
1613 #. type: Plain text
1614 #: build/C/man7/ddp.7:129
1615 msgid "The time interval (in seconds) before an AARP cache entry is resolved."
1616 msgstr "AARP キャッシュエントリが解決されるまでのタイムインターバル (秒単位)。"
1617
1618 #. type: TP
1619 #: build/C/man7/ddp.7:129
1620 #, no-wrap
1621 msgid "I<aarp-retransmit-limit>"
1622 msgstr "I<aarp-retransmit-limit>"
1623
1624 #. type: Plain text
1625 #: build/C/man7/ddp.7:133
1626 msgid ""
1627 "The number of retransmissions of an AARP query before the node is declared "
1628 "dead."
1629 msgstr ""
1630 "AARP クエリーの最大再送信回数。この回数を越えると、 そのノードは dead である"
1631 "とみなされる。"
1632
1633 #. type: TP
1634 #: build/C/man7/ddp.7:133
1635 #, no-wrap
1636 msgid "I<aarp-tick-time>"
1637 msgstr "I<aarp-tick-time>"
1638
1639 #. type: Plain text
1640 #: build/C/man7/ddp.7:136
1641 msgid "The timer rate (in seconds) for the timer driving AARP."
1642 msgstr "タイマー動作する AARP のタイマーレート (秒単位)"
1643
1644 #. type: Plain text
1645 #: build/C/man7/ddp.7:139
1646 msgid ""
1647 "The default values match the specification and should never need to be "
1648 "changed."
1649 msgstr ""
1650 "デフォルトの値で仕様にマッチしているので、 変更する必要は全くないはずである。"
1651
1652 #.  FIXME Add a section about multicasting
1653 #. type: Plain text
1654 #: build/C/man7/ddp.7:144
1655 msgid "All ioctls described in B<socket>(7)  apply to DDP."
1656 msgstr "B<socket>(7)  に記述されているすべての ioctl が DDP にも適用される。"
1657
1658 #. type: SH
1659 #: build/C/man7/ddp.7:144 build/C/man3/gethostbyname.3:276
1660 #: build/C/man3/getnetent_r.3:127 build/C/man2/getpeername.2:71
1661 #: build/C/man3/getprotoent_r.3:117 build/C/man3/getservent_r.3:116
1662 #: build/C/man3/inet_ntop.3:89 build/C/man7/ip.7:915 build/C/man7/packet.7:241
1663 #: build/C/man7/raw.7:140 build/C/man2/shutdown.2:72 build/C/man7/tcp.7:1096
1664 #: build/C/man7/udp.7:231 build/C/man7/udplite.7:119 build/C/man7/unix.7:318
1665 #, no-wrap
1666 msgid "ERRORS"
1667 msgstr "エラー"
1668
1669 #. type: TP
1670 #: build/C/man7/ddp.7:148 build/C/man7/ip.7:919 build/C/man7/raw.7:141
1671 #, no-wrap
1672 msgid "B<EACCES>"
1673 msgstr "B<EACCES>"
1674
1675 #. type: Plain text
1676 #: build/C/man7/ddp.7:155
1677 msgid ""
1678 "The user tried to execute an operation without the necessary permissions.  "
1679 "These include sending to a broadcast address without having the broadcast "
1680 "flag set, and trying to bind to a reserved port without effective user ID 0 "
1681 "or B<CAP_NET_BIND_SERVICE>."
1682 msgstr ""
1683 "ユーザが行おうとした操作に必要な権限を持っていない。 broadcast フラグをセット"
1684 "せずにブロードキャストアドレスへ送信を行おうとした、 実効ユーザー ID が 0 で"
1685 "なく、 B<CAP_NET_BIND_SERVICE> 権限のないプロセスで特権ポートをバインドしよう"
1686 "とした、などが考えられる。"
1687
1688 #. type: TP
1689 #: build/C/man7/ddp.7:155 build/C/man7/ip.7:935 build/C/man7/unix.7:319
1690 #, no-wrap
1691 msgid "B<EADDRINUSE>"
1692 msgstr "B<EADDRINUSE>"
1693
1694 #. type: Plain text
1695 #: build/C/man7/ddp.7:158 build/C/man7/ip.7:938
1696 msgid "Tried to bind to an address already in use."
1697 msgstr "既に使用されているアドレスにバインドしようとした。"
1698
1699 #. type: TP
1700 #: build/C/man7/ddp.7:158 build/C/man7/ip.7:938 build/C/man7/packet.7:242
1701 #, no-wrap
1702 msgid "B<EADDRNOTAVAIL>"
1703 msgstr "B<EADDRNOTAVAIL>"
1704
1705 #. type: Plain text
1706 #: build/C/man7/ddp.7:162 build/C/man7/ip.7:942
1707 msgid ""
1708 "A nonexistent interface was requested or the requested source address was "
1709 "not local."
1710 msgstr ""
1711 "存在しないインターフェースが要求された。または 要求されたソースアドレスがロー"
1712 "カルでない。"
1713
1714 #. type: TP
1715 #: build/C/man7/ddp.7:162 build/C/man7/ip.7:942
1716 #, no-wrap
1717 msgid "B<EAGAIN>"
1718 msgstr "B<EAGAIN>"
1719
1720 #. type: Plain text
1721 #: build/C/man7/ddp.7:165 build/C/man7/ip.7:945
1722 msgid "Operation on a nonblocking socket would block."
1723 msgstr "非ブロッキングソケットに対してブロックする操作を行った。"
1724
1725 #. type: TP
1726 #: build/C/man7/ddp.7:165 build/C/man7/ip.7:945
1727 #, no-wrap
1728 msgid "B<EALREADY>"
1729 msgstr "B<EALREADY>"
1730
1731 #. type: Plain text
1732 #: build/C/man7/ddp.7:168
1733 msgid "A connection operation on a nonblocking socket is already in progress."
1734 msgstr "非ブロッキングソケットに対する接続操作が既に実行中である。"
1735
1736 #. type: TP
1737 #: build/C/man7/ddp.7:168 build/C/man7/ip.7:948
1738 #, no-wrap
1739 msgid "B<ECONNABORTED>"
1740 msgstr "B<ECONNABORTED>"
1741
1742 #. type: Plain text
1743 #: build/C/man7/ddp.7:172 build/C/man7/ip.7:952
1744 msgid "A connection was closed during an B<accept>(2)."
1745 msgstr "B<accept>(2)  の途中で接続がクローズされた。"
1746
1747 #. type: TP
1748 #: build/C/man7/ddp.7:172 build/C/man7/ip.7:952
1749 #, no-wrap
1750 msgid "B<EHOSTUNREACH>"
1751 msgstr "B<EHOSTUNREACH>"
1752
1753 #. type: Plain text
1754 #: build/C/man7/ddp.7:175
1755 msgid "No routing table entry matches the destination address."
1756 msgstr "行き先アドレスにマッチするエントリがルーティングテーブルにない。"
1757
1758 #. type: TP
1759 #: build/C/man7/ddp.7:175 build/C/man2/getpeername.2:83 build/C/man7/ip.7:957
1760 #: build/C/man7/packet.7:248 build/C/man7/raw.7:148 build/C/man7/unix.7:335
1761 #, no-wrap
1762 msgid "B<EINVAL>"
1763 msgstr "B<EINVAL>"
1764
1765 #. type: Plain text
1766 #: build/C/man7/ddp.7:178
1767 msgid "Invalid argument passed."
1768 msgstr "渡した引数が不正。"
1769
1770 #. type: TP
1771 #: build/C/man7/ddp.7:178 build/C/man7/ip.7:963 build/C/man7/unix.7:344
1772 #, no-wrap
1773 msgid "B<EISCONN>"
1774 msgstr "B<EISCONN>"
1775
1776 #. type: Plain text
1777 #: build/C/man7/ddp.7:182 build/C/man7/ip.7:967
1778 msgid "B<connect>(2)  was called on an already connected socket."
1779 msgstr "接続済みのソケットに対して B<connect>(2)  が呼ばれた。"
1780
1781 #. type: TP
1782 #: build/C/man7/ddp.7:182 build/C/man7/ip.7:967 build/C/man7/packet.7:251
1783 #: build/C/man7/raw.7:151
1784 #, no-wrap
1785 msgid "B<EMSGSIZE>"
1786 msgstr "B<EMSGSIZE>"
1787
1788 #. type: Plain text
1789 #: build/C/man7/ddp.7:185
1790 msgid "Datagram is bigger than the DDP MTU."
1791 msgstr "データグラムが DDP MTU より大きい。"
1792
1793 #. type: TP
1794 #: build/C/man7/ddp.7:185 build/C/man7/packet.7:260
1795 #, no-wrap
1796 msgid "B<ENODEV>"
1797 msgstr "B<ENODEV>"
1798
1799 #. type: Plain text
1800 #: build/C/man7/ddp.7:188
1801 msgid "Network device not available or not capable of sending IP."
1802 msgstr "ネットワークデバイスがない。あるいは IP を送ることができない。"
1803
1804 #. type: TP
1805 #: build/C/man7/ddp.7:188 build/C/man3/getnetent_r.3:128
1806 #: build/C/man3/getprotoent_r.3:118 build/C/man3/getservent_r.3:117
1807 #: build/C/man7/ip.7:975 build/C/man7/packet.7:263 build/C/man7/unix.7:349
1808 #, no-wrap
1809 msgid "B<ENOENT>"
1810 msgstr "B<ENOENT>"
1811
1812 #. type: Plain text
1813 #: build/C/man7/ddp.7:192 build/C/man7/ip.7:979
1814 msgid "B<SIOCGSTAMP> was called on a socket where no packet arrived."
1815 msgstr "パケットが到着していないソケットに対して B<SIOCGSTAMP> が呼ばれた。"
1816
1817 #. type: TP
1818 #: build/C/man7/ddp.7:192
1819 #, no-wrap
1820 msgid "B<ENOMEM> and B<ENOBUFS>"
1821 msgstr "B<ENOMEM> と B<ENOBUFS>"
1822
1823 #. type: Plain text
1824 #: build/C/man7/ddp.7:195
1825 msgid "Not enough memory available."
1826 msgstr "メモリが足りない。"
1827
1828 #. type: TP
1829 #: build/C/man7/ddp.7:195 build/C/man7/ip.7:979
1830 #, no-wrap
1831 msgid "B<ENOPKG>"
1832 msgstr "B<ENOPKG>"
1833
1834 #. type: Plain text
1835 #: build/C/man7/ddp.7:198 build/C/man7/ip.7:982
1836 msgid "A kernel subsystem was not configured."
1837 msgstr "カーネルサブシステムが設定されていない。"
1838
1839 #. type: TP
1840 #: build/C/man7/ddp.7:198 build/C/man7/ip.7:982
1841 #, no-wrap
1842 msgid "B<ENOPROTOOPT> and B<EOPNOTSUPP>"
1843 msgstr "B<ENOPROTOOPT> と B<EOPNOTSUPP>"
1844
1845 #. type: Plain text
1846 #: build/C/man7/ddp.7:201 build/C/man7/ip.7:985
1847 msgid "Invalid socket option passed."
1848 msgstr "無効なソケットオプションが渡された。"
1849
1850 #. type: TP
1851 #: build/C/man7/ddp.7:201 build/C/man2/getpeername.2:91 build/C/man7/ip.7:985
1852 #: build/C/man7/packet.7:266 build/C/man2/shutdown.2:77
1853 #: build/C/man7/unix.7:357
1854 #, no-wrap
1855 msgid "B<ENOTCONN>"
1856 msgstr "B<ENOTCONN>"
1857
1858 #. type: Plain text
1859 #: build/C/man7/ddp.7:205 build/C/man7/ip.7:989
1860 msgid ""
1861 "The operation is only defined on a connected socket, but the socket wasn't "
1862 "connected."
1863 msgstr ""
1864 "接続されていないソケットに対して、 接続状態でしか定義されていない操作を行おう"
1865 "とした。"
1866
1867 #. type: TP
1868 #: build/C/man7/ddp.7:205 build/C/man7/ip.7:989 build/C/man7/packet.7:272
1869 #: build/C/man7/raw.7:162 build/C/man7/unix.7:364
1870 #, no-wrap
1871 msgid "B<EPERM>"
1872 msgstr "B<EPERM>"
1873
1874 #. type: Plain text
1875 #: build/C/man7/ddp.7:210
1876 msgid ""
1877 "User doesn't have permission to set high priority, make a configuration "
1878 "change, or send signals to the requested process or group,"
1879 msgstr ""
1880 "高い優先度に設定したり、設定を変更したり、 指定したプロセスやグループにシグナ"
1881 "ルを送るのに必要な権限を ユーザが持っていない。"
1882
1883 #. type: TP
1884 #: build/C/man7/ddp.7:210 build/C/man7/ip.7:993 build/C/man7/tcp.7:1103
1885 #: build/C/man7/unix.7:368
1886 #, no-wrap
1887 msgid "B<EPIPE>"
1888 msgstr "B<EPIPE>"
1889
1890 #. type: Plain text
1891 #: build/C/man7/ddp.7:213 build/C/man7/ip.7:996
1892 msgid "The connection was unexpectedly closed or shut down by the other end."
1893 msgstr ""
1894 "接続が接続相手によって、予期しないやり方でクローズまたはシャットダウンされ"
1895 "た。"
1896
1897 #. type: TP
1898 #: build/C/man7/ddp.7:213 build/C/man7/ip.7:996 build/C/man7/unix.7:390
1899 #, no-wrap
1900 msgid "B<ESOCKTNOSUPPORT>"
1901 msgstr "B<ESOCKTNOSUPPORT>"
1902
1903 #. type: Plain text
1904 #: build/C/man7/ddp.7:216
1905 msgid "The socket was unconfigured, or an unknown socket type was requested."
1906 msgstr "ソケットが設定されていない。または未知のソケットタイプが要求された。"
1907
1908 #. type: Plain text
1909 #: build/C/man7/ddp.7:221
1910 msgid ""
1911 "Appletalk is supported by Linux 2.0 or higher.  The I</proc> interfaces "
1912 "exist since Linux 2.2."
1913 msgstr ""
1914 "Appletalk は Linux 2.0 以降でサポートされている。 I</proc> インタフェースは "
1915 "Linux 2.2 以降に存在する。"
1916
1917 #. type: Plain text
1918 #: build/C/man7/ddp.7:227
1919 msgid ""
1920 "Be very careful with the B<SO_BROADCAST> option - it is not privileged in "
1921 "Linux.  It is easy to overload the network with careless sending to "
1922 "broadcast addresses."
1923 msgstr ""
1924 "B<SO_BROADCAST> オプションを用いる時には慎重の上にも慎重になってほしい。 "
1925 "Linux ではこれに特権を必要としない。 不注意にブロードキャストアドレスに送信を"
1926 "行うと、 ネットワークの状態が簡単に変更されてしまう。"
1927
1928 #. type: SS
1929 #: build/C/man7/ddp.7:227 build/C/man7/ip.7:1054 build/C/man7/packet.7:326
1930 #, no-wrap
1931 msgid "Compatibility"
1932 msgstr "移植性"
1933
1934 #. type: Plain text
1935 #: build/C/man7/ddp.7:234
1936 msgid ""
1937 "The basic AppleTalk socket interface is compatible with B<netatalk> on BSD-"
1938 "derived systems.  Many BSD systems fail to check B<SO_BROADCAST> when "
1939 "sending broadcast frames; this can lead to compatibility problems."
1940 msgstr ""
1941 "基本的な Appletalk ソケットインターフェースは BSD 由来のシステムにおける "
1942 "B<netatalk> と互換性がある。多くの BSD システムでは、 ブロードキャストフレー"
1943 "ムを送信しようとしたときの B<SO_BROADCAST> のチェックに失敗する。これは互換性"
1944 "の問題となるかもしれない。"
1945
1946 #. type: Plain text
1947 #: build/C/man7/ddp.7:239
1948 msgid ""
1949 "The raw socket mode is unique to Linux and exists to support the alternative "
1950 "CAP package and AppleTalk monitoring tools more easily."
1951 msgstr ""
1952 "raw ソケットモードは Linux 独特のもので、もう一方の実装である CAP パッケージ"
1953 "や、 Appletalk モニタツールをより簡単に実装できるようになる。"
1954
1955 #. type: Plain text
1956 #: build/C/man7/ddp.7:241 build/C/man7/ip.7:1069
1957 msgid "There are too many inconsistent error values."
1958 msgstr "エラーの値がまったく首尾一貫していない。"
1959
1960 #. type: Plain text
1961 #: build/C/man7/ddp.7:244
1962 msgid ""
1963 "The ioctls used to configure routing tables, devices, AARP tables and other "
1964 "devices are not yet described."
1965 msgstr ""
1966 "ルーティングテーブル・デバイス・ AARP テーブル・その他のデバイスを 設定するた"
1967 "めに用いられる ioctl がまだ記述されていない。"
1968
1969 #. type: Plain text
1970 #: build/C/man7/ddp.7:249
1971 msgid "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<socket>(7)"
1972 msgstr "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<socket>(7)"
1973
1974 #. type: TH
1975 #: build/C/man3/endian.3:26
1976 #, no-wrap
1977 msgid "ENDIAN"
1978 msgstr "ENDIAN"
1979
1980 #. type: TH
1981 #: build/C/man3/endian.3:26 build/C/man3/getnetent_r.3:24
1982 #: build/C/man3/getprotoent_r.3:24 build/C/man3/getservent_r.3:24
1983 #, no-wrap
1984 msgid "2010-09-10"
1985 msgstr "2010-09-10"
1986
1987 #. type: Plain text
1988 #: build/C/man3/endian.3:31
1989 msgid ""
1990 "htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh, le32toh, "
1991 "htobe64, htole64, be64toh, le64toh - convert values between host and big-/"
1992 "little-endian byte order"
1993 msgstr ""
1994 "htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh,\n"
1995 "le32toh, htobe64, htole64, be64toh, le64toh - ホストバイトオーダーと\n"
1996 "ビッグ/リトルエンディアンバイトオーダーの間で値の変換を行う"
1997
1998 #. type: Plain text
1999 #: build/C/man3/endian.3:35
2000 #, no-wrap
2001 msgid ""
2002 "B<#define _BSD_SOURCE>             /* See feature_test_macros(7) */\n"
2003 "B<#include E<lt>endian.hE<gt>>\n"
2004 msgstr ""
2005 "B<#define _BSD_SOURCE>             /* feature_test_macros(7) 参照 */\n"
2006 "B<#include E<lt>endian.hE<gt>>\n"
2007
2008 #. type: Plain text
2009 #: build/C/man3/endian.3:40
2010 #, no-wrap
2011 msgid ""
2012 "B<uint16_t htobe16(uint16_t >I<host_16bits>B<);>\n"
2013 "B<uint16_t htole16(uint16_t >I<host_16bits>B<);>\n"
2014 "B<uint16_t be16toh(uint16_t >I<big_endian_16bits>B<);>\n"
2015 "B<uint16_t le16toh(uint16_t >I<little_endian_16bits>B<);>\n"
2016 msgstr ""
2017 "B<uint16_t htobe16(uint16_t >I<host_16bits>B<);>\n"
2018 "B<uint16_t htole16(uint16_t >I<host_16bits>B<);>\n"
2019 "B<uint16_t be16toh(uint16_t >I<big_endian_16bits>B<);>\n"
2020 "B<uint16_t le16toh(uint16_t >I<little_endian_16bits>B<);>\n"
2021
2022 #. type: Plain text
2023 #: build/C/man3/endian.3:45
2024 #, no-wrap
2025 msgid ""
2026 "B<uint32_t htobe32(uint32_t >I<host_32bits>B<);>\n"
2027 "B<uint32_t htole32(uint32_t >I<host_32bits>B<);>\n"
2028 "B<uint32_t be32toh(uint32_t >I<big_endian_32bits>B<);>\n"
2029 "B<uint32_t le32toh(uint32_t >I<little_endian_32bits>B<);>\n"
2030 msgstr ""
2031 "B<uint32_t htobe32(uint32_t >I<host_32bits>B<);>\n"
2032 "B<uint32_t htole32(uint32_t >I<host_32bits>B<);>\n"
2033 "B<uint32_t be32toh(uint32_t >I<big_endian_32bits>B<);>\n"
2034 "B<uint32_t le32toh(uint32_t >I<little_endian_32bits>B<);>\n"
2035
2036 #. type: Plain text
2037 #: build/C/man3/endian.3:50
2038 #, no-wrap
2039 msgid ""
2040 "B<uint64_t htobe64(uint64_t >I<host_64bits>B<);>\n"
2041 "B<uint64_t htole64(uint64_t >I<host_64bits>B<);>\n"
2042 "B<uint64_t be64toh(uint64_t >I<big_endian_64bits>B<);>\n"
2043 "B<uint64_t le64toh(uint64_t >I<little_endian_64bits>B<);>\n"
2044 msgstr ""
2045 "B<uint64_t htobe64(uint64_t >I<host_64bits>B<);>\n"
2046 "B<uint64_t htole64(uint64_t >I<host_64bits>B<);>\n"
2047 "B<uint64_t be64toh(uint64_t >I<big_endian_64bits>B<);>\n"
2048 "B<uint64_t le64toh(uint64_t >I<little_endian_64bits>B<);>\n"
2049
2050 #. type: Plain text
2051 #: build/C/man3/endian.3:55
2052 msgid ""
2053 "These functions convert the byte encoding of integer values from the byte "
2054 "order that the current CPU (the \"host\") uses, to and from little-endian "
2055 "and big-endian byte order."
2056 msgstr ""
2057 "これらの関数は、整数値のバイトエンコーディングを、\n"
2058 "使用中の CPU (\"ホスト\") のバイトオーダーから\n"
2059 "リトルエンディアンやビッグエンディアンバイトオーダーへの変換や\n"
2060 "その逆の変換を行う。"
2061
2062 #. type: Plain text
2063 #: build/C/man3/endian.3:60
2064 msgid ""
2065 "The number, I<nn>, in the name of each function indicates the size of "
2066 "integer handled by the function, either 16, 32, or 64 bits."
2067 msgstr ""
2068 "各関数の名前に付いている数字 I<nn> は、その関数が扱う整数のサイズ\n"
2069 "(16, 32, 64 ビットのどれか) を示している。"
2070
2071 #. type: Plain text
2072 #: build/C/man3/endian.3:63
2073 msgid ""
2074 "The functions with names of the form \"htobeI<nn>\" convert from host byte "
2075 "order to big-endian order."
2076 msgstr ""
2077 "名前が \"htobeI<nn>\" という形の関数は、ホストバイトオーダーから\n"
2078 "ビッグエンディアンバイトオーダーへの変換を行う。"
2079
2080 #. type: Plain text
2081 #: build/C/man3/endian.3:66
2082 msgid ""
2083 "The functions with names of the form \"htoleI<nn>\" convert from host byte "
2084 "order to little-endian order."
2085 msgstr ""
2086 "名前が \"htoleI<nn>\" という形の関数は、ホストバイトオーダーから\n"
2087 "リトルエンディアンバイトオーダーへの変換を行う。"
2088
2089 #. type: Plain text
2090 #: build/C/man3/endian.3:69
2091 msgid ""
2092 "The functions with names of the form \"beI<nn>toh\" convert from big-endian "
2093 "order to host byte order."
2094 msgstr ""
2095 "名前が \"beI<nn>toh\" という形の関数は、ビッグエンディアンバイトオーダー\n"
2096 "からホストバイトオーダーへの変換を行う。"
2097
2098 #. type: Plain text
2099 #: build/C/man3/endian.3:72
2100 msgid ""
2101 "The functions with names of the form \"leI<nn>toh\" convert from little-"
2102 "endian order to host byte order."
2103 msgstr ""
2104 "名前が \"leI<nn>toh\" という形の関数は、リトルエンディアンバイトオーダー\n"
2105 "からホストバイトオーダーへの変換を行う。"
2106
2107 #. type: Plain text
2108 #: build/C/man3/endian.3:74
2109 msgid "These function were added to glibc in version 2.9."
2110 msgstr "これらの関数は glibc バージョン 2.9 で追加された。"
2111
2112 #. type: Plain text
2113 #: build/C/man3/endian.3:89
2114 msgid ""
2115 "These functions are nonstandard.  Similar functions are present on the BSDs, "
2116 "where the required header file is I<E<lt>sys/endian.hE<gt>> instead of "
2117 "I<E<lt>endian.hE<gt>>.  Unfortunately, NetBSD, FreeBSD, and glibc haven't "
2118 "followed the original OpenBSD naming convention for these functions, whereby "
2119 "the I<nn> component always appears at the end of the function name (thus, "
2120 "for example, in NetBSD, FreeBSD, and glibc, the equivalent of OpenBSDs "
2121 "\"betoh32\" is \"be32toh\")."
2122 msgstr ""
2123 "これらの関数は非標準である。\n"
2124 "BSD には同様の関数が存在するが、 BSD では\n"
2125 "必要なヘッダファイルは I<E<lt>endian.hE<gt>> ではなく\n"
2126 "I<E<lt>sys/endian.hE<gt>> である。\n"
2127 "不幸なことに、 NetBSD, FreeBSD, glibc では、\n"
2128 "これらの関数の元々の OpenBSD での、 I<nn> は常に関数名の末尾に置く\n"
2129 "という名前付けルールが踏襲されていない\n"
2130 "(そのため、例を挙げると、 OpenBSD の \"betoh32\" と等価な関数は\n"
2131 "NetBSD, FreeBSD, glibc では \"be32toh\" となる)。"
2132
2133 #. type: Plain text
2134 #: build/C/man3/endian.3:97
2135 msgid ""
2136 "These functions are similar to the older B<byteorder>(3)  family of "
2137 "functions.  For example, B<be32toh>()  is identical to B<ntohl>()B<.>"
2138 msgstr ""
2139 "これらの関数は、前からある B<byteorder>(3) 系の関数と同じである。\n"
2140 "例えば、 B<be32toh>() は B<ntohl>() と等価である。"
2141
2142 #. type: Plain text
2143 #: build/C/man3/endian.3:105
2144 msgid ""
2145 "The advantage of the B<byteorder>(3)  functions is that they are standard "
2146 "functions available on all UNIX systems.  On the other hand, the fact that "
2147 "they were designed for use in the context of TCP/IP means that they lack the "
2148 "64-bit and little-endian variants described in this page."
2149 msgstr ""
2150 "B<byteorder>(3) 系の関数のメリットは、これらが\n"
2151 "全ての UNIX システムで利用可能な標準関数である点である。\n"
2152 "一方で、これらの関数は TCP/IP 処理で使用されることを想定して\n"
2153 "設計されたため、このページで説明している 64 ビット版や\n"
2154 "リトルエンディアン版などが存在しない。"
2155
2156 #. type: Plain text
2157 #: build/C/man3/endian.3:112
2158 msgid ""
2159 "The program below display the results of converting an integer from host "
2160 "byte order to both little-endian and big-endian byte order.  Since host byte "
2161 "order is either little-endian or big-endian, only one of these conversions "
2162 "will have an effect.  When we run this program on a little-endian system "
2163 "such as x86-32, we see the following:"
2164 msgstr ""
2165 "以下のプログラムは、整数をホストバイトオーダーからリトルエンディアンと\n"
2166 "ビットエンディアンの両方のバイトオーダーに変換し、その結果を表示する。\n"
2167 "ホストバイトオーダーはリトルエンディアンかビットエンディアンのいずれか\n"
2168 "なので、変換に意味があるのはどちらか一方だけである。\n"
2169 "このプログラムを x86-32 などのリトルエンディアンのシステムで実行した\n"
2170 "場合の実行結果は下記のようになる。"
2171
2172 #. type: Plain text
2173 #: build/C/man3/endian.3:119
2174 #, no-wrap
2175 msgid ""
2176 "$ B<./a.out>\n"
2177 "x.u32 = 0x44332211\n"
2178 "htole32(x.u32) = 0x44332211\n"
2179 "htobe32(x.u32) = 0x11223344\n"
2180 msgstr ""
2181 "$ B<./a.out>\n"
2182 "x.u32 = 0x44332211\n"
2183 "htole32(x.u32) = 0x44332211\n"
2184 "htobe32(x.u32) = 0x11223344\n"
2185
2186 #. type: SS
2187 #: build/C/man3/endian.3:121 build/C/man3/getprotoent_r.3:160
2188 #: build/C/man3/getservent_r.3:158 build/C/man3/inet.3:270
2189 #: build/C/man3/inet_pton.3:171
2190 #, no-wrap
2191 msgid "Program source"
2192 msgstr "プログラムのソース"
2193
2194 #. type: Plain text
2195 #: build/C/man3/endian.3:128
2196 #, no-wrap
2197 msgid ""
2198 "#include E<lt>endian.hE<gt>\n"
2199 "#include E<lt>stdint.hE<gt>\n"
2200 "#include E<lt>stdio.hE<gt>\n"
2201 "#include E<lt>stdlib.hE<gt>\n"
2202 msgstr ""
2203 "#include E<lt>endian.hE<gt>\n"
2204 "#include E<lt>stdint.hE<gt>\n"
2205 "#include E<lt>stdio.hE<gt>\n"
2206 "#include E<lt>stdlib.hE<gt>\n"
2207
2208 #. type: Plain text
2209 #: build/C/man3/endian.3:136
2210 #, no-wrap
2211 msgid ""
2212 "int\n"
2213 "main(int argc, char *argv[])\n"
2214 "{\n"
2215 "    union {\n"
2216 "\tuint32_t u32;\n"
2217 "\tuint8_t arr[4];\n"
2218 "    } x;\n"
2219 msgstr ""
2220 "int\n"
2221 "main(int argc, char *argv[])\n"
2222 "{\n"
2223 "    union {\n"
2224 "\tuint32_t u32;\n"
2225 "\tuint8_t arr[4];\n"
2226 "    } x;\n"
2227
2228 #. type: Plain text
2229 #: build/C/man3/endian.3:141
2230 #, no-wrap
2231 msgid ""
2232 "    x.arr[0] = 0x11;\t/* Lowest-address byte */\n"
2233 "    x.arr[1] = 0x22;\n"
2234 "    x.arr[2] = 0x33;\n"
2235 "    x.arr[3] = 0x44;\t/* Highest-address byte */\n"
2236 msgstr ""
2237 "    x.arr[0] = 0x11;\t/* Lowest-address byte */\n"
2238 "    x.arr[1] = 0x22;\n"
2239 "    x.arr[2] = 0x33;\n"
2240 "    x.arr[3] = 0x44;\t/* Highest-address byte */\n"
2241
2242 #. type: Plain text
2243 #: build/C/man3/endian.3:145
2244 #, no-wrap
2245 msgid ""
2246 "    printf(\"x.u32 = 0x%x\\en\", x.u32);\n"
2247 "    printf(\"htole32(x.u32) = 0x%x\\en\", htole32(x.u32));\n"
2248 "    printf(\"htobe32(x.u32) = 0x%x\\en\", htobe32(x.u32));\n"
2249 msgstr ""
2250 "    printf(\"x.u32 = 0x%x\\en\", x.u32);\n"
2251 "    printf(\"htole32(x.u32) = 0x%x\\en\", htole32(x.u32));\n"
2252 "    printf(\"htobe32(x.u32) = 0x%x\\en\", htobe32(x.u32));\n"
2253
2254 #. type: Plain text
2255 #: build/C/man3/endian.3:148 build/C/man3/getaddrinfo.3:812
2256 #: build/C/man3/getprotoent_r.3:234 build/C/man3/getservent_r.3:238
2257 #: build/C/man3/inet_pton.3:212
2258 #, no-wrap
2259 msgid ""
2260 "    exit(EXIT_SUCCESS);\n"
2261 "}\n"
2262 msgstr ""
2263 "    exit(EXIT_SUCCESS);\n"
2264 "}\n"
2265
2266 #. type: Plain text
2267 #: build/C/man3/endian.3:151
2268 msgid "B<byteorder>(3)"
2269 msgstr "B<byteorder>(3)"
2270
2271 #. type: TH
2272 #: build/C/man3/ether_aton.3:31
2273 #, no-wrap
2274 msgid "ETHER_ATON"
2275 msgstr "ETHER_ATON"
2276
2277 #. type: TH
2278 #: build/C/man3/ether_aton.3:31
2279 #, no-wrap
2280 msgid "2002-07-20"
2281 msgstr "2002-07-20"
2282
2283 #. type: Plain text
2284 #: build/C/man3/ether_aton.3:35
2285 msgid ""
2286 "ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, "
2287 "ether_ntoa_r, ether_aton_r - Ethernet address manipulation routines"
2288 msgstr ""
2289 "ether_aton, ether_ntoa, ether_ntohost, ether_hostton, ether_line, "
2290 "ether_ntoa_r, ether_aton_r - Ethernet アドレスの操作用関数"
2291
2292 #. type: Plain text
2293 #: build/C/man3/ether_aton.3:38
2294 #, no-wrap
2295 msgid "B<#include E<lt>netinet/ether.hE<gt>>\n"
2296 msgstr "B<#include E<lt>netinet/ether.hE<gt>>\n"
2297
2298 #. type: Plain text
2299 #: build/C/man3/ether_aton.3:40
2300 #, no-wrap
2301 msgid "B<char *ether_ntoa(const struct ether_addr *>I<addr>B<);>\n"
2302 msgstr "B<char *ether_ntoa(const struct ether_addr *>I<addr>B<);>\n"
2303
2304 #. type: Plain text
2305 #: build/C/man3/ether_aton.3:42
2306 #, no-wrap
2307 msgid "B<struct ether_addr *ether_aton(const char *>I<asc>B<);>\n"
2308 msgstr "B<struct ether_addr *ether_aton(const char *>I<asc>B<);>\n"
2309
2310 #. type: Plain text
2311 #: build/C/man3/ether_aton.3:44
2312 #, no-wrap
2313 msgid "B<int ether_ntohost(char *>I<hostname>B<, const struct ether_addr *>I<addr>B<);>\n"
2314 msgstr "B<int ether_ntohost(char *>I<hostname>B<, const struct ether_addr *>I<addr>B<);>\n"
2315
2316 #. type: Plain text
2317 #: build/C/man3/ether_aton.3:46
2318 #, no-wrap
2319 msgid "B<int ether_hostton(const char *>I<hostname>B<, struct ether_addr *>I<addr>B<);>\n"
2320 msgstr "B<int ether_hostton(const char *>I<hostname>B<, struct ether_addr *>I<addr>B<);>\n"
2321
2322 #. type: Plain text
2323 #: build/C/man3/ether_aton.3:49
2324 #, no-wrap
2325 msgid ""
2326 "B<int ether_line(const char *>I<line>B<, struct ether_addr *>I<addr>B<,>\n"
2327 "B<               char *>I<hostname>B<);>\n"
2328 msgstr ""
2329 "B<int ether_line(const char *>I<line>B<, struct ether_addr *>I<addr>B<,>\n"
2330 "B<               char *>I<hostname>B<);>\n"
2331
2332 #. type: Plain text
2333 #: build/C/man3/ether_aton.3:51 build/C/man3/gethostbyname.3:68
2334 #, no-wrap
2335 msgid "/* GNU extensions */\n"
2336 msgstr "/* GNU 拡張 */\n"
2337
2338 #. type: Plain text
2339 #: build/C/man3/ether_aton.3:53
2340 #, no-wrap
2341 msgid "B<char *ether_ntoa_r(const struct ether_addr *>I<addr>B<, char *>I<buf>B<);>\n"
2342 msgstr "B<char *ether_ntoa_r(const struct ether_addr *>I<addr>B<, char *>I<buf>B<);>\n"
2343
2344 #. type: Plain text
2345 #: build/C/man3/ether_aton.3:56
2346 #, no-wrap
2347 msgid ""
2348 "B<struct ether_addr *ether_aton_r(const char *>I<asc>B<,>\n"
2349 "B<                                struct ether_addr *>I<addr>B<);>\n"
2350 msgstr ""
2351 "B<struct ether_addr *ether_aton_r(const char *>I<asc>B<,>\n"
2352 "B<                                struct ether_addr *>I<addr>B<);>\n"
2353
2354 #. type: Plain text
2355 #: build/C/man3/ether_aton.3:66
2356 msgid ""
2357 "B<ether_aton>()  converts the 48-bit Ethernet host address I<asc> from the "
2358 "standard hex-digits-and-colons notation into binary data in network byte "
2359 "order and returns a pointer to it in a statically allocated buffer, which "
2360 "subsequent calls will overwrite.  B<ether_aton>()  returns NULL if the "
2361 "address is invalid."
2362 msgstr ""
2363 "関数 B<ether_aton>()  は、標準的な 16進数とコロンの形式で書かれた 48ビットの "
2364 "Ethernet ホストアドレス I<asc> を、ネットワークでのバイト順 (byte order)  の"
2365 "バイナリデータに変換し、静的に割り当てられたバッファに格納されたデータ へのポ"
2366 "インタを返す。このバッファは、これ以降の関数呼び出しで上書きされる。 アドレス"
2367 "が不正な場合、 B<ether_aton>()  は NULL を返す。"
2368
2369 #. type: Plain text
2370 #: build/C/man3/ether_aton.3:74
2371 msgid ""
2372 "The B<ether_ntoa>()  function converts the Ethernet host address I<addr> "
2373 "given in network byte order to a string in standard hex-digits-and-colons "
2374 "notation, omitting leading zeros.  The string is returned in a statically "
2375 "allocated buffer, which subsequent calls will overwrite."
2376 msgstr ""
2377 "関数 B<ether_ntoa>()  は、ネットワークのバイト順で表された Ethernet ホストア"
2378 "ドレス I<addr> を、標準的な 16進数とコロンの形式の文字列に変換する。 但し、先"
2379 "頭の 0 は省略される。変換後の文字列は静的に割り当てられたバッファ に格納され"
2380 "て返される。このバッファは、これ以降の関数呼び出しで上書きされる。"
2381
2382 #. type: Plain text
2383 #: build/C/man3/ether_aton.3:81
2384 msgid ""
2385 "The B<ether_ntohost>()  function maps an Ethernet address to the "
2386 "corresponding hostname in I</etc/ethers> and returns nonzero if it cannot be "
2387 "found."
2388 msgstr ""
2389 "関数 B<ether_ntohost>()  は、Ethernet アドレスに対応するホスト名を I</etc/"
2390 "ethers> を検索して割り当てる。対応するホスト名が見つからなかった場合は、 非 "
2391 "0 を返す。"
2392
2393 #. type: Plain text
2394 #: build/C/man3/ether_aton.3:88
2395 msgid ""
2396 "The B<ether_hostton>()  function maps a hostname to the corresponding "
2397 "Ethernet address in I</etc/ethers> and returns nonzero if it cannot be found."
2398 msgstr ""
2399 "関数 B<ether_hostton>()  は、ホスト名に対応する Ethernet アドレスを I</etc/"
2400 "ethers> を検索して割り当てる。対応するホスト名が見つからなかった場合は、 非 "
2401 "0 を返す。"
2402
2403 #. type: Plain text
2404 #: build/C/man3/ether_aton.3:100
2405 msgid ""
2406 "The B<ether_line>()  function parses a line in I</etc/ethers> format "
2407 "(ethernet address followed by whitespace followed by hostname; \\(aq#\\(aq "
2408 "introduces a comment) and returns an address and hostname pair, or nonzero "
2409 "if it cannot be parsed.  The buffer pointed to by I<hostname> must be "
2410 "sufficiently long, for example, have the same length as I<line>."
2411 msgstr ""
2412 "関数 B<ether_line>()  は、 I</etc/ethers> 形式になった行を解析し、 アドレスと"
2413 "ホスト名の組を返す (I</etc/ethers> 形式は、Ethernet アドレス、ホスト名が空白"
2414 "文字 (whitespace)  で区切られた書式で、\\(aq#\\(aq 以降はコメントとみなされ"
2415 "る)。 解析できなかった場合は、非 0 を返す。 I<hostname> で指定されたバッファ"
2416 "は十分な長さが必要である。つまり、 I<line> と同じ長さでなければならない。"
2417
2418 #. type: Plain text
2419 #: build/C/man3/ether_aton.3:111
2420 msgid ""
2421 "The functions B<ether_ntoa_r>()  and B<ether_aton_r>()  are reentrant thread-"
2422 "safe versions of B<ether_ntoa>()  and B<ether_aton>()  respectively, and do "
2423 "not use static buffers."
2424 msgstr ""
2425 "関数 B<ether_ntoa_r>()  と B<ether_aton_r>()  は、 それぞれ B<ether_ntoa>()  "
2426 "と B<ether_aton>()  の リエントラントでスレッドセーフなバージョンであり、 静"
2427 "的なバッファを使用しない。"
2428
2429 #. type: Plain text
2430 #: build/C/man3/ether_aton.3:115
2431 msgid ""
2432 "The structure I<ether_addr> is defined in I<E<lt>net/ethernet.hE<gt>> as:"
2433 msgstr ""
2434 "I<ether_addr> 構造体は I<E<lt>net/ethernet.hE<gt>> で次のように定義されてい"
2435 "る:"
2436
2437 #. type: Plain text
2438 #: build/C/man3/ether_aton.3:121
2439 #, no-wrap
2440 msgid ""
2441 "struct ether_addr {\n"
2442 "    uint8_t ether_addr_octet[6];\n"
2443 "}\n"
2444 msgstr ""
2445 "struct ether_addr {\n"
2446 "    uint8_t ether_addr_octet[6];\n"
2447 "}\n"
2448
2449 #. type: Plain text
2450 #: build/C/man3/ether_aton.3:125
2451 msgid "4.3BSD, SunOS."
2452 msgstr "4.3BSD, SunOS."
2453
2454 #. type: Plain text
2455 #: build/C/man3/ether_aton.3:129
2456 msgid "The glibc 2.2.5 implementation of B<ether_line>()  is broken."
2457 msgstr "glibc 2.2.5 での B<ether_line>()  の実装はおかしい。"
2458
2459 #. type: Plain text
2460 #: build/C/man3/ether_aton.3:131
2461 msgid "B<ethers>(5)"
2462 msgstr "B<ethers>(5)"
2463
2464 #. type: TH
2465 #: build/C/man3/getaddrinfo.3:41
2466 #, no-wrap
2467 msgid "GETADDRINFO"
2468 msgstr "GETADDRINFO"
2469
2470 #. type: TH
2471 #: build/C/man3/getaddrinfo.3:41 build/C/man5/nsswitch.conf.5:24
2472 #, no-wrap
2473 msgid "2012-04-14"
2474 msgstr "2012-04-14"
2475
2476 #. type: Plain text
2477 #: build/C/man3/getaddrinfo.3:45
2478 msgid ""
2479 "getaddrinfo, freeaddrinfo, gai_strerror - network address and service "
2480 "translation"
2481 msgstr ""
2482 "getaddrinfo, freeaddrinfo, gai_strerror - ネットワークのアドレスとサービスを"
2483 "変換する"
2484
2485 #. type: Plain text
2486 #: build/C/man3/getaddrinfo.3:50 build/C/man3/getipnodebyname.3:33
2487 #, no-wrap
2488 msgid ""
2489 "B<#include E<lt>sys/types.hE<gt>>\n"
2490 "B<#include E<lt>sys/socket.hE<gt>>\n"
2491 "B<#include E<lt>netdb.hE<gt>>\n"
2492 msgstr ""
2493 "B<#include E<lt>sys/types.hE<gt>>\n"
2494 "B<#include E<lt>sys/socket.hE<gt>>\n"
2495 "B<#include E<lt>netdb.hE<gt>>\n"
2496
2497 #. type: Plain text
2498 #: build/C/man3/getaddrinfo.3:54
2499 #, no-wrap
2500 msgid ""
2501 "B<int getaddrinfo(const char *>I<node>B<, const char *>I<service>B<,>\n"
2502 "B<                const struct addrinfo *>I<hints>B<,>\n"
2503 "B<                struct addrinfo **>I<res>B<);>\n"
2504 msgstr ""
2505 "B<int getaddrinfo(const char *>I<node>B<, const char *>I<service>B<,>\n"
2506 "B<                const struct addrinfo *>I<hints>B<,>\n"
2507 "B<                struct addrinfo **>I<res>B<);>\n"
2508
2509 #. type: Plain text
2510 #: build/C/man3/getaddrinfo.3:56
2511 #, no-wrap
2512 msgid "B<void freeaddrinfo(struct addrinfo *>I<res>B<);>\n"
2513 msgstr "B<void freeaddrinfo(struct addrinfo *>I<res>B<);>\n"
2514
2515 #. type: Plain text
2516 #: build/C/man3/getaddrinfo.3:58
2517 #, no-wrap
2518 msgid "B<const char *gai_strerror(int >I<errcode>B<);>\n"
2519 msgstr "B<const char *gai_strerror(int >I<errcode>B<);>\n"
2520
2521 #. type: Plain text
2522 #: build/C/man3/getaddrinfo.3:63 build/C/man3/gethostbyname.3:91
2523 #: build/C/man3/getnameinfo.3:23 build/C/man3/getnetent_r.3:50
2524 #: build/C/man3/getprotoent_r.3:47 build/C/man3/getservent_r.3:47
2525 #: build/C/man3/inet.3:70 build/C/man3/rcmd.3:79 build/C/man3/setnetgrent.3:29
2526 msgid ""
2527 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
2528 msgstr "glibc 向けの機能検査マクロの要件 (B<feature_test_macros>(7)  参照):"
2529
2530 #. type: Plain text
2531 #: build/C/man3/getaddrinfo.3:69
2532 msgid "B<getaddrinfo>(), B<freeaddrinfo>(), B<gai_strerror>():"
2533 msgstr "B<getaddrinfo>(), B<freeaddrinfo>(), B<gai_strerror>():"
2534
2535 #. type: Plain text
2536 #: build/C/man3/getaddrinfo.3:71
2537 msgid "_POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE"
2538 msgstr "_POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || _POSIX_SOURCE"
2539
2540 #.  .BR getipnodebyname (3),
2541 #.  .BR getipnodebyaddr (3),
2542 #. type: Plain text
2543 #: build/C/man3/getaddrinfo.3:98
2544 msgid ""
2545 "Given I<node> and I<service>, which identify an Internet host and a service, "
2546 "B<getaddrinfo>()  returns one or more I<addrinfo> structures, each of which "
2547 "contains an Internet address that can be specified in a call to B<bind>(2)  "
2548 "or B<connect>(2).  The B<getaddrinfo>()  function combines the functionality "
2549 "provided by the B<getservbyname>(3)  and B<getservbyport>(3)  functions into "
2550 "a single interface, but unlike the latter functions, B<getaddrinfo>()  is "
2551 "reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies."
2552 msgstr ""
2553 "B<getaddrinfo>()  は、(インターネットのホストとサービスを識別する)  I<node> "
2554 "と I<service> を渡すと、一つ以上の I<addrinfo> 構造体を返す。それぞれの "
2555 "I<addrinfo> 構造体には、 B<bind>(2)  や B<connect>(2)  を呼び出す際に指定でき"
2556 "るインターネットアドレスが格納されている。 B<getaddrinfo>()  関数は、 "
2557 "B<getservbyname>(3)  と B<getservbyport>(3)  の機能をまとめて一つのインター"
2558 "フェースにしたものであるが、 これらの関数と違い、 B<getaddrinfo>()  はリエン"
2559 "トラントであり、 B<getaddrinfo>()  を使うことでプログラムは IPv4 と IPv6 の違"
2560 "いに関する依存関係を なくすことができる。"
2561
2562 #. type: Plain text
2563 #: build/C/man3/getaddrinfo.3:104
2564 msgid ""
2565 "The I<addrinfo> structure used by B<getaddrinfo>()  contains the following "
2566 "fields:"
2567 msgstr ""
2568 "B<getaddrinfo>()  が用いる I<addrinfo> 構造体は以下のフィールドを含む。"
2569
2570 #. type: Plain text
2571 #: build/C/man3/getaddrinfo.3:117
2572 #, no-wrap
2573 msgid ""
2574 "struct addrinfo {\n"
2575 "    int              ai_flags;\n"
2576 "    int              ai_family;\n"
2577 "    int              ai_socktype;\n"
2578 "    int              ai_protocol;\n"
2579 "    socklen_t        ai_addrlen;\n"
2580 "    struct sockaddr *ai_addr;\n"
2581 "    char            *ai_canonname;\n"
2582 "    struct addrinfo *ai_next;\n"
2583 "};\n"
2584 msgstr ""
2585 "struct addrinfo {\n"
2586 "    int              ai_flags;\n"
2587 "    int              ai_family;\n"
2588 "    int              ai_socktype;\n"
2589 "    int              ai_protocol;\n"
2590 "    socklen_t        ai_addrlen;\n"
2591 "    struct sockaddr *ai_addr;\n"
2592 "    char            *ai_canonname;\n"
2593 "    struct addrinfo *ai_next;\n"
2594 "};\n"
2595
2596 #. type: Plain text
2597 #: build/C/man3/getaddrinfo.3:139
2598 msgid ""
2599 "The I<hints> argument points to an I<addrinfo> structure that specifies "
2600 "criteria for selecting the socket address structures returned in the list "
2601 "pointed to by I<res>.  If I<hints> is not NULL it points to an I<addrinfo> "
2602 "structure whose I<ai_family>, I<ai_socktype>, and I<ai_protocol> specify "
2603 "criteria that limit the set of socket addresses returned by B<getaddrinfo>"
2604 "(), as follows:"
2605 msgstr ""
2606 "I<hints> 引き数は I<addrinfo> 構造体を指し示し、この構造体を用いて I<res> が"
2607 "指すリストに入れて返すソケットアドレス構造体を選択するための基準を指定する。 "
2608 "I<hints> が NULL でない場合、 I<hints> は I<addrinfo> 構造体を指し示し、その"
2609 "構造体のフィールド I<ai_family>, I<ai_socktype>, I<ai_protocol> で "
2610 "B<getaddrinfo>()  が返すソケットアドレス集合に対する基準を指定する。"
2611
2612 #. type: TP
2613 #: build/C/man3/getaddrinfo.3:139
2614 #, no-wrap
2615 msgid "I<ai_family>"
2616 msgstr "I<ai_family>"
2617
2618 #. type: Plain text
2619 #: build/C/man3/getaddrinfo.3:155
2620 msgid ""
2621 "This field specifies the desired address family for the returned addresses.  "
2622 "Valid values for this field include B<AF_INET> and B<AF_INET6>.  The value "
2623 "B<AF_UNSPEC> indicates that B<getaddrinfo>()  should return socket addresses "
2624 "for any address family (either IPv4 or IPv6, for example) that can be used "
2625 "with I<node> and I<service>."
2626 msgstr ""
2627 "このフィールドは返されるアドレスの希望のアドレスファミリーを指定する。 この"
2628 "フィールドに指定できる有効な値としては B<AF_INET> と B<AF_INET6> がある。 ま"
2629 "た、値 B<AF_UNSPEC> を指定すると、 B<getaddrinfo>()  は I<node> と "
2630 "I<service> で使用できるいずれかのアドレスファミリー (例えば IPv4 か IPv6) の "
2631 "ソケットアドレスを返すことを求められる。"
2632
2633 #. type: TP
2634 #: build/C/man3/getaddrinfo.3:155
2635 #, no-wrap
2636 msgid "I<ai_socktype>"
2637 msgstr "I<ai_socktype>"
2638
2639 #. type: Plain text
2640 #: build/C/man3/getaddrinfo.3:164
2641 msgid ""
2642 "This field specifies the preferred socket type, for example B<SOCK_STREAM> "
2643 "or B<SOCK_DGRAM>.  Specifying 0 in this field indicates that socket "
2644 "addresses of any type can be returned by B<getaddrinfo>()."
2645 msgstr ""
2646 "このフィールドは推奨のソケット型 (例えば B<SOCK_STREAM> や B<SOCK_DGRAM>)  を"
2647 "指定する。 このフィールドに 0 を指定すると、任意のソケット型のソケットアドレ"
2648 "スを B<getaddrinfo>()  が返してよいことを意味する。"
2649
2650 #. type: TP
2651 #: build/C/man3/getaddrinfo.3:164
2652 #, no-wrap
2653 msgid "I<ai_protocol>"
2654 msgstr "I<ai_protocol>"
2655
2656 #. type: Plain text
2657 #: build/C/man3/getaddrinfo.3:170
2658 msgid ""
2659 "This field specifies the protocol for the returned socket addresses.  "
2660 "Specifying 0 in this field indicates that socket addresses with any protocol "
2661 "can be returned by B<getaddrinfo>()."
2662 msgstr ""
2663 "このフィールドは返されるソケットアドレスのプロトコルを指定する。 このフィール"
2664 "ドに 0 を指定すると、任意のプロトコルののソケットアドレスを B<getaddrinfo>"
2665 "()  が返してよいことを意味する。"
2666
2667 #. type: TP
2668 #: build/C/man3/getaddrinfo.3:170
2669 #, no-wrap
2670 msgid "I<ai_flags>"
2671 msgstr "I<ai_flags>"
2672
2673 #. type: Plain text
2674 #: build/C/man3/getaddrinfo.3:174
2675 msgid ""
2676 "This field specifies additional options, described below.  Multiple flags "
2677 "are specified by bitwise OR-ing them together."
2678 msgstr ""
2679 "このフィールドは、追加のオプション (下記) を指定する。 複数のフラグを指定する"
2680 "際には、それらのビット単位の OR をとって指定する。"
2681
2682 #. type: Plain text
2683 #: build/C/man3/getaddrinfo.3:192
2684 msgid ""
2685 "All the other fields in the structure pointed to by I<hints> must contain "
2686 "either 0 or a NULL pointer, as appropriate.  Specifying I<hints> as NULL is "
2687 "equivalent to setting I<ai_socktype> and I<ai_protocol> to 0; I<ai_family> "
2688 "to B<AF_UNSPEC>; and I<ai_flags> to B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)>."
2689 msgstr ""
2690 "I<hints> が指し示す構造体の他のすべてのフィールドには 0 か NULL ポインタを適"
2691 "切に入れなければならない。 I<hints> に NULL を指定するのは、 I<ai_socktype> "
2692 "と I<ai_protocol> に 0 を、 I<ai_family> に B<AF_UNSPEC> を、 I<ai_flags> に "
2693 "B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)> を設定するのと等価である。"
2694
2695 #. type: Plain text
2696 #: build/C/man3/getaddrinfo.3:210
2697 msgid ""
2698 "I<node> specifies either a numerical network address (for IPv4, numbers-and-"
2699 "dots notation as supported by B<inet_aton>(3); for IPv6, hexadecimal string "
2700 "format as supported by B<inet_pton>(3)), or a network hostname, whose "
2701 "network addresses are looked up and resolved.  If I<hints.ai_flags> contains "
2702 "the B<AI_NUMERICHOST> flag then I<node> must be a numerical network "
2703 "address.  The B<AI_NUMERICHOST> flag suppresses any potentially lengthy "
2704 "network host address lookups."
2705 msgstr ""
2706 "I<node> には、数値形式のネットワークアドレス (IPv4 の場合は B<inet_aton>(3)  "
2707 "でサポートされているドット区切りの数字による表記、 IPv6 の場合は B<inet_pton>"
2708 "(3)  でサポートされている 16 進数の文字列形式) もしくは ネットワークホスト名"
2709 "を指定する。 ネットワークホスト名を指定した場合には、そのネットワークアドレス"
2710 "が検索され、 名前解決が行なわれる。 I<hints.ai_flags> に B<AI_NUMERICHOST> フ"
2711 "ラグが含まれている場合は、 I<node> は数値形式のネットワークアドレスでなければ"
2712 "ならない。 B<AI_NUMERICHOST> フラグを使うと、時間の掛かる可能性のあるネット"
2713 "ワークホストアドレスの検索は すべて抑制される。"
2714
2715 #. type: Plain text
2716 #: build/C/man3/getaddrinfo.3:235
2717 msgid ""
2718 "If the B<AI_PASSIVE> flag is specified in I<hints.ai_flags>, and I<node> is "
2719 "NULL, then the returned socket addresses will be suitable for B<bind>(2)ing "
2720 "a socket that will B<accept>(2)  connections.  The returned socket address "
2721 "will contain the \"wildcard address\" (B<INADDR_ANY> for IPv4 addresses, "
2722 "B<IN6ADDR_ANY_INIT> for IPv6 address).  The wildcard address is used by "
2723 "applications (typically servers)  that intend to accept connections on any "
2724 "of the hosts's network addresses.  If I<node> is not NULL, then the "
2725 "B<AI_PASSIVE> flag is ignored."
2726 msgstr ""
2727 "I<hints.ai_flags> に B<AI_PASSIVE> フラグが指定され、かつ I<node> が NULL の"
2728 "場合、 返されるソケットアドレスは コネクションを B<accept>(2)  するためのソ"
2729 "ケットを B<bind>(2)  するのに適したものとなる。 返されるソケットアドレスには"
2730 "「ワイルドカード・アドレス」 (IPv4 アドレスの場合は B<INADDR_ANY>、 IPv6 アド"
2731 "レスの場合は B<IN6ADDR_ANY_INIT>)  が入る。 ワイルドカード・アドレスは、任意"
2732 "のホストのネットワークアドレスで接続を 受け付けようとするアプリケーション (通"
2733 "常はサーバー) で用いられる。 I<node> が NULL でない場合、 B<AI_PASSIVE> フラ"
2734 "グは無視される。"
2735
2736 #. type: Plain text
2737 #: build/C/man3/getaddrinfo.3:255
2738 msgid ""
2739 "If the B<AI_PASSIVE> flag is not set in I<hints.ai_flags>, then the returned "
2740 "socket addresses will be suitable for use with B<connect>(2), B<sendto>(2), "
2741 "or B<sendmsg>(2).  If I<node> is NULL, then the network address will be set "
2742 "to the loopback interface address (B<INADDR_LOOPBACK> for IPv4 addresses, "
2743 "B<IN6ADDR_LOOPBACK_INIT> for IPv6 address); this is used by applications "
2744 "that intend to communicate with peers running on the same host."
2745 msgstr ""
2746 "I<hints.ai_flags> に B<AI_PASSIVE> フラグがセットされていない場合、 返される"
2747 "ソケットアドレスは B<connect>(2), B<sendto>(2), B<sendmsg>(2)  での使用に適し"
2748 "たものとなる。 I<node> が NULL の場合、ネットワークアドレスにはループバック・"
2749 "インターフェイスの アドレス (IPv4 アドレスの場合は B<INADDR_LOOPBACK> IPv6 ア"
2750 "ドレスの場合は B<IN6ADDR_LOOPBACK_INIT>)B<が設定される。> これは同じホスト上"
2751 "で動作している接続相手と通信するような アプリケーションで用いられる。"
2752
2753 #. type: Plain text
2754 #: build/C/man3/getaddrinfo.3:278
2755 msgid ""
2756 "I<service> sets the port in each returned address structure.  If this "
2757 "argument is a service name (see B<services>(5)), it is translated to the "
2758 "corresponding port number.  This argument can also be specified as a decimal "
2759 "number, which is simply converted to binary.  If I<service> is NULL, then "
2760 "the port number of the returned socket addresses will be left "
2761 "uninitialized.  If B<AI_NUMERICSERV> is specified in I<hints.ai_flags> and "
2762 "I<service> is not NULL, then I<service> must point to a string containing a "
2763 "numeric port number.  This flag is used to inhibit the invocation of a name "
2764 "resolution service in cases where it is known not to be required."
2765 msgstr ""
2766 "I<service> により、返される各アドレス構造体のポート番号が決まる。 この引き数"
2767 "がサービス名 (B<services>(5)  参照) の場合、対応するポート番号に翻訳される。 "
2768 "この引き数には 10 進数も指定することができ、 この場合にはバイナリへの変換だけ"
2769 "が行われる。 I<service> が NULL の場合、返されるソケットアドレスのポート番号"
2770 "は 初期化されないままとなる。 I<hints.ai_flags> に B<AI_NUMERICSERV> が指定さ"
2771 "れ、かつ I<service> が NULL でない場合、 I<service> は数値のポート番号を含む"
2772 "文字列を指し示さなければならない。 このフラグは、名前解決サービスが不要である"
2773 "ことが分かっている場合に、 サービスの起動を抑制するために用いられる。"
2774
2775 #. type: Plain text
2776 #: build/C/man3/getaddrinfo.3:284
2777 msgid "Either I<node> or I<service>, but not both, may be NULL."
2778 msgstr ""
2779 "I<node> と I<service> のどちらかは NULL にしてよいが、両方同時に NULL にして"
2780 "はならない。"
2781
2782 #. type: Plain text
2783 #: build/C/man3/getaddrinfo.3:300
2784 msgid ""
2785 "The B<getaddrinfo>()  function allocates and initializes a linked list of "
2786 "I<addrinfo> structures, one for each network address that matches I<node> "
2787 "and I<service>, subject to any restrictions imposed by I<hints>, and returns "
2788 "a pointer to the start of the list in I<res>.  The items in the linked list "
2789 "are linked by the I<ai_next> field."
2790 msgstr ""
2791 "B<getaddrinfo>()  関数は、 I<addrinfo> 構造体のメモリ確保を行い、 "
2792 "I<addrinfo> 構造体のリンクリストを初期化し、 I<res> にリストの先頭へのポイン"
2793 "タを入れて返す。 このとき、各構造体のネットワークアドレスは I<node> と "
2794 "I<service> に一致し、 I<hints> で課されたすべての制限を満たすものとなる。 リ"
2795 "ンクリストの要素は I<ai_next> フィールドにより連結される。"
2796
2797 #. type: Plain text
2798 #: build/C/man3/getaddrinfo.3:322
2799 msgid ""
2800 "There are several reasons why the linked list may have more than one "
2801 "I<addrinfo> structure, including: the network host is multihomed, accessible "
2802 "over multiple protocols (e.g. both B<AF_INET> and B<AF_INET6>); or the same "
2803 "service is available from multiple socket types (one B<SOCK_STREAM> address "
2804 "and another B<SOCK_DGRAM> address, for example).  Normally, the application "
2805 "should try using the addresses in the order in which they are returned.  The "
2806 "sorting function used within B<getaddrinfo>()  is defined in RFC\\ 3484; the "
2807 "order can be tweaked for a particular system by editing I</etc/gai.conf> "
2808 "(available since glibc 2.5)."
2809 msgstr ""
2810 "リンクリストの I<addrinfo> 構造体は複数個になることもあり、その理由はいくつか"
2811 "ある。 ネットワークホストがマルチホームである、 複数のプロトコルでアクセスで"
2812 "きる (例えば B<AF_INET> と B<AF_INET6> の両方) 、 複数のソケット種別で同じ"
2813 "サービスが利用できる (例えば、ひとつが B<SOCK_STREM> アドレスで、もうひとつ"
2814 "が B<SOCK_DGRAM> アドレスである)、がある。 通常は、アプリケーションは返された"
2815 "順序でアドレスを試すべきである。 B<getaddrinfo>()  の中で使用される並べ替え関"
2816 "数は RFC\\ 3484 で定義されている。 特殊なシステムでは、 I</etc/gai.conf> を編"
2817 "集することで、この順序を微調整することができる (I</etc/gai.conf> は glibc "
2818 "2.5 以降で利用できる)。"
2819
2820 #.  In glibc prior to 2.3.4, the ai_canonname of each addrinfo
2821 #.  structure was set pointing to the canonical name; that was
2822 #.  more than POSIX.1-2001 specified, or other implementations provided.
2823 #.  MTK, Aug 05
2824 #. type: Plain text
2825 #: build/C/man3/getaddrinfo.3:337
2826 msgid ""
2827 "If I<hints.ai_flags> includes the B<AI_CANONNAME> flag, then the "
2828 "I<ai_canonname> field of the first of the I<addrinfo> structures in the "
2829 "returned list is set to point to the official name of the host."
2830 msgstr ""
2831 "I<hints.ai_flags> に B<AI_CANONNAME> フラグが含まれている場合、返されるリスト"
2832 "の最初の I<addrinfo> 構造体の I<ai_canonname> フィールドはホストの公式な名前"
2833 "を指すように設定される。"
2834
2835 #. type: Plain text
2836 #: build/C/man3/getaddrinfo.3:341
2837 msgid ""
2838 "The remaining fields of each returned I<addrinfo> structure are initialized "
2839 "as follows:"
2840 msgstr ""
2841 "返される各々の I<addrinfo> 構造体の残りのフィールドは以下のように初期化され"
2842 "る。"
2843
2844 #. type: IP
2845 #: build/C/man3/getaddrinfo.3:341 build/C/man3/getaddrinfo.3:364
2846 #: build/C/man3/getaddrinfo_a.3:189 build/C/man3/getaddrinfo_a.3:193
2847 #: build/C/man3/getaddrinfo_a.3:195 build/C/man5/nsswitch.conf.5:139
2848 #: build/C/man5/nsswitch.conf.5:143 build/C/man7/unix.7:72
2849 #: build/C/man7/unix.7:87 build/C/man7/unix.7:107
2850 #, no-wrap
2851 msgid "*"
2852 msgstr "*"
2853
2854 #. type: Plain text
2855 #: build/C/man3/getaddrinfo.3:364
2856 msgid ""
2857 "The I<ai_family>, I<ai_socktype>, and I<ai_protocol> fields return the "
2858 "socket creation parameters (i.e., these fields have the same meaning as the "
2859 "corresponding arguments of B<socket>(2)).  For example, I<ai_family> might "
2860 "return B<AF_INET> or B<AF_INET6>; I<ai_socktype> might return B<SOCK_DGRAM> "
2861 "or B<SOCK_STREAM>; and I<ai_protocol> returns the protocol for the socket."
2862 msgstr ""
2863 "I<ai_family>, I<ai_socktype>, I<ai_protocol> フィールドはソケット生成パラメー"
2864 "タを返す (これらのフィールドの意味は B<socket>(2)  の同じ名前の引き数と同じで"
2865 "ある)。 例えば、 I<ai_family> は B<AF_INET> や B<AF_INET6> を返し、 "
2866 "I<ai_socktype> は B<SOCK_DGRAM> や B<SOCK_STREAM> を返し、 I<ai_protocol> は"
2867 "そのソケットのプロトコルを返す。"
2868
2869 #. type: Plain text
2870 #: build/C/man3/getaddrinfo.3:371
2871 msgid ""
2872 "A pointer to the socket address is placed in the I<ai_addr> field, and the "
2873 "length of the socket address, in bytes, is placed in the I<ai_addrlen> field."
2874 msgstr ""
2875 "I<ai_addr> フィールドにはソケットアドレスへのポインタが書き込まれ、 "
2876 "I<ai_addrlen> フィールドにはソケットアドレスの長さがバイト単位で書き込まれ"
2877 "る。"
2878
2879 #. type: Plain text
2880 #: build/C/man3/getaddrinfo.3:381
2881 msgid ""
2882 "If I<hints.ai_flags> includes the B<AI_ADDRCONFIG> flag, then IPv4 addresses "
2883 "are returned in the list pointed to by I<res> only if the local system has "
2884 "at least one IPv4 address configured, and IPv6 addresses are only returned "
2885 "if the local system has at least one IPv6 address configured."
2886 msgstr ""
2887 "I<hints.ai_flags> が B<AI_ADDRCONFIG> を含む場合、 I<res> が指すリストには、 "
2888 "ローカルシステムに最低一つの IPv4 アドレスが設定されている場合は IPv4 アドレ"
2889 "スが返され、 ローカルシステムに最低一つの IPv6 アドレスが設定されている場合"
2890 "は IPv6 アドレスが返される。"
2891
2892 #. type: Plain text
2893 #: build/C/man3/getaddrinfo.3:406
2894 msgid ""
2895 "If I<hint.ai_flags> specifies the B<AI_V4MAPPED> flag, and I<hints."
2896 "ai_family> was specified as B<AF_INET6>, and no matching IPv6 addresses "
2897 "could be found, then return IPv4-mapped IPv6 addresses in the list pointed "
2898 "to by I<res>.  If both B<AI_V4MAPPED> and B<AI_ALL> are specified in I<hints."
2899 "ai_flags>, then return both IPv6 and IPv4-mapped IPv6 addresses in the list "
2900 "pointed to by I<res>.  B<AI_ALL> is ignored if B<AI_V4MAPPED> is not also "
2901 "specified."
2902 msgstr ""
2903 "I<hint.ai_flags> に B<AI_V4MAPPED> が指定されていて、 I<hints.ai_family> に "
2904 "B<AF_INET6> が指定され、 マッチする IPv6 アドレスが見つからなかった場合、 "
2905 "I<res> が指すリストには IPv4-mapped IPv6 アドレスが返される。 I<hints."
2906 "ai_flags> に B<AI_V4MAPPED> と B<AI_ALL> の両方が指定されている場合、 I<res> "
2907 "が指すリストには IPv6 アドレスと IPv4-mapped IPv6 アドレスの 両方が返され"
2908 "る。 B<AI_V4MAPPED> が指定されていない場合、 B<AI_ALL> は無視される。"
2909
2910 #. type: Plain text
2911 #: build/C/man3/getaddrinfo.3:412
2912 msgid ""
2913 "The B<freeaddrinfo>()  function frees the memory that was allocated for the "
2914 "dynamically allocated linked list I<res>."
2915 msgstr ""
2916 "B<freeaddrinfo>()  関数は、 リンクリスト I<res> に対して動的に割り当てられた"
2917 "メモリを解放する。"
2918
2919 #. type: SS
2920 #: build/C/man3/getaddrinfo.3:412 build/C/man3/getnameinfo.3:114
2921 #, no-wrap
2922 msgid "Extensions to getaddrinfo() for Internationalized Domain Names"
2923 msgstr "国際化ドメイン名のための getaddrinfo() の拡張"
2924
2925 #. type: Plain text
2926 #: build/C/man3/getaddrinfo.3:421
2927 msgid ""
2928 "Starting with glibc 2.3.4, B<getaddrinfo>()  has been extended to "
2929 "selectively allow the incoming and outgoing hostnames to be transparently "
2930 "converted to and from the Internationalized Domain Name (IDN) format (see "
2931 "RFC 3490, I<Internationalizing Domain Names in Applications (IDNA)>).  Four "
2932 "new flags are defined:"
2933 msgstr ""
2934 "glibc 2.3.4 から、 B<getaddrinfo>()  は入出力するホスト名を透過的に国際化ドメ"
2935 "イン名 (IDN) 形式 (RFC 3490 の I<Internationalizing Domain Names in "
2936 "Applications (IDNA)> を参照のこと) と変換することを選択的に認めるように拡張さ"
2937 "れている。 4 つの新しいフラグが定義されている:"
2938
2939 #. type: TP
2940 #: build/C/man3/getaddrinfo.3:421
2941 #, no-wrap
2942 msgid "B<AI_IDN>"
2943 msgstr "B<AI_IDN>"
2944
2945 #. type: Plain text
2946 #: build/C/man3/getaddrinfo.3:427
2947 msgid ""
2948 "If this flag is specified, then the node name given in I<node> is converted "
2949 "to IDN format if necessary.  The source encoding is that of the current "
2950 "locale."
2951 msgstr ""
2952 "このフラグが指定されると、 I<node> で与えられたノード名は必要があれば IDN 形"
2953 "式に変換される。 ソース符号化形式は現在のロケールのものである。"
2954
2955 #.  Implementation Detail:
2956 #.  To minimize effects on system performance the implementation might
2957 #.  want to check whether the input string contains any non-ASCII
2958 #.  characters.  If there are none the IDN step can be skipped completely.
2959 #.  On systems which allow not-ASCII safe encodings for a locale this
2960 #.  might be a problem.
2961 #. type: Plain text
2962 #: build/C/man3/getaddrinfo.3:439
2963 msgid ""
2964 "If the input name contains non-ASCII characters, then the IDN encoding is "
2965 "used.  Those parts of the node name (delimited by dots) that contain non-"
2966 "ASCII characters are encoded using ASCII Compatible Encoding (ACE)  before "
2967 "being passed to the name resolution functions."
2968 msgstr ""
2969 "入力名に非 ASCII 文字が含まれている場合、 IDN 符号化形式が使われる。 非 "
2970 "ASCII 文字が含まれている(ピリオドで区切られる)部分ノード名は、 名前解決機能に"
2971 "渡される前に ASCII 互換符号化形式 (ACE) を使って 符号化される。"
2972
2973 #. type: TP
2974 #: build/C/man3/getaddrinfo.3:439
2975 #, no-wrap
2976 msgid "B<AI_CANONIDN>"
2977 msgstr "B<AI_CANONIDN>"
2978
2979 #. type: Plain text
2980 #: build/C/man3/getaddrinfo.3:451
2981 msgid ""
2982 "After a successful name lookup, and if the B<AI_CANONNAME> flag was "
2983 "specified, B<getaddrinfo>()  will return the canonical name of the node "
2984 "corresponding to the I<addrinfo> structure value passed back.  The return "
2985 "value is an exact copy of the value returned by the name resolution function."
2986 msgstr ""
2987 "B<AI_CANONNAME> が指定されている場合、 B<getaddrinfo>()  は名前の検索に成功し"
2988 "た後、 返された I<addrinfo> 構造体に対応するノードの正規名を返す。 返り値は名"
2989 "前解決機能から返された値の正確なコピーである。"
2990
2991 #. Implementation Detail:
2992 #. If no component of the returned name starts with xn\-\- the IDN
2993 #. step can be skipped, therefore avoiding unnecessary slowdowns.
2994 #. type: Plain text
2995 #: build/C/man3/getaddrinfo.3:464
2996 msgid ""
2997 "If the name is encoded using ACE, then it will contain the I<xn--> prefix "
2998 "for one or more components of the name.  To convert these components into a "
2999 "readable form the B<AI_CANONIDN> flag can be passed in addition to "
3000 "B<AI_CANONNAME>.  The resulting string is encoded using the current locale's "
3001 "encoding."
3002 msgstr ""
3003 "B<AI_CANONIDN> 名前が ACE で符号化されている場合、一つまたは複数の名前の構成"
3004 "要素の先頭に I<xn--> を含んでいる。 これらの構成要素を読み込み可能な形に変換"
3005 "するために、 B<AI_CANONNAME> と共に B<AI_CANONIDN> フラグを渡すことも出来"
3006 "る。 返される文字列は現在のロケールの符号化形式で符号化されている。"
3007
3008 #. type: TP
3009 #: build/C/man3/getaddrinfo.3:464
3010 #, no-wrap
3011 msgid "B<AI_IDN_ALLOW_UNASSIGNED>, B<AI_IDN_USE_STD3_ASCII_RULES>"
3012 msgstr "B<AI_IDN_ALLOW_UNASSIGNED>, B<AI_IDN_USE_STD3_ASCII_RULES>"
3013
3014 #. type: Plain text
3015 #: build/C/man3/getaddrinfo.3:471 build/C/man3/getnameinfo.3:136
3016 msgid ""
3017 "Setting these flags will enable the IDNA_ALLOW_UNASSIGNED (allow unassigned "
3018 "Unicode code points) and IDNA_USE_STD3_ASCII_RULES (check output to make "
3019 "sure it is a STD3 conforming hostname)  flags respectively to be used in the "
3020 "IDNA handling."
3021 msgstr ""
3022 "これらのフラグをセットすると、IDNA 処理で使用されるフラグ "
3023 "IDNA_ALLOW_UNASSIGNED (未割り当ての Unicode のコードポイントを許容) と "
3024 "IDNA_USE_STD3_ASCII_RULES (出力が STD3 準拠のホスト名かをチェックする)  がそ"
3025 "れぞれ有効になる。"
3026
3027 #. type: SH
3028 #: build/C/man3/getaddrinfo.3:471 build/C/man3/getaddrinfo_a.3:240
3029 #: build/C/man3/gethostbyname.3:264 build/C/man3/getipnodebyname.3:184
3030 #: build/C/man3/getnameinfo.3:136 build/C/man3/getnetent.3:111
3031 #: build/C/man3/getnetent_r.3:116 build/C/man2/getpeername.2:66
3032 #: build/C/man3/getprotoent.3:105 build/C/man3/getprotoent_r.3:106
3033 #: build/C/man3/getservent.3:116 build/C/man3/getservent_r.3:105
3034 #: build/C/man3/inet_ntop.3:81 build/C/man3/inet_pton.3:114
3035 #: build/C/man3/rcmd.3:237 build/C/man3/resolver.3:237
3036 #: build/C/man3/setnetgrent.3:81 build/C/man2/shutdown.2:67
3037 #, no-wrap
3038 msgid "RETURN VALUE"
3039 msgstr "返り値"
3040
3041 #.  FIXME glibc defines the following additional errors, some which
3042 #.  can probably be returned by getaddrinfo(); they need to
3043 #.  be documented.
3044 #.  #ifdef __USE_GNU
3045 #.  #define EAI_INPROGRESS  -100  /* Processing request in progress.  */
3046 #.  #define EAI_CANCELED    -101  /* Request canceled.  */
3047 #.  #define EAI_NOTCANCELED -102  /* Request not canceled.  */
3048 #.  #define EAI_ALLDONE     -103  /* All requests done.  */
3049 #.  #define EAI_INTR        -104  /* Interrupted by a signal.  */
3050 #.  #define EAI_IDN_ENCODE  -105  /* IDN encoding failed.  */
3051 #.  #endif
3052 #. type: Plain text
3053 #: build/C/man3/getaddrinfo.3:485
3054 msgid ""
3055 "B<getaddrinfo>()  returns 0 if it succeeds, or one of the following nonzero "
3056 "error codes:"
3057 msgstr ""
3058 "B<getaddrinfo>()  は成功すると 0 を返し、失敗すると以下の非 0 のエラーコード"
3059 "のいずれかを返す。"
3060
3061 #. type: TP
3062 #: build/C/man3/getaddrinfo.3:485
3063 #, no-wrap
3064 msgid "B<EAI_ADDRFAMILY>"
3065 msgstr "B<EAI_ADDRFAMILY>"
3066
3067 #.  Not in SUSv3
3068 #. type: Plain text
3069 #: build/C/man3/getaddrinfo.3:490
3070 msgid ""
3071 "The specified network host does not have any network addresses in the "
3072 "requested address family."
3073 msgstr ""
3074 "指定されたネットワークホストには、 要求されたアドレスファミリーのネットワーク"
3075 "アドレスがない。"
3076
3077 #. type: TP
3078 #: build/C/man3/getaddrinfo.3:490 build/C/man3/getaddrinfo_a.3:245
3079 #: build/C/man3/getaddrinfo_a.3:262 build/C/man3/getnameinfo.3:152
3080 #, no-wrap
3081 msgid "B<EAI_AGAIN>"
3082 msgstr "B<EAI_AGAIN>"
3083
3084 #. type: Plain text
3085 #: build/C/man3/getaddrinfo.3:494
3086 msgid ""
3087 "The name server returned a temporary failure indication.  Try again later."
3088 msgstr ""
3089 "ネームサーバーから一時的な失敗 (temporary failure)  を意味する返事が返され"
3090 "た。後でもう一度試してみよ。"
3091
3092 #. type: TP
3093 #: build/C/man3/getaddrinfo.3:494 build/C/man3/getnameinfo.3:156
3094 #, no-wrap
3095 msgid "B<EAI_BADFLAGS>"
3096 msgstr "B<EAI_BADFLAGS>"
3097
3098 #. type: Plain text
3099 #: build/C/man3/getaddrinfo.3:504
3100 msgid ""
3101 "I<hints.ai_flags> contains invalid flags; or, I<hints.ai_flags> included "
3102 "B<AI_CANONNAME> and I<name> was NULL."
3103 msgstr ""
3104 "I<hints.ai_flags> のフラグに不正なフラグが含まれている。または、 I<hints."
3105 "ai_flags> に B<AI_CANONNAME> が含まれていて、かつ I<name> が NULL であった。"
3106
3107 #. type: TP
3108 #: build/C/man3/getaddrinfo.3:504 build/C/man3/getnameinfo.3:161
3109 #, no-wrap
3110 msgid "B<EAI_FAIL>"
3111 msgstr "B<EAI_FAIL>"
3112
3113 #. type: Plain text
3114 #: build/C/man3/getaddrinfo.3:507
3115 msgid "The name server returned a permanent failure indication."
3116 msgstr ""
3117 "ネームサーバーから恒久的な失敗 (permanent failure)  を意味する返事が返され"
3118 "た。"
3119
3120 #. type: TP
3121 #: build/C/man3/getaddrinfo.3:507 build/C/man3/getnameinfo.3:164
3122 #, no-wrap
3123 msgid "B<EAI_FAMILY>"
3124 msgstr "B<EAI_FAMILY>"
3125
3126 #. type: Plain text
3127 #: build/C/man3/getaddrinfo.3:510
3128 msgid "The requested address family is not supported."
3129 msgstr "要求されたアドレスファミリーがサポートされていない。"
3130
3131 #. type: TP
3132 #: build/C/man3/getaddrinfo.3:510 build/C/man3/getaddrinfo_a.3:250
3133 #: build/C/man3/getnameinfo.3:168
3134 #, no-wrap
3135 msgid "B<EAI_MEMORY>"
3136 msgstr "B<EAI_MEMORY>"
3137
3138 #. type: Plain text
3139 #: build/C/man3/getaddrinfo.3:513 build/C/man3/getaddrinfo_a.3:253
3140 #: build/C/man3/getnameinfo.3:171 build/C/man7/unix.7:357
3141 msgid "Out of memory."
3142 msgstr "メモリが足りない。"
3143
3144 #. type: TP
3145 #: build/C/man3/getaddrinfo.3:513
3146 #, no-wrap
3147 msgid "B<EAI_NODATA>"
3148 msgstr "B<EAI_NODATA>"
3149
3150 #.  Not in SUSv3
3151 #. type: Plain text
3152 #: build/C/man3/getaddrinfo.3:518
3153 msgid ""
3154 "The specified network host exists, but does not have any network addresses "
3155 "defined."
3156 msgstr ""
3157 "指定されたネットワークホストは存在するが、 ネットワークアドレスがひとつも定義"
3158 "されていない。"
3159
3160 #. type: TP
3161 #: build/C/man3/getaddrinfo.3:518 build/C/man3/getnameinfo.3:171
3162 #, no-wrap
3163 msgid "B<EAI_NONAME>"
3164 msgstr "B<EAI_NONAME>"
3165
3166 #. type: Plain text
3167 #: build/C/man3/getaddrinfo.3:535
3168 msgid ""
3169 "The I<node> or I<service> is not known; or both I<node> and I<service> are "
3170 "NULL; or B<AI_NUMERICSERV> was specified in I<hints.ai_flags> and I<service> "
3171 "was not a numeric port-number string."
3172 msgstr ""
3173 "I<node> と I<service> のどちらかが不明、または I<node> と I<service> の両方"
3174 "が NULL だった場合、または B<AI_NUMERICSERV> が I<hints.ai_flags> に指定され"
3175 "ていて、 I<hints.ai_flags> と I<service> が数値のポート番号の文字列でない。"
3176
3177 #. type: TP
3178 #: build/C/man3/getaddrinfo.3:535
3179 #, no-wrap
3180 msgid "B<EAI_SERVICE>"
3181 msgstr "B<EAI_SERVICE>"
3182
3183 #. type: Plain text
3184 #: build/C/man3/getaddrinfo.3:556
3185 msgid ""
3186 "The requested service is not available for the requested socket type.  It "
3187 "may be available through another socket type.  For example, this error could "
3188 "occur if I<service> was \"shell\" (a service only available on stream "
3189 "sockets), and either I<hints.ai_protocol> was B<IPPROTO_UDP>, or I<hints."
3190 "ai_socktype> was B<SOCK_DGRAM>; or the error could occur if I<service> was "
3191 "not NULL, and I<hints.ai_socktype> was B<SOCK_RAW> (a socket type that does "
3192 "not support the concept of services)."
3193 msgstr ""
3194 "要求されたサービスは、要求されたソケットタイプでは利用できない。 他のソケット"
3195 "タイプでなら利用可能かもしれない。 このエラーが発生する例としては、 "
3196 "I<service> が \"shell\" (ストリーム・ソケットでのみ利用できるサービス) で、 "
3197 "I<hints.ai_protocol> に B<IPPROTO_UDP> が指定されたり、 I<hints.ai_socktype> "
3198 "に B<SOCK_DGRAM> が指定されたりした場合がある。 また、 I<service> が NULL 以"
3199 "外で、 I<hints.ai_socktype> に B<SOCK_RAW> (サービスの考え方をサポートしてい"
3200 "ないソケット種別)  が指定された場合にも、このエラーが発生する。"
3201
3202 #. type: TP
3203 #: build/C/man3/getaddrinfo.3:556
3204 #, no-wrap
3205 msgid "B<EAI_SOCKTYPE>"
3206 msgstr "B<EAI_SOCKTYPE>"
3207
3208 #. type: Plain text
3209 #: build/C/man3/getaddrinfo.3:568
3210 msgid ""
3211 "The requested socket type is not supported.  This could occur, for example, "
3212 "if I<hints.ai_socktype> and I<hints.ai_protocol> are inconsistent (e.g., "
3213 "B<SOCK_DGRAM> and B<IPPROTO_TCP>, respectively)."
3214 msgstr ""
3215 "要求されたソケットタイプがサポートされていない。 このエラーが発生する例として"
3216 "は、 I<hints.ai_socktype> と I<hints.ai_protocol> が矛盾している場合 (例えば "
3217 "I<hints.ai_socktype> が B<SOCK_DGRAM> で I<hints.ai_protocol> が "
3218 "B<IPPROTO_TCP>)  がある。"
3219
3220 #. type: TP
3221 #: build/C/man3/getaddrinfo.3:568 build/C/man3/getaddrinfo_a.3:253
3222 #: build/C/man3/getnameinfo.3:184
3223 #, no-wrap
3224 msgid "B<EAI_SYSTEM>"
3225 msgstr "B<EAI_SYSTEM>"
3226
3227 #. type: Plain text
3228 #: build/C/man3/getaddrinfo.3:573
3229 msgid "Other system error, check I<errno> for details."
3230 msgstr "その他のシステムエラー。詳しくは I<errno> を調べること。"
3231
3232 #. type: Plain text
3233 #: build/C/man3/getaddrinfo.3:578
3234 msgid ""
3235 "The B<gai_strerror>()  function translates these error codes to a human "
3236 "readable string, suitable for error reporting."
3237 msgstr ""
3238 "B<gai_strerror>()  関数を用いると、これらのエラーコードを人間に可読な文字列に"
3239 "変換できるので、 エラー報告に適するだろう。"
3240
3241 #. type: SH
3242 #: build/C/man3/getaddrinfo.3:578 build/C/man3/gethostbyname.3:291
3243 #: build/C/man3/getnameinfo.3:194 build/C/man3/getnetent.3:120
3244 #: build/C/man3/getprotoent.3:114 build/C/man3/getservent.3:125
3245 #: build/C/man5/host.conf.5:180 build/C/man5/hosts.5:86
3246 #: build/C/man5/hosts.equiv.5:47 build/C/man5/networks.5:69
3247 #: build/C/man5/nsswitch.conf.5:286 build/C/man5/protocols.5:76
3248 #: build/C/man5/resolv.conf.5:270 build/C/man3/resolver.3:259
3249 #: build/C/man5/services.5:184 build/C/man3/setnetgrent.3:83
3250 #: build/C/man7/udplite.7:136
3251 #, no-wrap
3252 msgid "FILES"
3253 msgstr "ファイル"
3254
3255 #. type: Plain text
3256 #: build/C/man3/getaddrinfo.3:580
3257 msgid "I</etc/gai.conf>"
3258 msgstr "I</etc/gai.conf>"
3259
3260 #. type: Plain text
3261 #: build/C/man3/getaddrinfo.3:585
3262 msgid ""
3263 "POSIX.1-2001.  The B<getaddrinfo>()  function is documented in RFC\\ 2553."
3264 msgstr "POSIX.1-2001.  B<getaddrinfo>()  関数は RFC 2553 に記載されている。"
3265
3266 #. type: Plain text
3267 #: build/C/man3/getaddrinfo.3:590
3268 msgid ""
3269 "B<getaddrinfo>()  supports the I<address>B<%>I<scope-id> notation for "
3270 "specifying the IPv6 scope-ID."
3271 msgstr ""
3272 "B<getaddrinfo>()  は、IPv6 scope-ID を指定するために I<address>B<%>I<scope-"
3273 "id> 記法をサポートしている。"
3274
3275 #. type: Plain text
3276 #: build/C/man3/getaddrinfo.3:598
3277 msgid ""
3278 "B<AI_ADDRCONFIG>, B<AI_ALL>, and B<AI_V4MAPPED> are available since glibc "
3279 "2.3.3.  B<AI_NUMERICSERV> is available since glibc 2.3.4."
3280 msgstr ""
3281 "B<AI_ADDRCONFIG>, B<AI_ALL>, B<AI_V4MAPPED> は glibc 2.3.3 以降で利用可能であ"
3282 "る。 B<AI_NUMERICSERV> は glibc 2.3.4 以降で利用可能である。"
3283
3284 #. type: Plain text
3285 #: build/C/man3/getaddrinfo.3:608
3286 msgid ""
3287 "According to POSIX.1-2001, specifying I<hints> as NULL should cause "
3288 "I<ai_flags> to be assumed as 0.  The GNU C library instead assumes a value "
3289 "of B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)> for this case, since this value is "
3290 "considered an improvement on the specification."
3291 msgstr ""
3292 "POSIX.1-2001 によると、 I<hints> に NULL が指定された場合、 I<ai_flags> を 0 "
3293 "とみなすべきとされている。 GNU C ライブラリでは、この場合に、代わりに "
3294 "I<ai_flags> を B<(AI_V4MAPPED\\ |\\ AI_ADDRCONFIG)> とみなすようになってい"
3295 "る。 この値の方が標準規格の改善になると考えられているからである。"
3296
3297 #.  getnameinfo.3 refers to this example
3298 #.  socket.2 refers to this example
3299 #.  bind.2 refers to this example
3300 #.  connect.2 refers to this example
3301 #.  recvfrom.2 refers to this example
3302 #.  sendto.2 refers to this example
3303 #. type: Plain text
3304 #: build/C/man3/getaddrinfo.3:622
3305 msgid ""
3306 "The following programs demonstrate the use of B<getaddrinfo>(), "
3307 "B<gai_strerror>(), B<freeaddrinfo>(), and B<getnameinfo>(3).  The programs "
3308 "are an echo server and client for UDP datagrams."
3309 msgstr ""
3310 "以下のプログラムは、 B<getaddrinfo>(), B<gai_strerror>(), B<freeaddrinfo>(), "
3311 "B<getnameinfo>(3)  の使い方を示したものである。 プログラムは UDP データグラム"
3312 "の echo サーバとクライアントである。"
3313
3314 #. type: SS
3315 #: build/C/man3/getaddrinfo.3:622
3316 #, no-wrap
3317 msgid "Server program"
3318 msgstr "サーバのプログラム"
3319
3320 #. type: Plain text
3321 #: build/C/man3/getaddrinfo.3:632
3322 #, no-wrap
3323 msgid ""
3324 "#include E<lt>sys/types.hE<gt>\n"
3325 "#include E<lt>stdio.hE<gt>\n"
3326 "#include E<lt>stdlib.hE<gt>\n"
3327 "#include E<lt>unistd.hE<gt>\n"
3328 "#include E<lt>string.hE<gt>\n"
3329 "#include E<lt>sys/socket.hE<gt>\n"
3330 "#include E<lt>netdb.hE<gt>\n"
3331 msgstr ""
3332 "#include E<lt>sys/types.hE<gt>\n"
3333 "#include E<lt>stdio.hE<gt>\n"
3334 "#include E<lt>stdlib.hE<gt>  \n"
3335 "#include E<lt>unistd.hE<gt>\n"
3336 "#include E<lt>string.hE<gt>\n"
3337 "#include E<lt>sys/socket.hE<gt>\n"
3338 "#include E<lt>netdb.hE<gt>\n"
3339
3340 #. type: Plain text
3341 #: build/C/man3/getaddrinfo.3:634 build/C/man3/getaddrinfo.3:729
3342 #, no-wrap
3343 msgid "#define BUF_SIZE 500\n"
3344 msgstr "#define BUF_SIZE 500\n"
3345
3346 #. type: Plain text
3347 #: build/C/man3/getaddrinfo.3:645
3348 #, no-wrap
3349 msgid ""
3350 "int\n"
3351 "main(int argc, char *argv[])\n"
3352 "{\n"
3353 "    struct addrinfo hints;\n"
3354 "    struct addrinfo *result, *rp;\n"
3355 "    int sfd, s;\n"
3356 "    struct sockaddr_storage peer_addr;\n"
3357 "    socklen_t peer_addr_len;\n"
3358 "    ssize_t nread;\n"
3359 "    char buf[BUF_SIZE];\n"
3360 msgstr ""
3361 "int\n"
3362 "main(int argc, char *argv[])\n"
3363 "{\n"
3364 "    struct addrinfo hints;\n"
3365 "    struct addrinfo *result, *rp;\n"
3366 "    int sfd, s;\n"
3367 "    struct sockaddr_storage peer_addr;\n"
3368 "    socklen_t peer_addr_len;\n"
3369 "    ssize_t nread;\n"
3370 "    char buf[BUF_SIZE];\n"
3371
3372 #. type: Plain text
3373 #: build/C/man3/getaddrinfo.3:650
3374 #, no-wrap
3375 msgid ""
3376 "    if (argc != 2) {\n"
3377 "        fprintf(stderr, \"Usage: %s port\\en\", argv[0]);\n"
3378 "        exit(EXIT_FAILURE);\n"
3379 "    }\n"
3380 msgstr ""
3381 "    if (argc != 2) {\n"
3382 "        fprintf(stderr, \"Usage: %s port\\en\", argv[0]);\n"
3383 "        exit(EXIT_FAILURE);\n"
3384 "    }\n"
3385
3386 #. type: Plain text
3387 #: build/C/man3/getaddrinfo.3:659
3388 #, no-wrap
3389 msgid ""
3390 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
3391 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
3392 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
3393 "    hints.ai_flags = AI_PASSIVE;    /* For wildcard IP address */\n"
3394 "    hints.ai_protocol = 0;          /* Any protocol */\n"
3395 "    hints.ai_canonname = NULL;\n"
3396 "    hints.ai_addr = NULL;\n"
3397 "    hints.ai_next = NULL;\n"
3398 msgstr ""
3399 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
3400 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
3401 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
3402 "    hints.ai_flags = AI_PASSIVE;    /* For wildcard IP address */\n"
3403 "    hints.ai_protocol = 0;          /* Any protocol */\n"
3404 "    hints.ai_canonname = NULL;\n"
3405 "    hints.ai_addr = NULL;\n"
3406 "    hints.ai_next = NULL;\n"
3407
3408 #. type: Plain text
3409 #: build/C/man3/getaddrinfo.3:665
3410 #, no-wrap
3411 msgid ""
3412 "    s = getaddrinfo(NULL, argv[1], &hints, &result);\n"
3413 "    if (s != 0) {\n"
3414 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
3415 "        exit(EXIT_FAILURE);\n"
3416 "    }\n"
3417 msgstr ""
3418 "    s = getaddrinfo(NULL, argv[1], &hints, &result);\n"
3419 "    if (s != 0) {\n"
3420 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
3421 "        exit(EXIT_FAILURE);\n"
3422 "    }\n"
3423
3424 #. type: Plain text
3425 #: build/C/man3/getaddrinfo.3:670
3426 #, no-wrap
3427 msgid ""
3428 "    /* getaddrinfo() returns a list of address structures.\n"
3429 "       Try each address until we successfully bind(2).\n"
3430 "       If socket(2) (or bind(2)) fails, we (close the socket\n"
3431 "       and) try the next address. */\n"
3432 msgstr ""
3433 "    /* getaddrinfo() returns a list of address structures.\n"
3434 "       Try each address until we successfully bind(2).\n"
3435 "       If socket(2) (or bind(2)) fails, we (close the socket\n"
3436 "       and) try the next address. */\n"
3437
3438 #. type: Plain text
3439 #: build/C/man3/getaddrinfo.3:676
3440 #, no-wrap
3441 msgid ""
3442 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
3443 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n"
3444 "                rp-E<gt>ai_protocol);\n"
3445 "        if (sfd == -1)\n"
3446 "            continue;\n"
3447 msgstr ""
3448 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
3449 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype, \n"
3450 "                rp-E<gt>ai_protocol);\n"
3451 "        if (sfd == -1)\n"
3452 "            continue;\n"
3453
3454 #. type: Plain text
3455 #: build/C/man3/getaddrinfo.3:679
3456 #, no-wrap
3457 msgid ""
3458 "        if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n"
3459 "            break;                  /* Success */\n"
3460 msgstr ""
3461 "        if (bind(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) == 0)\n"
3462 "            break;                  /* Success */\n"
3463
3464 #. type: Plain text
3465 #: build/C/man3/getaddrinfo.3:682 build/C/man3/getaddrinfo.3:775
3466 #, no-wrap
3467 msgid ""
3468 "        close(sfd);\n"
3469 "    }\n"
3470 msgstr ""
3471 "        close(sfd);\n"
3472 "    }\n"
3473
3474 #. type: Plain text
3475 #: build/C/man3/getaddrinfo.3:687
3476 #, no-wrap
3477 msgid ""
3478 "    if (rp == NULL) {               /* No address succeeded */\n"
3479 "        fprintf(stderr, \"Could not bind\\en\");\n"
3480 "        exit(EXIT_FAILURE);\n"
3481 "    }\n"
3482 msgstr ""
3483 "    if (rp == NULL) {               /* No address succeeded */\n"
3484 "        fprintf(stderr, \"Could not bind\\en\");\n"
3485 "        exit(EXIT_FAILURE);\n"
3486 "    }\n"
3487
3488 #. type: Plain text
3489 #: build/C/man3/getaddrinfo.3:689 build/C/man3/getaddrinfo.3:782
3490 #, no-wrap
3491 msgid "    freeaddrinfo(result);           /* No longer needed */\n"
3492 msgstr "    freeaddrinfo(result);           /* No longer needed */\n"
3493
3494 #. type: Plain text
3495 #: build/C/man3/getaddrinfo.3:691
3496 #, no-wrap
3497 msgid "    /* Read datagrams and echo them back to sender */\n"
3498 msgstr "    /* Read datagrams and echo them back to sender */\n"
3499
3500 #. type: Plain text
3501 #: build/C/man3/getaddrinfo.3:698
3502 #, no-wrap
3503 msgid ""
3504 "    for (;;) {\n"
3505 "        peer_addr_len = sizeof(struct sockaddr_storage);\n"
3506 "        nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n"
3507 "                (struct sockaddr *) &peer_addr, &peer_addr_len);\n"
3508 "        if (nread == -1)\n"
3509 "            continue;               /* Ignore failed request */\n"
3510 msgstr ""
3511 "    for (;;) {\n"
3512 "        peer_addr_len = sizeof(struct sockaddr_storage);\n"
3513 "        nread = recvfrom(sfd, buf, BUF_SIZE, 0,\n"
3514 "                (struct sockaddr *) &peer_addr, &peer_addr_len);\n"
3515 "        if (nread == -1)\n"
3516 "            continue;               /* Ignore failed request */\n"
3517
3518 #. type: Plain text
3519 #: build/C/man3/getaddrinfo.3:700
3520 #, no-wrap
3521 msgid "        char host[NI_MAXHOST], service[NI_MAXSERV];\n"
3522 msgstr "        char host[NI_MAXHOST], service[NI_MAXSERV];\n"
3523
3524 #. type: Plain text
3525 #: build/C/man3/getaddrinfo.3:709
3526 #, no-wrap
3527 msgid ""
3528 "        s = getnameinfo((struct sockaddr *) &peer_addr,\n"
3529 "                        peer_addr_len, host, NI_MAXHOST,\n"
3530 "                        service, NI_MAXSERV, NI_NUMERICSERV);\n"
3531 "       if (s == 0)\n"
3532 "            printf(\"Received %ld bytes from %s:%s\\en\",\n"
3533 "                    (long) nread, host, service);\n"
3534 "        else\n"
3535 "            fprintf(stderr, \"getnameinfo: %s\\en\", gai_strerror(s));\n"
3536 msgstr ""
3537 "        s = getnameinfo((struct sockaddr *) &peer_addr,\n"
3538 "                        peer_addr_len, host, NI_MAXHOST,\n"
3539 "                        service, NI_MAXSERV, NI_NUMERICSERV);\n"
3540 "       if (s == 0)\n"
3541 "            printf(\"Received %ld bytes from %s:%s\\en\",\n"
3542 "                    (long) nread, host, service);\n"
3543 "        else\n"
3544 "            fprintf(stderr, \"getnameinfo: %s\\en\", gai_strerror(s));\n"
3545
3546 #. type: Plain text
3547 #: build/C/man3/getaddrinfo.3:716
3548 #, no-wrap
3549 msgid ""
3550 "        if (sendto(sfd, buf, nread, 0,\n"
3551 "                    (struct sockaddr *) &peer_addr,\n"
3552 "                    peer_addr_len) != nread)\n"
3553 "            fprintf(stderr, \"Error sending response\\en\");\n"
3554 "    }\n"
3555 "}\n"
3556 msgstr ""
3557 "        if (sendto(sfd, buf, nread, 0,\n"
3558 "                    (struct sockaddr *) &peer_addr,\n"
3559 "                    peer_addr_len) != nread)\n"
3560 "            fprintf(stderr, \"Error sending response\\en\");\n"
3561 "    }\n"
3562 "}\n"
3563
3564 #. type: SS
3565 #: build/C/man3/getaddrinfo.3:717
3566 #, no-wrap
3567 msgid "Client program"
3568 msgstr "クライアントのプログラム"
3569
3570 #. type: Plain text
3571 #: build/C/man3/getaddrinfo.3:727
3572 #, no-wrap
3573 msgid ""
3574 "#include E<lt>sys/types.hE<gt>\n"
3575 "#include E<lt>sys/socket.hE<gt>\n"
3576 "#include E<lt>netdb.hE<gt>\n"
3577 "#include E<lt>stdio.hE<gt>\n"
3578 "#include E<lt>stdlib.hE<gt>\n"
3579 "#include E<lt>unistd.hE<gt>\n"
3580 "#include E<lt>string.hE<gt>\n"
3581 msgstr ""
3582 "#include E<lt>sys/types.hE<gt>\n"
3583 "#include E<lt>sys/socket.hE<gt>\n"
3584 "#include E<lt>netdb.hE<gt>\n"
3585 "#include E<lt>stdio.hE<gt>\n"
3586 "#include E<lt>stdlib.hE<gt>\n"
3587 "#include E<lt>unistd.hE<gt>\n"
3588 "#include E<lt>string.hE<gt>\n"
3589
3590 #. type: Plain text
3591 #: build/C/man3/getaddrinfo.3:739
3592 #, no-wrap
3593 msgid ""
3594 "int\n"
3595 "main(int argc, char *argv[])\n"
3596 "{\n"
3597 "    struct addrinfo hints;\n"
3598 "    struct addrinfo *result, *rp;\n"
3599 "    int sfd, s, j;\n"
3600 "    size_t len;\n"
3601 "    ssize_t nread;\n"
3602 "    char buf[BUF_SIZE];\n"
3603 msgstr ""
3604 "int\n"
3605 "main(int argc, char *argv[])\n"
3606 "{\n"
3607 "    struct addrinfo hints;\n"
3608 "    struct addrinfo *result, *rp;\n"
3609 "    int sfd, s, j;\n"
3610 "    size_t len;\n"
3611 "    ssize_t nread;\n"
3612 "    char buf[BUF_SIZE];\n"
3613
3614 #. type: Plain text
3615 #: build/C/man3/getaddrinfo.3:744
3616 #, no-wrap
3617 msgid ""
3618 "    if (argc E<lt> 3) {\n"
3619 "        fprintf(stderr, \"Usage: %s host port msg...\\en\", argv[0]);\n"
3620 "        exit(EXIT_FAILURE);\n"
3621 "    }\n"
3622 msgstr ""
3623 "    if (argc E<lt> 3) {\n"
3624 "        fprintf(stderr, \"Usage: %s host port msg...\\en\", argv[0]);\n"
3625 "        exit(EXIT_FAILURE);\n"
3626 "    }\n"
3627
3628 #. type: Plain text
3629 #: build/C/man3/getaddrinfo.3:746
3630 #, no-wrap
3631 msgid "    /* Obtain address(es) matching host/port */\n"
3632 msgstr "    /* Obtain address(es) matching host/port */\n"
3633
3634 #. type: Plain text
3635 #: build/C/man3/getaddrinfo.3:752
3636 #, no-wrap
3637 msgid ""
3638 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
3639 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
3640 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
3641 "    hints.ai_flags = 0;\n"
3642 "    hints.ai_protocol = 0;          /* Any protocol */\n"
3643 msgstr ""
3644 "    memset(&hints, 0, sizeof(struct addrinfo));\n"
3645 "    hints.ai_family = AF_UNSPEC;    /* Allow IPv4 or IPv6 */\n"
3646 "    hints.ai_socktype = SOCK_DGRAM; /* Datagram socket */\n"
3647 "    hints.ai_flags = 0;\n"
3648 "    hints.ai_protocol = 0;          /* Any protocol */\n"
3649
3650 #. type: Plain text
3651 #: build/C/man3/getaddrinfo.3:758
3652 #, no-wrap
3653 msgid ""
3654 "    s = getaddrinfo(argv[1], argv[2], &hints, &result);\n"
3655 "    if (s != 0) {\n"
3656 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
3657 "        exit(EXIT_FAILURE);\n"
3658 "    }\n"
3659 msgstr ""
3660 "    s = getaddrinfo(argv[1], argv[2], &hints, &result);\n"
3661 "    if (s != 0) {\n"
3662 "        fprintf(stderr, \"getaddrinfo: %s\\en\", gai_strerror(s));\n"
3663 "        exit(EXIT_FAILURE);\n"
3664 "    }\n"
3665
3666 #. type: Plain text
3667 #: build/C/man3/getaddrinfo.3:763
3668 #, no-wrap
3669 msgid ""
3670 "    /* getaddrinfo() returns a list of address structures.\n"
3671 "       Try each address until we successfully connect(2).\n"
3672 "       If socket(2) (or connect(2)) fails, we (close the socket\n"
3673 "       and) try the next address. */\n"
3674 msgstr ""
3675 "    /* getaddrinfo() returns a list of address structures.\n"
3676 "       Try each address until we successfully connect(2).\n"
3677 "       If socket(2) (or connect(2)) fails, we (close the socket\n"
3678 "       and) try the next address. */\n"
3679
3680 #. type: Plain text
3681 #: build/C/man3/getaddrinfo.3:769
3682 #, no-wrap
3683 msgid ""
3684 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
3685 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n"
3686 "                     rp-E<gt>ai_protocol);\n"
3687 "        if (sfd == -1)\n"
3688 "            continue;\n"
3689 msgstr ""
3690 "    for (rp = result; rp != NULL; rp = rp-E<gt>ai_next) {\n"
3691 "        sfd = socket(rp-E<gt>ai_family, rp-E<gt>ai_socktype,\n"
3692 "                     rp-E<gt>ai_protocol);\n"
3693 "        if (sfd == -1)\n"
3694 "            continue;\n"
3695
3696 #. type: Plain text
3697 #: build/C/man3/getaddrinfo.3:772
3698 #, no-wrap
3699 msgid ""
3700 "        if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n"
3701 "            break;                  /* Success */\n"
3702 msgstr ""
3703 "        if (connect(sfd, rp-E<gt>ai_addr, rp-E<gt>ai_addrlen) != -1)\n"
3704 "            break;                  /* Success */\n"
3705
3706 #. type: Plain text
3707 #: build/C/man3/getaddrinfo.3:780
3708 #, no-wrap
3709 msgid ""
3710 "    if (rp == NULL) {               /* No address succeeded */\n"
3711 "        fprintf(stderr, \"Could not connect\\en\");\n"
3712 "        exit(EXIT_FAILURE);\n"
3713 "    }\n"
3714 msgstr ""
3715 "    if (rp == NULL) {               /* No address succeeded */\n"
3716 "        fprintf(stderr, \"Could not connect\\en\");\n"
3717 "        exit(EXIT_FAILURE);\n"
3718 "    }\n"
3719
3720 #. type: Plain text
3721 #: build/C/man3/getaddrinfo.3:785
3722 #, no-wrap
3723 msgid ""
3724 "    /* Send remaining command-line arguments as separate\n"
3725 "       datagrams, and read responses from server */\n"
3726 msgstr ""
3727 "    /* Send remaining command-line arguments as separate \n"
3728 "       datagrams, and read responses from server */\n"
3729
3730 #. type: Plain text
3731 #: build/C/man3/getaddrinfo.3:789
3732 #, no-wrap
3733 msgid ""
3734 "    for (j = 3; j E<lt> argc; j++) {\n"
3735 "        len = strlen(argv[j]) + 1;\n"
3736 "                /* +1 for terminating null byte */\n"
3737 msgstr ""
3738 "    for (j = 3; j E<lt> argc; j++) {\n"
3739 "        len = strlen(argv[j]) + 1;\n"
3740 "                /* +1 for terminating null byte */\n"
3741
3742 #. type: Plain text
3743 #: build/C/man3/getaddrinfo.3:795
3744 #, no-wrap
3745 msgid ""
3746 "        if (len + 1 E<gt> BUF_SIZE) {\n"
3747 "            fprintf(stderr,\n"
3748 "                    \"Ignoring long message in argument %d\\en\", j);\n"
3749 "            continue;\n"
3750 "        }\n"
3751 msgstr ""
3752 "        if (len + 1 E<gt> BUF_SIZE) {\n"
3753 "            fprintf(stderr,\n"
3754 "                    \"Ignoring long message in argument %d\\en\", j);\n"
3755 "            continue;\n"
3756 "        }\n"
3757
3758 #. type: Plain text
3759 #: build/C/man3/getaddrinfo.3:800
3760 #, no-wrap
3761 msgid ""
3762 "        if (write(sfd, argv[j], len) != len) {\n"
3763 "            fprintf(stderr, \"partial/failed write\\en\");\n"
3764 "            exit(EXIT_FAILURE);\n"
3765 "        }\n"
3766 msgstr ""
3767 "        if (write(sfd, argv[j], len) != len) {\n"
3768 "            fprintf(stderr, \"partial/failed write\\en\");\n"
3769 "            exit(EXIT_FAILURE);\n"
3770 "        }\n"
3771
3772 #. type: Plain text
3773 #: build/C/man3/getaddrinfo.3:806
3774 #, no-wrap
3775 msgid ""
3776 "        nread = read(sfd, buf, BUF_SIZE);\n"
3777 "        if (nread == -1) {\n"
3778 "            perror(\"read\");\n"
3779 "            exit(EXIT_FAILURE);\n"
3780 "        }\n"
3781 msgstr ""
3782 "        nread = read(sfd, buf, BUF_SIZE);\n"
3783 "        if (nread == -1) {\n"
3784 "            perror(\"read\");\n"
3785 "            exit(EXIT_FAILURE);\n"
3786 "        }\n"
3787
3788 #. type: Plain text
3789 #: build/C/man3/getaddrinfo.3:809
3790 #, no-wrap
3791 msgid ""
3792 "        printf(\"Received %ld bytes: %s\\en\", (long) nread, buf);\n"
3793 "    }\n"
3794 msgstr ""
3795 "        printf(\"Received %ld bytes: %s\\en\", (long) nread, buf);\n"
3796 "    }\n"
3797
3798 #.  .BR getipnodebyaddr (3),
3799 #.  .BR getipnodebyname (3),
3800 #. type: Plain text
3801 #: build/C/man3/getaddrinfo.3:822
3802 msgid ""
3803 "B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<inet>(3), "
3804 "B<hostname>(7), B<ip>(7)"
3805 msgstr ""
3806 "B<getaddrinfo_a>(3), B<gethostbyname>(3), B<getnameinfo>(3), B<inet>(3), "
3807 "B<hostname>(7), B<ip>(7)"
3808
3809 #. type: TH
3810 #: build/C/man3/getaddrinfo_a.3:27
3811 #, no-wrap
3812 msgid "GETADDRINFO_A"
3813 msgstr "GETADDRINFO_A"
3814
3815 #. type: TH
3816 #: build/C/man3/getaddrinfo_a.3:27
3817 #, no-wrap
3818 msgid "2010-09-27"
3819 msgstr "2010-09-27"
3820
3821 #. type: Plain text
3822 #: build/C/man3/getaddrinfo_a.3:31
3823 msgid ""
3824 "getaddrinfo_a, gai_suspend, gai_error, gai_cancel - asynchronous network "
3825 "address and service translation"
3826 msgstr ""
3827
3828 #. type: Plain text
3829 #: build/C/man3/getaddrinfo_a.3:35
3830 #, no-wrap
3831 msgid ""
3832 "B<#define _GNU_SOURCE>         /* See feature_test_macros(7) */\n"
3833 "B<#include E<lt>netdb.hE<gt>>\n"
3834 msgstr ""
3835 "B<#define _GNU_SOURCE>         /* feature_test_macros(7) 参照 */\n"
3836 "B<#include E<lt>netdb.hE<gt>>\n"
3837
3838 #. type: Plain text
3839 #: build/C/man3/getaddrinfo_a.3:38
3840 #, no-wrap
3841 msgid ""
3842 "B<int getaddrinfo_a(int >I<mode>B<, struct gaicb *>I<list[]>B<,>\n"
3843 "B<                int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
3844 msgstr ""
3845 "B<int getaddrinfo_a(int >I<mode>B<, struct gaicb *>I<list[]>B<,>\n"
3846 "B<                int >I<nitems>B<, struct sigevent *>I<sevp>B<);>\n"
3847
3848 #. type: Plain text
3849 #: build/C/man3/getaddrinfo_a.3:41
3850 #, no-wrap
3851 msgid ""
3852 "B<int gai_suspend(struct gaicb *>I<list[]>B<, int >I<nitems>B<,>\n"
3853 "B<                struct timespec *>I<timeout>B<);>\n"
3854 msgstr ""
3855 "B<int gai_suspend(struct gaicb *>I<list[]>B<, int >I<nitems>B<,>\n"
3856 "B<                struct timespec *>I<timeout>B<);>\n"
3857
3858 #. type: Plain text
3859 #: build/C/man3/getaddrinfo_a.3:43
3860 #, no-wrap
3861 msgid "B<int gai_error(struct gaicb *>I<req>B<);>\n"
3862 msgstr "B<int gai_error(struct gaicb *>I<req>B<);>\n"
3863
3864 #. type: Plain text
3865 #: build/C/man3/getaddrinfo_a.3:45
3866 #, no-wrap
3867 msgid "B<int gai_cancel(struct gaicb *>I<req>B<);>\n"
3868 msgstr "B<int gai_cancel(struct gaicb *>I<req>B<);>\n"
3869
3870 #. type: Plain text
3871 #: build/C/man3/getaddrinfo_a.3:47
3872 #, no-wrap
3873 msgid "Link with I<-lanl>.\n"
3874 msgstr "I<-lanl> でリンクする。\n"
3875
3876 #. type: Plain text
3877 #: build/C/man3/getaddrinfo_a.3:55
3878 msgid ""
3879 "The B<getaddrinfo_a>()  function performs the same task as B<getaddrinfo>"
3880 "(3), but allows multiple name look-ups to be performed asynchronously, with "
3881 "optional notification on completion of look-up operations."
3882 msgstr ""
3883
3884 #. type: Plain text
3885 #: build/C/man3/getaddrinfo_a.3:59
3886 msgid "The I<mode> argument has one of the following values:"
3887 msgstr ""
3888
3889 #. type: TP
3890 #: build/C/man3/getaddrinfo_a.3:59
3891 #, no-wrap
3892 msgid "B<GAI_WAIT>"
3893 msgstr "B<GAI_WAIT>"
3894
3895 #. type: Plain text
3896 #: build/C/man3/getaddrinfo_a.3:63
3897 msgid ""
3898 "Perform the look-ups synchronously.  The call blocks until the look-ups have "
3899 "completed."
3900 msgstr ""
3901
3902 #. type: TP
3903 #: build/C/man3/getaddrinfo_a.3:63
3904 #, no-wrap
3905 msgid "B<GAI_NOWAIT>"
3906 msgstr "B<GAI_NOWAIT>"
3907
3908 #. type: Plain text
3909 #: build/C/man3/getaddrinfo_a.3:71
3910 msgid ""
3911 "Perform the look-ups asynchronously.  The call returns immediately, and the "
3912 "requests are resolved in the background.  See the discussion of the I<sevp> "
3913 "argument below."
3914 msgstr ""
3915
3916 #. type: Plain text
3917 #: build/C/man3/getaddrinfo_a.3:86
3918 msgid ""
3919 "The array I<list> specifies the look-up requests to process.  The I<nitems> "
3920 "argument specifies the number of elements in I<list>.  The requested look-up "
3921 "operations are started in parallel.  NULL elements in I<list> are ignored.  "
3922 "Each request is described by a I<gaicb> structure, defined as follows:"
3923 msgstr ""
3924
3925 #. type: Plain text
3926 #: build/C/man3/getaddrinfo_a.3:95
3927 #, no-wrap
3928 msgid ""
3929 "struct gaicb {\n"
3930 "    const char            *ar_name;\n"
3931 "    const char            *ar_service;\n"
3932 "    const struct addrinfo *ar_request;\n"
3933 "    struct addrinfo       *ar_result;\n"
3934 "};\n"
3935 msgstr ""
3936 "struct gaicb {\n"
3937 "    const char            *ar_name;\n"
3938 "    const char            *ar_service;\n"
3939 "    const struct addrinfo *ar_request;\n"
3940 "    struct addrinfo       *ar_result;\n"
3941 "};\n"
3942
3943 #. type: Plain text
3944 #: build/C/man3/getaddrinfo_a.3:126
3945 msgid ""
3946 "The elements of this structure correspond to the arguments of B<getaddrinfo>"
3947 "(3).  Thus, I<ar_name> corresponds to the I<node> argument and I<ar_service> "
3948 "to the I<service> argument, identifying an Internet host and a service.  The "
3949 "I<ar_request> element corresponds to the I<hints> argument, specifying the "
3950 "criteria for selecting the returned socket address structures.  Finally, "
3951 "I<ar_result> corresponds to the I<res> argument; you do not need to "
3952 "initialize this element, it will be automatically set when the request is "
3953 "resolved.  The I<addrinfo> structure referenced by the last two elements is "
3954 "described in B<getaddrinfo>(3)."
3955 msgstr ""
3956
3957 #. type: Plain text
3958 #: build/C/man3/getaddrinfo_a.3:142
3959 msgid ""
3960 "When I<mode> is specified as B<GAI_NOWAIT>, notifications about resolved "
3961 "requests can be obtained by employing the I<sigevent> structure pointed to "
3962 "by the I<sevp> argument.  For the definition and general details of this "
3963 "structure, see B<sigevent>(7).  The I<sevp-E<gt>sigev_notify> field can have "
3964 "the following values:"
3965 msgstr ""
3966
3967 #. type: TP
3968 #: build/C/man3/getaddrinfo_a.3:142
3969 #, no-wrap
3970 msgid "B<SIGEV_NONE>"
3971 msgstr "B<SIGEV_NONE>"
3972
3973 #. type: Plain text
3974 #: build/C/man3/getaddrinfo_a.3:145
3975 msgid "Don't provide any notification."
3976 msgstr ""
3977
3978 #. type: TP
3979 #: build/C/man3/getaddrinfo_a.3:145
3980 #, no-wrap
3981 msgid "B<SIGEV_SIGNAL>"
3982 msgstr "B<SIGEV_SIGNAL>"
3983
3984 #.  si_pid and si_uid are also set, to the values of the calling process,
3985 #.  which doesn't provide useful information, so we'll skip mentioning it.
3986 #. type: Plain text
3987 #: build/C/man3/getaddrinfo_a.3:161
3988 msgid ""
3989 "When a look-up completes, generate the signal I<sigev_signo> for the "
3990 "process.  See B<sigevent>(7)  for general details.  The I<si_code> field of "
3991 "the I<siginfo_t> structure will be set to B<SI_ASYNCNL>."
3992 msgstr ""
3993
3994 #. type: TP
3995 #: build/C/man3/getaddrinfo_a.3:161
3996 #, no-wrap
3997 msgid "B<SIGEV_THREAD>"
3998 msgstr "B<SIGEV_THREAD>"
3999
4000 #. type: Plain text
4001 #: build/C/man3/getaddrinfo_a.3:169
4002 msgid ""
4003 "When a look-up completes, invoke I<sigev_notify_function> as if it were the "
4004 "start function of a new thread.  See B<sigevent>(7)  for details."
4005 msgstr ""
4006
4007 #. type: Plain text
4008 #: build/C/man3/getaddrinfo_a.3:178
4009 msgid ""
4010 "For B<SIGEV_SIGNAL> and B<SIGEV_THREAD>, it may be useful to point I<sevp-"
4011 "E<gt>sigev_value.sival_ptr> to I<list>."
4012 msgstr ""
4013
4014 #. type: Plain text
4015 #: build/C/man3/getaddrinfo_a.3:189
4016 msgid ""
4017 "The B<gai_suspend>()  function suspends execution of the calling thread, "
4018 "waiting for the completion of one or more requests in the array I<list>.  "
4019 "The I<nitems> argument specifies the size of the array I<list>.  The call "
4020 "blocks until one of the following occurs:"
4021 msgstr ""
4022
4023 #. type: Plain text
4024 #: build/C/man3/getaddrinfo_a.3:193
4025 msgid "One or more of the operations in I<list> completes."
4026 msgstr ""
4027
4028 #. type: Plain text
4029 #: build/C/man3/getaddrinfo_a.3:195
4030 msgid "The call is interrupted by a signal that is caught."
4031 msgstr ""
4032
4033 #. type: Plain text
4034 #: build/C/man3/getaddrinfo_a.3:208
4035 msgid ""
4036 "The time interval specified in I<timeout> elapses.  This argument specifies "
4037 "a timeout in seconds plus nanoseconds (see B<nanosleep>(2)  for details of "
4038 "the I<timespec> structure).  If I<timeout> is NULL, then the call blocks "
4039 "indefinitely (until one of the events above occurs)."
4040 msgstr ""
4041
4042 #. type: Plain text
4043 #: build/C/man3/getaddrinfo_a.3:213
4044 msgid ""
4045 "No explicit indication of which request was completed is given; you must "
4046 "determine which request(s) have completed by iterating with B<gai_error>()  "
4047 "over the list of requests."
4048 msgstr ""
4049
4050 #. type: Plain text
4051 #: build/C/man3/getaddrinfo_a.3:223
4052 msgid ""
4053 "The B<gai_error>()  function returns the status of the request I<req>: "
4054 "either B<EAI_INPROGRESS> if the request was not completed yet, 0 if it was "
4055 "handled successfully, or an error code if the request could not be resolved."
4056 msgstr ""
4057
4058 #. type: Plain text
4059 #: build/C/man3/getaddrinfo_a.3:240
4060 msgid ""
4061 "The B<gai_cancel>()  function cancels the request I<req>.  If the request "
4062 "has been canceled successfully, the error status of the request will be set "
4063 "to B<EAI_CANCELLED> and normal asynchronous notification will be performed.  "
4064 "The request cannot be canceled if it is currently being processed; in that "
4065 "case, it will be handled as if B<gai_cancel>()  has never been called.  If "
4066 "I<req> is NULL, an attempt is made to cancel all outstanding requests that "
4067 "the process has made."
4068 msgstr ""
4069
4070 #. type: Plain text
4071 #: build/C/man3/getaddrinfo_a.3:245
4072 msgid ""
4073 "The B<getaddrinfo_a>()  function returns 0 if all of the requests have been "
4074 "enqueued successfully, or one of the following nonzero error codes:"
4075 msgstr ""
4076
4077 #. type: Plain text
4078 #: build/C/man3/getaddrinfo_a.3:250
4079 msgid ""
4080 "The resources necessary to enqueue the look-up requests were not available.  "
4081 "The application may check the error status of each request to determine "
4082 "which ones failed."
4083 msgstr ""
4084
4085 #. type: Plain text
4086 #: build/C/man3/getaddrinfo_a.3:257
4087 msgid "I<mode> is invalid."
4088 msgstr ""
4089
4090 #. type: Plain text
4091 #: build/C/man3/getaddrinfo_a.3:262
4092 msgid ""
4093 "The B<gai_suspend>()  function returns 0 if at least one of the listed "
4094 "requests has been completed.  Otherwise, it returns one of the following "
4095 "nonzero error codes:"
4096 msgstr ""
4097
4098 #. type: Plain text
4099 #: build/C/man3/getaddrinfo_a.3:265
4100 msgid ""
4101 "The given timeout expired before any of the requests could be completed."
4102 msgstr ""
4103
4104 #. type: TP
4105 #: build/C/man3/getaddrinfo_a.3:265 build/C/man3/getaddrinfo_a.3:295
4106 #, no-wrap
4107 msgid "B<EAI_ALLDONE>"
4108 msgstr "B<EAI_ALLDONE>"
4109
4110 #. type: Plain text
4111 #: build/C/man3/getaddrinfo_a.3:268
4112 msgid "There were no actual requests given to the function."
4113 msgstr ""
4114
4115 #. type: TP
4116 #: build/C/man3/getaddrinfo_a.3:268
4117 #, no-wrap
4118 msgid "B<EAI_INTR>"
4119 msgstr "B<EAI_INTR>"
4120
4121 #. type: Plain text
4122 #: build/C/man3/getaddrinfo_a.3:273
4123 msgid ""
4124 "A signal has interrupted the function.  Note that this interruption might "
4125 "have been caused by signal notification of some completed look-up request."
4126 msgstr ""
4127
4128 #. type: Plain text
4129 #: build/C/man3/getaddrinfo_a.3:285
4130 msgid ""
4131 "The B<gai_error>()  function can return B<EAI_INPROGRESS> for an unfinished "
4132 "look-up request, 0 for a successfully completed look-up (as described "
4133 "above), one of the error codes that could be returned by B<getaddrinfo>(3), "
4134 "or the error code B<EAI_CANCELLED> if the request has been canceled "
4135 "explicitly before it could be finished."
4136 msgstr ""
4137
4138 #. type: Plain text
4139 #: build/C/man3/getaddrinfo_a.3:289
4140 msgid "The B<gai_cancel>()  function can return one of these values:"
4141 msgstr ""
4142
4143 #. type: TP
4144 #: build/C/man3/getaddrinfo_a.3:289
4145 #, no-wrap
4146 msgid "B<EAI_CANCELLED>"
4147 msgstr "B<EAI_CANCELLED>"
4148
4149 #. type: Plain text
4150 #: build/C/man3/getaddrinfo_a.3:292
4151 msgid "The request has been canceled successfully."
4152 msgstr ""
4153
4154 #. type: TP
4155 #: build/C/man3/getaddrinfo_a.3:292
4156 #, no-wrap
4157 msgid "B<EAI_NOTCANCELLED>"
4158 msgstr "B<EAI_NOTCANCELLED>"
4159
4160 #. type: Plain text
4161 #: build/C/man3/getaddrinfo_a.3:295
4162 msgid "The request has not been canceled."
4163 msgstr ""
4164
4165 #. type: Plain text
4166 #: build/C/man3/getaddrinfo_a.3:298
4167 msgid "The request has already completed."
4168 msgstr ""
4169
4170 #. type: Plain text
4171 #: build/C/man3/getaddrinfo_a.3:303 build/C/man3/getnameinfo.3:194
4172 msgid ""
4173 "The B<gai_strerror>(3)  function translates these error codes to a human "
4174 "readable string, suitable for error reporting."
4175 msgstr ""
4176 "B<gai_strerror>(3) 関数を使うと、これらのエラー・コードを、エラー・レポートに"
4177 "適した 人間が読みやすい文字列に翻訳してくれる。"
4178
4179 #. type: Plain text
4180 #: build/C/man3/getaddrinfo_a.3:306
4181 msgid ""
4182 "These functions are GNU extensions; they first appeared in glibc in version "
4183 "2.2.3."
4184 msgstr ""
4185
4186 #. type: Plain text
4187 #: build/C/man3/getaddrinfo_a.3:312
4188 msgid ""
4189 "The interface of B<getaddrinfo_a>()  was modeled after the B<lio_listio>(3)  "
4190 "interface."
4191 msgstr ""
4192
4193 #. type: Plain text
4194 #: build/C/man3/getaddrinfo_a.3:316
4195 msgid ""
4196 "Two examples are provided: a simple example that resolves several requests "
4197 "in parallel synchronously, and a complex example showing some of the "
4198 "asynchronous capabilities."
4199 msgstr ""
4200
4201 #. type: SS
4202 #: build/C/man3/getaddrinfo_a.3:316
4203 #, no-wrap
4204 msgid "Synchronous Example"
4205 msgstr ""
4206
4207 #. type: Plain text
4208 #: build/C/man3/getaddrinfo_a.3:321
4209 msgid ""
4210 "The program below simply resolves several hostnames in parallel, giving a "
4211 "speed-up compared to resolving the hostnames sequentially using "
4212 "B<getaddrinfo>(3).  The program might be used like this:"
4213 msgstr ""
4214
4215 #. type: Plain text
4216 #: build/C/man3/getaddrinfo_a.3:328
4217 #, no-wrap
4218 msgid ""
4219 "$ B<./a.out ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz>\n"
4220 "ftp.us.kernel.org: 128.30.2.36\n"
4221 "enoent.linuxfoundation.org: Name or service not known\n"
4222 "gnu.cz: 87.236.197.13\n"
4223 msgstr ""
4224 "$ B<./a.out ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz>\n"
4225 "ftp.us.kernel.org: 128.30.2.36\n"
4226 "enoent.linuxfoundation.org: Name or service not known\n"
4227 "gnu.cz: 87.236.197.13\n"
4228
4229 #. type: Plain text
4230 #: build/C/man3/getaddrinfo_a.3:332
4231 msgid "Here is the program source code"
4232 msgstr ""
4233
4234 #. type: Plain text
4235 #: build/C/man3/getaddrinfo_a.3:339 build/C/man3/getaddrinfo_a.3:430
4236 #, no-wrap
4237 msgid ""
4238 "#define _GNU_SOURCE\n"
4239 "#include E<lt>netdb.hE<gt>\n"
4240 "#include E<lt>stdio.hE<gt>\n"
4241 "#include E<lt>stdlib.hE<gt>\n"
4242 "#include E<lt>string.hE<gt>\n"
4243 msgstr ""
4244 "#define _GNU_SOURCE\n"
4245 "#include E<lt>netdb.hE<gt>\n"
4246 "#include E<lt>stdio.hE<gt>\n"
4247 "#include E<lt>stdlib.hE<gt>\n"
4248 "#include E<lt>string.hE<gt>\n"
4249
4250 #. type: Plain text
4251 #: build/C/man3/getaddrinfo_a.3:347
4252 #, no-wrap
4253 msgid ""
4254 "int\n"
4255 "main(int argc, char *argv[])\n"
4256 "{\n"
4257 "    int i, ret;\n"
4258 "    struct gaicb *reqs[argc - 1];\n"
4259 "    char host[NI_MAXHOST];\n"
4260 "    struct addrinfo *res;\n"
4261 msgstr ""
4262 "int\n"
4263 "main(int argc, char *argv[])\n"
4264 "{\n"
4265 "    int i, ret;\n"
4266 "    struct gaicb *reqs[argc - 1];\n"
4267 "    char host[NI_MAXHOST];\n"
4268 "    struct addrinfo *res;\n"
4269
4270 #. type: Plain text
4271 #: build/C/man3/getaddrinfo_a.3:352
4272 #, no-wrap
4273 msgid ""
4274 "    if (argc E<lt> 2) {\n"
4275 "        fprintf(stderr, \"Usage: %s HOST...\\en\", argv[0]);\n"
4276 "        exit(EXIT_FAILURE);\n"
4277 "    }\n"
4278 msgstr ""
4279 "    if (argc E<lt> 2) {\n"
4280 "        fprintf(stderr, \"Usage: %s HOST...\\en\", argv[0]);\n"
4281 "        exit(EXIT_FAILURE);\n"
4282 "    }\n"
4283
4284 #. type: Plain text
4285 #: build/C/man3/getaddrinfo_a.3:362
4286 #, no-wrap
4287 msgid ""
4288 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
4289 "        reqs[i] = malloc(sizeof(*reqs[0]));\n"
4290 "        if (reqs[i] == NULL) {\n"
4291 "            perror(\"malloc\");\n"
4292 "            exit(EXIT_FAILURE);\n"
4293 "        }\n"
4294 "        memset(reqs[i], 0, sizeof(*reqs[0]));\n"
4295 "        reqs[i]-E<gt>ar_name = argv[i + 1];\n"
4296 "    }\n"
4297 msgstr ""
4298 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
4299 "        reqs[i] = malloc(sizeof(*reqs[0]));\n"
4300 "        if (reqs[i] == NULL) {\n"
4301 "            perror(\"malloc\");\n"
4302 "            exit(EXIT_FAILURE);\n"
4303 "        }\n"
4304 "        memset(reqs[i], 0, sizeof(*reqs[0]));\n"
4305 "        reqs[i]-E<gt>ar_name = argv[i + 1];\n"
4306 "    }\n"
4307
4308 #. type: Plain text
4309 #: build/C/man3/getaddrinfo_a.3:369
4310 #, no-wrap
4311 msgid ""
4312 "    ret = getaddrinfo_a(GAI_WAIT, reqs, argc - 1, NULL);\n"
4313 "    if (ret != 0) {\n"
4314 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
4315 "                gai_strerror(ret));\n"
4316 "        exit(EXIT_FAILURE);\n"
4317 "    }\n"
4318 msgstr ""
4319 "    ret = getaddrinfo_a(GAI_WAIT, reqs, argc - 1, NULL);\n"
4320 "    if (ret != 0) {\n"
4321 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
4322 "                gai_strerror(ret));\n"
4323 "        exit(EXIT_FAILURE);\n"
4324 "    }\n"
4325
4326 #. type: Plain text
4327 #: build/C/man3/getaddrinfo_a.3:375
4328 #, no-wrap
4329 msgid ""
4330 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
4331 "        printf(\"%s: \", reqs[i]-E<gt>ar_name);\n"
4332 "        ret = gai_error(reqs[i]);\n"
4333 "        if (ret == 0) {\n"
4334 "            res = reqs[i]-E<gt>ar_result;\n"
4335 msgstr ""
4336 "    for (i = 0; i E<lt> argc - 1; i++) {\n"
4337 "        printf(\"%s: \", reqs[i]-E<gt>ar_name);\n"
4338 "        ret = gai_error(reqs[i]);\n"
4339 "        if (ret == 0) {\n"
4340 "            res = reqs[i]-E<gt>ar_result;\n"
4341
4342 #. type: Plain text
4343 #: build/C/man3/getaddrinfo_a.3:385
4344 #, no-wrap
4345 msgid ""
4346 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
4347 "                    host, sizeof(host),\n"
4348 "                    NULL, 0, NI_NUMERICHOST);\n"
4349 "            if (ret != 0) {\n"
4350 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
4351 "                        gai_strerror(ret));\n"
4352 "                exit(EXIT_FAILURE);\n"
4353 "            }\n"
4354 "            puts(host);\n"
4355 msgstr ""
4356 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
4357 "                    host, sizeof(host),\n"
4358 "                    NULL, 0, NI_NUMERICHOST);\n"
4359 "            if (ret != 0) {\n"
4360 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
4361 "                        gai_strerror(ret));\n"
4362 "                exit(EXIT_FAILURE);\n"
4363 "            }\n"
4364 "            puts(host);\n"
4365
4366 #. type: Plain text
4367 #: build/C/man3/getaddrinfo_a.3:392
4368 #, no-wrap
4369 msgid ""
4370 "        } else {\n"
4371 "            puts(gai_strerror(ret));\n"
4372 "        }\n"
4373 "    }\n"
4374 "    exit(EXIT_SUCCESS);\n"
4375 "}\n"
4376 msgstr ""
4377 "        } else {\n"
4378 "            puts(gai_strerror(ret));\n"
4379 "        }\n"
4380 "    }\n"
4381 "    exit(EXIT_SUCCESS);\n"
4382 "}\n"
4383
4384 #. type: SS
4385 #: build/C/man3/getaddrinfo_a.3:394
4386 #, no-wrap
4387 msgid "Asynchronous Example"
4388 msgstr ""
4389
4390 #. type: Plain text
4391 #: build/C/man3/getaddrinfo_a.3:399
4392 msgid ""
4393 "This example shows a simple interactive B<getaddrinfo_a>()  front-end.  The "
4394 "notification facility is not demonstrated."
4395 msgstr ""
4396
4397 #. type: Plain text
4398 #: build/C/man3/getaddrinfo_a.3:401
4399 msgid "An example session might look like this:"
4400 msgstr ""
4401
4402 #. type: Plain text
4403 #: build/C/man3/getaddrinfo_a.3:418
4404 #, no-wrap
4405 msgid ""
4406 "$ B<./a.out>\n"
4407 "E<gt> a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz\n"
4408 "E<gt> c 2\n"
4409 "[2] gnu.cz: Request not canceled\n"
4410 "E<gt> w 0 1\n"
4411 "[00] ftp.us.kernel.org: Finished\n"
4412 "E<gt> l\n"
4413 "[00] ftp.us.kernel.org: 216.165.129.139\n"
4414 "[01] enoent.linuxfoundation.org: Processing request in progress\n"
4415 "[02] gnu.cz: 87.236.197.13\n"
4416 "E<gt> l\n"
4417 "[00] ftp.us.kernel.org: 216.165.129.139\n"
4418 "[01] enoent.linuxfoundation.org: Name or service not known\n"
4419 "[02] gnu.cz: 87.236.197.13\n"
4420 msgstr ""
4421 "$ B<./a.out>\n"
4422 "E<gt> a ftp.us.kernel.org enoent.linuxfoundation.org gnu.cz\n"
4423 "E<gt> c 2\n"
4424 "[2] gnu.cz: Request not canceled\n"
4425 "E<gt> w 0 1\n"
4426 "[00] ftp.us.kernel.org: Finished\n"
4427 "E<gt> l\n"
4428 "[00] ftp.us.kernel.org: 216.165.129.139\n"
4429 "[01] enoent.linuxfoundation.org: Processing request in progress\n"
4430 "[02] gnu.cz: 87.236.197.13\n"
4431 "E<gt> l\n"
4432 "[00] ftp.us.kernel.org: 216.165.129.139\n"
4433 "[01] enoent.linuxfoundation.org: Name or service not known\n"
4434 "[02] gnu.cz: 87.236.197.13\n"
4435
4436 #. type: Plain text
4437 #: build/C/man3/getaddrinfo_a.3:422
4438 msgid "The program source goes as follows:"
4439 msgstr ""
4440
4441 #. type: Plain text
4442 #: build/C/man3/getaddrinfo_a.3:433
4443 #, no-wrap
4444 msgid ""
4445 "static struct gaicb **reqs = NULL;\n"
4446 "static int nreqs = 0;\n"
4447 msgstr ""
4448 "static struct gaicb **reqs = NULL;\n"
4449 "static int nreqs = 0;\n"
4450
4451 #. type: Plain text
4452 #: build/C/man3/getaddrinfo_a.3:438
4453 #, no-wrap
4454 msgid ""
4455 "static char *\n"
4456 "getcmd(void)\n"
4457 "{\n"
4458 "    static char buf[256];\n"
4459 msgstr ""
4460 "static char *\n"
4461 "getcmd(void)\n"
4462 "{\n"
4463 "    static char buf[256];\n"
4464
4465 #. type: Plain text
4466 #: build/C/man3/getaddrinfo_a.3:442
4467 #, no-wrap
4468 msgid ""
4469 "    fputs(\"E<gt> \", stdout); fflush(stdout);\n"
4470 "    if (fgets(buf, sizeof(buf), stdin) == NULL)\n"
4471 "        return NULL;\n"
4472 msgstr ""
4473 "    fputs(\"E<gt> \", stdout); fflush(stdout);\n"
4474 "    if (fgets(buf, sizeof(buf), stdin) == NULL)\n"
4475 "        return NULL;\n"
4476
4477 #. type: Plain text
4478 #: build/C/man3/getaddrinfo_a.3:445
4479 #, no-wrap
4480 msgid ""
4481 "    if (buf[strlen(buf) - 1] == \\(aq\\en\\(aq)\n"
4482 "        buf[strlen(buf) - 1] = 0;\n"
4483 msgstr ""
4484 "    if (buf[strlen(buf) - 1] == \\(aq\\en\\(aq)\n"
4485 "        buf[strlen(buf) - 1] = 0;\n"
4486
4487 #. type: Plain text
4488 #: build/C/man3/getaddrinfo_a.3:448
4489 #, no-wrap
4490 msgid ""
4491 "    return buf;\n"
4492 "}\n"
4493 msgstr ""
4494 "    return buf;\n"
4495 "}\n"
4496
4497 #. type: Plain text
4498 #: build/C/man3/getaddrinfo_a.3:456
4499 #, no-wrap
4500 msgid ""
4501 "/* Add requests for specified hostnames */\n"
4502 "static void\n"
4503 "add_requests(void)\n"
4504 "{\n"
4505 "    int nreqs_base = nreqs;\n"
4506 "    char *host;\n"
4507 "    int ret;\n"
4508 msgstr ""
4509 "/* Add requests for specified hostnames */\n"
4510 "static void\n"
4511 "add_requests(void)\n"
4512 "{\n"
4513 "    int nreqs_base = nreqs;\n"
4514 "    char *host;\n"
4515 "    int ret;\n"
4516
4517 #. type: Plain text
4518 #: build/C/man3/getaddrinfo_a.3:460
4519 #, no-wrap
4520 msgid ""
4521 "    while ((host = strtok(NULL, \" \"))) {\n"
4522 "        nreqs++;\n"
4523 "        reqs = realloc(reqs, nreqs * sizeof(reqs[0]));\n"
4524 msgstr ""
4525 "    while ((host = strtok(NULL, \" \"))) {\n"
4526 "        nreqs++;\n"
4527 "        reqs = realloc(reqs, nreqs * sizeof(reqs[0]));\n"
4528
4529 #. type: Plain text
4530 #: build/C/man3/getaddrinfo_a.3:464
4531 #, no-wrap
4532 msgid ""
4533 "        reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0]));\n"
4534 "        reqs[nreqs - 1]-E<gt>ar_name = strdup(host);\n"
4535 "    }\n"
4536 msgstr ""
4537 "        reqs[nreqs - 1] = calloc(1, sizeof(*reqs[0]));\n"
4538 "        reqs[nreqs - 1]-E<gt>ar_name = strdup(host);\n"
4539 "    }\n"
4540
4541 #. type: Plain text
4542 #: build/C/man3/getaddrinfo_a.3:466
4543 #, no-wrap
4544 msgid "    /* Queue nreqs_base..nreqs requests. */\n"
4545 msgstr "    /* Queue nreqs_base..nreqs requests. */\n"
4546
4547 #. type: Plain text
4548 #: build/C/man3/getaddrinfo_a.3:475
4549 #, no-wrap
4550 msgid ""
4551 "    ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base],\n"
4552 "                        nreqs - nreqs_base, NULL);\n"
4553 "    if (ret) {\n"
4554 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
4555 "                gai_strerror(ret));\n"
4556 "        exit(EXIT_FAILURE);\n"
4557 "    }\n"
4558 "}\n"
4559 msgstr ""
4560 "    ret = getaddrinfo_a(GAI_NOWAIT, &reqs[nreqs_base],\n"
4561 "                        nreqs - nreqs_base, NULL);\n"
4562 "    if (ret) {\n"
4563 "        fprintf(stderr, \"getaddrinfo_a() failed: %s\\en\",\n"
4564 "                gai_strerror(ret));\n"
4565 "        exit(EXIT_FAILURE);\n"
4566 "    }\n"
4567 "}\n"
4568
4569 #. type: Plain text
4570 #: build/C/man3/getaddrinfo_a.3:484
4571 #, no-wrap
4572 msgid ""
4573 "/* Wait until at least one of specified requests completes */\n"
4574 "static void\n"
4575 "wait_requests(void)\n"
4576 "{\n"
4577 "    char *id;\n"
4578 "    int i, ret, n;\n"
4579 "    struct gaicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs));\n"
4580 "                /* NULL elements are ignored by gai_suspend(). */\n"
4581 msgstr ""
4582 "/* Wait until at least one of specified requests completes */\n"
4583 "static void\n"
4584 "wait_requests(void)\n"
4585 "{\n"
4586 "    char *id;\n"
4587 "    int i, ret, n;\n"
4588 "    struct gaicb const **wait_reqs = calloc(nreqs, sizeof(*wait_reqs));\n"
4589 "                /* NULL elements are ignored by gai_suspend(). */\n"
4590
4591 #. type: Plain text
4592 #: build/C/man3/getaddrinfo_a.3:487 build/C/man3/getaddrinfo_a.3:524
4593 #, no-wrap
4594 msgid ""
4595 "    while ((id = strtok(NULL, \" \")) != NULL) {\n"
4596 "        n = atoi(id);\n"
4597 msgstr ""
4598 "    while ((id = strtok(NULL, \" \")) != NULL) {\n"
4599 "        n = atoi(id);\n"
4600
4601 #. type: Plain text
4602 #: build/C/man3/getaddrinfo_a.3:492 build/C/man3/getaddrinfo_a.3:529
4603 #, no-wrap
4604 msgid ""
4605 "        if (n E<gt>= nreqs) {\n"
4606 "            printf(\"Bad request number: %s\\en\", id);\n"
4607 "            return;\n"
4608 "        }\n"
4609 msgstr ""
4610 "        if (n E<gt>= nreqs) {\n"
4611 "            printf(\"Bad request number: %s\\en\", id);\n"
4612 "            return;\n"
4613 "        }\n"
4614
4615 #. type: Plain text
4616 #: build/C/man3/getaddrinfo_a.3:495
4617 #, no-wrap
4618 msgid ""
4619 "        wait_reqs[n] = reqs[n];\n"
4620 "    }\n"
4621 msgstr ""
4622 "        wait_reqs[n] = reqs[n];\n"
4623 "    }\n"
4624
4625 #. type: Plain text
4626 #: build/C/man3/getaddrinfo_a.3:501
4627 #, no-wrap
4628 msgid ""
4629 "    ret = gai_suspend(wait_reqs, nreqs, NULL);\n"
4630 "    if (ret) {\n"
4631 "        printf(\"gai_suspend(): %s\\en\", gai_strerror(ret));\n"
4632 "        return;\n"
4633 "    }\n"
4634 msgstr ""
4635 "    ret = gai_suspend(wait_reqs, nreqs, NULL);\n"
4636 "    if (ret) {\n"
4637 "        printf(\"gai_suspend(): %s\\en\", gai_strerror(ret));\n"
4638 "        return;\n"
4639 "    }\n"
4640
4641 #. type: Plain text
4642 #: build/C/man3/getaddrinfo_a.3:505
4643 #, no-wrap
4644 msgid ""
4645 "    for (i = 0; i E<lt> nreqs; i++) {\n"
4646 "        if (wait_reqs[i] == NULL)\n"
4647 "            continue;\n"
4648 msgstr ""
4649 "    for (i = 0; i E<lt> nreqs; i++) {\n"
4650 "        if (wait_reqs[i] == NULL)\n"
4651 "            continue;\n"
4652
4653 #. type: Plain text
4654 #: build/C/man3/getaddrinfo_a.3:509
4655 #, no-wrap
4656 msgid ""
4657 "        ret = gai_error(reqs[i]);\n"
4658 "        if (ret == EAI_INPROGRESS)\n"
4659 "            continue;\n"
4660 msgstr ""
4661 "        ret = gai_error(reqs[i]);\n"
4662 "        if (ret == EAI_INPROGRESS)\n"
4663 "            continue;\n"
4664
4665 #. type: Plain text
4666 #: build/C/man3/getaddrinfo_a.3:514
4667 #, no-wrap
4668 msgid ""
4669 "        printf(\"[%02d] %s: %s\\en\", i, reqs[i]-E<gt>ar_name,\n"
4670 "               ret == 0 ? \"Finished\" : gai_strerror(ret));\n"
4671 "    }\n"
4672 "}\n"
4673 msgstr ""
4674 "        printf(\"[%02d] %s: %s\\en\", i, reqs[i]-E<gt>ar_name,\n"
4675 "               ret == 0 ? \"Finished\" : gai_strerror(ret));\n"
4676 "    }\n"
4677 "}\n"
4678
4679 #. type: Plain text
4680 #: build/C/man3/getaddrinfo_a.3:521
4681 #, no-wrap
4682 msgid ""
4683 "/* Cancel specified requests */\n"
4684 "static void\n"
4685 "cancel_requests(void)\n"
4686 "{\n"
4687 "    char *id;\n"
4688 "    int ret, n;\n"
4689 msgstr ""
4690 "/* Cancel specified requests */\n"
4691 "static void\n"
4692 "cancel_requests(void)\n"
4693 "{\n"
4694 "    char *id;\n"
4695 "    int ret, n;\n"
4696
4697 #. type: Plain text
4698 #: build/C/man3/getaddrinfo_a.3:535
4699 #, no-wrap
4700 msgid ""
4701 "        ret = gai_cancel(reqs[n]);\n"
4702 "        printf(\"[%s] %s: %s\\en\", id, reqs[atoi(id)]-E<gt>ar_name,\n"
4703 "               gai_strerror(ret));\n"
4704 "    }\n"
4705 "}\n"
4706 msgstr ""
4707 "        ret = gai_cancel(reqs[n]);\n"
4708 "        printf(\"[%s] %s: %s\\en\", id, reqs[atoi(id)]-E<gt>ar_name,\n"
4709 "               gai_strerror(ret));\n"
4710 "    }\n"
4711 "}\n"
4712
4713 #. type: Plain text
4714 #: build/C/man3/getaddrinfo_a.3:543
4715 #, no-wrap
4716 msgid ""
4717 "/* List all requests */\n"
4718 "static void\n"
4719 "list_requests(void)\n"
4720 "{\n"
4721 "    int i, ret;\n"
4722 "    char host[NI_MAXHOST];\n"
4723 "    struct addrinfo *res;\n"
4724 msgstr ""
4725 "/* List all requests */\n"
4726 "static void\n"
4727 "list_requests(void)\n"
4728 "{\n"
4729 "    int i, ret;\n"
4730 "    char host[NI_MAXHOST];\n"
4731 "    struct addrinfo *res;\n"
4732
4733 #. type: Plain text
4734 #: build/C/man3/getaddrinfo_a.3:547
4735 #, no-wrap
4736 msgid ""
4737 "    for (i = 0; i E<lt> nreqs; i++) {\n"
4738 "        printf(\"[%02d] %s: \", i, reqs[i]-E<gt>ar_name);\n"
4739 "        ret = gai_error(reqs[i]);\n"
4740 msgstr ""
4741 "    for (i = 0; i E<lt> nreqs; i++) {\n"
4742 "        printf(\"[%02d] %s: \", i, reqs[i]-E<gt>ar_name);\n"
4743 "        ret = gai_error(reqs[i]);\n"
4744
4745 #. type: Plain text
4746 #: build/C/man3/getaddrinfo_a.3:550
4747 #, no-wrap
4748 msgid ""
4749 "        if (!ret) {\n"
4750 "            res = reqs[i]-E<gt>ar_result;\n"
4751 msgstr ""
4752 "        if (!ret) {\n"
4753 "            res = reqs[i]-E<gt>ar_result;\n"
4754
4755 #. type: Plain text
4756 #: build/C/man3/getaddrinfo_a.3:565
4757 #, no-wrap
4758 msgid ""
4759 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
4760 "                              host, sizeof(host),\n"
4761 "                              NULL, 0, NI_NUMERICHOST);\n"
4762 "            if (ret) {\n"
4763 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
4764 "                        gai_strerror(ret));\n"
4765 "                exit(EXIT_FAILURE);\n"
4766 "            }\n"
4767 "            puts(host);\n"
4768 "        } else {\n"
4769 "            puts(gai_strerror(ret));\n"
4770 "        }\n"
4771 "    }\n"
4772 "}\n"
4773 msgstr ""
4774 "            ret = getnameinfo(res-E<gt>ai_addr, res-E<gt>ai_addrlen,\n"
4775 "                              host, sizeof(host),\n"
4776 "                              NULL, 0, NI_NUMERICHOST);\n"
4777 "            if (ret) {\n"
4778 "                fprintf(stderr, \"getnameinfo() failed: %s\\en\",\n"
4779 "                        gai_strerror(ret));\n"
4780 "                exit(EXIT_FAILURE);\n"
4781 "            }\n"
4782 "            puts(host);\n"
4783 "        } else {\n"
4784 "            puts(gai_strerror(ret));\n"
4785 "        }\n"
4786 "    }\n"
4787 "}\n"
4788
4789 #. type: Plain text
4790 #: build/C/man3/getaddrinfo_a.3:571
4791 #, no-wrap
4792 msgid ""
4793 "int\n"
4794 "main(int argc, char *argv[])\n"
4795 "{\n"
4796 "    char *cmdline;\n"
4797 "    char *cmd;\n"
4798 msgstr ""
4799 "int\n"
4800 "main(int argc, char *argv[])\n"
4801 "{\n"
4802 "    char *cmdline;\n"
4803 "    char *cmd;\n"
4804
4805 #. type: Plain text
4806 #: build/C/man3/getaddrinfo_a.3:574
4807 #, no-wrap
4808 msgid ""
4809 "    while ((cmdline = getcmd()) != NULL) {\n"
4810 "        cmd = strtok(cmdline, \" \");\n"
4811 msgstr ""
4812 "    while ((cmdline = getcmd()) != NULL) {\n"
4813 "        cmd = strtok(cmdline, \" \");\n"
4814
4815 #. type: Plain text
4816 #: build/C/man3/getaddrinfo_a.3:599
4817 #, no-wrap
4818 msgid ""
4819 "        if (cmd == NULL) {\n"
4820 "            list_requests();\n"
4821 "        } else {\n"
4822 "            switch (cmd[0]) {\n"
4823 "            case \\(aqa\\(aq:\n"
4824 "                add_requests();\n"
4825 "                break;\n"
4826 "            case \\(aqw\\(aq:\n"
4827 "                wait_requests();\n"
4828 "                break;\n"
4829 "            case \\(aqc\\(aq:\n"
4830 "                cancel_requests();\n"
4831 "                break;\n"
4832 "            case \\(aql\\(aq:\n"
4833 "                list_requests();\n"
4834 "                break;\n"
4835 "            default:\n"
4836 "                fprintf(stderr, \"Bad command: %c\\en\", cmd[0]);\n"
4837 "                break;\n"
4838 "            }\n"
4839 "        }\n"
4840 "    }\n"
4841 "    exit(EXIT_SUCCESS);\n"
4842 "}\n"
4843 msgstr ""
4844 "        if (cmd == NULL) {\n"
4845 "            list_requests();\n"
4846 "        } else {\n"
4847 "            switch (cmd[0]) {\n"
4848 "            case \\(aqa\\(aq:\n"
4849 "                add_requests();\n"
4850 "                break;\n"
4851 "            case \\(aqw\\(aq:\n"
4852 "                wait_requests();\n"
4853 "                break;\n"
4854 "            case \\(aqc\\(aq:\n"
4855 "                cancel_requests();\n"
4856 "                break;\n"
4857 "            case \\(aql\\(aq:\n"
4858 "                list_requests();\n"
4859 "                break;\n"
4860 "            default:\n"
4861 "                fprintf(stderr, \"Bad command: %c\\en\", cmd[0]);\n"
4862 "                break;\n"
4863 "            }\n"
4864 "        }\n"
4865 "    }\n"
4866 "    exit(EXIT_SUCCESS);\n"
4867 "}\n"
4868
4869 #. type: Plain text
4870 #: build/C/man3/getaddrinfo_a.3:607
4871 msgid ""
4872 "B<getaddrinfo>(3), B<inet>(3), B<lio_listio>(3), B<hostname>(7), B<ip>(7), "
4873 "B<sigevent>(7)"
4874 msgstr ""
4875 "B<getaddrinfo>(3), B<inet>(3), B<lio_listio>(3), B<hostname>(7), B<ip>(7), "
4876 "B<sigevent>(7)"
4877
4878 #. type: TH
4879 #: build/C/man1/getent.1:23
4880 #, no-wrap
4881 msgid "GETENT"
4882 msgstr "GETENT"
4883
4884 #. type: TH
4885 #: build/C/man1/getent.1:23
4886 #, no-wrap
4887 msgid "2011-10-31"
4888 msgstr "2011-10-31"
4889
4890 #. type: TH
4891 #: build/C/man1/getent.1:23
4892 #, no-wrap
4893 msgid "User Commands"
4894 msgstr "User Commands"
4895
4896 #. type: Plain text
4897 #: build/C/man1/getent.1:26
4898 msgid "getent - get entries from Name Service Switch libraries"
4899 msgstr ""
4900
4901 #. type: Plain text
4902 #: build/C/man1/getent.1:29
4903 msgid "B<getent> I<database> [I<key> ...]"
4904 msgstr "B<getent> I<database> [I<key> ...]"
4905
4906 #. type: Plain text
4907 #: build/C/man1/getent.1:44
4908 msgid ""
4909 "The B<getent> command displays entries from databases supported by the Name "
4910 "Service Switch libraries, which are configured in I</etc/nsswitch.conf>.  If "
4911 "one or more I<key> arguments are provided, then only the entries that match "
4912 "the supplied keys will be displayed.  Otherwise, if no I<key> is provided, "
4913 "all entries will be displayed (unless the database does not support "
4914 "enumeration)."
4915 msgstr ""
4916
4917 #. type: Plain text
4918 #: build/C/man1/getent.1:48
4919 msgid ""
4920 "The I<database> may be any of those supported by the GNU C Library, listed "
4921 "below:"
4922 msgstr ""
4923
4924 #. type: TP
4925 #: build/C/man1/getent.1:49
4926 #, no-wrap
4927 msgid "B<ahosts>"
4928 msgstr "B<ahosts>"
4929
4930 #. type: Plain text
4931 #: build/C/man1/getent.1:70
4932 msgid ""
4933 "When no I<key> is provided, use B<sethostent>(3), B<gethostent>(3), and "
4934 "B<endhostent>(3)  to enumerate the hosts database.  This is identical to "
4935 "using B<hosts>.  When one or more I<key> arguments are provided, pass each "
4936 "I<key> in succession to B<getaddrinfo>(3)  with the address family "
4937 "B<AF_UNSPEC>, enumerating each socket address structure returned."
4938 msgstr ""
4939
4940 #. type: TP
4941 #: build/C/man1/getent.1:70
4942 #, no-wrap
4943 msgid "B<ahostsv4>"
4944 msgstr "B<ahostsv4>"
4945
4946 #. type: Plain text
4947 #: build/C/man1/getent.1:76
4948 msgid "Same as B<ahosts>, but use the address family B<AF_INET>."
4949 msgstr ""
4950
4951 #. type: TP
4952 #: build/C/man1/getent.1:76
4953 #, no-wrap
4954 msgid "B<ahostsv6>"
4955 msgstr "B<ahostsv6>"
4956
4957 #. type: Plain text
4958 #: build/C/man1/getent.1:87
4959 msgid ""
4960 "Same as B<ahosts>, but use the address family B<AF_INET6>.  The call to "
4961 "B<getaddrinfo>(3)  in this case includes the B<AI_V4MAPPED> flag."
4962 msgstr ""
4963
4964 #. type: TP
4965 #: build/C/man1/getent.1:87 build/C/man5/nsswitch.conf.5:44
4966 #, no-wrap
4967 msgid "B<aliases>"
4968 msgstr "B<aliases>"
4969
4970 #. type: Plain text
4971 #: build/C/man1/getent.1:104
4972 msgid ""
4973 "When no I<key> is provided, use B<setaliasent>(3), B<getaliasent>(3), and "
4974 "B<endaliasent>(3)  to enumerate the aliases database.  When one or more "
4975 "I<key> arguments are provided, pass each I<key> in succession to "
4976 "B<getaliasbyname>(3)  and display the result."
4977 msgstr ""
4978
4979 #. type: TP
4980 #: build/C/man1/getent.1:104 build/C/man5/nsswitch.conf.5:49
4981 #, no-wrap
4982 msgid "B<ethers>"
4983 msgstr "B<ethers>"
4984
4985 #. type: Plain text
4986 #: build/C/man1/getent.1:120
4987 msgid ""
4988 "When one or more I<key> arguments are provided, pass each I<key> in "
4989 "succession to B<ether_aton>(3)  and B<ether_hostton>(3)  until a result is "
4990 "obtained, and display the result.  Enumeration is not supported on "
4991 "B<ethers>, so a I<key> must be provided."
4992 msgstr ""
4993
4994 #. type: TP
4995 #: build/C/man1/getent.1:120 build/C/man5/nsswitch.conf.5:52
4996 #, no-wrap
4997 msgid "B<group>"
4998 msgstr "B<group>"
4999
5000 #. type: Plain text
5001 #: build/C/man1/getent.1:141
5002 msgid ""
5003 "When no I<key> is provided, use B<setgrent>(3), B<getgrent>(3), and "
5004 "B<endgrent>(3)  to enumerate the group database.  When one or more I<key> "
5005 "arguments are provided, pass each numeric I<key> to B<getgrgid>(3)  and each "
5006 "nonnumeric I<key> to B<getgrnam>(3)  and display the result."
5007 msgstr ""
5008
5009 #. type: TP
5010 #: build/C/man1/getent.1:141
5011 #, no-wrap
5012 msgid "B<gshadow>"
5013 msgstr "B<gshadow>"
5014
5015 #. type: Plain text
5016 #: build/C/man1/getent.1:158
5017 msgid ""
5018 "When no I<key> is provided, use B<setsgent>(3), B<getsgent>(3), and "
5019 "B<endsgent>(3)  to enumerate the gshadow database.  When one or more I<key> "
5020 "arguments are provided, pass each I<key> in succession to B<getsgnam>(3)  "
5021 "and display the result."
5022 msgstr ""
5023
5024 #. type: TP
5025 #: build/C/man1/getent.1:158 build/C/man5/nsswitch.conf.5:57
5026 #, no-wrap
5027 msgid "B<hosts>"
5028 msgstr "B<hosts>"
5029
5030 #. type: Plain text
5031 #: build/C/man1/getent.1:181
5032 msgid ""
5033 "When no I<key> is provided, use B<sethostent>(3), B<gethostent>(3), and "
5034 "B<endhostent>(3)  to enumerate the hosts database.  When one or more I<key> "
5035 "arguments are provided, pass each I<key> to B<gethostbyaddr>(3)  or "
5036 "B<gethostbyname2>(3), depending on whether a call to B<inet_pton>(3)  "
5037 "indicates that the I<key> is an IPv6 or IPv4 address or not, and display the "
5038 "result."
5039 msgstr ""
5040
5041 #. type: TP
5042 #: build/C/man1/getent.1:181
5043 #, no-wrap
5044 msgid "B<initgroups>"
5045 msgstr "B<initgroups>"
5046
5047 #. type: Plain text
5048 #: build/C/man1/getent.1:195
5049 msgid ""
5050 "When one or more I<key> arguments are provided, pass each I<key> in "
5051 "succession to B<getgrouplist>(3)  and display the result.  Enumeration is "
5052 "not supported on B<initgroups>, so a I<key> must be provided."
5053 msgstr ""
5054
5055 #. type: TP
5056 #: build/C/man1/getent.1:195 build/C/man5/nsswitch.conf.5:62
5057 #, no-wrap
5058 msgid "B<netgroup>"
5059 msgstr "B<netgroup>"
5060
5061 #. type: Plain text
5062 #: build/C/man1/getent.1:221
5063 msgid ""
5064 "When one I<key> is provided, pass the I<key> to B<setnetgrent>(3)  and, "
5065 "using B<getnetgrent>(3)  display the resulting string triple (I<hostname>, "
5066 "I<username>, I<domainname>).  Alternatively, three I<keys> may be provided, "
5067 "which are interpreted as the I<hostname>, I<username> and I<domainname> to "
5068 "match to a netgroup name via B<innetgr>(3).  Enumeration is not supported on "
5069 "B<initgroups>, so either one or three I<keys> must be provided."
5070 msgstr ""
5071
5072 #. type: TP
5073 #: build/C/man1/getent.1:221 build/C/man5/nsswitch.conf.5:66
5074 #, no-wrap
5075 msgid "B<networks>"
5076 msgstr "B<networks>"
5077
5078 #. type: Plain text
5079 #: build/C/man1/getent.1:242
5080 msgid ""
5081 "When no I<key> is provided, use B<setnetent>(3), B<getnetent>(3), and "
5082 "B<endnetent>(3)  to enumerate the networks database.  When one or more "
5083 "I<key> arguments are provided, pass each numeric I<key> to B<getnetbyaddr>"
5084 "(3)  and each nonnumeric I<key> to B<getnetbyname>(3)  and display the "
5085 "result."
5086 msgstr ""
5087
5088 #. type: TP
5089 #: build/C/man1/getent.1:242 build/C/man5/nsswitch.conf.5:71
5090 #, no-wrap
5091 msgid "B<passwd>"
5092 msgstr "B<passwd>"
5093
5094 #. type: Plain text
5095 #: build/C/man1/getent.1:263
5096 msgid ""
5097 "When no I<key> is provided, use B<setpwent>(3), B<getpwent>(3), and "
5098 "B<endpwent>(3)  to enumerate the passwd database.  When one or more I<key> "
5099 "arguments are provided, pass each numeric I<key> to B<getpwuid>(3)  and each "
5100 "nonnumeric I<key> to B<getpwnam>(3)  and display the result."
5101 msgstr ""
5102
5103 #. type: TP
5104 #: build/C/man1/getent.1:263 build/C/man5/nsswitch.conf.5:76
5105 #, no-wrap
5106 msgid "B<protocols>"
5107 msgstr "B<protocols>"
5108
5109 #. type: Plain text
5110 #: build/C/man1/getent.1:284
5111 msgid ""
5112 "When no I<key> is provided, use B<setprotoent>(3), B<getprotoent>(3), and "
5113 "B<endprotoent>(3)  to enumerate the protocols database.  When one or more "
5114 "I<key> arguments are provided, pass each numeric I<key> to "
5115 "B<getprotobynumber>(3)  and each nonnumeric I<key> to B<getprotobyname>(3)  "
5116 "and display the result."
5117 msgstr ""
5118
5119 #. type: TP
5120 #: build/C/man1/getent.1:284 build/C/man5/nsswitch.conf.5:84
5121 #, no-wrap
5122 msgid "B<rpc>"
5123 msgstr "B<rpc>"
5124
5125 #. type: Plain text
5126 #: build/C/man1/getent.1:305
5127 msgid ""
5128 "When no I<key> is provided, use B<setrpcent>(3), B<getrpcent>(3), and "
5129 "B<endrpcent>(3)  to enumerate the rpc database.  When one or more I<key> "
5130 "arguments are provided, pass each numeric I<key> to B<getrpcbynumber>(3)  "
5131 "and each nonnumeric I<key> to B<getrpcbyname>(3)  and display the result."
5132 msgstr ""
5133
5134 #. type: TP
5135 #: build/C/man1/getent.1:305 build/C/man5/nsswitch.conf.5:89
5136 #, no-wrap
5137 msgid "B<services>"
5138 msgstr "B<services>"
5139
5140 #. type: Plain text
5141 #: build/C/man1/getent.1:326
5142 msgid ""
5143 "When no I<key> is provided, use B<setservent>(3), B<getservent>(3), and "
5144 "B<endservent>(3)  to enumerate the services database.  When one or more "
5145 "I<key> arguments are provided, pass each numeric I<key> to B<getservbynumber>"
5146 "(3)  and each nonnumeric I<key> to B<getservbyname>(3)  and display the "
5147 "result."
5148 msgstr ""
5149
5150 #. type: TP
5151 #: build/C/man1/getent.1:326 build/C/man5/nsswitch.conf.5:94
5152 #, no-wrap
5153 msgid "B<shadow>"
5154 msgstr "B<shadow>"
5155
5156 #. type: Plain text
5157 #: build/C/man1/getent.1:343
5158 msgid ""
5159 "When no I<key> is provided, use B<setspent>(3), B<getspent>(3), and "
5160 "B<endspent>(3)  to enumerate the shadow database.  When one or more I<key> "
5161 "arguments are provided, pass each I<key> in succession to B<getspnam>(3)  "
5162 "and display the result."
5163 msgstr ""
5164
5165 #. type: SH
5166 #: build/C/man1/getent.1:344
5167 #, no-wrap
5168 msgid "EXIT STATUS"
5169 msgstr "終了ステータス"
5170
5171 #. type: Plain text
5172 #: build/C/man1/getent.1:347
5173 msgid "One of the following exit values can be returned by B<getent>:"
5174 msgstr ""
5175
5176 #. type: TP
5177 #: build/C/man1/getent.1:348
5178 #, no-wrap
5179 msgid "B<0>"
5180 msgstr "B<0>"
5181
5182 #. type: Plain text
5183 #: build/C/man1/getent.1:351
5184 msgid "Command completed successfully."
5185 msgstr "コマンドが正常に完了した。"
5186
5187 #. type: TP
5188 #: build/C/man1/getent.1:351
5189 #, no-wrap
5190 msgid "B<1>"
5191 msgstr "B<1>"
5192
5193 #. type: Plain text
5194 #: build/C/man1/getent.1:356
5195 msgid "Missing arguments, or I<database> unknown."
5196 msgstr "引き数が不足しているか、 知らない I<database> が指定された。"
5197
5198 #. type: TP
5199 #: build/C/man1/getent.1:356
5200 #, no-wrap
5201 msgid "B<2>"
5202 msgstr "B<2>"
5203
5204 #. type: Plain text
5205 #: build/C/man1/getent.1:362
5206 msgid "One or more supplied I<key> could not be found in the I<database>."
5207 msgstr "指定された I<key> が I<database> で見つからなかった。"
5208
5209 #. type: TP
5210 #: build/C/man1/getent.1:362
5211 #, no-wrap
5212 msgid "B<3>"
5213 msgstr "B<3>"
5214
5215 #. type: Plain text
5216 #: build/C/man1/getent.1:366
5217 msgid "Enumeration not supported on this I<database>."
5218 msgstr "この I<database> では列挙はサポートされていない。"
5219
5220 #. type: Plain text
5221 #: build/C/man1/getent.1:369
5222 msgid "B<nsswitch.conf>(5)"
5223 msgstr "B<nsswitch.conf>(5)"
5224
5225 #. type: TH
5226 #: build/C/man3/gethostbyname.3:36
5227 #, no-wrap
5228 msgid "GETHOSTBYNAME"
5229 msgstr "GETHOSTBYNAME"
5230
5231 #. type: TH
5232 #: build/C/man3/gethostbyname.3:36
5233 #, no-wrap
5234 msgid "2010-10-04"
5235 msgstr "2010-10-04"
5236
5237 #. type: Plain text
5238 #: build/C/man3/gethostbyname.3:44
5239 msgid ""
5240 "gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, "
5241 "herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r, "
5242 "gethostbyname_r, gethostent_r - get network host entry"
5243 msgstr ""
5244 "gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, "
5245 "herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r, "
5246 "gethostbyname_r, gethostent_r - ネットワーク上のホストのエントリを取得する"
5247
5248 #. type: Plain text
5249 #: build/C/man3/gethostbyname.3:48
5250 #, no-wrap
5251 msgid ""
5252 "B<#include E<lt>netdb.hE<gt>>\n"
5253 "B<extern int h_errno;>\n"
5254 msgstr ""
5255 "B<#include E<lt>netdb.hE<gt>>\n"
5256 "B<extern int h_errno;>\n"
5257
5258 #. type: Plain text
5259 #: build/C/man3/gethostbyname.3:50
5260 #, no-wrap
5261 msgid "B<struct hostent *gethostbyname(const char *>I<name>B<);>\n"
5262 msgstr "B<struct hostent *gethostbyname(const char *>I<name>B<);>\n"
5263
5264 #. type: Plain text
5265 #: build/C/man3/gethostbyname.3:54
5266 #, no-wrap
5267 msgid ""
5268 "B<#include E<lt>sys/socket.hE<gt>>       /* for AF_INET */\n"
5269 "B<struct hostent *gethostbyaddr(const void *>I<addr>B<,>\n"
5270 "B<                              socklen_t >I<len>B<, int >I<type>B<);>\n"
5271 msgstr ""
5272 "B<#include E<lt>sys/socket.hE<gt>>       /* AF_INET を使う場合 */\n"
5273 "B<struct hostent *gethostbyaddr(const void *>I<addr>B<,>\n"
5274 "B<                              socklen_t >I<len>B<, int >I<type>B<);>\n"
5275
5276 #. type: Plain text
5277 #: build/C/man3/gethostbyname.3:56
5278 #, no-wrap
5279 msgid "B<void sethostent(int >I<stayopen>B<);>\n"
5280 msgstr "B<void sethostent(int >I<stayopen>B<);>\n"
5281
5282 #. type: Plain text
5283 #: build/C/man3/gethostbyname.3:58
5284 #, no-wrap
5285 msgid "B<void endhostent(void);>\n"
5286 msgstr "B<void endhostent(void);>\n"
5287
5288 #. type: Plain text
5289 #: build/C/man3/gethostbyname.3:60
5290 #, no-wrap
5291 msgid "B<void herror(const char *>I<s>B<);>\n"
5292 msgstr "B<void herror(const char *>I<s>B<);>\n"
5293
5294 #. type: Plain text
5295 #: build/C/man3/gethostbyname.3:62
5296 #, no-wrap
5297 msgid "B<const char *hstrerror(int >I<err>B<);>\n"
5298 msgstr "B<const char *hstrerror(int >I<err>B<);>\n"
5299
5300 #. type: Plain text
5301 #: build/C/man3/gethostbyname.3:64
5302 #, no-wrap
5303 msgid "/* System V/POSIX extension */\n"
5304 msgstr "/* System V/POSIX 拡張 */\n"
5305
5306 #. type: Plain text
5307 #: build/C/man3/gethostbyname.3:66
5308 #, no-wrap
5309 msgid "B<struct hostent *gethostent(void);>\n"
5310 msgstr "B<struct hostent *gethostent(void);>\n"
5311
5312 #. type: Plain text
5313 #: build/C/man3/gethostbyname.3:70
5314 #, no-wrap
5315 msgid "B<struct hostent *gethostbyname2(const char *>I<name>B<, int >I<af>B<);>\n"
5316 msgstr "B<struct hostent *gethostbyname2(const char *>I<name>B<, int >I<af>B<);>\n"
5317
5318 #. type: Plain text
5319 #: build/C/man3/gethostbyname.3:74
5320 #, no-wrap
5321 msgid ""
5322 "B<int gethostent_r(>\n"
5323 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5324 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5325 msgstr ""
5326 "B<int gethostent_r(>\n"
5327 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5328 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5329
5330 #. type: Plain text
5331 #: build/C/man3/gethostbyname.3:78
5332 #, no-wrap
5333 msgid ""
5334 "B<int gethostbyaddr_r(const void *>I<addr>B<, socklen_t >I<len>B<, int >I<type>B<,>\n"
5335 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5336 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5337 msgstr ""
5338 "B<int gethostbyaddr_r(const void *>I<addr>B<, socklen_t >I<len>B<, int >I<type>B<,>\n"
5339 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5340 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5341
5342 #. type: Plain text
5343 #: build/C/man3/gethostbyname.3:82
5344 #, no-wrap
5345 msgid ""
5346 "B<int gethostbyname_r(const char *>I<name>B<,>\n"
5347 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5348 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5349 msgstr ""
5350 "B<int gethostbyname_r(const char *>I<name>B<,>\n"
5351 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5352 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5353
5354 #. type: Plain text
5355 #: build/C/man3/gethostbyname.3:86
5356 #, no-wrap
5357 msgid ""
5358 "B<int gethostbyname2_r(const char *>I<name>B<, int >I<af,>\n"
5359 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5360 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5361 msgstr ""
5362 "B<int gethostbyname2_r(const char *>I<name>B<, int >I<af,>\n"
5363 "B<        struct hostent *>I<ret>B<, char *>I<buf>B<, size_t >I<buflen>B<,>\n"
5364 "B<        struct hostent **>I<result>B<, int *>I<h_errnop>B<);>\n"
5365
5366 #. type: Plain text
5367 #: build/C/man3/gethostbyname.3:100
5368 msgid ""
5369 "B<gethostbyname2>(), B<gethostent_r>(), B<gethostbyaddr_r>(), "
5370 "B<gethostbyname_r>(), B<gethostbyname2_r>():"
5371 msgstr ""
5372 "B<gethostbyname2>(), B<gethostent_r>(), B<gethostbyaddr_r>(), "
5373 "B<gethostbyname_r>(), B<gethostbyname2_r>():"
5374
5375 #. type: Plain text
5376 #: build/C/man3/gethostbyname.3:102 build/C/man3/getnetent_r.3:58
5377 #: build/C/man3/getprotoent_r.3:55 build/C/man3/getservent_r.3:55
5378 msgid "_BSD_SOURCE || _SVID_SOURCE"
5379 msgstr "_BSD_SOURCE || _SVID_SOURCE"
5380
5381 #. type: Plain text
5382 #: build/C/man3/gethostbyname.3:106
5383 msgid "B<herror>(), B<hstrerror>():"
5384 msgstr "B<herror>(), B<hstrerror>():"
5385
5386 #. type: TP
5387 #: build/C/man3/gethostbyname.3:107
5388 #, no-wrap
5389 msgid "Since glibc 2.8:"
5390 msgstr "glibc 2.8 以降:"
5391
5392 #. type: Plain text
5393 #: build/C/man3/gethostbyname.3:110
5394 msgid "_BSD_SOURCE || _SVID_SOURCE || _GNU_SOURCE"
5395 msgstr "_BSD_SOURCE || _SVID_SOURCE || _GNU_SOURCE"
5396
5397 #. type: TP
5398 #: build/C/man3/gethostbyname.3:110
5399 #, no-wrap
5400 msgid "Before glibc 2.8:"
5401 msgstr "glibc 2.8 より前:"
5402
5403 #. type: Plain text
5404 #: build/C/man3/gethostbyname.3:113
5405 msgid "none"
5406 msgstr "なし"
5407
5408 #. type: Plain text
5409 #: build/C/man3/gethostbyname.3:127
5410 msgid ""
5411 "The B<gethostbyname*>()  and B<gethostbyaddr*>()  functions are obsolete.  "
5412 "Applications should use B<getaddrinfo>(3)  and B<getnameinfo>(3)  instead."
5413 msgstr ""
5414 "B<gethostbyname*>()  と B<gethostbyaddr*>()  は過去のものである。 アプリケー"
5415 "ションでは、代わりに B<getaddrinfo>(3)  と B<getnameinfo>(3)  を使用するこ"
5416 "と。"
5417
5418 #. type: Plain text
5419 #: build/C/man3/gethostbyname.3:168
5420 msgid ""
5421 "The B<gethostbyname>()  function returns a structure of type I<hostent> for "
5422 "the given host I<name>.  Here I<name> is either a hostname, or an IPv4 "
5423 "address in standard dot notation (as for B<inet_addr>(3)), or an IPv6 "
5424 "address in colon (and possibly dot) notation.  (See RFC\\ 1884 for the "
5425 "description of IPv6 addresses.)  If I<name> is an IPv4 or IPv6 address, no "
5426 "lookup is performed and B<gethostbyname>()  simply copies I<name> into the "
5427 "I<h_name> field and its I<struct in_addr> equivalent into the I<h_addr_list"
5428 "[0]> field of the returned I<hostent> structure.  If I<name> doesn't end in "
5429 "a dot and the environment variable B<HOSTALIASES> is set, the alias file "
5430 "pointed to by B<HOSTALIASES> will first be searched for I<name> (see "
5431 "B<hostname>(7)  for the file format).  The current domain and its parents "
5432 "are searched unless I<name> ends in a dot."
5433 msgstr ""
5434 "B<gethostbyname>()  関数は与えられたホスト名 I<name> に対応する構造体 "
5435 "I<hostent> を返す。 I<name> にはホスト名、ドット区切りの IPv4 アドレス "
5436 "(B<inet_addr>(3)  参照)、コロン区切りの IPv6 アドレス (おそらくドット区切りで"
5437 "も大丈夫)  のいずれかを指定する (IPv6 アドレスの記述方法については RFC\\ "
5438 "1884 を参考にしてほしい)。 I<name> が IPv4 か IPv6 のアドレスだった場合、 名"
5439 "前解決 (lookup) は行われない。その場合には、 B<gethostbyname>()  は I<name> "
5440 "をそのまま I<hostent> 構造体の I<h_name> フィールドにコピーし、 さらに "
5441 "I<name> を I<struct in_addr> 形式で表したデータを I<hostent> 構造体の "
5442 "I<h_addr_list[0]> フィールドに入れて、その I<hostent> 構造体を返す。 I<name> "
5443 "がドットで終了していて、かつ環境変数 B<HOSTALIASES> が設定されている場合、ま"
5444 "ず B<HOSTALIASES> で指定されているエイリアスファイルから I<name> のエントリが"
5445 "検索される (ファイルのフォーマットについては B<hostname>(7)  を参照のこと)。 "
5446 "I<name> がドットで終了していなければ、現在のドメインとその親ドメインが検索さ"
5447 "れる。"
5448
5449 #. type: Plain text
5450 #: build/C/man3/gethostbyname.3:184
5451 msgid ""
5452 "The B<gethostbyaddr>()  function returns a structure of type I<hostent> for "
5453 "the given host address I<addr> of length I<len> and address type I<type>.  "
5454 "Valid address types are B<AF_INET> and B<AF_INET6>.  The host address "
5455 "argument is a pointer to a struct of a type depending on the address type, "
5456 "for example a I<struct in_addr *> (probably obtained via a call to "
5457 "B<inet_addr>(3))  for address type B<AF_INET>."
5458 msgstr ""
5459 "B<gethostbyaddr>()  関数は与えられたホストアドレス I<addr> (長さ I<len>、 タ"
5460 "イプ I<type>) に対応する構造体 I<hostent> を返す。 用いることのできるタイプ"
5461 "は B<AF_INET> と B<AF_INET6> である。 ホストアドレス引き数はアドレスタイプに"
5462 "依存した 構造体へのポインタである。 例えば、アドレスタイプ B<AF_INET> に対し"
5463 "ては (B<inet_addr>(3)  の呼び出しで得られる)  I<struct in_addr *> である。"
5464
5465 #. type: Plain text
5466 #: build/C/man3/gethostbyname.3:191
5467 msgid ""
5468 "The B<sethostent>()  function specifies, if I<stayopen> is true (1), that a "
5469 "connected TCP socket should be used for the name server queries and that the "
5470 "connection should remain open during successive queries.  Otherwise, name "
5471 "server queries will use UDP datagrams."
5472 msgstr ""
5473 "B<sethostent>()  関数は、ネームサーバへの接続形態を指定する。 I<stayopen> が"
5474 "真 (1) ならば、ネームサーバへの問い合わせには、 接続された TCP ソケットを用"
5475 "い、連続した問い合わせの間に接続を維持する。 偽ならばネームサーバへの問い合わ"
5476 "せに UDP データグラムを用いる。"
5477
5478 #. type: Plain text
5479 #: build/C/man3/gethostbyname.3:196
5480 msgid ""
5481 "The B<endhostent>()  function ends the use of a TCP connection for name "
5482 "server queries."
5483 msgstr ""
5484 "B<endhostent>()  関数はネームサーバへの問い合わせに用いた TCP 接続の利用を終"
5485 "了する。"
5486
5487 #. type: Plain text
5488 #: build/C/man3/gethostbyname.3:201
5489 msgid ""
5490 "The (obsolete)  B<herror>()  function prints the error message associated "
5491 "with the current value of I<h_errno> on I<stderr>."
5492 msgstr ""
5493 "(廃止予定の)  B<herror>()  関数は現在の I<h_errno> に対応するエラーメッセージ"
5494 "を標準エラー I<stderr> に出力する。"
5495
5496 #. type: Plain text
5497 #: build/C/man3/gethostbyname.3:206
5498 msgid ""
5499 "The (obsolete)  B<hstrerror>()  function takes an error number (typically "
5500 "I<h_errno>) and returns the corresponding message string."
5501 msgstr ""
5502 "(廃止予定の)  B<hstrerror>()  関数はエラー番号 (通常は I<h_errno>) を引き数に"
5503 "取り、 対応するエラーメッセージ文字列を返す。"
5504
5505 #.  (See
5506 #.  .BR resolv+ (8)).
5507 #. type: Plain text
5508 #: build/C/man3/gethostbyname.3:223
5509 msgid ""
5510 "The domain name queries carried out by B<gethostbyname>()  and "
5511 "B<gethostbyaddr>()  use a combination of any or all of the name server "
5512 "B<named>(8), a broken out line from I</etc/hosts>, and the Network "
5513 "Information Service (NIS or YP), depending upon the contents of the I<order> "
5514 "line in I</etc/host.conf>.  The default action is to query B<named>(8), "
5515 "followed by I</etc/hosts>."
5516 msgstr ""
5517 "B<gethostbyname>()  と B<gethostbyaddr>()  によって実行されるドメイン名の問い"
5518 "合わせでは、ネームサーバ B<named>(8)、 I</etc/hosts> のデータ行、および "
5519 "Network Information Service (NIS または YP)  が組み合わせて使用される。何が使"
5520 "用されるかは、 I</etc/host.conf> の I<order> 行の内容により決まる。 デフォル"
5521 "トでは、まず B<named>(8)  に問い合わせを行い、次いで I</etc/hosts> を参照す"
5522 "る。"
5523
5524 #. type: Plain text
5525 #: build/C/man3/gethostbyname.3:225
5526 msgid "The I<hostent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
5527 msgstr "I<hostent> 構造体は I<E<lt>netdb.hE<gt>> で以下のように定義されている:"
5528
5529 #. type: Plain text
5530 #: build/C/man3/gethostbyname.3:237
5531 #, no-wrap
5532 msgid ""
5533 "struct hostent {\n"
5534 "    char  *h_name;            /* official name of host */\n"
5535 "    char **h_aliases;         /* alias list */\n"
5536 "    int    h_addrtype;        /* host address type */\n"
5537 "    int    h_length;          /* length of address */\n"
5538 "    char **h_addr_list;       /* list of addresses */\n"
5539 "}\n"
5540 "#define h_addr h_addr_list[0] /* for backward compatibility */\n"
5541 msgstr ""
5542 "struct hostent {\n"
5543 "    char  *h_name;            /* official name of host */\n"
5544 "    char **h_aliases;         /* alias list */\n"
5545 "    int    h_addrtype;        /* host address type */\n"
5546 "    int    h_length;          /* length of address */\n"
5547 "    char **h_addr_list;       /* list of addresses */\n"
5548 "}\n"
5549 "#define h_addr h_addr_list[0] /* 過去との互換性のため */\n"
5550
5551 #. type: Plain text
5552 #: build/C/man3/gethostbyname.3:241
5553 msgid "The members of the I<hostent> structure are:"
5554 msgstr "I<hostent> 構造体のメンバは以下の通り。"
5555
5556 #. type: TP
5557 #: build/C/man3/gethostbyname.3:241 build/C/man3/getipnodebyname.3:208
5558 #, no-wrap
5559 msgid "I<h_name>"
5560 msgstr "I<h_name>"
5561
5562 #. type: Plain text
5563 #: build/C/man3/gethostbyname.3:244
5564 msgid "The official name of the host."
5565 msgstr "ホストの正式名 (official name)。"
5566
5567 #. type: TP
5568 #: build/C/man3/gethostbyname.3:244 build/C/man3/getipnodebyname.3:211
5569 #, no-wrap
5570 msgid "I<h_aliases>"
5571 msgstr "I<h_aliases>"
5572
5573 #. type: Plain text
5574 #: build/C/man3/gethostbyname.3:247
5575 msgid ""
5576 "An array of alternative names for the host, terminated by a NULL pointer."
5577 msgstr "ホストの別名の配列。配列は NULL ポインタで終端される。"
5578
5579 #. type: TP
5580 #: build/C/man3/gethostbyname.3:247 build/C/man3/getipnodebyname.3:215
5581 #, no-wrap
5582 msgid "I<h_addrtype>"
5583 msgstr "I<h_addrtype>"
5584
5585 #. type: Plain text
5586 #: build/C/man3/gethostbyname.3:254
5587 msgid "The type of address; always B<AF_INET> or B<AF_INET6> at present."
5588 msgstr "アドレスのタイプ。現在はすべて B<AF_INET> または B<AF_INET6> である。"
5589
5590 #. type: TP
5591 #: build/C/man3/gethostbyname.3:254 build/C/man3/getipnodebyname.3:237
5592 #, no-wrap
5593 msgid "I<h_length>"
5594 msgstr "I<h_length>"
5595
5596 #. type: Plain text
5597 #: build/C/man3/gethostbyname.3:257
5598 msgid "The length of the address in bytes."
5599 msgstr "バイト単位で表したアドレスの長さ。"
5600
5601 #. type: TP
5602 #: build/C/man3/gethostbyname.3:257 build/C/man3/getipnodebyname.3:251
5603 #, no-wrap
5604 msgid "I<h_addr_list>"
5605 msgstr "I<h_addr_list>"
5606
5607 #. type: Plain text
5608 #: build/C/man3/gethostbyname.3:261
5609 msgid ""
5610 "An array of pointers to network addresses for the host (in network byte "
5611 "order), terminated by a NULL pointer."
5612 msgstr ""
5613 "ホストのネットワークアドレスへのポインタの配列。 配列は NULL ポインタで終端さ"
5614 "れる。 ネットワークアドレスはネットワークバイトオーダ形式である。"
5615
5616 #. type: TP
5617 #: build/C/man3/gethostbyname.3:261
5618 #, no-wrap
5619 msgid "I<h_addr>"
5620 msgstr "I<h_addr>"
5621
5622 #. type: Plain text
5623 #: build/C/man3/gethostbyname.3:264
5624 msgid "The first address in I<h_addr_list> for backward compatibility."
5625 msgstr ""
5626 "I<h_addr_list> の最初のアドレス。過去との互換性を保つためのものである。"
5627
5628 #. type: Plain text
5629 #: build/C/man3/gethostbyname.3:276
5630 msgid ""
5631 "The B<gethostbyname>()  and B<gethostbyaddr>()  functions return the "
5632 "I<hostent> structure or a NULL pointer if an error occurs.  On error, the "
5633 "I<h_errno> variable holds an error number.  When non-NULL, the return value "
5634 "may point at static data, see the notes below."
5635 msgstr ""
5636 "B<gethostbyname>()  および B<gethostbyaddr>()  関数は I<hostent> 構造体を返"
5637 "す。エラーが起こったら NULL ポインタを返す。エラーの際には I<h_errno> 変数が"
5638 "エラーの番号を保持する。 返り値が NULL でない場合、静的データをポインタで指し"
5639 "ていることもある。 以下の「注意」を参照すること。"
5640
5641 #. type: Plain text
5642 #: build/C/man3/gethostbyname.3:278
5643 msgid "The variable I<h_errno> can have the following values:"
5644 msgstr "I<h_errno> 変数は以下の値を取りうる。"
5645
5646 #. type: TP
5647 #: build/C/man3/gethostbyname.3:278 build/C/man3/getipnodebyname.3:188
5648 #, no-wrap
5649 msgid "B<HOST_NOT_FOUND>"
5650 msgstr "B<HOST_NOT_FOUND>"
5651
5652 #. type: Plain text
5653 #: build/C/man3/gethostbyname.3:281
5654 msgid "The specified host is unknown."
5655 msgstr "指定したホストが見つからない。"
5656
5657 #. type: TP
5658 #: build/C/man3/gethostbyname.3:281
5659 #, no-wrap
5660 msgid "B<NO_ADDRESS> or B<NO_DATA>"
5661 msgstr "B<NO_ADDRESS  または  NO_DATA>"
5662
5663 #. type: Plain text
5664 #: build/C/man3/gethostbyname.3:284
5665 msgid "The requested name is valid but does not have an IP address."
5666 msgstr "指定した名前は有効だが IP アドレスを持っていない。"
5667
5668 #. type: TP
5669 #: build/C/man3/gethostbyname.3:284 build/C/man3/getipnodebyname.3:197
5670 #, no-wrap
5671 msgid "B<NO_RECOVERY>"
5672 msgstr "B<NO_RECOVERY>"
5673
5674 #. type: Plain text
5675 #: build/C/man3/gethostbyname.3:287
5676 msgid "A nonrecoverable name server error occurred."
5677 msgstr "ネームサーバの復旧不能なエラーが起こった。"
5678
5679 #. type: TP
5680 #: build/C/man3/gethostbyname.3:287 build/C/man3/getipnodebyname.3:200
5681 #, no-wrap
5682 msgid "B<TRY_AGAIN>"
5683 msgstr "B<TRY_AGAIN>"
5684
5685 #. type: Plain text
5686 #: build/C/man3/gethostbyname.3:291
5687 msgid ""
5688 "A temporary error occurred on an authoritative name server.  Try again later."
5689 msgstr ""
5690 "authoritative なネームサーバで一時的なエラーが起こった。 時間をおいてもう一度"
5691 "試すこと。"
5692
5693 #. type: TP
5694 #: build/C/man3/gethostbyname.3:292 build/C/man5/host.conf.5:181
5695 #, no-wrap
5696 msgid "I</etc/host.conf>"
5697 msgstr "I</etc/host.conf>"
5698
5699 #. type: Plain text
5700 #: build/C/man3/gethostbyname.3:295
5701 msgid "resolver configuration file"
5702 msgstr "名前解決の設定ファイル"
5703
5704 #. type: Plain text
5705 #: build/C/man3/gethostbyname.3:295 build/C/man5/host.conf.5:187
5706 #: build/C/man5/hosts.5:88
5707 #, no-wrap
5708 msgid "I</etc/hosts>"
5709 msgstr "I</etc/hosts>"
5710
5711 #. type: Plain text
5712 #: build/C/man3/gethostbyname.3:298
5713 msgid "host database file"
5714 msgstr "ホストのデータベースファイル"
5715
5716 #. type: Plain text
5717 #: build/C/man3/gethostbyname.3:298 build/C/man5/nsswitch.conf.5:294
5718 #: build/C/man3/setnetgrent.3:87
5719 #, no-wrap
5720 msgid "I</etc/nsswitch.conf>"
5721 msgstr "I</etc/nsswitch.conf>"
5722
5723 #. type: Plain text
5724 #: build/C/man3/gethostbyname.3:301
5725 msgid "name service switch configuration"
5726 msgstr "ネームサービス切替設定"
5727
5728 #. type: Plain text
5729 #: build/C/man3/gethostbyname.3:325
5730 msgid ""
5731 "POSIX.1-2001 specifies B<gethostbyname>(), B<gethostbyaddr>(), B<sethostent>"
5732 "(), B<endhostent>(), B<gethostent>(), and I<h_errno>; B<gethostbyname>(), "
5733 "B<gethostbyaddr>(), and I<h_errno> are marked obsolescent in that standard.  "
5734 "POSIX.1-2008 removes the specifications of B<gethostbyname>(), "
5735 "B<gethostbyaddr>(), and I<h_errno>, recommending the use of B<getaddrinfo>"
5736 "(3)  and B<getnameinfo>(3)  instead."
5737 msgstr ""
5738 "POSIX.1-2001 では、 B<gethostbyname>(), B<gethostbyaddr>(), B<sethostent>(), "
5739 "B<endhostent>(), B<gethostent>(), I<h_errno> が規定されており、 "
5740 "B<gethostbyaddr>()  と B<gethostbyname>()  は廃止予定であるとされている。 "
5741 "POSIX.1-2008 では B<gethostbyname>(), B<gethostbyaddr>(), I<h_errno> の仕様が"
5742 "削除されている。 代わりに、 B<getaddrinfo>(3)  と B<getnameinfo>(3)  の使用が"
5743 "推奨されている。"
5744
5745 #. type: Plain text
5746 #: build/C/man3/gethostbyname.3:335
5747 msgid ""
5748 "The functions B<gethostbyname>()  and B<gethostbyaddr>()  may return "
5749 "pointers to static data, which may be overwritten by later calls.  Copying "
5750 "the I<struct hostent> does not suffice, since it contains pointers; a deep "
5751 "copy is required."
5752 msgstr ""
5753 "B<gethostbyname>()  および B<gethostbyaddr>()  関数は静的データへのポインタを"
5754 "返す。 このポインタは、その後の呼び出しで上書きされるかもしれない。 "
5755 "I<hostent> 構造体はポインタを含んでいるので、構造体のコピーだけでは不十分であ"
5756 "る; より深いコピーが必要である。"
5757
5758 #. type: Plain text
5759 #: build/C/man3/gethostbyname.3:359
5760 msgid ""
5761 "In the original BSD implementation the I<len> argument of B<gethostbyname>"
5762 "()  was an I<int>.  The SUSv2 standard is buggy and declares the I<len> "
5763 "argument of B<gethostbyaddr>()  to be of type I<size_t>.  (That is wrong, "
5764 "because it has to be I<int>, and I<size_t> is not.  POSIX.1-2001 makes it "
5765 "I<socklen_t>, which is OK.)  See also B<accept>(2)."
5766 msgstr ""
5767 "オリジナルの BSD の実装では、 B<gethostbyname>()  の I<len> 引き数は I<int> "
5768 "であった。 SUSv2 標準はバグが多く、 B<gethostbyaddr>()  の I<len> パラメータ"
5769 "を I<size_t> 型として宣言している。 (これは誤りで、 I<size_t> 型ではなく "
5770 "I<int> 型でなければならない。 POSIX.1-2001 ではこれを I<socklen_t> としている"
5771 "が、これは OK。)  B<accept>(2)  も参照。"
5772
5773 #. type: Plain text
5774 #: build/C/man3/gethostbyname.3:365
5775 msgid ""
5776 "The BSD prototype for B<gethostbyaddr>()  uses I<const char *> for the first "
5777 "argument."
5778 msgstr ""
5779 "B<gethostbyaddr>()  の BSD のプロトタイプは、最初の引き数として I<const char "
5780 "*> を使う。"
5781
5782 #. type: SS
5783 #: build/C/man3/gethostbyname.3:365
5784 #, no-wrap
5785 msgid "System V/POSIX Extension"
5786 msgstr "System V/POSIX 拡張"
5787
5788 #.  e.g., Linux, FreeBSD, UnixWare, HP-UX
5789 #.  e.g., FreeBSD, AIX
5790 #. type: Plain text
5791 #: build/C/man3/gethostbyname.3:382
5792 msgid ""
5793 "POSIX requires the B<gethostent>()  call, that should return the next entry "
5794 "in the host data base.  When using DNS/BIND this does not make much sense, "
5795 "but it may be reasonable if the host data base is a file that can be read "
5796 "line by line.  On many systems a routine of this name reads from the file I</"
5797 "etc/hosts>.  It may be available only when the library was built without DNS "
5798 "support.  The glibc version will ignore ipv6 entries.  This function is not "
5799 "reentrant, and glibc adds a reentrant version B<gethostent_r>()."
5800 msgstr ""
5801 "POSIX では、 B<gethostent>()  が必須とされている。 この関数はホストデータベー"
5802 "スの次のエントリを返す。 DNS/BIND を使う場合はあまり意味を持たないが、 ホスト"
5803 "データベースが 1 行ずつ読み込まれるファイルである場合は意味がある。 多くのシ"
5804 "ステムでは、この名前のルーチンはファイル I</etc/hosts> を読み込む。 DNS サ"
5805 "ポートなしでライブラリがビルドされた場合にのみ利用可能である。 glibc 版は "
5806 "ipv6 エントリを無視する。 この関数はリエントラント (reentrant) ではなく、 "
5807 "glibc にはリエントラント版の B<gethostent_r>()  が追加された。"
5808
5809 #. type: SS
5810 #: build/C/man3/gethostbyname.3:382
5811 #, no-wrap
5812 msgid "GNU Extensions"
5813 msgstr "GNU 拡張"
5814
5815 #. type: Plain text
5816 #: build/C/man3/gethostbyname.3:388
5817 msgid ""
5818 "Glibc2 also has a B<gethostbyname2>()  that works like B<gethostbyname>(), "
5819 "but permits to specify the address family to which the address must belong."
5820 msgstr ""
5821 "glibc2 には B<gethostbyname2>()  もあり、 B<gethostbyname>()  と同じように動"
5822 "作するが、 こちらはアドレスが属するアドレスファミリーを指定することができる。"
5823
5824 #. type: Plain text
5825 #: build/C/man3/gethostbyname.3:422
5826 msgid ""
5827 "Glibc2 also has reentrant versions B<gethostent_r>(), B<gethostbyaddr_r>(), "
5828 "B<gethostbyname_r>()  and B<gethostbyname2_r>().  The caller supplies a "
5829 "I<hostent> structure I<ret> which will be filled in on success, and a "
5830 "temporary work buffer I<buf> of size I<buflen>.  After the call, I<result> "
5831 "will point to the result on success.  In case of an error or if no entry is "
5832 "found I<result> will be NULL.  The functions return 0 on success and a "
5833 "nonzero error number on failure.  In addition to the errors returned by the "
5834 "nonreentrant versions of these functions, if I<buf> is too small, the "
5835 "functions will return B<ERANGE>, and the call should be retried with a "
5836 "larger buffer.  The global variable I<h_errno> is not modified, but the "
5837 "address of a variable in which to store error numbers is passed in "
5838 "I<h_errnop>."
5839 msgstr ""
5840 "glibc2 にはリエントラントな B<gethostent_r>(), B<gethostbyaddr_r>(), "
5841 "B<gethostbyname_r>()  と B<gethostbyname2_r>()  もある。 呼び出し側は、成功時"
5842 "に結果が格納される I<hostent> 構造体 I<ret> と、大きさ I<buflen> の一時的な作"
5843 "業バッファ I<buf> を提供する。 コール終了後、成功した場合 I<result> は結果を"
5844 "指している。 エラーの場合、またはエントリが見つからなかった場合、 I<result> "
5845 "は NULL になる。 これらの関数は、成功した場合 0 を返し、失敗の場合は 0 以外の"
5846 "エラー番号を返す。 これらの関数のリエントラントでないバージョンが返すエラーに"
5847 "加えて、 これらの関数は、 I<buf> が小さすぎた場合に B<ERANGE> を返す。この場"
5848 "合はもっと大きなバッファを用意して 関数呼び出しを再度行うべきである。 大域変"
5849 "数 I<h_errno> は変更されないが、エラー番号を格納する変数のアドレスが "
5850 "I<h_errnop> に渡される。"
5851
5852 #.  http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482973
5853 #. type: Plain text
5854 #: build/C/man3/gethostbyname.3:427
5855 msgid ""
5856 "B<gethostbyname>()  does not recognize components of a dotted IPv4 address "
5857 "string that are expressed in hexadecimal."
5858 msgstr ""
5859 "B<gethostbyname>()  は、16進数表現のドット区切りの IPv4 アドレス文字列の要素"
5860 "を認識しない。"
5861
5862 #.  .BR getipnodebyaddr (3),
5863 #.  .BR getipnodebyname (3),
5864 #.  .BR resolv+ (8)
5865 #. type: Plain text
5866 #: build/C/man3/gethostbyname.3:441
5867 msgid ""
5868 "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet>(3), B<inet_ntop>(3), "
5869 "B<inet_pton>(3), B<resolver>(3), B<hosts>(5), B<nsswitch.conf>(5), "
5870 "B<hostname>(7), B<named>(8)"
5871 msgstr ""
5872 "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet>(3), B<inet_ntop>(3), "
5873 "B<inet_pton>(3), B<resolver>(3), B<hosts>(5), B<nsswitch.conf>(5), "
5874 "B<hostname>(7), B<named>(8)"
5875
5876 #. type: TH
5877 #: build/C/man3/getipnodebyname.3:24
5878 #, no-wrap
5879 msgid "GETIPNODEBYNAME"
5880 msgstr "GETIPNODEBYNAME"
5881
5882 #. type: TH
5883 #: build/C/man3/getipnodebyname.3:24
5884 #, no-wrap
5885 msgid "2010-09-04"
5886 msgstr "2010-09-04"
5887
5888 #. type: Plain text
5889 #: build/C/man3/getipnodebyname.3:28
5890 msgid ""
5891 "getipnodebyname, getipnodebyaddr, freehostent - get network hostnames and "
5892 "addresses"
5893 msgstr ""
5894 "getipnodebyname, getipnodebyaddr, freehostent - ネットワークホストの名前とア"
5895 "ドレスの取得"
5896
5897 #. type: Plain text
5898 #: build/C/man3/getipnodebyname.3:36
5899 #, no-wrap
5900 msgid ""
5901 "B<struct hostent *getipnodebyname(const char *>I<name>B<, int >I<af>B<,>\n"
5902 "B<                                int >I<flags>B<, int *>I<error_num>B<);>\n"
5903 msgstr ""
5904 "B<struct hostent *getipnodebyname(const char *>I<name>B<, int >I<af>B<,>\n"
5905 "B<                                int >I<flags>B<, int *>I<error_num>B<);>\n"
5906
5907 #. type: Plain text
5908 #: build/C/man3/getipnodebyname.3:39
5909 #, no-wrap
5910 msgid ""
5911 "B<struct hostent *getipnodebyaddr(const void *>I<addr>B<, size_t >I<len>B<,>\n"
5912 "B<                                int >I<af>B<, int *>I<error_num>B<);>\n"
5913 msgstr ""
5914 "B<struct hostent *getipnodebyaddr(const void *>I<addr>B<, size_t >I<len>B<,>\n"
5915 "B<                                int >I<af>B<, int *>I<error_num>B<);>\n"
5916
5917 #. type: Plain text
5918 #: build/C/man3/getipnodebyname.3:41
5919 #, no-wrap
5920 msgid "B<void freehostent(struct hostent *>I<ip>B<);>\n"
5921 msgstr "B<void freehostent(struct hostent *>I<ip>B<);>\n"
5922
5923 #. type: Plain text
5924 #: build/C/man3/getipnodebyname.3:49
5925 msgid ""
5926 "These functions are deprecated (and unavailable in glibc).  Use "
5927 "B<getaddrinfo>(3)  and B<getnameinfo>(3)  instead."
5928 msgstr ""
5929 "これらの関数は非推奨である (glibc では利用できない)。 代わりに B<getaddrinfo>"
5930 "(3)  と B<getnameinfo>(3)  を使うこと。"
5931
5932 #. type: Plain text
5933 #: build/C/man3/getipnodebyname.3:57
5934 msgid ""
5935 "The B<getipnodebyname>()  and B<getipnodebyaddr>()  functions return the "
5936 "names and addresses of a network host.  These functions return a pointer to "
5937 "the following structure:"
5938 msgstr ""
5939 "B<getipnodebyname>()  と B<getipnodebyaddr>()  は、ネットワークホストの名前と"
5940 "アドレスを返す。 これらの関数は、以下の構造体へのポインタを返す。"
5941
5942 #. type: Plain text
5943 #: build/C/man3/getipnodebyname.3:67
5944 #, no-wrap
5945 msgid ""
5946 "struct hostent {\n"
5947 "    char  *h_name;\n"
5948 "    char **h_aliases;\n"
5949 "    int    h_addrtype;\n"
5950 "    int    h_length;\n"
5951 "    char **h_addr_list;\n"
5952 "};\n"
5953 msgstr ""
5954 "struct hostent {\n"
5955 "    char  *h_name;\n"
5956 "    char **h_aliases;\n"
5957 "    int    h_addrtype;\n"
5958 "    int    h_length;\n"
5959 "    char **h_addr_list;\n"
5960 "};\n"
5961
5962 #. type: Plain text
5963 #: build/C/man3/getipnodebyname.3:80
5964 msgid ""
5965 "These functions replace the B<gethostbyname>(3)  and B<gethostbyaddr>(3)  "
5966 "functions, which could only access the IPv4 network address family.  The "
5967 "B<getipnodebyname>()  and B<getipnodebyaddr>()  functions can access "
5968 "multiple network address families."
5969 msgstr ""
5970 "これらの関数は、 IPv4 ネットワークアドレスファミリにしかアクセスできない "
5971 "B<gethostbyname>(3)  や B<gethostbyaddr>(3)  を置き換えるものである。 "
5972 "B<getipnodebyname>()  関数と B<getipnodebyaddr>()  関数は複数のネットワークア"
5973 "ドレスファミリーにアクセス可能になっている。"
5974
5975 #. type: Plain text
5976 #: build/C/man3/getipnodebyname.3:91
5977 msgid ""
5978 "Unlike the B<gethostby> functions, these functions return pointers to "
5979 "dynamically allocated memory.  The B<freehostent>()  function is used to "
5980 "release the dynamically allocated memory after the caller no longer needs "
5981 "the I<hostent> structure."
5982 msgstr ""
5983 "これらの関数は、 B<gethostby> の関数群と異なり、動的に割り当てられたメモリへ"
5984 "のポインタを返す。 呼び出し元がこれらの I<hostent> 構造体を必要としなくなった"
5985 "後は、 B<freehostent>()  関数を用いれば動的な割り当てメモリを解放できる。"
5986
5987 #. type: SS
5988 #: build/C/man3/getipnodebyname.3:91
5989 #, no-wrap
5990 msgid "getipnodebyname() arguments"
5991 msgstr "getipnodebyname() の引き数"
5992
5993 #. type: Plain text
5994 #: build/C/man3/getipnodebyname.3:102
5995 msgid ""
5996 "The B<getipnodebyname>()  function looks up network addresses for the host "
5997 "specified by the I<name> argument.  The I<af> argument specifies one of the "
5998 "following values:"
5999 msgstr ""
6000 "B<getipnodebyname>()  関数は I<name> 引き数で指定されたホストのネットワークア"
6001 "ドレスを引く。 I<af> 引き数には以下の値のいずれかを指定する。"
6002
6003 #. type: TP
6004 #: build/C/man3/getipnodebyname.3:102 build/C/man3/getipnodebyname.3:164
6005 #: build/C/man3/inet_ntop.3:55 build/C/man3/inet_pton.3:51
6006 #, no-wrap
6007 msgid "B<AF_INET>"
6008 msgstr "B<AF_INET>"
6009
6010 #. type: Plain text
6011 #: build/C/man3/getipnodebyname.3:108
6012 msgid ""
6013 "The I<name> argument points to a dotted-quad IPv4 address or a name of an "
6014 "IPv4 network host."
6015 msgstr ""
6016 "I<name> 引き数は、ドットで 4 つに区切られた IPv4 アドレスか、 IPv4 ネットワー"
6017 "クホストの名前へのポインタである。"
6018
6019 #. type: TP
6020 #: build/C/man3/getipnodebyname.3:108 build/C/man3/getipnodebyname.3:174
6021 #: build/C/man3/inet_ntop.3:68 build/C/man3/inet_pton.3:65
6022 #, no-wrap
6023 msgid "B<AF_INET6>"
6024 msgstr "B<AF_INET6>"
6025
6026 #. type: Plain text
6027 #: build/C/man3/getipnodebyname.3:114
6028 msgid ""
6029 "The I<name> argument points to a hexadecimal IPv6 address or a name of an "
6030 "IPv6 network host."
6031 msgstr ""
6032 "I<name> 引き数は、16 進の IPv6 アドレスか、 IPv6 ネットワークホストの名前への"
6033 "ポインタである。"
6034
6035 #. type: Plain text
6036 #: build/C/man3/getipnodebyname.3:123
6037 msgid ""
6038 "The I<flags> argument specifies additional options.  More than one option "
6039 "can be specified by bitwise OR-ing them together.  I<flags> should be set to "
6040 "0 if no options are desired."
6041 msgstr ""
6042 "I<flags> パラメータには追加のオプションを指定する。 複数のフラグを指定するに"
6043 "は、それらのビット単位の OR をとって指定すればよい。 オプションをひとつも指定"
6044 "したくないときには、 I<flags> に 0 を設定する必要がある。"
6045
6046 #. type: TP
6047 #: build/C/man3/getipnodebyname.3:123
6048 #, no-wrap
6049 msgid "B<AI_V4MAPPED>"
6050 msgstr "B<AI_V4MAPPED>"
6051
6052 #. type: Plain text
6053 #: build/C/man3/getipnodebyname.3:130
6054 msgid ""
6055 "This flag is used with B<AF_INET6> to request a query for IPv4 addresses "
6056 "instead of IPv6 addresses; the IPv4 addresses will be mapped to IPv6 "
6057 "addresses."
6058 msgstr ""
6059 "このフラグは B<AF_INET6> と共に用いられ、IPv6 アドレスの代わりに IPv4 アドレ"
6060 "スを問い合わせる。 問い合わせる IPv4 アドレスは IPv6 アドレスにマップされる。"
6061
6062 #. type: TP
6063 #: build/C/man3/getipnodebyname.3:130
6064 #, no-wrap
6065 msgid "B<AI_ALL>"
6066 msgstr "B<AI_ALL>"
6067
6068 #. type: Plain text
6069 #: build/C/man3/getipnodebyname.3:136
6070 msgid ""
6071 "This flag is used with B<AI_V4MAPPED> to request a query for both IPv4 and "
6072 "IPv6 addresses.  Any IPv4 address found will be mapped to an IPv6 address."
6073 msgstr ""
6074 "このフラグは B<AI_V4MAPPED> と共に用いられ、IPv4 アドレスと IPv6 アドレスの両"
6075 "方を問い合わせる。 見つかった IPv4 アドレスは、すべて IPv6 アドレスにマップさ"
6076 "れる。"
6077
6078 #. type: TP
6079 #: build/C/man3/getipnodebyname.3:136
6080 #, no-wrap
6081 msgid "B<AI_ADDRCONFIG>"
6082 msgstr "B<AI_ADDRCONFIG>"
6083
6084 #. type: Plain text
6085 #: build/C/man3/getipnodebyname.3:148
6086 msgid ""
6087 "This flag is used with B<AF_INET6> to further request that queries for IPv6 "
6088 "addresses should not be made unless the system has at least one IPv6 address "
6089 "assigned to a network interface, and that queries for IPv4 addresses should "
6090 "not be made unless the system has at least one IPv4 address assigned to a "
6091 "network interface.  This flag may be used by itself or with the "
6092 "B<AI_V4MAPPED> flag."
6093 msgstr ""
6094 "このフラグは B<AF_INET6> と共に用いられ、 IPv6 が割り当てられたネットワークイ"
6095 "ンターフェースが システムにひとつもなければ IPv6 アドレスの問い合わせを行わ"
6096 "ず、 IPv4 が割り当てられたネットワークインターフェースが システムにひとつもな"
6097 "ければ IPv4 アドレスの問い合わせを行わないように要求する。 このフラグは単独で"
6098 "も、あるいは B<AI_V4MAPPED> フラグと共にでも用いることができる。"
6099
6100 #. type: TP
6101 #: build/C/man3/getipnodebyname.3:148
6102 #, no-wrap
6103 msgid "B<AI_DEFAULT>"
6104 msgstr "B<AI_DEFAULT>"
6105
6106 #. type: Plain text
6107 #: build/C/man3/getipnodebyname.3:152
6108 msgid "This flag is equivalent to B<(AI_ADDRCONFIG | AI_V4MAPPED)>."
6109 msgstr "このフラグは B<(AI_ADDRCONFIG>|B<AI_V4MAPPED)> と等価である。"
6110
6111 #. type: SS
6112 #: build/C/man3/getipnodebyname.3:152
6113 #, no-wrap
6114 msgid "getipnodebyaddr() arguments"
6115 msgstr "getipnodebyaddr() の引き数"
6116
6117 #. type: Plain text
6118 #: build/C/man3/getipnodebyname.3:164
6119 msgid ""
6120 "The B<getipnodebyaddr>()  function looks up the name of the host whose "
6121 "network address is specified by the I<addr> argument.  The I<af> argument "
6122 "specifies one of the following values:"
6123 msgstr ""
6124 "B<getipnodebyaddr>()  関数は、ネットワークアドレスが I<addr> 引き数で指定され"
6125 "たホストの名前を引く。 I<af> 引き数には以下の値のいずれかを指定する。"
6126
6127 #. type: Plain text
6128 #: build/C/man3/getipnodebyname.3:174
6129 msgid ""
6130 "The I<addr> argument points to a I<struct in_addr> and I<len> must be set to "
6131 "I<sizeof(struct in_addr)>."
6132 msgstr ""
6133 "I<addr> 引き数は I<struct in_addr> へのポインターであり、 I<len> 引き数は "
6134 "I<sizeof(struct in_addr)> に設定しなければならない。"
6135
6136 #. type: Plain text
6137 #: build/C/man3/getipnodebyname.3:184
6138 msgid ""
6139 "The I<addr> argument points to a I<struct in6_addr> and I<len> must be set "
6140 "to I<sizeof(struct in6_addr)>."
6141 msgstr ""
6142 "I<addr> 引き数は I<struct in6_addr> へのポインターであり、 I<len> 引き数は "
6143 "I<sizeof(struct in6_addr)> に設定しなければならない。"
6144
6145 #. type: Plain text
6146 #: build/C/man3/getipnodebyname.3:188
6147 msgid ""
6148 "A NULL pointer is returned if an error occurred, and I<error_num> will "
6149 "contain an error code from the following list:"
6150 msgstr ""
6151 "エラーが起こるとヌル・ポインターが返され、 I<error_num> に以下にリストされた"
6152 "エラーコードのいずれかが設定される。"
6153
6154 #. type: Plain text
6155 #: build/C/man3/getipnodebyname.3:191
6156 msgid "The hostname or network address was not found."
6157 msgstr "ホスト名またはネットワークアドレスが見つからなかった。"
6158
6159 #. type: TP
6160 #: build/C/man3/getipnodebyname.3:191
6161 #, no-wrap
6162 msgid "B<NO_ADDRESS>"
6163 msgstr "B<NO_ADDRESS>"
6164
6165 #. type: Plain text
6166 #: build/C/man3/getipnodebyname.3:197
6167 msgid ""
6168 "The domain name server recognized the network address or name, but no answer "
6169 "was returned.  This can happen if the network host has only IPv4 addresses "
6170 "and a request has been made for IPv6 information only, or vice versa."
6171 msgstr ""
6172 "ドメインネームサーバーは そのネットワークアドレスまたはネットワーク名を認識し"
6173 "たが、 返事が返ってこなかった。原因としては、 例えば IPv4 アドレスしか持たな"
6174 "いネットワークホストに対して IPv6 の情報の問い合わせが行われた (およびその"
6175 "逆) などが考えられる。"
6176
6177 #. type: Plain text
6178 #: build/C/man3/getipnodebyname.3:200
6179 msgid "The domain name server returned a permanent failure response."
6180 msgstr ""
6181 "ドメインネームサーバーから恒久的な失敗 (permanent failure)  を意味する返事が"
6182 "返された。"
6183
6184 #. type: Plain text
6185 #: build/C/man3/getipnodebyname.3:204
6186 msgid ""
6187 "The domain name server returned a temporary failure response.  You might "
6188 "have better luck next time."
6189 msgstr ""
6190 "ネームサーバーから一時的な失敗 (temporary failure)  を意味する返事が返され"
6191 "た。次にはもうちょっと運が必要かも。"
6192
6193 #. type: Plain text
6194 #: build/C/man3/getipnodebyname.3:208
6195 msgid ""
6196 "A successful query returns a pointer to a I<hostent> structure that contains "
6197 "the following fields:"
6198 msgstr ""
6199 "問い合わせに成功すると、 I<hostent> 構造体へのポインタが返される。 この構造体"
6200 "は以下のフィールドからなる。"
6201
6202 #. type: Plain text
6203 #: build/C/man3/getipnodebyname.3:211
6204 msgid "This is the official name of this network host."
6205 msgstr "これはこのネットワークホストのオフィシャルな名前である。"
6206
6207 #. type: Plain text
6208 #: build/C/man3/getipnodebyname.3:215
6209 msgid ""
6210 "This is an array of pointers to unofficial aliases for the same host.  The "
6211 "array is terminated by a NULL pointer."
6212 msgstr ""
6213 "これは、そのホストのオフィシャルでない別名へのポインターの配列である。 配列は"
6214 "ヌル・ポインターで終端する。"
6215
6216 #. type: Plain text
6217 #: build/C/man3/getipnodebyname.3:237
6218 msgid ""
6219 "This is a copy of the I<af> argument to B<getipnodebyname>()  or "
6220 "B<getipnodebyaddr>().  I<h_addrtype> will always be B<AF_INET> if the I<af> "
6221 "argument was B<AF_INET>.  I<h_addrtype> will always be B<AF_INET6> if the "
6222 "I<af> argument was B<AF_INET6>."
6223 msgstr ""
6224 "これは B<getipnodebyname>()  または B<getipnodebyaddr>()  に与えられた I<af> "
6225 "引き数のコピーである。 I<af> 引き数が B<AF_INET> なら I<h_addrtype> は常に "
6226 "B<AF_INET> になり、 I<af> 引き数が B<AF_INET6> なら I<h_addrtype> も常に "
6227 "B<AF_INET6> になる。"
6228
6229 #. type: Plain text
6230 #: build/C/man3/getipnodebyname.3:251
6231 msgid ""
6232 "This field will be set to I<sizeof(struct in_addr)> if I<h_addrtype> is "
6233 "B<AF_INET>, and to I<sizeof(struct in6_addr)> if I<h_addrtype> is "
6234 "B<AF_INET6>."
6235 msgstr ""
6236 "このフィールドは、 I<h_addrtype> が B<AF_INET> なら I<sizeof(struct in_addr)"
6237 "> に、 I<h_addrtype> が B<AF_INET6> なら I<sizeof(struct in6_addr)> に設定さ"
6238 "れる。"
6239
6240 #. type: Plain text
6241 #: build/C/man3/getipnodebyname.3:256
6242 msgid ""
6243 "This is an array of one or more pointers to network address structures for "
6244 "the network host.  The array is terminated by a NULL pointer."
6245 msgstr ""
6246 "これはひとつ以上のポインターの配列で、 それぞれのポインターは、 そのネット"
6247 "ワークホストに対応するネットワークアドレス構造体を指す。 この配列はヌル・ポイ"
6248 "ンターで終端する。"
6249
6250 #.  Not in POSIX.1-2001.
6251 #. type: Plain text
6252 #: build/C/man3/getipnodebyname.3:259
6253 msgid "RFC\\ 2553."
6254 msgstr "RFC\\ 2553."
6255
6256 #. type: Plain text
6257 #: build/C/man3/getipnodebyname.3:264
6258 msgid ""
6259 "These functions were present in glibc 2.1.91-95, but were removed again.  "
6260 "Several UNIX-like systems support them, but all call them deprecated."
6261 msgstr ""
6262 "これらの関数は glibc 2.1.91-95 に存在したが、再び削除された。 いくつかの "
6263 "UNIX 風システムはこれらの関数に対応しているが、 これらの関数は全て推奨されな"
6264 "い。"
6265
6266 #. type: Plain text
6267 #: build/C/man3/getipnodebyname.3:269
6268 msgid "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet_ntop>(3), B<inet_pton>(3)"
6269 msgstr "B<getaddrinfo>(3), B<getnameinfo>(3), B<inet_ntop>(3), B<inet_pton>(3)"
6270
6271 #. type: TH
6272 #: build/C/man3/getnameinfo.3:7
6273 #, no-wrap
6274 msgid "GETNAMEINFO"
6275 msgstr "GETNAMEINFO"
6276
6277 #. type: TH
6278 #: build/C/man3/getnameinfo.3:7
6279 #, no-wrap
6280 msgid "2009-12-03"
6281 msgstr "2009-12-03"
6282
6283 #. type: Plain text
6284 #: build/C/man3/getnameinfo.3:10
6285 msgid ""
6286 "getnameinfo - address-to-name translation in protocol-independent manner"
6287 msgstr ""
6288 "getnameinfo - アドレスから名前への変換をプロトコルに依存しないかたちで行う"
6289
6290 #. type: Plain text
6291 #: build/C/man3/getnameinfo.3:14
6292 #, no-wrap
6293 msgid ""
6294 "B<#include E<lt>sys/socket.hE<gt>>\n"
6295 "B<#include E<lt>netdb.hE<gt>>\n"
6296 msgstr ""
6297 "B<#include E<lt>sys/socket.hE<gt>>\n"
6298 "B<#include E<lt>netdb.hE<gt>>\n"
6299
6300 #. type: Plain text
6301 #: build/C/man3/getnameinfo.3:18
6302 #, no-wrap
6303 msgid ""
6304 "B<int getnameinfo(const struct sockaddr *>I<sa>B<, socklen_t >I<salen>B<,>\n"
6305 "B<                char *>I<host>B<, size_t >I<hostlen>B<,>\n"
6306 "B<                char *>I<serv>B<, size_t >I<servlen>B<, int >I<flags>B<);>\n"
6307 msgstr ""
6308 "B<int getnameinfo(const struct sockaddr *>I<sa>B<, socklen_t >I<salen>B<,>\n"
6309 "B<                char *>I<host>B<, size_t >I<hostlen>B<,>\n"
6310 "B<                char *>I<serv>B<, size_t >I<servlen>B<, int >I<flags>B<);>\n"
6311
6312 #. type: Plain text
6313 #: build/C/man3/getnameinfo.3:28
6314 msgid ""
6315 "B<getnameinfo>(): _POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || "
6316 "_POSIX_SOURCE"
6317 msgstr ""
6318 "B<getnameinfo>(): _POSIX_C_SOURCE\\ E<gt>=\\ 1 || _XOPEN_SOURCE || "
6319 "_POSIX_SOURCE"
6320
6321 #. type: Plain text
6322 #: build/C/man3/getnameinfo.3:44
6323 msgid ""
6324 "The B<getnameinfo>()  function is the inverse of B<getaddrinfo>(3): it "
6325 "converts a socket address to a corresponding host and service, in a protocol-"
6326 "independent manner.  It combines the functionality of B<gethostbyaddr>(3)  "
6327 "and B<getservbyport>(3), but unlike those functions, B<getaddrinfo>(3)  is "
6328 "reentrant and allows programs to eliminate IPv4-versus-IPv6 dependencies."
6329 msgstr ""
6330 "B<getnameinfo>()  関数は、 B<getaddrinfo>(3)  の逆の動作を行う。つまり、プロ"
6331 "トコルに依存しないかたちで ソケットアドレスから対応するホスト名とサービスへの"
6332 "変換を行う。 この関数は B<gethostbyaddr>(3)  と B<getservbyport>(3)  の機能を"
6333 "一つにしたものだが、 これらの関数と違い、 B<getnameinfo>(3)  はリエントラント"
6334 "であり、IPv4 と IPv6 の差分に依存しないかたちで プログラムを書くことができ"
6335 "る。"
6336
6337 #. type: Plain text
6338 #: build/C/man3/getnameinfo.3:67
6339 msgid ""
6340 "The I<sa> argument is a pointer to a generic socket address structure (of "
6341 "type I<sockaddr_in> or I<sockaddr_in6>)  of size I<salen> that holds the "
6342 "input IP address and port number.  The arguments I<host> and I<serv> are "
6343 "pointers to caller-allocated buffers (of size I<hostlen> and I<servlen> "
6344 "respectively) into which B<getnameinfo>()  places null-terminated strings "
6345 "containing the host and service names respectively."
6346 msgstr ""
6347 "I<sa> 引き数は、 IP アドレスとポート番号の情報を保持している 汎用的なソケット"
6348 "アドレス構造体 (I<sockaddr_in> 型または I<sockaddr_in6> 型) へのポインタであ"
6349 "る。 I<salen> は I<sa> のサイズである。 I<host> と I<serv> 引き数は、(それぞ"
6350 "れサイズが I<hostlen> と I<servlen> の) 呼び出し側で確保されたバッファへのポ"
6351 "インタであり、 ホスト名とサービス名を含む NULL 終端された文字列が それぞれの"
6352 "バッファに格納される。"
6353
6354 #. type: Plain text
6355 #: build/C/man3/getnameinfo.3:80
6356 msgid ""
6357 "The caller can specify that no hostname (or no service name)  is required by "
6358 "providing a NULL I<host> (or I<serv>)  argument or a zero I<hostlen> (or "
6359 "I<servlen>)  argument.  However, at least one of hostname or service name "
6360 "must be requested."
6361 msgstr ""
6362 "ホスト名が不要であることをこの関数に伝えるには、 I<host> に NULL を指定する"
6363 "か、 I<hostlen> に 0 を指定する。同様に、サービス名が不要な場合は、 I<serv> "
6364 "に NULL を指定するか、 I<servlen> に 0 を指定する。 しかし、ホスト名とサービ"
6365 "ス名の両方を不要だと指定することはできない (いずれか一方は要求すること)。"
6366
6367 #. type: Plain text
6368 #: build/C/man3/getnameinfo.3:86
6369 msgid ""
6370 "The I<flags> argument modifies the behavior of B<getnameinfo>()  as follows:"
6371 msgstr ""
6372 "I<flags> 引き数で B<getnameinfo>()  の動作を変えることができる。指定できる値"
6373 "は以下の通り:"
6374
6375 #. type: TP
6376 #: build/C/man3/getnameinfo.3:86
6377 #, no-wrap
6378 msgid "B<NI_NAMEREQD>"
6379 msgstr "B<NI_NAMEREQD>"
6380
6381 #. type: Plain text
6382 #: build/C/man3/getnameinfo.3:89
6383 msgid "If set, then an error is returned if the hostname cannot be determined."
6384 msgstr "指定すると、ホスト名が決定できなかった場合にエラーを返す。"
6385
6386 #. type: TP
6387 #: build/C/man3/getnameinfo.3:89
6388 #, no-wrap
6389 msgid "B<NI_DGRAM>"
6390 msgstr "B<NI_DGRAM>"
6391
6392 #. type: Plain text
6393 #: build/C/man3/getnameinfo.3:95
6394 msgid ""
6395 "If set, then the service is datagram (UDP) based rather than stream (TCP) "
6396 "based.  This is required for the few ports (512-514)  that have different "
6397 "services for UDP and TCP."
6398 msgstr ""
6399 "指定すると、ストリームベース (TCP) でなくデータグラムベース (UDP)  のサービス"
6400 "を対象にする。数は少ないが、 UDP と TCP で違うサービスを提供しているポート "
6401 "(512-514) に対して必要となる。"
6402
6403 #. type: TP
6404 #: build/C/man3/getnameinfo.3:95
6405 #, no-wrap
6406 msgid "B<NI_NOFQDN>"
6407 msgstr "B<NI_NOFQDN>"
6408
6409 #. type: Plain text
6410 #: build/C/man3/getnameinfo.3:99
6411 msgid ""
6412 "If set, return only the hostname part of the fully qualified domain name for "
6413 "local hosts."
6414 msgstr ""
6415 "指定すると、ローカルなホストには fully qualified domain name (FQDN) の ホスト"
6416 "名の部分のみを返す。"
6417
6418 #. type: TP
6419 #: build/C/man3/getnameinfo.3:99
6420 #, no-wrap
6421 msgid "B<NI_NUMERICHOST>"
6422 msgstr "B<NI_NUMERICHOST>"
6423
6424 #.  For example, by calling
6425 #.  .BR inet_ntop ()
6426 #.  instead of
6427 #.  .BR gethostbyaddr ().
6428 #.  POSIX.1-2003 has NI_NUMERICSCOPE, but glibc doesn't have it.
6429 #. type: Plain text
6430 #: build/C/man3/getnameinfo.3:109
6431 msgid ""
6432 "If set, then the numeric form of the hostname is returned.  (When not set, "
6433 "this will still happen in case the node's name cannot be determined.)"
6434 msgstr ""
6435 "指定すると、数値形式のホスト名が返される。 (指定しなくても、ノードの名前が決"
6436 "定できない場合は数値形式が返ることがある)。"
6437
6438 #. type: TP
6439 #: build/C/man3/getnameinfo.3:109
6440 #, no-wrap
6441 msgid "B<NI_NUMERICSERV>"
6442 msgstr "B<NI_NUMERICSERV>"
6443
6444 #. type: Plain text
6445 #: build/C/man3/getnameinfo.3:114
6446 msgid ""
6447 "If set, then the numeric form of the service address is returned.  (When not "
6448 "set, this will still happen in case the service's name cannot be determined.)"
6449 msgstr ""
6450 "指定すると、数値形式のサービス名 (例えばポート番号) が返される (指定しなくて"
6451 "も、サービス名が決定できない場合は数値形式が返ることがある)。"
6452
6453 #. type: Plain text
6454 #: build/C/man3/getnameinfo.3:123
6455 msgid ""
6456 "Starting with glibc 2.3.4, B<getnameinfo>()  has been extended to "
6457 "selectively allow hostnames to be transparently converted to and from the "
6458 "Internationalized Domain Name (IDN) format (see RFC 3490, "
6459 "I<Internationalizing Domain Names in Applications (IDNA)>).  Three new flags "
6460 "are defined:"
6461 msgstr ""
6462 "glibc 2.3.4 から、 B<getnameinfo>()  に拡張が行われ、ホスト名と 国際化ドメイ"
6463 "ン名 (Internationalized Domain Name; IDN) 形式との間で 透過的な変換ができるよ"
6464 "うになっている (IDN 形式については RFC 3490 の I<Internationalizing Domain "
6465 "Names in Applications (IDNA)> を参照)。3つのフラグが新たに定義されている:"
6466
6467 #. type: TP
6468 #: build/C/man3/getnameinfo.3:123
6469 #, no-wrap
6470 msgid "B<NI_IDN>"
6471 msgstr "B<NI_IDN>"
6472
6473 #. type: Plain text
6474 #: build/C/man3/getnameinfo.3:129
6475 msgid ""
6476 "If this flag is used, then the name found in the lookup process is converted "
6477 "from IDN format to the locale's encoding if necessary.  ASCII-only names are "
6478 "not affected by the conversion, which makes this flag usable in existing "
6479 "programs and environments."
6480 msgstr ""
6481 "このフラグを指定すると、必要であれば、検索処理で見つかった名前は IDN 形式から"
6482 "ロケールに応じた符号化形式に変換される。 ASCII 文字だけの名前はこの変換では影"
6483 "響を受けない。このため、 既存のプログラムや環境でこのフラグを使うことができ"
6484 "る。"
6485
6486 #. type: TP
6487 #: build/C/man3/getnameinfo.3:129
6488 #, no-wrap
6489 msgid "B<NI_IDN_ALLOW_UNASSIGNED>, B<NI_IDN_USE_STD3_ASCII_RULES>"
6490 msgstr "B<NI_IDN_ALLOW_UNASSIGNED>, B<NI_IDN_USE_STD3_ASCII_RULES>"
6491
6492 #.  FIXME glibc defines the following additional errors, some which
6493 #.  can probably be returned by getnameinfo(); they need to
6494 #.  be documented.
6495 #.  #ifdef __USE_GNU
6496 #.  #define EAI_INPROGRESS  -100  /* Processing request in progress.  */
6497 #.  #define EAI_CANCELED    -101  /* Request canceled.  */
6498 #.  #define EAI_NOTCANCELED -102  /* Request not canceled.  */
6499 #.  #define EAI_ALLDONE     -103  /* All requests done.  */
6500 #.  #define EAI_INTR        -104  /* Interrupted by a signal.  */
6501 #.  #define EAI_IDN_ENCODE  -105  /* IDN encoding failed.  */
6502 #.  #endif
6503 #. type: Plain text
6504 #: build/C/man3/getnameinfo.3:152
6505 msgid ""
6506 "On success 0 is returned, and node and service names, if requested, are "
6507 "filled with null-terminated strings, possibly truncated to fit the specified "
6508 "buffer lengths.  On error one of the following nonzero error codes is "
6509 "returned:"
6510 msgstr ""
6511 "成功すると 0 が返り、(要求されていれば) ノードとサービスの名前が NULL 終端さ"
6512 "れた文字列の形式でそれぞれの指定バッファに返される (バッファの長さにあうよう"
6513 "に縮められるかもしれない)。 エラーの場合は、以下の 0 以外のエラー・コードが返"
6514 "される:"
6515
6516 #. type: Plain text
6517 #: build/C/man3/getnameinfo.3:156
6518 msgid "The name could not be resolved at this time.  Try again later."
6519 msgstr "指定された名前が現時点では解決できなかった。 後で再試行してみること。"
6520
6521 #. type: Plain text
6522 #: build/C/man3/getnameinfo.3:161
6523 msgid "The I<flags> argument has an invalid value."
6524 msgstr "I<flags> 引き数に不正な値が与えられた。"
6525
6526 #. type: Plain text
6527 #: build/C/man3/getnameinfo.3:164
6528 msgid "A nonrecoverable error occurred."
6529 msgstr "回復できないエラーが発生した。"
6530
6531 #. type: Plain text
6532 #: build/C/man3/getnameinfo.3:168
6533 msgid ""
6534 "The address family was not recognized, or the address length was invalid for "
6535 "the specified family."
6536 msgstr ""
6537 "指定したアドレスファミリーが認識できなかった。 あるいはアドレスの長さが指定さ"
6538 "れたファミリーに合うものでなかった。"
6539
6540 #. type: Plain text
6541 #: build/C/man3/getnameinfo.3:177
6542 msgid ""
6543 "The name does not resolve for the supplied arguments.  B<NI_NAMEREQD> is set "
6544 "and the host's name cannot be located, or neither hostname nor service name "
6545 "were requested."
6546 msgstr ""
6547 "与えられたパラメータでは名前が解決できない。 B<NI_NAMEREQD> が設定されていた"
6548 "がホスト名が決定できなかったか、 ホスト名もサービス名も要求されなかった。"
6549
6550 #. type: TP
6551 #: build/C/man3/getnameinfo.3:177
6552 #, no-wrap
6553 msgid "B<EAI_OVERFLOW>"
6554 msgstr "B<EAI_OVERFLOW>"
6555
6556 #. type: Plain text
6557 #: build/C/man3/getnameinfo.3:184
6558 msgid "The buffer pointed to by I<host> or I<serv> was too small."
6559 msgstr "I<host> または I<serv> が指しているバッファが小さすぎた。"
6560
6561 #. type: Plain text
6562 #: build/C/man3/getnameinfo.3:189
6563 msgid "A system error occurred.  The error code can be found in I<errno>."
6564 msgstr "システムエラーが起った。 エラーコードは I<errno> に設定される。"
6565
6566 #. type: Plain text
6567 #: build/C/man3/getnameinfo.3:196
6568 msgid "/etc/hosts"
6569 msgstr "/etc/hosts"
6570
6571 #. type: Plain text
6572 #: build/C/man3/getnameinfo.3:198
6573 msgid "/etc/nsswitch.conf"
6574 msgstr "/etc/nsswitch.conf"
6575
6576 #. type: Plain text
6577 #: build/C/man3/getnameinfo.3:200
6578 msgid "/etc/resolv.conf"
6579 msgstr "/etc/resolv.conf"
6580
6581 #. type: Plain text
6582 #: build/C/man3/getnameinfo.3:203
6583 msgid "B<getnameinfo>()  is provided in glibc since version 2.1."
6584 msgstr "B<getnameinfo>()  は、glibc バージョン 2.1 以降で提供されている。"
6585
6586 #. type: Plain text
6587 #: build/C/man3/getnameinfo.3:205
6588 msgid "RFC\\ 2553, POSIX.1-2001."
6589 msgstr "RFC\\ 2553, POSIX.1-2001."
6590
6591 #. type: Plain text
6592 #: build/C/man3/getnameinfo.3:210
6593 msgid ""
6594 "In order to assist the programmer in choosing reasonable sizes for the "
6595 "supplied buffers, I<E<lt>netdb.hE<gt>> defines the constants"
6596 msgstr ""
6597 "適切なバッファサイズを選択できるように、 I<E<lt>netdb.hE<gt>> に以下の定数が"
6598 "定義されている。"
6599
6600 #. type: Plain text
6601 #: build/C/man3/getnameinfo.3:215
6602 #, no-wrap
6603 msgid ""
6604 "#define NI_MAXHOST      1025\n"
6605 "#define NI_MAXSERV      32\n"
6606 msgstr ""
6607 "#define NI_MAXHOST      1025\n"
6608 "#define NI_MAXSERV      32\n"
6609
6610 #. type: Plain text
6611 #: build/C/man3/getnameinfo.3:225
6612 msgid ""
6613 "Since glibc 2.8, these definitions are exposed only if one of the feature "
6614 "test macros B<_BSD_SOURCE>, B<_SVID_SOURCE>, or B<_GNU_SOURCE> is defined."
6615 msgstr ""
6616 "glibc 2.8 以降では、機能検査マクロ B<_BSD_SOURCE>, B<_SVID_SOURCE>, "
6617 "B<_GNU_SOURCE> のいずれかが定義された場合にのみ、これらの定義が公開される。"
6618
6619 #. type: Plain text
6620 #: build/C/man3/getnameinfo.3:233
6621 msgid ""
6622 "The former is the constant B<MAXDNAME> in recent versions of BIND's "
6623 "I<E<lt>arpa/nameser.hE<gt>> header file.  The latter is a guess based on the "
6624 "services listed in the current Assigned Numbers RFC."
6625 msgstr ""
6626 "前者は、最近のバージョンの BIND のヘッダファイル I<E<lt>arpa/nameser.hE<gt>> "
6627 "中の定数 B<MAXDNAME> と同じ値である。 後者は、割り当て済の数値について記した"
6628 "現在の RFC に 列挙されてサービスから推量した値である。"
6629
6630 #. type: Plain text
6631 #: build/C/man3/getnameinfo.3:238
6632 msgid ""
6633 "The following code tries to get the numeric hostname and service name, for a "
6634 "given socket address.  Note that there is no hardcoded reference to a "
6635 "particular address family."
6636 msgstr ""
6637 "以下のコードは、指定されたソケットアドレスに対する ホストとサービスの数値表式"
6638 "を取得しようと試みる。 特定のアドレスファミリーに対する参照情報は 一切ハード"
6639 "コードされていないことに着目してほしい。"
6640
6641 #. type: Plain text
6642 #: build/C/man3/getnameinfo.3:244
6643 #, no-wrap
6644 msgid ""
6645 "struct sockaddr *sa;    /* input */\n"
6646 "socklen_t len;         /* input */\n"
6647 "char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];\n"
6648 msgstr ""
6649 "struct sockaddr *sa;    /* input */\n"
6650 "socklen_t len;          /* input */\n"
6651 "char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV];\n"
6652
6653 #. type: Plain text
6654 #: build/C/man3/getnameinfo.3:248
6655 #, no-wrap
6656 msgid ""
6657 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf), sbuf,\n"
6658 "            sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV) == 0)\n"
6659 "    printf(\"host=%s, serv=%s\\en\", hbuf, sbuf);\n"
6660 msgstr ""
6661 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf), sbuf,\n"
6662 "            sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV) == 0)\n"
6663 "    printf(\"host=%s, serv=%s\\en\", hbuf, sbuf);\n"
6664
6665 #. type: Plain text
6666 #: build/C/man3/getnameinfo.3:253
6667 msgid ""
6668 "The following version checks if the socket address has a reverse address "
6669 "mapping."
6670 msgstr ""
6671 "以下ではソケットアドレスに 逆向きのアドレスマッピングが存在するかをチェックし"
6672 "ている。"
6673
6674 #. type: Plain text
6675 #: build/C/man3/getnameinfo.3:259
6676 #, no-wrap
6677 msgid ""
6678 "struct sockaddr *sa;    /* input */\n"
6679 "socklen_t len;         /* input */\n"
6680 "char hbuf[NI_MAXHOST];\n"
6681 msgstr ""
6682 "struct sockaddr *sa;    /* input */\n"
6683 "socklen_t len;          /* input */\n"
6684 "char hbuf[NI_MAXHOST];\n"
6685
6686 #. type: Plain text
6687 #: build/C/man3/getnameinfo.3:265
6688 #, no-wrap
6689 msgid ""
6690 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf),\n"
6691 "            NULL, 0, NI_NAMEREQD))\n"
6692 "    printf(\"could not resolve hostname\");\n"
6693 "else\n"
6694 "    printf(\"host=%s\\en\", hbuf);\n"
6695 msgstr ""
6696 "if (getnameinfo(sa, len, hbuf, sizeof(hbuf),\n"
6697 "            NULL, 0, NI_NAMEREQD))\n"
6698 "    printf(\"could not resolve hostname\");\n"
6699 "else\n"
6700 "    printf(\"host=%s\\en\", hbuf);\n"
6701
6702 #. type: Plain text
6703 #: build/C/man3/getnameinfo.3:272
6704 msgid ""
6705 "An example program using B<getnameinfo>()  can be found in B<getaddrinfo>(3)."
6706 msgstr ""
6707 "B<getnameinfo>()  を使ったプログラム例が B<getaddrinfo>(3)  に記載されてい"
6708 "る。"
6709
6710 #. type: Plain text
6711 #: build/C/man3/getnameinfo.3:287
6712 msgid ""
6713 "B<accept>(2), B<getpeername>(2), B<getsockname>(2), B<recvfrom>(2), B<socket>"
6714 "(2), B<getaddrinfo>(3), B<gethostbyaddr>(3), B<getservbyname>(3), "
6715 "B<getservbyport>(3), B<inet_ntop>(3), B<hosts>(5), B<services>(5), "
6716 "B<hostname>(7), B<named>(8)"
6717 msgstr ""
6718 "B<accept>(2), B<getpeername>(2), B<getsockname>(2), B<recvfrom>(2), B<socket>"
6719 "(2), B<getaddrinfo>(3), B<gethostbyaddr>(3), B<getservbyname>(3), "
6720 "B<getservbyport>(3), B<inet_ntop>(3), B<hosts>(5), B<services>(5), "
6721 "B<hostname>(7), B<named>(8)"
6722
6723 #. type: Plain text
6724 #: build/C/man3/getnameinfo.3:291
6725 msgid ""
6726 "R. Gilligan, S. Thomson, J. Bound and W. Stevens, I<Basic Socket Interface "
6727 "Extensions for IPv6>, RFC\\ 2553, March 1999."
6728 msgstr ""
6729 "R. Gilligan, S. Thomson, J. Bound and W. Stevens, I<Basic Socket Interface "
6730 "Extensions for IPv6>, RFC\\ 2553, March 1999."
6731
6732 #. type: Plain text
6733 #: build/C/man3/getnameinfo.3:296
6734 msgid ""
6735 "Tatsuya Jinmei and Atsushi Onoe, I<An Extension of Format for IPv6 Scoped "
6736 "Addresses>, internet draft, work in progress.  ftp://ftp.ietf.org/internet-"
6737 "drafts/draft-ietf-ipngwg-scopedaddr-format-02.txt"
6738 msgstr ""
6739 "Tatsuya Jinmei and Atsushi Onoe, I<An Extension of Format for IPv6 Scoped "
6740 "Addresses>, internet draft, work in progress.  ftp://ftp.ietf.org/internet-"
6741 "drafts/draft-ietf-ipngwg-scopedaddr-format-02.txt"
6742
6743 #. type: Plain text
6744 #: build/C/man3/getnameinfo.3:302
6745 msgid ""
6746 "Craig Metz, I<Protocol Independence Using the Sockets API>, Proceedings of "
6747 "the freenix track: 2000 USENIX annual technical conference, June 2000.  "
6748 "http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/"
6749 "metzprotocol.html"
6750 msgstr ""
6751 "Craig Metz, I<Protocol Independence Using the Sockets API>, Proceedings of "
6752 "the freenix track: 2000 USENIX annual technical conference, June 2000.  "
6753 "http://www.usenix.org/publications/library/proceedings/usenix2000/freenix/"
6754 "metzprotocol.html"
6755
6756 #. type: TH
6757 #: build/C/man3/getnetent.3:28
6758 #, no-wrap
6759 msgid "GETNETENT"
6760 msgstr "GETNETENT"
6761
6762 #. type: TH
6763 #: build/C/man3/getnetent.3:28 build/C/man3/getprotoent.3:28
6764 #: build/C/man3/getservent.3:32
6765 #, no-wrap
6766 msgid "2008-08-19"
6767 msgstr "2008-08-19"
6768
6769 #. type: Plain text
6770 #: build/C/man3/getnetent.3:32
6771 msgid ""
6772 "getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent - get network "
6773 "entry"
6774 msgstr ""
6775 "getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent - ネットワークエ"
6776 "ントリを取得する"
6777
6778 #. type: Plain text
6779 #: build/C/man3/getnetent.3:35 build/C/man3/getnetent_r.3:31
6780 #: build/C/man3/getprotoent.3:35 build/C/man3/getprotoent_r.3:31
6781 #: build/C/man3/getservent.3:39 build/C/man3/getservent_r.3:31
6782 #: build/C/man3/setnetgrent.3:12
6783 #, no-wrap
6784 msgid "B<#include E<lt>netdb.hE<gt>>\n"
6785 msgstr "B<#include E<lt>netdb.hE<gt>>\n"
6786
6787 #. type: Plain text
6788 #: build/C/man3/getnetent.3:37
6789 #, no-wrap
6790 msgid "B<struct netent *getnetent(void);>\n"
6791 msgstr "B<struct netent *getnetent(void);>\n"
6792
6793 #. type: Plain text
6794 #: build/C/man3/getnetent.3:39
6795 #, no-wrap
6796 msgid "B<struct netent *getnetbyname(const char *>I<name>B<);>\n"
6797 msgstr "B<struct netent *getnetbyname(const char *>I<name>B<);>\n"
6798
6799 #. type: Plain text
6800 #: build/C/man3/getnetent.3:41
6801 #, no-wrap
6802 msgid "B<struct netent *getnetbyaddr(uint32_t >I<net>B<, int >I<type>B<);>\n"
6803 msgstr "B<struct netent *getnetbyaddr(uint32_t >I<net>B<, int >I<type>B<);>\n"
6804
6805 #. type: Plain text
6806 #: build/C/man3/getnetent.3:43
6807 #, no-wrap
6808 msgid "B<void setnetent(int >I<stayopen>B<);>\n"
6809 msgstr "B<void setnetent(int >I<stayopen>B<);>\n"
6810
6811 #. type: Plain text
6812 #: build/C/man3/getnetent.3:45
6813 #, no-wrap
6814 msgid "B<void endnetent(void);>\n"
6815 msgstr "B<void endnetent(void);>\n"
6816
6817 #. type: Plain text
6818 #: build/C/man3/getnetent.3:53
6819 msgid ""
6820 "The B<getnetent>()  function reads the next entry from the networks database "
6821 "and returns a I<netent> structure containing the broken-out fields from the "
6822 "entry.  A connection is opened to the database if necessary."
6823 msgstr ""
6824 "B<getnetent>()  関数はネットワークデータベースから次のエントリを読み込み、 そ"
6825 "のエントリを I<netent> 構造体の要素別のフィールドに格納し、 その構造体を返"
6826 "す。 必要であれば、データベースへの接続がオープンされる。"
6827
6828 #. type: Plain text
6829 #: build/C/man3/getnetent.3:59
6830 msgid ""
6831 "The B<getnetbyname>()  function returns a I<netent> structure for the entry "
6832 "from the database that matches the network I<name>."
6833 msgstr ""
6834 "B<getnetbyname>()  関数は、ネットワーク名 I<name> にマッチするエントリを デー"
6835 "タベースから探し、そのエントリを収めた I<netent> 構造体を返す。"
6836
6837 #. type: Plain text
6838 #: build/C/man3/getnetent.3:69
6839 msgid ""
6840 "The B<getnetbyaddr>()  function returns a I<netent> structure for the entry "
6841 "from the database that matches the network number I<net> of type I<type>.  "
6842 "The I<net> argument must be in host byte order."
6843 msgstr ""
6844 "B<getnetbyaddr>()  関数は、I<type> 型のネットワーク番号 I<net> にマッチするエ"
6845 "ントリを データベースから探し、そのエントリを収めた I<netent> 構造体を返す。 "
6846 "I<net> 引き数はホスト・バイトオーダでなければならない。"
6847
6848 #. type: Plain text
6849 #: build/C/man3/getnetent.3:79
6850 msgid ""
6851 "The B<setnetent>()  function opens a connection to the database, and sets "
6852 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
6853 "connection to the database will not be closed between calls to one of the "
6854 "B<getnet*>()  functions."
6855 msgstr ""
6856 "B<setnetent>()  関数はデータベースへの接続をオープンし、 次の読み込みエントリ"
6857 "を先頭のエントリに設定する。 I<stayopen> が 0 でない場合、 一つ一つの "
6858 "B<getnet*>()  関数の呼び出し間でデータベースへの接続をクローズしない。"
6859
6860 #. type: Plain text
6861 #: build/C/man3/getnetent.3:83
6862 msgid "The B<endnetent>()  function closes the connection to the database."
6863 msgstr "B<endnetent>()  関数はデータベースへの接続をクローズする。"
6864
6865 #. type: Plain text
6866 #: build/C/man3/getnetent.3:85
6867 msgid "The I<netent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
6868 msgstr "I<netent> 構造体は I<E<lt>netdb.hE<gt>> で以下のように定義されている。"
6869
6870 #. type: Plain text
6871 #: build/C/man3/getnetent.3:94
6872 #, no-wrap
6873 msgid ""
6874 "struct netent {\n"
6875 "    char      *n_name;     /* official network name */\n"
6876 "    char     **n_aliases;  /* alias list */\n"
6877 "    int        n_addrtype; /* net address type */\n"
6878 "    uint32_t   n_net;      /* network number */\n"
6879 "}\n"
6880 msgstr ""
6881 "struct netent {\n"
6882 "    char      *n_name;     /* official network name */\n"
6883 "    char     **n_aliases;  /* alias list */\n"
6884 "    int        n_addrtype; /* net address type */\n"
6885 "    uint32_t   n_net;      /* network number */\n"
6886 "}\n"
6887
6888 #. type: Plain text
6889 #: build/C/man3/getnetent.3:98
6890 msgid "The members of the I<netent> structure are:"
6891 msgstr "I<netent> 構造体のメンバは以下の通り。"
6892
6893 #. type: TP
6894 #: build/C/man3/getnetent.3:98
6895 #, no-wrap
6896 msgid "I<n_name>"
6897 msgstr "I<n_name>"
6898
6899 #. type: Plain text
6900 #: build/C/man3/getnetent.3:101
6901 msgid "The official name of the network."
6902 msgstr "ネットワークの正式名 (official name)。"
6903
6904 #. type: TP
6905 #: build/C/man3/getnetent.3:101
6906 #, no-wrap
6907 msgid "I<n_aliases>"
6908 msgstr "I<n_aliases>"
6909
6910 #. type: Plain text
6911 #: build/C/man3/getnetent.3:104
6912 msgid "A NULL-terminated list of alternative names for the network."
6913 msgstr "ネットワークの別名からなるリスト。 リストは NULL で終端される。"
6914
6915 #. type: TP
6916 #: build/C/man3/getnetent.3:104
6917 #, no-wrap
6918 msgid "I<n_addrtype>"
6919 msgstr "I<n_addrtype>"
6920
6921 #. type: Plain text
6922 #: build/C/man3/getnetent.3:108
6923 msgid "The type of the network number; always B<AF_INET>."
6924 msgstr "ネットワーク番号の形式。現在は B<AF_INET> のみ。"
6925
6926 #. type: TP
6927 #: build/C/man3/getnetent.3:108
6928 #, no-wrap
6929 msgid "I<n_net>"
6930 msgstr "I<n_net>"
6931
6932 #. type: Plain text
6933 #: build/C/man3/getnetent.3:111
6934 msgid "The network number in host byte order."
6935 msgstr "ホスト・バイトオーダ形式のネットワーク番号。"
6936
6937 #. type: Plain text
6938 #: build/C/man3/getnetent.3:120
6939 msgid ""
6940 "The B<getnetent>(), B<getnetbyname>()  and B<getnetbyaddr>()  functions "
6941 "return a pointer to a statically allocated I<netent> structure, or a NULL "
6942 "pointer if an error occurs or the end of the file is reached."
6943 msgstr ""
6944 "B<getnetent>(), B<getnetbyname>(), B<getnetbyaddr>()  関数は、静的に割り当て"
6945 "られた I<netent> 構造体へのポインタを返す。 エラーが起こったり、ファイルの末"
6946 "尾に達した場合は NULL ポインタを返す。"
6947
6948 #. type: TP
6949 #: build/C/man3/getnetent.3:121 build/C/man5/networks.5:70
6950 #, no-wrap
6951 msgid "I</etc/networks>"
6952 msgstr "I</etc/networks>"
6953
6954 #. type: Plain text
6955 #: build/C/man3/getnetent.3:124
6956 msgid "networks database file"
6957 msgstr "ネットワークデータベースファイル"
6958
6959 #. type: Plain text
6960 #: build/C/man3/getnetent.3:126 build/C/man3/getprotoent.3:122
6961 #: build/C/man3/getservent.3:131
6962 msgid "4.3BSD, POSIX.1-2001."
6963 msgstr "4.3BSD, POSIX.1-2001."
6964
6965 #. type: Plain text
6966 #: build/C/man3/getnetent.3:133
6967 msgid ""
6968 "In glibc versions before 2.2, the I<net> argument of B<getnetbyaddr>()  was "
6969 "of type I<long>."
6970 msgstr ""
6971 "バージョン 2.2 より前の glibc では、 B<getnetbyaddr>()  の引き数 I<net> は "
6972 "I<long> 型だった。"
6973
6974 #.  .BR networks (5)
6975 #. type: Plain text
6976 #: build/C/man3/getnetent.3:138
6977 msgid "B<getnetent_r>(3), B<getprotoent>(3), B<getservent>(3)"
6978 msgstr "B<getnetent_r>(3), B<getprotoent>(3), B<getservent>(3)"
6979
6980 #. type: Plain text
6981 #: build/C/man3/getnetent.3:140
6982 msgid "RFC\\ 1101"
6983 msgstr "RFC\\ 1101"
6984
6985 #. type: TH
6986 #: build/C/man3/getnetent_r.3:24
6987 #, no-wrap
6988 msgid "GETNETENT_R"
6989 msgstr "GETNETENT_R"
6990
6991 #. type: Plain text
6992 #: build/C/man3/getnetent_r.3:28
6993 msgid ""
6994 "getnetent_r, getnetbyname_r, getnetbyaddr_r - get network entry (reentrant)"
6995 msgstr ""
6996
6997 #. type: Plain text
6998 #: build/C/man3/getnetent_r.3:35
6999 #, no-wrap
7000 msgid ""
7001 "B<int getnetent_r(struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7002 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7003 "B<                int *>I<h_errnop>B<);>\n"
7004 msgstr ""
7005 "B<int getnetent_r(struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7006 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7007 "B<                int *>I<h_errnop>B<);>\n"
7008
7009 #. type: Plain text
7010 #: build/C/man3/getnetent_r.3:40
7011 #, no-wrap
7012 msgid ""
7013 "B<int getnetbyname_r(const char *>I<name>B<,>\n"
7014 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7015 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7016 "B<                int *>I<h_errnop>B<);>\n"
7017 msgstr ""
7018 "B<int getnetbyname_r(const char *>I<name>B<,>\n"
7019 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7020 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7021 "B<                int *>I<h_errnop>B<);>\n"
7022
7023 #. type: Plain text
7024 #: build/C/man3/getnetent_r.3:45
7025 #, no-wrap
7026 msgid ""
7027 "B<int getnetbyaddr_r(uint32_t >I<net>B<, int >I<type>B<,>\n"
7028 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7029 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7030 "B<                int *>I<h_errnop>B<);>\n"
7031 msgstr ""
7032 "B<int getnetbyaddr_r(uint32_t >I<net>B<, int >I<type>B<,>\n"
7033 "B<                struct netent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7034 "B<                size_t >I<buflen>B<, struct netent **>I<result>B<,>\n"
7035 "B<                int *>I<h_errnop>B<);>\n"
7036
7037 #. type: Plain text
7038 #: build/C/man3/getnetent_r.3:56
7039 msgid "B<getnetent_r>(), B<getnetbyname_r>(), B<getnetbyaddr_r>():"
7040 msgstr "B<getnetent_r>(), B<getnetbyname_r>(), B<getnetbyaddr_r>():"
7041
7042 #. type: Plain text
7043 #: build/C/man3/getnetent_r.3:77
7044 msgid ""
7045 "The B<getnetent_r>(), B<getnetbyname_r>(), and B<getnetbyaddr_r>()  "
7046 "functions are the reentrant equivalents of, respectively, B<getnetent>(3), "
7047 "B<getnetbyname>(3), and B<getnetbynumber>(3).  They differ in the way that "
7048 "the I<netent> structure is returned, and in the function calling signature "
7049 "and return value.  This manual page describes just the differences from the "
7050 "nonreentrant functions."
7051 msgstr ""
7052
7053 #. type: Plain text
7054 #: build/C/man3/getnetent_r.3:83
7055 msgid ""
7056 "Instead of returning a pointer to a statically allocated I<netent> structure "
7057 "as the function result, these functions copy the structure into the location "
7058 "pointed to by I<result_buf>."
7059 msgstr ""
7060
7061 #.  I can find no information on the required/recommended buffer size;
7062 #.  the nonreentrant functions use a 1024 byte buffer -- mtk.
7063 #. type: Plain text
7064 #: build/C/man3/getnetent_r.3:100
7065 msgid ""
7066 "The I<buf> array is used to store the string fields pointed to by the "
7067 "returned I<netent> structure.  (The nonreentrant functions allocate these "
7068 "strings in static storage.)  The size of this array is specified in "
7069 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
7070 "and the caller must try again with a larger buffer.  (A buffer of length "
7071 "1024 bytes should be sufficient for most applications.)"
7072 msgstr ""
7073
7074 #. type: Plain text
7075 #: build/C/man3/getnetent_r.3:108
7076 msgid ""
7077 "If the function call successfully obtains a network record, then I<*result> "
7078 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
7079 msgstr ""
7080
7081 #.  getnetent.3 doesn't document any use of h_errno, but nevertheless
7082 #.  the nonreentrant functions no seem to set h_errno.
7083 #. type: Plain text
7084 #: build/C/man3/getnetent_r.3:116
7085 msgid ""
7086 "The buffer pointed to by I<h_errnop> is used to return the value that would "
7087 "be stored in the global variable I<h_errno> by the nonreentrant versions of "
7088 "these functions."
7089 msgstr ""
7090
7091 #. type: Plain text
7092 #: build/C/man3/getnetent_r.3:119 build/C/man3/getprotoent_r.3:109
7093 msgid ""
7094 "On success, these functions return 0.  On error, they return one of the "
7095 "positive error numbers listed in ERRORS."
7096 msgstr ""
7097
7098 #. type: Plain text
7099 #: build/C/man3/getnetent_r.3:127
7100 msgid ""
7101 "On error, record not found (B<getnetbyname_r>(), B<getnetbyaddr_r>()), or "
7102 "end of input (B<getnetent_r>())  I<result> is set to NULL."
7103 msgstr ""
7104
7105 #. type: Plain text
7106 #: build/C/man3/getnetent_r.3:132
7107 msgid "(B<getnetent_r>())  No more records in database."
7108 msgstr ""
7109
7110 #. type: TP
7111 #: build/C/man3/getnetent_r.3:132 build/C/man3/getprotoent_r.3:122
7112 #: build/C/man3/getservent_r.3:121
7113 #, no-wrap
7114 msgid "B<ERANGE>"
7115 msgstr "B<ERANGE>"
7116
7117 #. type: Plain text
7118 #: build/C/man3/getnetent_r.3:139 build/C/man3/getprotoent_r.3:129
7119 #: build/C/man3/getservent_r.3:128
7120 msgid ""
7121 "I<buf> is too small.  Try again with a larger buffer (and increased "
7122 "I<buflen>)."
7123 msgstr ""
7124
7125 #. type: Plain text
7126 #: build/C/man3/getnetent_r.3:143 build/C/man3/getprotoent_r.3:133
7127 #: build/C/man3/getservent_r.3:132
7128 msgid ""
7129 "These functions are GNU extensions.  Functions with similar names exist on "
7130 "some other systems, though typically with different calling signatures."
7131 msgstr ""
7132
7133 #. type: Plain text
7134 #: build/C/man3/getnetent_r.3:146
7135 msgid "B<getnetent>(3), B<networks>(5)"
7136 msgstr "B<getnetent>(3), B<networks>(5)"
7137
7138 #. type: TH
7139 #: build/C/man2/getpeername.2:40
7140 #, no-wrap
7141 msgid "GETPEERNAME"
7142 msgstr "GETPEERNAME"
7143
7144 #. type: TH
7145 #: build/C/man2/getpeername.2:40 build/C/man2/shutdown.2:38
7146 #: build/C/man7/udplite.7:25
7147 #, no-wrap
7148 msgid "2008-12-03"
7149 msgstr "2008-12-03"
7150
7151 #. type: Plain text
7152 #: build/C/man2/getpeername.2:43
7153 msgid "getpeername - get name of connected peer socket"
7154 msgstr "getpeername - 接続している相手ソケットの名前を取得する"
7155
7156 #. type: Plain text
7157 #: build/C/man2/getpeername.2:48
7158 msgid ""
7159 "B<int getpeername(int >I<sockfd>B<, struct sockaddr *>I<addr>B<, socklen_t "
7160 "*>I<addrlen>B<);>"
7161 msgstr ""
7162 "B<int getpeername(int >I<sockfd>B<, struct sockaddr *>I<addr>B<, socklen_t "
7163 "*>I<addrlen>B<);>"
7164
7165 #. type: Plain text
7166 #: build/C/man2/getpeername.2:61
7167 msgid ""
7168 "B<getpeername>()  returns the address of the peer connected to the socket "
7169 "I<sockfd>, in the buffer pointed to by I<addr>.  The I<addrlen> argument "
7170 "should be initialized to indicate the amount of space pointed to by "
7171 "I<addr>.  On return it contains the actual size of the name returned (in "
7172 "bytes).  The name is truncated if the buffer provided is too small."
7173 msgstr ""
7174 "B<getpeername>()  は、ソケット(socket)  I<sockfd> に接続している相手のアドレ"
7175 "スを、 I<addr> が指すバッファに格納して返す。 I<addrlen> 引き数は、 I<addr> "
7176 "が指している領域のサイズに初期化しておかなければならない。 関数が返る時に"
7177 "は、 I<addrlen> には実際に返された名前のサイズが (バイト単位で) 格納される。 "
7178 "提供されたバッファが小さすぎた場合には、名前は切り詰められる。"
7179
7180 #. type: Plain text
7181 #: build/C/man2/getpeername.2:66
7182 msgid ""
7183 "The returned address is truncated if the buffer provided is too small; in "
7184 "this case, I<addrlen> will return a value greater than was supplied to the "
7185 "call."
7186 msgstr ""
7187 "渡されたバッファが小さ過ぎた場合は、返されるアドレスの末尾が切り詰められる。 "
7188 "この場合には、 I<addrlen> には、呼び出し時に指定された値よりも大きな値が格納"
7189 "される。"
7190
7191 #. type: Plain text
7192 #: build/C/man2/getpeername.2:71 build/C/man2/shutdown.2:72
7193 msgid ""
7194 "On success, zero is returned.  On error, -1 is returned, and I<errno> is set "
7195 "appropriately."
7196 msgstr ""
7197 "成功した場合は 0 が返される。エラーの場合は -1 が返され、 I<errno> が適切に設"
7198 "定される。"
7199
7200 #. type: TP
7201 #: build/C/man2/getpeername.2:72 build/C/man2/shutdown.2:73
7202 #, no-wrap
7203 msgid "B<EBADF>"
7204 msgstr "B<EBADF>"
7205
7206 #. type: Plain text
7207 #: build/C/man2/getpeername.2:77
7208 msgid "The argument I<sockfd> is not a valid descriptor."
7209 msgstr "引き数 I<sockfd> が有効なディスクリプタでない。"
7210
7211 #. type: TP
7212 #: build/C/man2/getpeername.2:77 build/C/man7/packet.7:245
7213 #: build/C/man7/raw.7:145 build/C/man7/unix.7:332
7214 #, no-wrap
7215 msgid "B<EFAULT>"
7216 msgstr "B<EFAULT>"
7217
7218 #. type: Plain text
7219 #: build/C/man2/getpeername.2:83
7220 msgid ""
7221 "The I<addr> argument points to memory not in a valid part of the process "
7222 "address space."
7223 msgstr ""
7224 "I<addr> 引き数の指しているメモリが有効なプロセスのアドレス空間の 一部でない。"
7225
7226 #. type: Plain text
7227 #: build/C/man2/getpeername.2:87
7228 msgid "I<addrlen> is invalid (e.g., is negative)."
7229 msgstr "I<addrlen> が不正である (例えば、負で場合など)。"
7230
7231 #. type: TP
7232 #: build/C/man2/getpeername.2:87 build/C/man7/packet.7:257
7233 #, no-wrap
7234 msgid "B<ENOBUFS>"
7235 msgstr "B<ENOBUFS>"
7236
7237 #. type: Plain text
7238 #: build/C/man2/getpeername.2:91
7239 msgid ""
7240 "Insufficient resources were available in the system to perform the operation."
7241 msgstr "この操作を行なうのに十分な資源がシステムに存在しない。"
7242
7243 #. type: Plain text
7244 #: build/C/man2/getpeername.2:94
7245 msgid "The socket is not connected."
7246 msgstr "ソケットが接続していない。"
7247
7248 #. type: TP
7249 #: build/C/man2/getpeername.2:94 build/C/man2/shutdown.2:80
7250 #, no-wrap
7251 msgid "B<ENOTSOCK>"
7252 msgstr "B<ENOTSOCK>"
7253
7254 #. type: Plain text
7255 #: build/C/man2/getpeername.2:99
7256 msgid "The argument I<sockfd> is a file, not a socket."
7257 msgstr "引き数 I<sockfd> がソケットでなくてファイルである。"
7258
7259 #. type: Plain text
7260 #: build/C/man2/getpeername.2:103
7261 msgid ""
7262 "SVr4, 4.4BSD (the B<getpeername>()  function call first appeared in 4.2BSD), "
7263 "POSIX.1-2001."
7264 msgstr ""
7265 "SVr4, 4.4BSD (B<getpeername>()  関数は 4.2BSD で登場した), POSIX.1-2001."
7266
7267 #. type: Plain text
7268 #: build/C/man2/getpeername.2:114
7269 msgid ""
7270 "The third argument of B<getpeername>()  is in reality an I<int *> (and this "
7271 "is what 4.x BSD and libc4 and libc5 have).  Some POSIX confusion resulted in "
7272 "the present I<socklen_t>, also used by glibc.  See also B<accept>(2)."
7273 msgstr ""
7274 "B<getpeername>()  の三番目の引き数は実際には I<`int *'> である (4.x BSD, "
7275 "libc4, libc5 では このようになっている)。 POSIX では紆余曲折を経て現在の "
7276 "I<socklen_t> になっており、 glibc でも I<socklen_t> を使っている。 B<accept>"
7277 "(2)  も参照のこと。"
7278
7279 #. type: Plain text
7280 #: build/C/man2/getpeername.2:121
7281 msgid ""
7282 "B<accept>(2), B<bind>(2), B<getsockname>(2), B<ip>(7), B<socket>(7), B<unix>"
7283 "(7)"
7284 msgstr ""
7285 "B<accept>(2), B<bind>(2), B<getsockname>(2), B<ip>(7), B<socket>(7), B<unix>"
7286 "(7)"
7287
7288 #. type: TH
7289 #: build/C/man3/getprotoent.3:28
7290 #, no-wrap
7291 msgid "GETPROTOENT"
7292 msgstr "GETPROTOENT"
7293
7294 #. type: Plain text
7295 #: build/C/man3/getprotoent.3:32
7296 msgid ""
7297 "getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - "
7298 "get protocol entry"
7299 msgstr ""
7300 "getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - プ"
7301 "ロトコルのエントリを取得する"
7302
7303 #. type: Plain text
7304 #: build/C/man3/getprotoent.3:37
7305 #, no-wrap
7306 msgid "B<struct protoent *getprotoent(void);>\n"
7307 msgstr "B<struct protoent *getprotoent(void);>\n"
7308
7309 #. type: Plain text
7310 #: build/C/man3/getprotoent.3:39
7311 #, no-wrap
7312 msgid "B<struct protoent *getprotobyname(const char *>I<name>B<);>\n"
7313 msgstr "B<struct protoent *getprotobyname(const char *>I<name>B<);>\n"
7314
7315 #. type: Plain text
7316 #: build/C/man3/getprotoent.3:41
7317 #, no-wrap
7318 msgid "B<struct protoent *getprotobynumber(int >I<proto>B<);>\n"
7319 msgstr "B<struct protoent *getprotobynumber(int >I<proto>B<);>\n"
7320
7321 #. type: Plain text
7322 #: build/C/man3/getprotoent.3:43
7323 #, no-wrap
7324 msgid "B<void setprotoent(int >I<stayopen>B<);>\n"
7325 msgstr "B<void setprotoent(int >I<stayopen>B<);>\n"
7326
7327 #. type: Plain text
7328 #: build/C/man3/getprotoent.3:45
7329 #, no-wrap
7330 msgid "B<void endprotoent(void);>\n"
7331 msgstr "B<void endprotoent(void);>\n"
7332
7333 #. type: Plain text
7334 #: build/C/man3/getprotoent.3:54
7335 msgid ""
7336 "The B<getprotoent>()  function reads the next entry from the protocols "
7337 "database (see B<protocols>(5))  and returns a I<protoent> structure "
7338 "containing the broken-out fields from the entry.  A connection is opened to "
7339 "the database if necessary."
7340 msgstr ""
7341 "B<getprotoent>()  関数は、プロトコルのデータベース (B<protocols>(5)  参照) か"
7342 "ら次のエントリを読み込み、 そのエントリを I<protoent> 構造体の要素別のフィー"
7343 "ルドに格納し、 その構造体を返す。 必要であれば、データベースへの接続がオープ"
7344 "ンされる。"
7345
7346 #. type: Plain text
7347 #: build/C/man3/getprotoent.3:61
7348 msgid ""
7349 "The B<getprotobyname>()  function returns a I<protoent> structure for the "
7350 "entry from the database that matches the protocol name I<name>.  A "
7351 "connection is opened to the database if necessary."
7352 msgstr ""
7353 "B<getprotobyname>()  関数は、プロトコル名 I<name> にマッチするエントリを デー"
7354 "タベースから探し、そのエントリを収めた I<protoent> 構造体を返す。 必要であれ"
7355 "ば、データベースへの接続がオープンされる。"
7356
7357 #. type: Plain text
7358 #: build/C/man3/getprotoent.3:68
7359 msgid ""
7360 "The B<getprotobynumber>()  function returns a I<protoent> structure for the "
7361 "entry from the database that matches the protocol number I<number>.  A "
7362 "connection is opened to the database if necessary."
7363 msgstr ""
7364 "B<getprotobynumber>()  関数は、プロトコル番号 I<number> にマッチするエントリ"
7365 "を データベースから探し、そのエントリを収めた I<protoent> 構造体を返す。 必要"
7366 "であれば、データベースへの接続がオープンされる。"
7367
7368 #. type: Plain text
7369 #: build/C/man3/getprotoent.3:78
7370 msgid ""
7371 "The B<setprotoent>()  function opens a connection to the database, and sets "
7372 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
7373 "connection to the database will not be closed between calls to one of the "
7374 "B<getproto*>()  functions."
7375 msgstr ""
7376 "B<setprotoent>()  関数はデータベースへの接続をオープンし、 次の読み込みエント"
7377 "リを先頭のエントリに設定する。 I<stayopen> が 0 でない場合、 一つ一つの "
7378 "B<getproto*>()  関数の呼び出し間でデータベースへの接続をクローズしない。"
7379
7380 #. type: Plain text
7381 #: build/C/man3/getprotoent.3:82
7382 msgid "The B<endprotoent>()  function closes the connection to the database."
7383 msgstr "B<endprotoent>()  関数はデータベースへの接続をクローズする。"
7384
7385 #. type: Plain text
7386 #: build/C/man3/getprotoent.3:84
7387 msgid ""
7388 "The I<protoent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
7389 msgstr ""
7390 "I<protoent> 構造体は I<E<lt>netdb.hE<gt>> で以下のように定義されている。"
7391
7392 #. type: Plain text
7393 #: build/C/man3/getprotoent.3:92
7394 #, no-wrap
7395 msgid ""
7396 "struct protoent {\n"
7397 "    char  *p_name;       /* official protocol name */\n"
7398 "    char **p_aliases;    /* alias list */\n"
7399 "    int    p_proto;      /* protocol number */\n"
7400 "}\n"
7401 msgstr ""
7402 "struct protoent {\n"
7403 "    char  *p_name;       /* official protocol name */\n"
7404 "    char **p_aliases;    /* alias list */\n"
7405 "    int    p_proto;      /* protocol number */\n"
7406 "}\n"
7407
7408 #. type: Plain text
7409 #: build/C/man3/getprotoent.3:96
7410 msgid "The members of the I<protoent> structure are:"
7411 msgstr "I<protoent> 構造体のメンバーは以下の通り。"
7412
7413 #. type: TP
7414 #: build/C/man3/getprotoent.3:96
7415 #, no-wrap
7416 msgid "I<p_name>"
7417 msgstr "I<p_name>"
7418
7419 #. type: Plain text
7420 #: build/C/man3/getprotoent.3:99
7421 msgid "The official name of the protocol."
7422 msgstr "プロトコルの正式名 (official name)。"
7423
7424 #. type: TP
7425 #: build/C/man3/getprotoent.3:99
7426 #, no-wrap
7427 msgid "I<p_aliases>"
7428 msgstr "I<p_aliases>"
7429
7430 #. type: Plain text
7431 #: build/C/man3/getprotoent.3:102
7432 msgid "A NULL-terminated list of alternative names for the protocol."
7433 msgstr "プロトコルの別名のリスト。 リストは NULL で終端される。"
7434
7435 #. type: TP
7436 #: build/C/man3/getprotoent.3:102
7437 #, no-wrap
7438 msgid "I<p_proto>"
7439 msgstr "I<p_proto>"
7440
7441 #. type: Plain text
7442 #: build/C/man3/getprotoent.3:105
7443 msgid "The protocol number."
7444 msgstr "プロトコルの番号"
7445
7446 #. type: Plain text
7447 #: build/C/man3/getprotoent.3:114
7448 msgid ""
7449 "The B<getprotoent>(), B<getprotobyname>()  and B<getprotobynumber>()  "
7450 "functions return a pointer to a statically allocated I<protoent> structure, "
7451 "or a NULL pointer if an error occurs or the end of the file is reached."
7452 msgstr ""
7453 "B<getprotoent>(), B<getprotobyname>(), B<getprotobynumber>()  関数は、静的に"
7454 "割り当てられた I<protoent> 構造体へのポインタを返す。 エラーが起こったり、"
7455 "ファイルの最後に達した場合は NULL ポインタを返す。"
7456
7457 #. type: TP
7458 #: build/C/man3/getprotoent.3:116 build/C/man5/protocols.5:77
7459 #, no-wrap
7460 msgid "I</etc/protocols>"
7461 msgstr "I</etc/protocols>"
7462
7463 #. type: Plain text
7464 #: build/C/man3/getprotoent.3:119
7465 msgid "protocol database file"
7466 msgstr "プロトコルのデータベースファイル"
7467
7468 #. type: Plain text
7469 #: build/C/man3/getprotoent.3:127
7470 msgid "B<getnetent>(3), B<getprotoent_r>(3), B<getservent>(3), B<protocols>(5)"
7471 msgstr ""
7472 "B<getnetent>(3), B<getprotoent_r>(3), B<getservent>(3), B<protocols>(5)"
7473
7474 #. type: TH
7475 #: build/C/man3/getprotoent_r.3:24
7476 #, no-wrap
7477 msgid "GETPROTOENT_R"
7478 msgstr "GETPROTOENT_R"
7479
7480 #. type: Plain text
7481 #: build/C/man3/getprotoent_r.3:28
7482 msgid ""
7483 "getprotoent_r, getprotobyname_r, getprotobynumber_r - get protocol entry "
7484 "(reentrant)"
7485 msgstr ""
7486
7487 #. type: Plain text
7488 #: build/C/man3/getprotoent_r.3:34
7489 #, no-wrap
7490 msgid ""
7491 "B<int getprotoent_r(struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7492 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7493 msgstr ""
7494 "B<int getprotoent_r(struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7495 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7496
7497 #. type: Plain text
7498 #: build/C/man3/getprotoent_r.3:38
7499 #, no-wrap
7500 msgid ""
7501 "B<int getprotobyname_r(const char *>I<name>B<,>\n"
7502 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7503 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7504 msgstr ""
7505 "B<int getprotobyname_r(const char *>I<name>B<,>\n"
7506 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7507 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7508
7509 #. type: Plain text
7510 #: build/C/man3/getprotoent_r.3:42
7511 #, no-wrap
7512 msgid ""
7513 "B<int getprotobynumber_r(int >I<proto>B<,>\n"
7514 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7515 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7516 msgstr ""
7517 "B<int getprotobynumber_r(int >I<proto>B<,>\n"
7518 "B<                struct protoent *>I<result_buf>B<, char *>I<buf>B<,>\n"
7519 "B<                size_t >I<buflen>B<, struct protoent **>I<result>B<);>\n"
7520
7521 #. type: Plain text
7522 #: build/C/man3/getprotoent_r.3:53
7523 msgid "B<getprotoent_r>(), B<getprotobyname_r>(), B<getprotobynumber_r>():"
7524 msgstr "B<getprotoent_r>(), B<getprotobyname_r>(), B<getprotobynumber_r>():"
7525
7526 #. type: Plain text
7527 #: build/C/man3/getprotoent_r.3:74
7528 msgid ""
7529 "The B<getprotoent_r>(), B<getprotobyname_r>(), and B<getprotobynumber_r>()  "
7530 "functions are the reentrant equivalents of, respectively, B<getprotoent>(3), "
7531 "B<getprotobyname>(3), and B<getprotobynumber>(3).  They differ in the way "
7532 "that the I<protoent> structure is returned, and in the function calling "
7533 "signature and return value.  This manual page describes just the differences "
7534 "from the nonreentrant functions."
7535 msgstr ""
7536
7537 #. type: Plain text
7538 #: build/C/man3/getprotoent_r.3:80
7539 msgid ""
7540 "Instead of returning a pointer to a statically allocated I<protoent> "
7541 "structure as the function result, these functions copy the structure into "
7542 "the location pointed to by I<result_buf>."
7543 msgstr ""
7544
7545 #.  I can find no information on the required/recommended buffer size;
7546 #.  the nonreentrant functions use a 1024 byte buffer.
7547 #.  The 1024 byte value is also what the Solaris man page suggests. -- mtk
7548 #. type: Plain text
7549 #: build/C/man3/getprotoent_r.3:98
7550 msgid ""
7551 "The I<buf> array is used to store the string fields pointed to by the "
7552 "returned I<protoent> structure.  (The nonreentrant functions allocate these "
7553 "strings in static storage.)  The size of this array is specified in "
7554 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
7555 "and the caller must try again with a larger buffer.  (A buffer of length "
7556 "1024 bytes should be sufficient for most applications.)"
7557 msgstr ""
7558
7559 #. type: Plain text
7560 #: build/C/man3/getprotoent_r.3:106
7561 msgid ""
7562 "If the function call successfully obtains a protocol record, then I<*result> "
7563 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
7564 msgstr ""
7565
7566 #. type: Plain text
7567 #: build/C/man3/getprotoent_r.3:117
7568 msgid ""
7569 "On error, record not found (B<getprotobyname_r>(), B<getprotobynumber_r>()), "
7570 "or end of input (B<getprotoent_r>())  I<result> is set to NULL."
7571 msgstr ""
7572
7573 #. type: Plain text
7574 #: build/C/man3/getprotoent_r.3:122
7575 msgid "(B<getprotoent_r>())  No more records in database."
7576 msgstr ""
7577
7578 #. type: Plain text
7579 #: build/C/man3/getprotoent_r.3:147
7580 msgid ""
7581 "The program below uses B<getprotobyname_r>()  to retrieve the protocol "
7582 "record for the protocol named in its first command-line argument.  If a "
7583 "second (integer) command-line argument is supplied, it is used as the "
7584 "initial value for I<buflen>; if B<getprotobyname_r>()  fails with the error "
7585 "B<ERANGE>, the program retries with larger buffer sizes.  The following "
7586 "shell session shows a couple of sample runs:"
7587 msgstr ""
7588
7589 #. type: Plain text
7590 #: build/C/man3/getprotoent_r.3:158
7591 #, no-wrap
7592 msgid ""
7593 "$B< ./a.out tcp 1>\n"
7594 "ERANGE! Retrying with larger buffer\n"
7595 "getprotobyname_r() returned: 0 (success)  (buflen=78)\n"
7596 "p_name=tcp; p_proto=6; aliases=TCP\n"
7597 "$B< ./a.out xxx 1>\n"
7598 "ERANGE! Retrying with larger buffer\n"
7599 "getprotobyname_r() returned: 0 (success)  (buflen=100)\n"
7600 "Call failed/record not found\n"
7601 msgstr ""
7602 "$B< ./a.out tcp 1>\n"
7603 "ERANGE! Retrying with larger buffer\n"
7604 "getprotobyname_r() returned: 0 (success)  (buflen=78)\n"
7605 "p_name=tcp; p_proto=6; aliases=TCP\n"
7606 "$B< ./a.out xxx 1>\n"
7607 "ERANGE! Retrying with larger buffer\n"
7608 "getprotobyname_r() returned: 0 (success)  (buflen=100)\n"
7609 "Call failed/record not found\n"
7610
7611 #. type: Plain text
7612 #: build/C/man3/getprotoent_r.3:170 build/C/man3/getservent_r.3:168
7613 #, no-wrap
7614 msgid ""
7615 "#define _GNU_SOURCE\n"
7616 "#include E<lt>ctype.hE<gt>\n"
7617 "#include E<lt>netdb.hE<gt>\n"
7618 "#include E<lt>stdlib.hE<gt>\n"
7619 "#include E<lt>stdio.hE<gt>\n"
7620 "#include E<lt>errno.hE<gt>\n"
7621 "#include E<lt>string.hE<gt>\n"
7622 msgstr ""
7623 "#define _GNU_SOURCE\n"
7624 "#include E<lt>ctype.hE<gt>\n"
7625 "#include E<lt>netdb.hE<gt>\n"
7626 "#include E<lt>stdlib.hE<gt>\n"
7627 "#include E<lt>stdio.hE<gt>\n"
7628 "#include E<lt>errno.hE<gt>\n"
7629 "#include E<lt>string.hE<gt>\n"
7630
7631 #. type: Plain text
7632 #: build/C/man3/getprotoent_r.3:172 build/C/man3/getservent_r.3:170
7633 #, no-wrap
7634 msgid "#define MAX_BUF 10000\n"
7635 msgstr "#define MAX_BUF 10000\n"
7636
7637 #. type: Plain text
7638 #: build/C/man3/getprotoent_r.3:181
7639 #, no-wrap
7640 msgid ""
7641 "int\n"
7642 "main(int argc, char *argv[])\n"
7643 "{\n"
7644 "    int buflen, erange_cnt, s;\n"
7645 "    struct protoent result_buf;\n"
7646 "    struct protoent *result;\n"
7647 "    char buf[MAX_BUF];\n"
7648 "    char **p;\n"
7649 msgstr ""
7650 "int\n"
7651 "main(int argc, char *argv[])\n"
7652 "{\n"
7653 "    int buflen, erange_cnt, s;\n"
7654 "    struct protoent result_buf;\n"
7655 "    struct protoent *result;\n"
7656 "    char buf[MAX_BUF];\n"
7657 "    char **p;\n"
7658
7659 #. type: Plain text
7660 #: build/C/man3/getprotoent_r.3:186
7661 #, no-wrap
7662 msgid ""
7663 "    if (argc E<lt> 2) {\n"
7664 "        printf(\"Usage: %s proto-name [buflen]\\en\", argv[0]);\n"
7665 "        exit(EXIT_FAILURE);\n"
7666 "    }\n"
7667 msgstr ""
7668 "    if (argc E<lt> 2) {\n"
7669 "        printf(\"Usage: %s proto-name [buflen]\\en\", argv[0]);\n"
7670 "        exit(EXIT_FAILURE);\n"
7671 "    }\n"
7672
7673 #. type: Plain text
7674 #: build/C/man3/getprotoent_r.3:190
7675 #, no-wrap
7676 msgid ""
7677 "    buflen = 1024;\n"
7678 "    if (argc E<gt> 2)\n"
7679 "        buflen = atoi(argv[2]);\n"
7680 msgstr ""
7681 "    buflen = 1024;\n"
7682 "    if (argc E<gt> 2)\n"
7683 "        buflen = atoi(argv[2]);\n"
7684
7685 #. type: Plain text
7686 #: build/C/man3/getprotoent_r.3:195 build/C/man3/getservent_r.3:198
7687 #, no-wrap
7688 msgid ""
7689 "    if (buflen E<gt> MAX_BUF) {\n"
7690 "        printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
7691 "        exit(EXIT_FAILURE);\n"
7692 "    }\n"
7693 msgstr ""
7694 "    if (buflen E<gt> MAX_BUF) {\n"
7695 "        printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
7696 "        exit(EXIT_FAILURE);\n"
7697 "    }\n"
7698
7699 #. type: Plain text
7700 #: build/C/man3/getprotoent_r.3:204
7701 #, no-wrap
7702 msgid ""
7703 "    erange_cnt = 0;\n"
7704 "    do {\n"
7705 "        s = getprotobyname_r(argv[1], &result_buf,\n"
7706 "                     buf, buflen, &result);\n"
7707 "        if (s == ERANGE) {\n"
7708 "            if (erange_cnt == 0)\n"
7709 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
7710 "            erange_cnt++;\n"
7711 msgstr ""
7712 "    erange_cnt = 0;\n"
7713 "    do {\n"
7714 "        s = getprotobyname_r(argv[1], &result_buf,\n"
7715 "                     buf, buflen, &result);\n"
7716 "        if (s == ERANGE) {\n"
7717 "            if (erange_cnt == 0)\n"
7718 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
7719 "            erange_cnt++;\n"
7720
7721 #. type: Plain text
7722 #: build/C/man3/getprotoent_r.3:207 build/C/man3/getservent_r.3:210
7723 #, no-wrap
7724 msgid ""
7725 "            /* Increment a byte at a time so we can see exactly\n"
7726 "               what size buffer was required */\n"
7727 msgstr ""
7728 "            /* Increment a byte at a time so we can see exactly\n"
7729 "               what size buffer was required */\n"
7730
7731 #. type: Plain text
7732 #: build/C/man3/getprotoent_r.3:209 build/C/man3/getservent_r.3:212
7733 #, no-wrap
7734 msgid "            buflen++;\n"
7735 msgstr "            buflen++;\n"
7736
7737 #. type: Plain text
7738 #: build/C/man3/getprotoent_r.3:216 build/C/man3/getservent_r.3:219
7739 #, no-wrap
7740 msgid ""
7741 "            if (buflen E<gt> MAX_BUF) {\n"
7742 "                printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
7743 "                exit(EXIT_FAILURE);\n"
7744 "            }\n"
7745 "        }\n"
7746 "    } while (s == ERANGE);\n"
7747 msgstr ""
7748 "            if (buflen E<gt> MAX_BUF) {\n"
7749 "                printf(\"Exceeded buffer limit (%d)\\en\", MAX_BUF);\n"
7750 "                exit(EXIT_FAILURE);\n"
7751 "            }\n"
7752 "        }\n"
7753 "    } while (s == ERANGE);\n"
7754
7755 #. type: Plain text
7756 #: build/C/man3/getprotoent_r.3:220
7757 #, no-wrap
7758 msgid ""
7759 "    printf(\"getprotobyname_r() returned: %s  (buflen=%d)\\en\",\n"
7760 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
7761 "            strerror(s), buflen);\n"
7762 msgstr ""
7763 "    printf(\"getprotobyname_r() returned: %s  (buflen=%d)\\en\",\n"
7764 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
7765 "            strerror(s), buflen);\n"
7766
7767 #. type: Plain text
7768 #: build/C/man3/getprotoent_r.3:225 build/C/man3/getservent_r.3:228
7769 #, no-wrap
7770 msgid ""
7771 "    if (s != 0 || result == NULL) {\n"
7772 "        printf(\"Call failed/record not found\\en\");\n"
7773 "        exit(EXIT_FAILURE);\n"
7774 "    }\n"
7775 msgstr ""
7776 "    if (s != 0 || result == NULL) {\n"
7777 "        printf(\"Call failed/record not found\\en\");\n"
7778 "        exit(EXIT_FAILURE);\n"
7779 "    }\n"
7780
7781 #. type: Plain text
7782 #: build/C/man3/getprotoent_r.3:231
7783 #, no-wrap
7784 msgid ""
7785 "    printf(\"p_name=%s; p_proto=%d; aliases=\",\n"
7786 "                result_buf.p_name, result_buf.p_proto);\n"
7787 "    for (p = result_buf.p_aliases; *p != NULL; p++)\n"
7788 "        printf(\"%s \", *p);\n"
7789 "    printf(\"\\en\");\n"
7790 msgstr ""
7791 "    printf(\"p_name=%s; p_proto=%d; aliases=\",\n"
7792 "                result_buf.p_name, result_buf.p_proto);\n"
7793 "    for (p = result_buf.p_aliases; *p != NULL; p++)\n"
7794 "        printf(\"%s \", *p);\n"
7795 "    printf(\"\\en\");\n"
7796
7797 #. type: Plain text
7798 #: build/C/man3/getprotoent_r.3:238
7799 msgid "B<getprotoent>(3), B<protocols>(5)"
7800 msgstr "B<getprotoent>(3), B<protocols>(5)"
7801
7802 #. type: TH
7803 #: build/C/man3/getservent.3:32
7804 #, no-wrap
7805 msgid "GETSERVENT"
7806 msgstr "GETSERVENT"
7807
7808 #. type: Plain text
7809 #: build/C/man3/getservent.3:36
7810 msgid ""
7811 "getservent, getservbyname, getservbyport, setservent, endservent - get "
7812 "service entry"
7813 msgstr ""
7814 "getservent, getservbyname, getservbyport, setservent, endservent - サービスの"
7815 "エントリを取得する"
7816
7817 #. type: Plain text
7818 #: build/C/man3/getservent.3:41
7819 #, no-wrap
7820 msgid "B<struct servent *getservent(void);>\n"
7821 msgstr "B<struct servent *getservent(void);>\n"
7822
7823 #. type: Plain text
7824 #: build/C/man3/getservent.3:43
7825 #, no-wrap
7826 msgid "B<struct servent *getservbyname(const char *>I<name>B<, const char *>I<proto>B<);>\n"
7827 msgstr "B<struct servent *getservbyname(const char *>I<name>B<, const char *>I<proto>B<);>\n"
7828
7829 #. type: Plain text
7830 #: build/C/man3/getservent.3:45
7831 #, no-wrap
7832 msgid "B<struct servent *getservbyport(int >I<port>B<, const char *>I<proto>B<);>\n"
7833 msgstr "B<struct servent *getservbyport(int >I<port>B<, const char *>I<proto>B<);>\n"
7834
7835 #. type: Plain text
7836 #: build/C/man3/getservent.3:47
7837 #, no-wrap
7838 msgid "B<void setservent(int >I<stayopen>B<);>\n"
7839 msgstr "B<void setservent(int >I<stayopen>B<);>\n"
7840
7841 #. type: Plain text
7842 #: build/C/man3/getservent.3:49
7843 #, no-wrap
7844 msgid "B<void endservent(void);>\n"
7845 msgstr "B<void endservent(void);>\n"
7846
7847 #. type: Plain text
7848 #: build/C/man3/getservent.3:58
7849 msgid ""
7850 "The B<getservent>()  function reads the next entry from the services "
7851 "database (see B<services>(5))  and returns a I<servent> structure containing "
7852 "the broken-out fields from the entry.  A connection is opened to the "
7853 "database if necessary."
7854 msgstr ""
7855 "B<getservent>()  関数はサービスのデータベース (B<services>(5)  参照) から次の"
7856 "エントリを読み込み、 そのエントリを I<servent> 構造体の要素別のフィールドに格"
7857 "納し、 その構造体を返す。 必要であれば、データベースへの接続がオープンされ"
7858 "る。"
7859
7860 #. type: Plain text
7861 #: build/C/man3/getservent.3:66
7862 msgid ""
7863 "The B<getservbyname>()  function returns a I<servent> structure for the "
7864 "entry from the database that matches the service I<name> using protocol "
7865 "I<proto>.  If I<proto> is NULL, any protocol will be matched.  A connection "
7866 "is opened to the database if necessary."
7867 msgstr ""
7868 "B<getservbyname>()  関数は、 プロトコル I<proto> を用いるサービスの名前 "
7869 "I<name> にマッチするエントリをデータベースから探し、 そのエントリを収めた "
7870 "I<servent> 構造体を返す。 I<proto> が NULL の場合は、任意のプロトコルにマッチ"
7871 "する。 必要であれば、データベースへの接続がオープンされる。"
7872
7873 #. type: Plain text
7874 #: build/C/man3/getservent.3:75
7875 msgid ""
7876 "The B<getservbyport>()  function returns a I<servent> structure for the "
7877 "entry from the database that matches the port I<port> (given in network byte "
7878 "order)  using protocol I<proto>.  If I<proto> is NULL, any protocol will be "
7879 "matched.  A connection is opened to the database if necessary."
7880 msgstr ""
7881 "B<getservbyport>()  関数は、 プロトコル I<proto> を用いるサービスのポート番"
7882 "号 I<port> にマッチするエントリをデータベースから探し、 そのエントリの内容を"
7883 "収めた I<servent> 構造体を返す (ポート番号 I<port> はネットワーク・バイトオー"
7884 "ダで指定する)。 I<proto> が NULL の場合は任意のプロトコルにマッチする。 必要"
7885 "であれば、データベースへの接続がオープンされる。"
7886
7887 #. type: Plain text
7888 #: build/C/man3/getservent.3:85
7889 msgid ""
7890 "The B<setservent>()  function opens a connection to the database, and sets "
7891 "the next entry to the first entry.  If I<stayopen> is nonzero, then the "
7892 "connection to the database will not be closed between calls to one of the "
7893 "B<getserv*>()  functions."
7894 msgstr ""
7895 "B<setservent>()  関数はデータベースへの接続をオープンし、 次の読み込みエント"
7896 "リを先頭のエントリに設定する。 I<stayopen> が 0 でない場合、 一つ一つの "
7897 "B<getserv*>()  関数の呼び出し間でデータベースへの接続をクローズしない。"
7898
7899 #. type: Plain text
7900 #: build/C/man3/getservent.3:89
7901 msgid "The B<endservent>()  function closes the connection to the database."
7902 msgstr "B<endservent>()  関数はデータベースへの接続をクローズする。"
7903
7904 #. type: Plain text
7905 #: build/C/man3/getservent.3:91
7906 msgid "The I<servent> structure is defined in I<E<lt>netdb.hE<gt>> as follows:"
7907 msgstr ""
7908 "I<servent> 構造体は I<E<lt>netdb.hE<gt>> で以下のように定義されている。"
7909
7910 #. type: Plain text
7911 #: build/C/man3/getservent.3:100
7912 #, no-wrap
7913 msgid ""
7914 "struct servent {\n"
7915 "    char  *s_name;       /* official service name */\n"
7916 "    char **s_aliases;    /* alias list */\n"
7917 "    int    s_port;       /* port number */\n"
7918 "    char  *s_proto;      /* protocol to use */\n"
7919 "}\n"
7920 msgstr ""
7921 "struct servent {\n"
7922 "    char  *s_name;       /* official service name */\n"
7923 "    char **s_aliases;    /* alias list */\n"
7924 "    int    s_port;       /* port number */\n"
7925 "    char  *s_proto;      /* protocol to use */\n"
7926 "}\n"
7927
7928 #. type: Plain text
7929 #: build/C/man3/getservent.3:104
7930 msgid "The members of the I<servent> structure are:"
7931 msgstr "I<servent> 構造体のメンバーは以下の通り。"
7932
7933 #. type: TP
7934 #: build/C/man3/getservent.3:104
7935 #, no-wrap
7936 msgid "I<s_name>"
7937 msgstr "I<s_name>"
7938
7939 #. type: Plain text
7940 #: build/C/man3/getservent.3:107
7941 msgid "The official name of the service."
7942 msgstr "サービスの正式名 (official name)。"
7943
7944 #. type: TP
7945 #: build/C/man3/getservent.3:107
7946 #, no-wrap
7947 msgid "I<s_aliases>"
7948 msgstr "I<s_aliases>"
7949
7950 #. type: Plain text
7951 #: build/C/man3/getservent.3:110
7952 msgid "A NULL-terminated list of alternative names for the service."
7953 msgstr "サービスの別名のリスト。 リストは NULL で終端される。"
7954
7955 #. type: TP
7956 #: build/C/man3/getservent.3:110
7957 #, no-wrap
7958 msgid "I<s_port>"
7959 msgstr "I<s_port>"
7960
7961 #. type: Plain text
7962 #: build/C/man3/getservent.3:113
7963 msgid "The port number for the service given in network byte order."
7964 msgstr "サービスのポート番号。ネットワークバイトオーダで指定される。"
7965
7966 #. type: TP
7967 #: build/C/man3/getservent.3:113
7968 #, no-wrap
7969 msgid "I<s_proto>"
7970 msgstr "I<s_proto>"
7971
7972 #. type: Plain text
7973 #: build/C/man3/getservent.3:116
7974 msgid "The name of the protocol to use with this service."
7975 msgstr "このサービスと共に用いるプロトコルの名前。"
7976
7977 #. type: Plain text
7978 #: build/C/man3/getservent.3:125
7979 msgid ""
7980 "The B<getservent>(), B<getservbyname>()  and B<getservbyport>()  functions "
7981 "return a pointer to a statically allocated I<servent> structure, or a NULL "
7982 "pointer if an error occurs or the end of the file is reached."
7983 msgstr ""
7984 "B<getservent>(), B<getservbyname>(), B<getservbyport>()  関数は、 静的に割り"
7985 "当てられた I<servent> 構造体へのポインタを返す。 エラーが起こったり、ファイル"
7986 "の末尾に達した場合は NULL ポインタを返す。"
7987
7988 #. type: TP
7989 #: build/C/man3/getservent.3:126 build/C/man5/services.5:185
7990 #, no-wrap
7991 msgid "I</etc/services>"
7992 msgstr "I</etc/services>"
7993
7994 #. type: Plain text
7995 #: build/C/man3/getservent.3:129
7996 msgid "services database file"
7997 msgstr "サービスのデータベースファイル"
7998
7999 #. type: Plain text
8000 #: build/C/man3/getservent.3:136
8001 msgid "B<getnetent>(3), B<getprotoent>(3), B<getservent_r>(3), B<services>(5)"
8002 msgstr "B<getnetent>(3), B<getprotoent>(3), B<getservent_r>(3), B<services>(5)"
8003
8004 #. type: TH
8005 #: build/C/man3/getservent_r.3:24
8006 #, no-wrap
8007 msgid "GETSERVENT_R"
8008 msgstr "GETSERVENT_R"
8009
8010 #. type: Plain text
8011 #: build/C/man3/getservent_r.3:28
8012 msgid ""
8013 "getservent_r, getservbyname_r, getservbyport_r - get service entry "
8014 "(reentrant)"
8015 msgstr ""
8016
8017 #. type: Plain text
8018 #: build/C/man3/getservent_r.3:34
8019 #, no-wrap
8020 msgid ""
8021 "B<int getservent_r(struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8022 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8023 msgstr ""
8024 "B<int getservent_r(struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8025 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8026
8027 #. type: Plain text
8028 #: build/C/man3/getservent_r.3:38
8029 #, no-wrap
8030 msgid ""
8031 "B<int getservbyname_r(const char *>I<name>B<, const char *>I<proto>B<,>\n"
8032 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8033 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8034 msgstr ""
8035 "B<int getservbyname_r(const char *>I<name>B<, const char *>I<proto>B<,>\n"
8036 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8037 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8038
8039 #. type: Plain text
8040 #: build/C/man3/getservent_r.3:42
8041 #, no-wrap
8042 msgid ""
8043 "B<int getservbyport_r(int >I<port>B<, const char *>I<proto>B<,>\n"
8044 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8045 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8046 msgstr ""
8047 "B<int getservbyport_r(int >I<port>B<, const char *>I<proto>B<,>\n"
8048 "B<                struct servent *>I<result_buf>B<, char *>I<buf>B<,>\n"
8049 "B<                size_t >I<buflen>B<, struct servent **>I<result>B<);>\n"
8050
8051 #. type: Plain text
8052 #: build/C/man3/getservent_r.3:53
8053 msgid "B<getservent_r>(), B<getservbyname_r>(), B<getservbyport_r>():"
8054 msgstr "B<getservent_r>(), B<getservbyname_r>(), B<getservbyport_r>():"
8055
8056 #. type: Plain text
8057 #: build/C/man3/getservent_r.3:74
8058 msgid ""
8059 "The B<getservent_r>(), B<getservbyname_r>(), and B<getservbyport_r>()  "
8060 "functions are the reentrant equivalents of, respectively, B<getservent>(3), "
8061 "B<getservbyname>(3), and B<getservbyport>(3).  They differ in the way that "
8062 "the I<servent> structure is returned, and in the function calling signature "
8063 "and return value.  This manual page describes just the differences from the "
8064 "nonreentrant functions."
8065 msgstr ""
8066
8067 #. type: Plain text
8068 #: build/C/man3/getservent_r.3:80
8069 msgid ""
8070 "Instead of returning a pointer to a statically allocated I<servent> "
8071 "structure as the function result, these functions copy the structure into "
8072 "the location pointed to by I<result_buf>."
8073 msgstr ""
8074
8075 #.  I can find no information on the required/recommended buffer size;
8076 #.  the nonreentrant functions use a 1024 byte buffer -- mtk.
8077 #. type: Plain text
8078 #: build/C/man3/getservent_r.3:97
8079 msgid ""
8080 "The I<buf> array is used to store the string fields pointed to by the "
8081 "returned I<servent> structure.  (The nonreentrant functions allocate these "
8082 "strings in static storage.)  The size of this array is specified in "
8083 "I<buflen>.  If I<buf> is too small, the call fails with the error B<ERANGE>, "
8084 "and the caller must try again with a larger buffer.  (A buffer of length "
8085 "1024 bytes should be sufficient for most applications.)"
8086 msgstr ""
8087
8088 #. type: Plain text
8089 #: build/C/man3/getservent_r.3:105
8090 msgid ""
8091 "If the function call successfully obtains a service record, then I<*result> "
8092 "is set pointing to I<result_buf>; otherwise, I<*result> is set to NULL."
8093 msgstr ""
8094
8095 #. type: Plain text
8096 #: build/C/man3/getservent_r.3:108
8097 msgid ""
8098 "On success, these functions return 0.  On error, they return one of the "
8099 "positive error numbers listed in errors."
8100 msgstr ""
8101
8102 #. type: Plain text
8103 #: build/C/man3/getservent_r.3:116
8104 msgid ""
8105 "On error, record not found (B<getservbyname_r>(), B<getservbyport_r>()), or "
8106 "end of input (B<getservent_r>())  I<result> is set to NULL."
8107 msgstr ""
8108
8109 #. type: Plain text
8110 #: build/C/man3/getservent_r.3:121
8111 msgid "(B<getservent_r>())  No more records in database."
8112 msgstr ""
8113
8114 #. type: Plain text
8115 #: build/C/man3/getservent_r.3:146
8116 msgid ""
8117 "The program below uses B<getservbyport_r>()  to retrieve the service record "
8118 "for the port and protocol named in its first command-line argument.  If a "
8119 "third (integer) command-line argument is supplied, it is used as the initial "
8120 "value for I<buflen>; if B<getservbyport_r>()  fails with the error "
8121 "B<ERANGE>, the program retries with larger buffer sizes.  The following "
8122 "shell session shows a couple of sample runs:"
8123 msgstr ""
8124
8125 #. type: Plain text
8126 #: build/C/man3/getservent_r.3:156
8127 #, no-wrap
8128 msgid ""
8129 "$B< ./a.out 7 tcp 1>\n"
8130 "ERANGE! Retrying with larger buffer\n"
8131 "getservbyport_r() returned: 0 (success)  (buflen=87)\n"
8132 "s_name=echo; s_proto=tcp; s_port=7; aliases=\n"
8133 "$B< ./a.out 77777 tcp>\n"
8134 "getservbyport_r() returned: 0 (success)  (buflen=1024)\n"
8135 "Call failed/record not found\n"
8136 msgstr ""
8137 "$B< ./a.out 7 tcp 1>\n"
8138 "ERANGE! Retrying with larger buffer\n"
8139 "getservbyport_r() returned: 0 (success)  (buflen=87)\n"
8140 "s_name=echo; s_proto=tcp; s_port=7; aliases=\n"
8141 "$B< ./a.out 77777 tcp>\n"
8142 "getservbyport_r() returned: 0 (success)  (buflen=1024)\n"
8143 "Call failed/record not found\n"
8144
8145 #. type: Plain text
8146 #: build/C/man3/getservent_r.3:180
8147 #, no-wrap
8148 msgid ""
8149 "int\n"
8150 "main(int argc, char *argv[])\n"
8151 "{\n"
8152 "    int buflen, erange_cnt, port, s;\n"
8153 "    struct servent result_buf;\n"
8154 "    struct servent *result;\n"
8155 "    char buf[MAX_BUF];\n"
8156 "    char *protop;\n"
8157 "    char **p;\n"
8158 msgstr ""
8159 "int\n"
8160 "main(int argc, char *argv[])\n"
8161 "{\n"
8162 "    int buflen, erange_cnt, port, s;\n"
8163 "    struct servent result_buf;\n"
8164 "    struct servent *result;\n"
8165 "    char buf[MAX_BUF];\n"
8166 "    char *protop;\n"
8167 "    char **p;\n"
8168
8169 #. type: Plain text
8170 #: build/C/man3/getservent_r.3:185
8171 #, no-wrap
8172 msgid ""
8173 "    if (argc E<lt> 3) {\n"
8174 "        printf(\"Usage: %s port-num proto-name [buflen]\\en\", argv[0]);\n"
8175 "        exit(EXIT_FAILURE);\n"
8176 "    }\n"
8177 msgstr ""
8178 "    if (argc E<lt> 3) {\n"
8179 "        printf(\"Usage: %s port-num proto-name [buflen]\\en\", argv[0]);\n"
8180 "        exit(EXIT_FAILURE);\n"
8181 "    }\n"
8182
8183 #. type: Plain text
8184 #: build/C/man3/getservent_r.3:189
8185 #, no-wrap
8186 msgid ""
8187 "    port = htons(atoi(argv[1]));\n"
8188 "    protop = (strcmp(argv[2], \"null\") == 0 ||\n"
8189 "\t      strcmp(argv[2], \"NULL\") == 0) ?  NULL : argv[2];\n"
8190 msgstr ""
8191 "    port = htons(atoi(argv[1]));\n"
8192 "    protop = (strcmp(argv[2], \"null\") == 0 ||\n"
8193 "\t      strcmp(argv[2], \"NULL\") == 0) ?  NULL : argv[2];\n"
8194
8195 #. type: Plain text
8196 #: build/C/man3/getservent_r.3:193
8197 #, no-wrap
8198 msgid ""
8199 "    buflen = 1024;\n"
8200 "    if (argc E<gt> 3)\n"
8201 "        buflen = atoi(argv[3]);\n"
8202 msgstr ""
8203 "    buflen = 1024;\n"
8204 "    if (argc E<gt> 3)\n"
8205 "        buflen = atoi(argv[3]);\n"
8206
8207 #. type: Plain text
8208 #: build/C/man3/getservent_r.3:207
8209 #, no-wrap
8210 msgid ""
8211 "    erange_cnt = 0;\n"
8212 "    do {\n"
8213 "        s = getservbyport_r(port, protop, &result_buf,\n"
8214 "                     buf, buflen, &result);\n"
8215 "        if (s == ERANGE) {\n"
8216 "            if (erange_cnt == 0)\n"
8217 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
8218 "            erange_cnt++;\n"
8219 msgstr ""
8220 "    erange_cnt = 0;\n"
8221 "    do {\n"
8222 "        s = getservbyport_r(port, protop, &result_buf,\n"
8223 "                     buf, buflen, &result);\n"
8224 "        if (s == ERANGE) {\n"
8225 "            if (erange_cnt == 0)\n"
8226 "                printf(\"ERANGE! Retrying with larger buffer\\en\");\n"
8227 "            erange_cnt++;\n"
8228
8229 #. type: Plain text
8230 #: build/C/man3/getservent_r.3:223
8231 #, no-wrap
8232 msgid ""
8233 "    printf(\"getservbyport_r() returned: %s  (buflen=%d)\\en\",\n"
8234 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
8235 "            strerror(s), buflen);\n"
8236 msgstr ""
8237 "    printf(\"getservbyport_r() returned: %s  (buflen=%d)\\en\",\n"
8238 "            (s == 0) ? \"0 (success)\" : (s == ENOENT) ? \"ENOENT\" :\n"
8239 "            strerror(s), buflen);\n"
8240
8241 #. type: Plain text
8242 #: build/C/man3/getservent_r.3:235
8243 #, no-wrap
8244 msgid ""
8245 "    printf(\"s_name=%s; s_proto=%s; s_port=%d; aliases=\",\n"
8246 "                result_buf.s_name, result_buf.s_proto,\n"
8247 "                ntohs(result_buf.s_port));\n"
8248 "    for (p = result_buf.s_aliases; *p != NULL; p++)\n"
8249 "        printf(\"%s \", *p);\n"
8250 "    printf(\"\\en\");\n"
8251 msgstr ""
8252 "    printf(\"s_name=%s; s_proto=%s; s_port=%d; aliases=\",\n"
8253 "                result_buf.s_name, result_buf.s_proto,\n"
8254 "                ntohs(result_buf.s_port));\n"
8255 "    for (p = result_buf.s_aliases; *p != NULL; p++)\n"
8256 "        printf(\"%s \", *p);\n"
8257 "    printf(\"\\en\");\n"
8258
8259 #. type: Plain text
8260 #: build/C/man3/getservent_r.3:242
8261 msgid "B<getservent>(3), B<services>(5)"
8262 msgstr "B<getservent>(3), B<services>(5)"
8263
8264 #. type: TH
8265 #: build/C/man5/host.conf.5:26
8266 #, no-wrap
8267 msgid "HOST.CONF"
8268 msgstr "HOST.CONF"
8269
8270 #. type: TH
8271 #: build/C/man5/host.conf.5:26
8272 #, no-wrap
8273 msgid "2003-08-23"
8274 msgstr "2003-08-23"
8275
8276 #. type: TH
8277 #: build/C/man5/host.conf.5:26 build/C/man5/networks.5:24
8278 #, no-wrap
8279 msgid "Linux System Administration"
8280 msgstr "Linux System Administration"
8281
8282 #. type: Plain text
8283 #: build/C/man5/host.conf.5:29
8284 msgid "host.conf - resolver configuration file"
8285 msgstr "host.conf - レゾルバ設定ファイル"
8286
8287 #. type: Plain text
8288 #: build/C/man5/host.conf.5:38
8289 msgid ""
8290 "The file I</etc/host.conf> contains configuration information specific to "
8291 "the resolver library.  It should contain one configuration keyword per line, "
8292 "followed by appropriate configuration information.  The keywords recognized "
8293 "are I<order>, I<trim>, I<multi>, I<nospoof>, I<spoof>, and I<reorder>.  "
8294 "These keywords are described below."
8295 msgstr ""
8296 "ファイル I</etc/host.conf> には、レゾルバライブラリの詳細な設定情報が含まれて"
8297 "いる。 このファイルには、1 行毎に 1 つの設定キーワードと それに続く適切な設定"
8298 "情報がなければならない。 認識されるキーワードは I<order>, I<trim>, I<multi>, "
8299 "I<nospoof>, I<spoof>, I<reorder> である。 各キーワードを、以下で説明する。"
8300
8301 #. type: TP
8302 #: build/C/man5/host.conf.5:38
8303 #, no-wrap
8304 msgid "I<order>"
8305 msgstr "I<order>"
8306
8307 #. type: Plain text
8308 #: build/C/man5/host.conf.5:44
8309 msgid ""
8310 "This keyword specifies how host lookups are to be performed.  It should be "
8311 "followed by one or more lookup methods, separated by commas.  Valid methods "
8312 "are I<bind>, I<hosts>, and I<nis>."
8313 msgstr ""
8314 "このキーワードは、ホストのルックアップ方式を指定する。 このキーワードの後に"
8315 "は、コンマで分けた 1 つ以上のルックアップ方式が続かなくてはならない。 使用可"
8316 "能な方式は I<bind>, I<hosts>, I<nis> である。"
8317
8318 #. type: TP
8319 #: build/C/man5/host.conf.5:44
8320 #, no-wrap
8321 msgid "I<trim>"
8322 msgstr "I<trim>"
8323
8324 #. type: Plain text
8325 #: build/C/man5/host.conf.5:61
8326 msgid ""
8327 "This keyword may be listed more than once.  Each time it should be followed "
8328 "by a list of domains, separated by colons (\\(aq:\\(aq), semicolons (\\(aq;"
8329 "\\(aq) or commas (\\(aq,\\(aq), with the leading dot.  When set, the resolv+ "
8330 "library will automatically trim the given domain name from the end of any "
8331 "hostname resolved via DNS.  This is intended for use with local hosts and "
8332 "domains.  (Related note: trim will not affect hostnames gathered via NIS or "
8333 "the hosts file.  Care should be taken to ensure that the first hostname for "
8334 "each entry in the hosts file is fully qualified or unqualified, as "
8335 "appropriate for the local installation.)"
8336 msgstr ""
8337 "このキーワードは、2 回以上リストすることができる。 毎回、このキーワードの後に"
8338 "は、 ドットではじまる 1 つ以上のドメイン名のリストを続けなければならない。 ド"
8339 "メイン名はコロン (\\(aq:\\(aq)、セミコロン (\\(aq;\\(aq)、コンマ (\\(aq,"
8340 "\\(aq)  で区切る。 このキーワードが設定されると、resolv+ ライブラリは DNS で"
8341 "レゾルブされた すべてのホスト名の後ろから与えられたドメイン名を自動的に取り去"
8342 "る。 このキーワードはローカルなホストとドメインで使用することを意図してい"
8343 "る。 (関連した注意 : NIS または hosts ファイルで集められたホスト名に trim は"
8344 "影響しない。 hosts ファイルの各エントリの最初のホスト名を、 完全なドメイン名"
8345 "付きのものにするかしないかは、 ホストごとのインストールポリシーにあわせて 適"
8346 "切に選択する必要がある。注意すること。)"
8347
8348 #. type: TP
8349 #: build/C/man5/host.conf.5:61
8350 #, no-wrap
8351 msgid "I<multi>"
8352 msgstr "I<multi>"
8353
8354 #. type: Plain text
8355 #: build/C/man5/host.conf.5:76
8356 msgid ""
8357 "Valid values are I<on> and I<off>.  If set to I<on>, the resolv+ library "
8358 "will return all valid addresses for a host that appears in the I</etc/hosts> "
8359 "file, instead of only the first.  This is I<off> by default, as it may cause "
8360 "a substantial performance loss at sites with large hosts files."
8361 msgstr ""
8362 "有効な値は I<on> と I<off> である。 I<on> に設定された場合、最初のエントリの"
8363 "みを例外として、 resolv+ ライブラリは I</etc/hosts> ファイルに現れるホストに"
8364 "対して全ての有効なアドレスを返そうとする。 大きな hosts ファイルを持つサイト"
8365 "では、 この設定は非常な性能の低下を招くので、 デフォルトでは I<off> である。"
8366
8367 #. type: TP
8368 #: build/C/man5/host.conf.5:76
8369 #, no-wrap
8370 msgid "I<nospoof>"
8371 msgstr "I<nospoof>"
8372
8373 #. type: Plain text
8374 #: build/C/man5/host.conf.5:91
8375 msgid ""
8376 "Valid values are I<on> and I<off>.  If set to I<on>, the resolv+ library "
8377 "will attempt to prevent hostname spoofing to enhance the security of "
8378 "B<rlogin> and B<rsh>.  It works as follows: after performing a host address "
8379 "lookup, resolv+ will perform a hostname lookup for that address.  If the two "
8380 "hostnames do not match, the query will fail.  The default value is I<off>."
8381 msgstr ""
8382 "有効な値は I<on> と I<off> である。 I<on> に設定された場合、resolv+ ライブラ"
8383 "リは B<rlogin> と B<rsh> のセキュリティを向上させるためホスト名の偽装を防止し"
8384 "ようとする。 これは、「ホストアドレスのルックアップを行った後、 resolv+ はそ"
8385 "のアドレスに対してホスト名のルックアップを行い、 もし 2 つのホスト名が一致し"
8386 "なかった場合は、クエリーは失敗する。」 というように動作する。 デフォルトの値"
8387 "は I<off> である。"
8388
8389 #. type: TP
8390 #: build/C/man5/host.conf.5:91
8391 #, no-wrap
8392 msgid "I<spoofalert>"
8393 msgstr "I<spoofalert>"
8394
8395 #. type: Plain text
8396 #: build/C/man5/host.conf.5:103
8397 msgid ""
8398 "Valid values are I<on> and I<off>.  If this option is set to I<on> and the "
8399 "I<nospoof> option is also set, resolv+ will log a warning of the error via "
8400 "the syslog facility.  The default value is I<off>."
8401 msgstr ""
8402 "有効な値は I<on> と I<off> である。 このオプションが I<on> に設定されてい"
8403 "て、 I<nospoof> オプションも (on に) 設定されている場合、 resolv+ は syslog "
8404 "機能を通じてエラーに関する警告のログをとる。 デフォルトの値は I<off> である。"
8405
8406 #. type: TP
8407 #: build/C/man5/host.conf.5:103
8408 #, no-wrap
8409 msgid "I<spoof>"
8410 msgstr "I<spoof>"
8411
8412 #. type: Plain text
8413 #: build/C/man5/host.conf.5:122
8414 msgid ""
8415 "Valid values are I<off>, I<nowarn> and I<warn>.  If this option is set to "
8416 "I<off>, spoofed addresses are permitted and no warnings will be emitted via "
8417 "the syslog facility.  If this option is set to I<warn>, resolv+ will attempt "
8418 "to prevent hostname spoofing to enhance the security and log a warning of "
8419 "the error via the syslog facility.  If this option is set to I<nowarn>, the "
8420 "resolv+ library will attempt to prevent hostname spoofing to enhance the "
8421 "security but not emit warnings via the syslog facility.  Setting this option "
8422 "to anything else is equal to setting it to I<nowarn>."
8423 msgstr ""
8424 "有効な値は I<off>, I<nowarn>, I<warn> である。 このオプションを I<off> に設定"
8425 "すると、偽装されたアドレスを許可して、 syslog 機能を通じた警告を発しない。 こ"
8426 "のオプションを I<warn> に設定すると、resolv+ はセキュリティを高めるためにホス"
8427 "ト名の偽装を防止し、 syslog 機能を通じてエラーに関する警告のログをとる。 この"
8428 "オプションを I<nowarn> に設定すると、resolv+ はセキュリティを高めるためにホス"
8429 "ト名の偽装を防止するが、 syslog 機能を通じた警告は発しない。 このオプションを"
8430 "何も設定しない場合は、 I<nowarn> を設定したのと同じになる。"
8431
8432 #. type: TP
8433 #: build/C/man5/host.conf.5:122
8434 #, no-wrap
8435 msgid "I<reorder>"
8436 msgstr "I<reorder>"
8437
8438 #. type: Plain text
8439 #: build/C/man5/host.conf.5:135
8440 msgid ""
8441 "Valid values are I<on> and I<off>.  If set to I<on>, resolv+ will attempt to "
8442 "reorder host addresses so that local addresses (i.e., on the same subnet) "
8443 "are listed first when a B<gethostbyname>(3)  is performed.  Reordering is "
8444 "done for all lookup methods.  The default value is I<off>."
8445 msgstr ""
8446 "有効な値は I<on> と I<off> である。 I<on> に設定されると、 B<gethostbyname "
8447 "(3)> が実行されるとき、resolv+ ライブラリは、ローカルな (つまり、同じサブネッ"
8448 "トにある) アドレスが最初にリストされるように ホストアドレスを並べ変える。 す"
8449 "べてのルックアップ方式に対して並べ変えが行われる。 デフォルトの値は、 I<off> "
8450 "である。"
8451
8452 #. type: SH
8453 #: build/C/man5/host.conf.5:135
8454 #, no-wrap
8455 msgid "ENVIRONMENT"
8456 msgstr "環境変数"
8457
8458 #. type: Plain text
8459 #: build/C/man5/host.conf.5:139
8460 msgid ""
8461 "There are six environment variables that can be used to allow users to "
8462 "override the behavior which is configured in I</etc/host.conf>."
8463 msgstr ""
8464 "I</etc/host.conf> で設定されている動作を、ユーザが上書きできる 6 つの環境変数"
8465 "がある。"
8466
8467 #. type: TP
8468 #: build/C/man5/host.conf.5:139
8469 #, no-wrap
8470 msgid "B<RESOLV_HOST_CONF>"
8471 msgstr "B<RESOLV_HOST_CONF>"
8472
8473 #. type: Plain text
8474 #: build/C/man5/host.conf.5:143
8475 msgid ""
8476 "If set this variable points to a file that should be read instead of I</etc/"
8477 "host.conf>."
8478 msgstr ""
8479 "この変数を設定すると、 I</etc/host.conf> の代りに読み込むファイルを設定でき"
8480 "る。"
8481
8482 #. type: TP
8483 #: build/C/man5/host.conf.5:143
8484 #, no-wrap
8485 msgid "B<RESOLV_SERV_ORDER>"
8486 msgstr "B<RESOLV_SERV_ORDER>"
8487
8488 #. type: Plain text
8489 #: build/C/man5/host.conf.5:148
8490 msgid "Overrides the I<order> command."
8491 msgstr "I<order> コマンドを上書きする。"
8492
8493 #. type: TP
8494 #: build/C/man5/host.conf.5:148
8495 #, no-wrap
8496 msgid "B<RESOLV_SPOOF_CHECK>"
8497 msgstr "B<RESOLV_SPOOF_CHECK>"
8498
8499 #. type: Plain text
8500 #: build/C/man5/host.conf.5:157
8501 msgid ""
8502 "Overrides the I<nospoof>, I<spoofalert> and I<spoof> commands in the same "
8503 "way as the I<spoof> command is parsed.  Valid values are I<off>, I<nowarn> "
8504 "and I<warn>."
8505 msgstr ""
8506 "I<spoof> コマンドを解析するのと同じ方式で、 I<nospoof>, I<spoofalert>, "
8507 "I<spoof> コマンドを上書きできる。 有効な値は I<off>, I<nowarn>, I<warn> であ"
8508 "る。"
8509
8510 #. type: TP
8511 #: build/C/man5/host.conf.5:157
8512 #, no-wrap
8513 msgid "B<RESOLV_MULTI>"
8514 msgstr "B<RESOLV_MULTI>"
8515
8516 #. type: Plain text
8517 #: build/C/man5/host.conf.5:162
8518 msgid "Overrides the I<multi> command."
8519 msgstr "I<multi> コマンドを上書きする。"
8520
8521 #. type: TP
8522 #: build/C/man5/host.conf.5:162
8523 #, no-wrap
8524 msgid "B<RESOLV_REORDER>"
8525 msgstr "B<RESOLV_REORDER>"
8526
8527 #. type: Plain text
8528 #: build/C/man5/host.conf.5:167
8529 msgid "Overrides the I<reorder> command."
8530 msgstr "I<reorder> コマンドを上書きする。"
8531
8532 #. type: TP
8533 #: build/C/man5/host.conf.5:167
8534 #, no-wrap
8535 msgid "B<RESOLV_ADD_TRIM_DOMAINS>"
8536 msgstr "B<RESOLV_ADD_TRIM_DOMAINS>"
8537
8538 #. type: Plain text
8539 #: build/C/man5/host.conf.5:172
8540 msgid ""
8541 "A list of domains, separated by colons (\\(aq:\\(aq), semicolons (\\(aq;"
8542 "\\(aq) or commas (\\(aq,\\(aq), with the leading dot, which will be added to "
8543 "the list of domains that should be trimmed."
8544 msgstr ""
8545 "コロン (\\(aq:\\(aq)、セミコロン (\\(aq;\\(aq)、コンマ (\\(aq,\\(aq) で区切っ"
8546 "た ドット (\\(aq.\\(aq) で始まるドメイン名のリスト。 ホスト名から取り去るドメ"
8547 "イン名のリストに追加する。"
8548
8549 #. type: TP
8550 #: build/C/man5/host.conf.5:172
8551 #, no-wrap
8552 msgid "B<RESOLV_OVERRIDE_TRIM_DOMAINS>"
8553 msgstr "B<RESOLV_OVERRIDE_TRIM_DOMAINS>"
8554
8555 #. type: Plain text
8556 #: build/C/man5/host.conf.5:180
8557 msgid ""
8558 "A list of domains, separated by colons (\\(aq:\\(aq), semicolons (\\(aq;"
8559 "\\(aq) or commas (\\(aq,\\(aq), with the leading dot, which will replace the "
8560 "list of domains that should be trimmed.  Overrides the I<trim> command."
8561 msgstr ""
8562 "コロン (\\(aq:\\(aq)、セミコロン (\\(aq;\\(aq)、コンマ (\\(aq,\\(aq) で区切っ"
8563 "た ドット (\\(aq.\\(aq) で始まるドメイン名のリスト。 ホスト名から取り去るドメ"
8564 "イン名のリストを上書きする。 I<trim> コマンドを上書きする。"
8565
8566 #. type: Plain text
8567 #: build/C/man5/host.conf.5:184 build/C/man5/host.conf.5:187
8568 msgid "Resolver configuration file"
8569 msgstr "リゾルバ設定ファイル"
8570
8571 #. type: TP
8572 #: build/C/man5/host.conf.5:184
8573 #, no-wrap
8574 msgid "I</etc/resolv.conf>"
8575 msgstr "I</etc/resolv.conf>"
8576
8577 #. type: Plain text
8578 #: build/C/man5/host.conf.5:190
8579 msgid "Local hosts database"
8580 msgstr "ローカルの hosts データベース"
8581
8582 #. type: Plain text
8583 #: build/C/man5/host.conf.5:199
8584 msgid ""
8585 "The following differences exist compared to the original implementation.  A "
8586 "new command I<spoof> and a new environment variable B<RESOLV_SPOOF_CHECK> "
8587 "can take arguments like I<off>, I<nowarn> and I<warn>.  Line comments can "
8588 "appear anywhere and not only at the beginning of a line."
8589 msgstr ""
8590 "元々の実装に比べて以下のような違いがある。 新しいコマンド I<spoof> と新しい環"
8591 "境変数 B<RESOLV_SPOOF_CHECK> は、引き数 I<off>, I<nowarn>, I<warn> をとる。 "
8592 "コメントは行頭だけではなく、どこに書いてもよい。"
8593
8594 #. type: Plain text
8595 #: build/C/man5/host.conf.5:204
8596 msgid "B<gethostbyname>(3), B<hostname>(7), B<named>(8), B<resolv+>(8)"
8597 msgstr "B<gethostbyname>(3), B<hostname>(7), B<named>(8), B<resolv+>(8)"
8598
8599 #. type: TH
8600 #: build/C/man7/hostname.7:37
8601 #, no-wrap
8602 msgid "HOSTNAME"
8603 msgstr "HOSTNAME"
8604
8605 #. type: TH
8606 #: build/C/man7/hostname.7:37
8607 #, no-wrap
8608 msgid "2010-11-07"
8609 msgstr "2010-11-07"
8610
8611 #. type: Plain text
8612 #: build/C/man7/hostname.7:40
8613 msgid "hostname - hostname resolution description"
8614 msgstr ""
8615
8616 #. type: Plain text
8617 #: build/C/man7/hostname.7:44
8618 msgid ""
8619 "Hostnames are domains, where a domain is a hierarchical, dot-separated list "
8620 "of subdomains; for example, the machine monet, in the Berkeley subdomain of "
8621 "the EDU domain would be represented as \"monet.Berkeley.EDU\"."
8622 msgstr ""
8623
8624 #. type: Plain text
8625 #: build/C/man7/hostname.7:53
8626 msgid ""
8627 "Hostnames are often used with network client and server programs, which must "
8628 "generally translate the name to an address for use.  (This task is generally "
8629 "performed by either B<getaddrinfo>(3)  or the obsolete B<gethostbyname>"
8630 "(3).)  Hostnames are resolved by the Internet name resolver in the following "
8631 "fashion."
8632 msgstr ""
8633
8634 #. type: Plain text
8635 #: build/C/man7/hostname.7:66
8636 msgid ""
8637 "If the name consists of a single component, that is, contains no dot, and if "
8638 "the environment variable B<HOSTALIASES> is set to the name of a file, that "
8639 "file is searched for any string matching the input hostname.  The file "
8640 "should consist of lines made up of two white-space separated strings, the "
8641 "first of which is the hostname alias, and the second of which is the "
8642 "complete hostname to be substituted for that alias.  If a case-insensitive "
8643 "match is found between the hostname to be resolved and the first field of a "
8644 "line in the file, the substituted name is looked up with no further "
8645 "processing."
8646 msgstr ""
8647
8648 #. type: Plain text
8649 #: build/C/man7/hostname.7:70
8650 msgid ""
8651 "If the input name ends with a trailing dot, the trailing dot is removed, and "
8652 "the remaining name is looked up with no further processing."
8653 msgstr ""
8654
8655 #. type: Plain text
8656 #: build/C/man7/hostname.7:83
8657 msgid ""
8658 "If the input name does not end with a trailing dot, it is looked up by "
8659 "searching through a list of domains until a match is found.  The default "
8660 "search list includes first the local domain, then its parent domains with at "
8661 "least 2 name components (longest first).  For example, in the domain CS."
8662 "Berkeley.EDU, the name lithium.CChem will be checked first as lithium.CChem."
8663 "CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU.  Lithium.CChem.EDU "
8664 "will not be tried, as there is only one component remaining from the local "
8665 "domain.  The search path can be changed from the default by a system-wide "
8666 "configuration file (see B<resolver>(5))."
8667 msgstr ""
8668
8669 #.  .SH HISTORY
8670 #.  Hostname appeared in
8671 #.  4.2BSD.
8672 #. type: Plain text
8673 #: build/C/man7/hostname.7:91
8674 msgid "B<gethostbyname>(3), B<resolver>(5), B<mailaddr>(7), B<named>(8)"
8675 msgstr "B<gethostbyname>(3), B<resolver>(5), B<mailaddr>(7), B<named>(8)"
8676
8677 #. type: TH
8678 #: build/C/man5/hosts.5:27
8679 #, no-wrap
8680 msgid "HOSTS"
8681 msgstr "HOSTS"
8682
8683 #. type: TH
8684 #: build/C/man5/hosts.5:27
8685 #, no-wrap
8686 msgid "2002-06-16"
8687 msgstr "2002-06-16"
8688
8689 #. type: Plain text
8690 #: build/C/man5/hosts.5:30
8691 msgid "hosts - static table lookup for hostnames"
8692 msgstr "hosts - ホスト名の静的なルックアップテーブル"
8693
8694 #. type: Plain text
8695 #: build/C/man5/hosts.5:32
8696 msgid "B</etc/hosts>"
8697 msgstr "B</etc/hosts>"
8698
8699 #. type: Plain text
8700 #: build/C/man5/hosts.5:40
8701 msgid ""
8702 "This manual page describes the format of the I</etc/hosts> file.  This file "
8703 "is a simple text file that associates IP addresses with hostnames, one line "
8704 "per IP address.  For each host a single line should be present with the "
8705 "following information:"
8706 msgstr ""
8707 "このマニュアルページは、 I</etc/hosts> ファイルのフォーマットについて記述して"
8708 "いる。 このファイルは簡単なテキストファイルで、1 行に 1 つの IP アドレスがあ"
8709 "り、 IP アドレスとホスト名を関連づけている。 各ホストについて、次のような情報"
8710 "が 1 行で与えられる。"
8711
8712 #. type: Plain text
8713 #: build/C/man5/hosts.5:43
8714 msgid "IP_address canonical_hostname [aliases...]"
8715 msgstr "IPアドレス 正式なホスト名 [エイリアス...]"
8716
8717 #. type: Plain text
8718 #: build/C/man5/hosts.5:56
8719 msgid ""
8720 "Fields of the entry are separated by any number of blanks and/or tab "
8721 "characters.  Text from a \"#\" character until the end of the line is a "
8722 "comment, and is ignored.  Host names may contain only alphanumeric "
8723 "characters, minus signs (\"-\"), and periods (\".\").  They must begin with "
8724 "an alphabetic character and end with an alphanumeric character.  Optional "
8725 "aliases provide for name changes, alternate spellings, shorter hostnames, or "
8726 "generic hostnames (for example, I<localhost>)."
8727 msgstr ""
8728 "エントリのフィールドは、空白またはタブ (複数でも可) で区切られる。 \"#\" 文字"
8729 "から行末までのテキストはコメントとして無視される。 ホスト名は英数字・マイナス"
8730 "記号 (\"-\")・ピリオド (\".\") を含むことができる。 ホスト名は英文字 "
8731 "(alphabetic character) で始まって、 英数字 (alphanumeric characte) で終わらな"
8732 "ければならない。 エイリアスはオプションであり、名前の変更、別のスペル、 短い"
8733 "ホスト名、一般的に使われるホスト名 (例えば I<localhost>)  などのために用意さ"
8734 "れている。"
8735
8736 #. type: Plain text
8737 #: build/C/man5/hosts.5:64
8738 msgid ""
8739 "The Berkeley Internet Name Domain (BIND) Server implements the Internet name "
8740 "server for UNIX systems.  It augments or replaces the I</etc/hosts> file or "
8741 "hostname lookup, and frees a host from relying on I</etc/hosts> being up to "
8742 "date and complete."
8743 msgstr ""
8744 "Berkeley Internet Name Domain (BIND) サーバは、 UNIX システムのためのインター"
8745 "ネットネームサーバを実装している。 これは、 I</etc/hosts> ファイルやホスト名"
8746 "ルックアップを拡張したり置き換えたりするものである。 これにより各ホストは I</"
8747 "etc/hosts> を最新かつ完全に保たなくてもよくなる。"
8748
8749 #. type: Plain text
8750 #: build/C/man5/hosts.5:67
8751 msgid ""
8752 "In modern systems, even though the host table has been superseded by DNS, it "
8753 "is still widely used for:"
8754 msgstr ""
8755 "ホストテーブルは、DNS にとって代わられたにもかかわらず、 現在のシステムにおい"
8756 "て次のような用途で広く使われている。"
8757
8758 #. type: TP
8759 #: build/C/man5/hosts.5:67
8760 #, no-wrap
8761 msgid "B<bootstrapping>"
8762 msgstr "B<ブート時>"
8763
8764 #. type: Plain text
8765 #: build/C/man5/hosts.5:73
8766 msgid ""
8767 "Most systems have a small host table containing the name and address "
8768 "information for important hosts on the local network.  This is useful when "
8769 "DNS is not running, for example during system bootup."
8770 msgstr ""
8771 "大部分のシステムは、ローカルネットワークにおいて重要なホストの 名前とアドレス"
8772 "が含まれた小さなホストテーブルを持っている。 これは、システムのブート時など"
8773 "の DNS が稼働していないときに役立つ。"
8774
8775 #. type: TP
8776 #: build/C/man5/hosts.5:73
8777 #, no-wrap
8778 msgid "B<NIS>"
8779 msgstr "B<NIS>"
8780
8781 #. type: Plain text
8782 #: build/C/man5/hosts.5:79
8783 msgid ""
8784 "Sites that use NIS use the host table as input to the NIS host database.  "
8785 "Even though NIS can be used with DNS, most NIS sites still use the host "
8786 "table with an entry for all local hosts as a backup."
8787 msgstr ""
8788 "NIS を使用しているサイトは、ホストテーブルを NIS ホストデータベースの入力とし"
8789 "て用いる。 NIS を DNS と共に使用できるにもかかわらず、 大部分の NIS サイトは"
8790 "未だに、 全てのローカルホストのエントリをもつホストテーブルを バックアップと"
8791 "して使用している。"
8792
8793 #. type: TP
8794 #: build/C/man5/hosts.5:79
8795 #, no-wrap
8796 msgid "B<isolated nodes>"
8797 msgstr "B<隔絶されたノード>"
8798
8799 #. type: Plain text
8800 #: build/C/man5/hosts.5:86
8801 msgid ""
8802 "Very small sites that are isolated from the network use the host table "
8803 "instead of DNS.  If the local information rarely changes, and the network is "
8804 "not connected to the Internet, DNS offers little advantage."
8805 msgstr ""
8806 "ネットワークから隔絶された非常に小さなサイトは、 DNS の代わりにホストテーブル"
8807 "を使用している。 ローカル情報が稀にしか変更されず、 ネットワークがインター"
8808 "ネットと接続されていない場合、 DNS にそれほどの利点はない。"
8809
8810 #. type: Plain text
8811 #: build/C/man5/hosts.5:91
8812 msgid ""
8813 "Modifications to this file normally take effect immediately, except in cases "
8814 "where the file is cached by applications."
8815 msgstr ""
8816 "このファイルへの変更は通常すぐに反映される。但し、アプリケーション によりファ"
8817 "イルの内容がキャッシュされている場合はこの限りではない。"
8818
8819 #. type: SS
8820 #: build/C/man5/hosts.5:91
8821 #, no-wrap
8822 msgid "Historical Notes"
8823 msgstr "歴史的な経緯"
8824
8825 #. type: Plain text
8826 #: build/C/man5/hosts.5:94
8827 msgid ""
8828 "RFC\\ 952 gave the original format for the host table, though it has since "
8829 "changed."
8830 msgstr ""
8831 "ホストテーブルのフォーマットはその後変更されているが、 元々のフォーマットは "
8832 "RFC\\ 952 には記載されている。"
8833
8834 #. type: Plain text
8835 #: build/C/man5/hosts.5:107
8836 msgid ""
8837 "Before the advent of DNS, the host table was the only way of resolving "
8838 "hostnames on the fledgling Internet.  Indeed, this file could be created "
8839 "from the official host data base maintained at the Network Information "
8840 "Control Center (NIC), though local changes were often required to bring it "
8841 "up to date regarding unofficial aliases and/or unknown hosts.  The NIC no "
8842 "longer maintains the hosts.txt files, though looking around at the time of "
8843 "writing (circa 2000), there are historical hosts.txt files on the WWW.  I "
8844 "just found three, from 92, 94, and 95."
8845 msgstr ""
8846 "DNS の登場以前、ホストテーブルは、駆け出したばかりのインターネットにおける ホ"
8847 "スト名解決の唯一の方法であった。 実際、このファイルは Network Information "
8848 "Control Center (NIC) によって 管理される公式ホストデータベースから作成するこ"
8849 "とができた。 しかし、非公式なエイリアスや不明なホストを扱えるように、 最新に"
8850 "保つためのローカルな変更が頻繁に必要とされた。 NIC は既に hosts.txt を管理し"
8851 "ていないが、 これを書いている (2000 年頃の) 時点で調べてみると、 WWW 上に歴史"
8852 "的な hosts.txt が存在する。 92, 94, 95 年のものが見つかった。"
8853
8854 #. type: Plain text
8855 #: build/C/man5/hosts.5:114
8856 #, no-wrap
8857 msgid ""
8858 "127.0.0.1       localhost\n"
8859 "192.168.1.10    foo.mydomain.org       foo\n"
8860 "192.168.1.13    bar.mydomain.org       bar\n"
8861 "146.82.138.7    master.debian.org      master\n"
8862 "209.237.226.90  www.opensource.org\n"
8863 msgstr ""
8864 "127.0.0.1       localhost\n"
8865 "192.168.1.10    foo.mydomain.org       foo\n"
8866 "192.168.1.13    bar.mydomain.org       bar\n"
8867 "146.82.138.7    master.debian.org      master\n"
8868 "209.237.226.90  www.opensource.org\n"
8869
8870 #.  .SH AUTHOR
8871 #.  This manual page was written by Manoj Srivastava <srivasta@debian.org>,
8872 #.  for the Debian GNU/Linux system.
8873 #. type: Plain text
8874 #: build/C/man5/hosts.5:125
8875 msgid ""
8876 "B<hostname>(1), B<resolver>(3), B<resolver>(5), B<hostname>(7), B<named>(8), "
8877 "Internet RFC\\ 952"
8878 msgstr ""
8879 "B<hostname>(1), B<resolver>(3), B<resolver>(5), B<hostname>(7), B<named>(8), "
8880 "Internet RFC\\ 952"
8881
8882 #. type: TH
8883 #: build/C/man5/hosts.equiv.5:3
8884 #, no-wrap
8885 msgid "HOSTS.EQUIV"
8886 msgstr "HOSTS.EQUIV"
8887
8888 #. type: TH
8889 #: build/C/man5/hosts.equiv.5:3
8890 #, no-wrap
8891 msgid "2003-08-24"
8892 msgstr "2003-08-24"
8893
8894 #. type: Plain text
8895 #: build/C/man5/hosts.equiv.5:7
8896 msgid ""
8897 "/etc/hosts.equiv - list of hosts and users that are granted \"trusted\" B<r> "
8898 "command access to your system"
8899 msgstr ""
8900 "/etc/hosts.equiv - 「信頼された」B<r> コマンドによるシステムへの アクセスを許"
8901 "可するホストおよびユーザのリスト"
8902
8903 #. type: Plain text
8904 #: build/C/man5/hosts.equiv.5:11
8905 msgid ""
8906 "The B<hosts.equiv> file allows or denies hosts and users to use the B<r>-"
8907 "commands (e.g., B<rlogin>, B<rsh> or B<rcp>) without supplying a password."
8908 msgstr ""
8909 "B<hosts.equiv> ファイルは B<r>-コマンド (B<rlogin>, B<rsh>, B<rcp> など) によ"
8910 "るパスワードなしでの利用を 許可/拒否するホスト/ユーザを設定する。"
8911
8912 #. type: Plain text
8913 #: build/C/man5/hosts.equiv.5:13
8914 msgid "The file uses the following format:"
8915 msgstr "このファイルでは以下の書式を用いる。"
8916
8917 #. type: TP
8918 #: build/C/man5/hosts.equiv.5:13
8919 #, no-wrap
8920 msgid "I<[ + | - ]> I<[hostname]> I<[username]>"
8921 msgstr "I<[ + | - ]> I<[hostname]> I<[username]>"
8922
8923 #. type: Plain text
8924 #: build/C/man5/hosts.equiv.5:27
8925 msgid ""
8926 "The I<hostname> is the name of a host which is logically equivalent to the "
8927 "local host.  Users logged into that host are allowed to access like-named "
8928 "user accounts on the local host without supplying a password.  The "
8929 "I<hostname> may be (optionally) preceded by a plus (+) sign.  If the plus "
8930 "sign is used alone it allows any host to access your system.  You can "
8931 "explicitly deny access to a host by preceding the I<hostname> by a minus (-) "
8932 "sign.  Users from that host must always supply a password.  For security "
8933 "reasons you should always use the FQDN of the hostname and not the short "
8934 "hostname."
8935 msgstr ""
8936 "I<hostname> は、ローカルホストと論理的に等価なホストの名前である。 そのホスト"
8937 "にログインしているユーザは、パスワードなしで ローカルホストの同じ名前のユーザ"
8938 "アカウントにアカウントできる。 I<hostname> の前にはプラス記号 (+) を置いても"
8939 "よい。プラス記号が単独で置かれた場合は、 このシステムへのアクセスをあらゆるホ"
8940 "ストに対して許可したことになる。 アクセスを明示的に拒否するには、 "
8941 "I<hostname> の前にマイナス記号 (-) を付ける。そのホストからのユーザは 常にパ"
8942 "スワードを要求される。セキュリティ上、ホスト名は 短い名前ではなく常に FQDN を"
8943 "使って指定すべきである。"
8944
8945 #. type: Plain text
8946 #: build/C/man5/hosts.equiv.5:39
8947 msgid ""
8948 "The I<username> entry grants a specific user access to all user accounts "
8949 "(except root) without supplying a password.  That means the user is NOT "
8950 "restricted to like-named accounts.  The I<username> may be (optionally) "
8951 "preceded by a plus (+) sign.  You can also explicitly deny access to a "
8952 "specific user by preceding the I<username> with a minus (-) sign.  This says "
8953 "that the user is not trusted no matter what other entries for that host "
8954 "exist."
8955 msgstr ""
8956 "I<username> エントリは、特定のユーザに対して、 (root 以外の) あらゆるユーザア"
8957 "カウント へのアクセスをパスワードなしで許可する。すなわち、そのユーザは同じ名"
8958 "前の アカウント以外にもアクセスできる。 I<username> の前にはプラス記号 (+) を"
8959 "置いてもよい。 特定のユーザからのアクセスを明示的に拒否するには、 "
8960 "I<username> の前にマイナス記号 (-) を付ける。こうすると、 ホストのエントリが"
8961 "なんと言おうとも、そのユーザは信頼されないことになる。"
8962
8963 #. type: Plain text
8964 #: build/C/man5/hosts.equiv.5:41
8965 msgid "Netgroups can be specified by preceding the netgroup by an @ sign."
8966 msgstr "netgroup を指定することもでき、その場合は @ 記号を前につける。"
8967
8968 #. type: Plain text
8969 #: build/C/man5/hosts.equiv.5:47
8970 msgid ""
8971 "Be extremely careful when using the plus (+) sign.  A simple typographical "
8972 "error could result in a standalone plus sign.  A standalone plus sign is a "
8973 "wildcard character that means \"any host\"!"
8974 msgstr ""
8975 "プラス記号 (+) を利用する際にはくれぐれも注意すること。 単純なミスタイプで、"
8976 "単独のプラス記号を置いてしまうことがある。 単独のプラス記号は「すべてのホス"
8977 "ト」を表すワイルドカードになってしまう!"
8978
8979 #. type: Plain text
8980 #: build/C/man5/hosts.equiv.5:49
8981 msgid "I</etc/hosts.equiv>"
8982 msgstr "I</etc/hosts.equiv>"
8983
8984 #. type: Plain text
8985 #: build/C/man5/hosts.equiv.5:54
8986 msgid ""
8987 "Some systems will only honor the contents of this file when it has owner "
8988 "root and no write permission for anybody else.  Some exceptionally paranoid "
8989 "systems even require that there be no other hard links to the file."
8990 msgstr ""
8991 "システムによっては、このファイルの内容が効力を持つのは、 このファイルの所有者"
8992 "が root で、 かつそれ以外に書き込み権限がない場合に限定されていることもあ"
8993 "る。 また、非常に制限がきついシステムでは、このファイルに対する他の ハードリ"
8994 "ンクがないことが要求される場合もある。"
8995
8996 #. type: Plain text
8997 #: build/C/man5/hosts.equiv.5:62
8998 msgid ""
8999 "Modern systems use the Pluggable Authentication Modules library (PAM).  With "
9000 "PAM a standalone plus sign is only considered a wildcard character which "
9001 "means \"any host\" when the word I<promiscuous> is added to the auth "
9002 "component line in your PAM file for the particular service (e.g., B<rlogin>)."
9003 msgstr ""
9004 "最近のシステムでは Pluggable Authentication Modules library (PAM) が 使われて"
9005 "いる。PAM では、単独のプラス記号が「すべてのホスト」を表す ワイルドカードとし"
9006 "て扱われるのは、特定のサービス (例えば B<rlogin>)  用の PAM ファイルで auth "
9007 "行にキーワード I<promiscuous> が追加されている場合のみである。"
9008
9009 #. type: Plain text
9010 #: build/C/man5/hosts.equiv.5:66
9011 msgid "B<rhosts>(5), B<rlogind>(8), B<rshd>(8)"
9012 msgstr "B<rhosts>(5), B<rlogind>(8), B<rshd>(8)"
9013
9014 #. type: TH
9015 #: build/C/man7/icmp.7:7
9016 #, no-wrap
9017 msgid "ICMP"
9018 msgstr "ICMP"
9019
9020 #. type: TH
9021 #: build/C/man7/icmp.7:7
9022 #, no-wrap
9023 msgid "2010-02-25"
9024 msgstr "2010-02-25"
9025
9026 #. type: Plain text
9027 #: build/C/man7/icmp.7:10
9028 msgid "icmp, IPPROTO_ICMP - Linux IPv4 ICMP kernel module."
9029 msgstr "icmp, IPPROTO_ICMP - Linux IPv4 ICMP カーネルモジュール"
9030
9031 #. type: Plain text
9032 #: build/C/man7/icmp.7:18
9033 msgid ""
9034 "This kernel protocol module implements the Internet Control Message Protocol "
9035 "defined in RFC\\ 792.  It is used to signal error conditions and for "
9036 "diagnosis.  The user doesn't interact directly with this module; instead it "
9037 "communicates with the other protocols in the kernel and these pass the ICMP "
9038 "errors to the application layers.  The kernel ICMP module also answers ICMP "
9039 "requests."
9040 msgstr ""
9041 "このカーネルモジュールは RFC\\ 792 で定義されている Internet Control Message "
9042 "Protocol を実装したものである。 このプロトコルはエラー状況を知らせたり診断を"
9043 "行うために用いられる。 ユーザーはこのモジュールとは直接には通信できない。 こ"
9044 "のモジュールはカーネルの他のプロトコルと通信し、 それらのプロトコルが ICMP エ"
9045 "ラーをアプリケーションレイヤに渡す。 カーネルの ICMP モジュールは ICMP リクエ"
9046 "ストに対する応答も行う。"
9047
9048 #. type: Plain text
9049 #: build/C/man7/icmp.7:30
9050 msgid ""
9051 "A user protocol may receive ICMP packets for all local sockets by opening a "
9052 "raw socket with the protocol B<IPPROTO_ICMP>.  See B<raw>(7)  for more "
9053 "information.  The types of ICMP packets passed to the socket can be filtered "
9054 "using the B<ICMP_FILTER> socket option.  ICMP packets are always processed "
9055 "by the kernel too, even when passed to a user socket."
9056 msgstr ""
9057 "raw ソケットをプロトコル B<IPPROTO_ICMP> でオープンすれば、 ユーザープロトコ"
9058 "ルはローカルなソケット全てに対する ICMP パケットを受信することができる。 詳細"
9059 "は B<raw>(7)  を参照のこと。 ソケットに渡される ICMP パケットのタイプは "
9060 "B<ICMP_FILTER> オプションによってフィルターできる。 ICMP パケットは (たとえ"
9061 "ユーザーソケットに渡される場合でも)、 常にカーネルによって (も) 処理される。"
9062
9063 #. type: Plain text
9064 #: build/C/man7/icmp.7:36
9065 msgid ""
9066 "Linux limits the rate of ICMP error packets to each destination.  "
9067 "B<ICMP_REDIRECT> and B<ICMP_DEST_UNREACH> are also limited by the "
9068 "destination route of the incoming packets."
9069 msgstr ""
9070 "Linux では ICMP エラーパケットのレートをそれぞれの送り先に対して 制限してい"
9071 "る。 B<ICMP_REDIRECT> と B<ICMP_DEST_UNREACH> も到着したパケットの行き先経路 "
9072 "(destination route) を制限する。"
9073
9074 #.  FIXME better description needed
9075 #. type: Plain text
9076 #: build/C/man7/icmp.7:49
9077 msgid ""
9078 "ICMP supports a set of I</proc> interfaces to configure some global IP "
9079 "parameters.  The parameters can be accessed by reading or writing files in "
9080 "the directory I</proc/sys/net/ipv4/>.  Most of these parameters are rate "
9081 "limitations for specific ICMP types.  Linux 2.2 uses a token bucket filter "
9082 "to limit ICMPs.  The value is the timeout in jiffies until the token bucket "
9083 "filter is cleared after a burst.  A jiffy is a system dependent unit, "
9084 "usually 10ms on i386 and about 1ms on alpha and ia64."
9085 msgstr ""
9086 "ICMP では、いくつかのグローバルパラメータを設定するための I</proc> ファイル群"
9087 "が用意されている。 これらのパラメータには、 I</proc/sys/net/ipv4/> ディレクト"
9088 "リ内のファイルの読み書きでアクセスできる。 これらのパラメータのほとんどは特定"
9089 "の ICMP タイプに対するレート制限 (rate limitation) である。 Linux 2.2 は "
9090 "ICMP の制限にトークン・バケット・フィルタ (token bucket filter) を用いる。 そ"
9091 "れぞれの値は、バーストの後にトークン・バケット・フィルタがクリア されるまでの"
9092 "タイムアウトを秒単位で表したものである。最小単位(jiffy)は システム依存の単位"
9093 "で i386 システムは通常 10ms、alpha や ia64 では 1ms である。"
9094
9095 #. type: TP
9096 #: build/C/man7/icmp.7:49
9097 #, no-wrap
9098 msgid "I<icmp_destunreach_rate> (Linux 2.2 to 2.4.9)"
9099 msgstr "I<icmp_destunreach_rate> (Linux 2.2 から 2.4.9 まで)"
9100
9101 #.  Precisely: from 2.1.102
9102 #. type: Plain text
9103 #: build/C/man7/icmp.7:58
9104 msgid ""
9105 "Maximum rate to send ICMP Destination Unreachable packets.  This limits the "
9106 "rate at which packets are sent to any individual route or destination.  The "
9107 "limit does not affect sending of B<ICMP_FRAG_NEEDED> packets needed for path "
9108 "MTU discovery."
9109 msgstr ""
9110 "ICMP 不達パケット (Destination Unreachable packet) を送る最大レート。 これは"
9111 "特定のルートまたは行き先にパケットを送信するレートを制限する。 この制限は、 "
9112 "path MTU discovery に必要な B<ICMP_FRAG_NEEDED> パケットの送信には影響しな"
9113 "い。"
9114
9115 #. type: TP
9116 #: build/C/man7/icmp.7:58
9117 #, no-wrap
9118 msgid "I<icmp_echo_ignore_all> (since Linux 2.2)"
9119 msgstr "I<icmp_echo_ignore_all> (Linux 2.2 以降)"
9120
9121 #.  Precisely: 2.1.68
9122 #. type: Plain text
9123 #: build/C/man7/icmp.7:64
9124 msgid "If this value is nonzero, Linux will ignore all B<ICMP_ECHO> requests."
9125 msgstr ""
9126 "この値が非ゼロの場合は、 Linux はすべての B<ICMP_ECHO> 要求を無視する。"
9127
9128 #. type: TP
9129 #: build/C/man7/icmp.7:64
9130 #, no-wrap
9131 msgid "I<icmp_echo_ignore_broadcasts> (since Linux 2.2)"
9132 msgstr "I<icmp_echo_ignore_broadcasts> (Linux 2.2 以降)"
9133
9134 #.  Precisely: from 2.1.68
9135 #. type: Plain text
9136 #: build/C/man7/icmp.7:70
9137 msgid ""
9138 "If this value is nonzero, Linux will ignore all B<ICMP_ECHO> packets sent to "
9139 "broadcast addresses."
9140 msgstr ""
9141 "この値が非ゼロの場合は、 Linux はブロードキャストアドレスに送られたすべての "
9142 "B<ICMP_ECHO> 要求を無視する。"
9143
9144 #. type: TP
9145 #: build/C/man7/icmp.7:70
9146 #, no-wrap
9147 msgid "I<icmp_echoreply_rate> (Linux 2.2 to 2.4.9)"
9148 msgstr "I<icmp_echoreply_rate> (Linux 2.2 から 2.4.9 まで)"
9149
9150 #.  Precisely: from 2.1.102
9151 #. type: Plain text
9152 #: build/C/man7/icmp.7:78
9153 msgid ""
9154 "Maximum rate for sending B<ICMP_ECHOREPLY> packets in response to "
9155 "B<ICMP_ECHOREQUEST> packets."
9156 msgstr ""
9157 "B<ICMP_ECHOREQUEST> パケットに応答する B<ICMP_ECHOREPLY> パケットの最大送信"
9158 "レート。"
9159
9160 #. type: TP
9161 #: build/C/man7/icmp.7:78
9162 #, no-wrap
9163 msgid "I<icmp_errors_use_inbound_ifaddr> (Boolean; default: disabled; since Linux 2.6.12)"
9164 msgstr "I<icmp_errors_use_inbound_ifaddr> (Boolean; default: disabled; Linux 2.6.12 以降)"
9165
9166 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
9167 #. type: Plain text
9168 #: build/C/man7/icmp.7:83
9169 msgid ""
9170 "If disabled, ICMP error messages are sent with the primary address of the "
9171 "exiting interface."
9172 msgstr ""
9173 "これを無効にすると、ICMP エラーメッセージは、 出力インタフェースのプライマリ"
9174 "アドレスで送信される。"
9175
9176 #. type: Plain text
9177 #: build/C/man7/icmp.7:89
9178 msgid ""
9179 "If enabled, the message will be sent with the primary address of the "
9180 "interface that received the packet that caused the ICMP error.  This is the "
9181 "behavior that many network administrators will expect from a router.  And it "
9182 "can make debugging complicated network layouts much easier."
9183 msgstr ""
9184 "これを有効にすると、エラーメッセージは ICMP エラーの原因となったパケットを 受"
9185 "信したインタフェースのプライマアドレスで送信される。 この動作は、多くのネット"
9186 "ワーク管理者がルータに対して期待しているものであり、 これにより複雑なネット"
9187 "ワークレイアウトのデバッグがより容易になる。"
9188
9189 #. type: Plain text
9190 #: build/C/man7/icmp.7:93
9191 msgid ""
9192 "Note that if no primary address exists for the interface selected, then the "
9193 "primary address of the first non-loopback interface that has one will be "
9194 "used regardless of this setting."
9195 msgstr ""
9196 "選択されたインタフェースでプライマリアドレスが存在しない場合は、 この設定に関"
9197 "わらず、最初のループバック以外のインタフェースで、 プライマリアドレスを持つイ"
9198 "ンタフェースのプライマリアドレスが使用される点に 注意すること。"
9199
9200 #. type: TP
9201 #: build/C/man7/icmp.7:93
9202 #, no-wrap
9203 msgid "I<icmp_ignore_bogus_error_responses> (Boolean; default: disabled; since Linux 2.2)"
9204 msgstr "I<icmp_ignore_bogus_error_responses> (Boolean; default: disabled; Linux 2.2 以降)"
9205
9206 #.  precisely: since 2.1.32
9207 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
9208 #. type: Plain text
9209 #: build/C/man7/icmp.7:101
9210 msgid ""
9211 "Some routers violate RFC1122 by sending bogus responses to broadcast "
9212 "frames.  Such violations are normally logged via a kernel warning.  If this "
9213 "parameter is enabled, the kernel will not give such warnings, which will "
9214 "avoid log file clutter."
9215 msgstr ""
9216 "ルータの中には、RFC1122 に違反し、ブロードキャストフレームに対して 偽の応答を"
9217 "送信するものがある。 このような違反は通常カーネルの警告としてログに記録され"
9218 "る。 このパラメータを有効にすると、カーネルはこのような警告を出さなくなり、 "
9219 "ログファイルに雑音のような情報が記録されるのを避けることができる。"
9220
9221 #. type: TP
9222 #: build/C/man7/icmp.7:101
9223 #, no-wrap
9224 msgid "I<icmp_paramprob_rate> (Linux 2.2 to 2.4.9)"
9225 msgstr "I<icmp_paramprob_rate> (Linux 2.2 から 2.4.9 まで)"
9226
9227 #.  Precisely: from 2.1.102
9228 #. type: Plain text
9229 #: build/C/man7/icmp.7:108
9230 msgid ""
9231 "Maximum rate for sending B<ICMP_PARAMETERPROB> packets.  These packets are "
9232 "sent when a packet arrives with an invalid IP header."
9233 msgstr ""
9234 "B<ICMP_PARAMETERPROB> パケットの最大送信レート。 これらのパケットは不正な IP "
9235 "ヘッダを持つパケットが到着した場合に 送信される。"
9236
9237 #. type: TP
9238 #: build/C/man7/icmp.7:108
9239 #, no-wrap
9240 msgid "I<icmp_ratelimit> (integer; default: 1000; since Linux 2.4.10)"
9241 msgstr "I<icmp_ratelimit> (integer; default: 1000; Linux 2.4.10 以降)"
9242
9243 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
9244 #. type: Plain text
9245 #: build/C/man7/icmp.7:116
9246 msgid ""
9247 "Limit the maximum rates for sending ICMP packets whose type matches "
9248 "I<icmp_ratemask> (see below) to specific targets.  0 to disable any "
9249 "limiting, otherwise the minimum space between responses in milliseconds."
9250 msgstr ""
9251 "種別が I<icmp_ratemask> (下記参照) にマッチした ICMP パケットの、 特定の送信"
9252 "先への送信レートの最大値を制限する。 0 はレート制限を無効にすることを、 0 以"
9253 "外の値は応答間の最小間隔 (ミリ秒単位) を示す。"
9254
9255 #. type: TP
9256 #: build/C/man7/icmp.7:116
9257 #, no-wrap
9258 msgid "I<icmp_ratemask> (integer; default: see below; since Linux 2.4.10)"
9259 msgstr "I<icmp_ratemask> (integer; default: 下記参照; Linux 2.4.10 以降)"
9260
9261 #.  The following taken from 2.6.28-rc4 Documentation/networking/ip-sysctl.txt
9262 #. type: Plain text
9263 #: build/C/man7/icmp.7:120
9264 msgid "Mask made of ICMP types for which rates are being limited."
9265 msgstr "レート制限を行う ICMP タイプを決めるマスク。"
9266
9267 #. type: Plain text
9268 #: build/C/man7/icmp.7:122
9269 msgid "Significant bits: IHGFEDCBA9876543210"
9270 msgstr "有効ビット: IHGFEDCBA9876543210"
9271
9272 #. type: Plain text
9273 #: build/C/man7/icmp.7:124
9274 msgid "Default mask: 0000001100000011000 (0x1818)"
9275 msgstr "デフォルトマスク: 0000001100000011000 (0x1818)"
9276
9277 #. type: Plain text
9278 #: build/C/man7/icmp.7:127
9279 msgid "Bit definitions (see the kernel source file I<include/linux/icmp.h>):"
9280 msgstr "ビット定義 (カーネルソースファイル I<include/linux/icmp.h> を参照):"
9281
9282 #. type: Plain text
9283 #: build/C/man7/icmp.7:143
9284 #, no-wrap
9285 msgid ""
9286 "0 Echo Reply\n"
9287 "3 Destination Unreachable *\n"
9288 "4 Source Quench *\n"
9289 "5 Redirect\n"
9290 "8 Echo Request\n"
9291 "B Time Exceeded *\n"
9292 "C Parameter Problem *\n"
9293 "D Timestamp Request\n"
9294 "E Timestamp Reply\n"
9295 "F Info Request\n"
9296 "G Info Reply\n"
9297 "H Address Mask Request\n"
9298 "I Address Mask Reply\n"
9299 msgstr ""
9300 "0 Echo Reply\n"
9301 "3 Destination Unreachable *\n"
9302 "4 Source Quench *\n"
9303 "5 Redirect\n"
9304 "8 Echo Request\n"
9305 "B Time Exceeded *\n"
9306 "C Parameter Problem *\n"
9307 "D Timestamp Request\n"
9308 "E Timestamp Reply\n"
9309 "F Info Request\n"
9310 "G Info Reply\n"
9311 "H Address Mask Request\n"
9312 "I Address Mask Reply\n"
9313
9314 #. type: Plain text
9315 #: build/C/man7/icmp.7:148
9316 msgid ""
9317 "The bits marked with an asterisk are rate limited by default (see the "
9318 "default mask above)."
9319 msgstr ""
9320 "アスタリスク印が付いたビットは、デフォルトでレート制限が有効に なっている (上"
9321 "記のマスクのデフォルトも参照)。"
9322
9323 #. type: TP
9324 #: build/C/man7/icmp.7:148
9325 #, no-wrap
9326 msgid "I<icmp_timeexceed_rate> (Linux 2.2 to 2.4.9)"
9327 msgstr "I<icmp_timeexceed_rate> (Linux 2.2 から 2.4.9 まで)"
9328
9329 #. type: Plain text
9330 #: build/C/man7/icmp.7:155
9331 msgid ""
9332 "Maximum rate for sending B<ICMP_TIME_EXCEEDED> packets.  These packets are "
9333 "sent to prevent loops when a packet has crossed too many hops."
9334 msgstr ""
9335 "B<ICMP_TIME_EXCEEDED> パケットの最大送信レート。 これらのパケットはパケットが"
9336 "あまりに多くの hop を通過した場合に、 ループを防ぐために送られる。"
9337
9338 #. type: Plain text
9339 #: build/C/man7/icmp.7:159
9340 msgid "Support for the B<ICMP_ADDRESS> request was removed in 2.2."
9341 msgstr "B<ICMP_ADDRESS> 要求に対するサポートは 2.2 で削除された。"
9342
9343 #. type: Plain text
9344 #: build/C/man7/icmp.7:163
9345 msgid "Support for B<ICMP_SOURCE_QUENCH> was removed in Linux 2.2."
9346 msgstr "B<ICMP_SOURCE_QUENCH> は Linux 2.2 で削除された。"
9347
9348 #.  not really true ATM
9349 #.  .PP
9350 #.  Linux ICMP should be compliant to RFC 1122.
9351 #. type: Plain text
9352 #: build/C/man7/icmp.7:171
9353 msgid ""
9354 "As many other implementations don't support B<IPPROTO_ICMP> raw sockets, "
9355 "this feature should not be relied on in portable programs."
9356 msgstr ""
9357 "他の多くの実装では、 B<IPPROTO_ICMP> raw ソケットがサポートされていない。 こ"
9358 "の機能は移植性が必要なプログラムでは用いるべきでない。"
9359
9360 #. type: Plain text
9361 #: build/C/man7/icmp.7:176
9362 msgid ""
9363 "B<ICMP_REDIRECT> packets are not sent when Linux is not acting as a router.  "
9364 "They are also only accepted from the old gateway defined in the routing "
9365 "table and the redirect routes are expired after some time."
9366 msgstr ""
9367 "Linux がルーターとして動作していないときには、 B<ICMP_REDIRECT> パケットは送"
9368 "信されない。 またこれらが受け取られるのも、発信元がルーティングテーブルに定義"
9369 "されている 古いゲートウェイで、リダイレクト・ルート (redirect route) が 適当"
9370 "な時間の後に期限切れになっている場合に限られる。"
9371
9372 #. type: Plain text
9373 #: build/C/man7/icmp.7:180
9374 msgid ""
9375 "The 64-bit timestamp returned by B<ICMP_TIMESTAMP> is in milliseconds since "
9376 "the Epoch, 1970-01-01 00:00:00 +0000 (UTC)."
9377 msgstr ""
9378 "B<ICMP_TIMESTAMP> から返される 64 ビットのタイムスタンプは、 紀元 (Epoch) で"
9379 "ある 1970-01-01 00:00:00 +0000 (UTC)  からの経過時間をミリ秒単位で表したもの"
9380 "である。"
9381
9382 #. type: Plain text
9383 #: build/C/man7/icmp.7:185
9384 msgid ""
9385 "Linux ICMP internally uses a raw socket to send ICMPs.  This raw socket may "
9386 "appear in B<netstat>(8)  output with a zero inode."
9387 msgstr ""
9388 "Linux ICMP は ICMP を送るために内部で raw ソケットを用いる。 raw ソケットは "
9389 "B<netstat>(8)  の出力に 0 inode として出力される。"
9390
9391 #. type: Plain text
9392 #: build/C/man7/icmp.7:187
9393 msgid "B<ip>(7)"
9394 msgstr "B<ip>(7)"
9395
9396 #. type: Plain text
9397 #: build/C/man7/icmp.7:189
9398 msgid "RFC\\ 792 for a description of the ICMP protocol."
9399 msgstr "B<RFC\\ 792>: ICMP プロトコルの説明"
9400
9401 #. type: TH
9402 #: build/C/man3/inet.3:42
9403 #, no-wrap
9404 msgid "INET"
9405 msgstr "INET"
9406
9407 #. type: TH
9408 #: build/C/man3/inet.3:42
9409 #, no-wrap
9410 msgid "2008-06-19"
9411 msgstr "2008-06-19"
9412
9413 #. type: Plain text
9414 #: build/C/man3/inet.3:46
9415 msgid ""
9416 "inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, "
9417 "inet_netof - Internet address manipulation routines"
9418 msgstr ""
9419 "inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, "
9420 "inet_netof - インターネットアドレス操作ルーチン"
9421
9422 #. type: Plain text
9423 #: build/C/man3/inet.3:51
9424 #, no-wrap
9425 msgid ""
9426 "B<#include E<lt>sys/socket.hE<gt>>\n"
9427 "B<#include E<lt>netinet/in.hE<gt>>\n"
9428 "B<#include E<lt>arpa/inet.hE<gt>>\n"
9429 msgstr ""
9430 "B<#include E<lt>sys/socket.hE<gt>>\n"
9431 "B<#include E<lt>netinet/in.hE<gt>>\n"
9432 "B<#include E<lt>arpa/inet.hE<gt>>\n"
9433
9434 #. type: Plain text
9435 #: build/C/man3/inet.3:53
9436 #, no-wrap
9437 msgid "B<int inet_aton(const char *>I<cp>B<, struct in_addr *>I<inp>B<);>\n"
9438 msgstr "B<int inet_aton(const char *>I<cp>B<, struct in_addr *>I<inp>B<);>\n"
9439
9440 #. type: Plain text
9441 #: build/C/man3/inet.3:55
9442 #, no-wrap
9443 msgid "B<in_addr_t inet_addr(const char *>I<cp>B<);>\n"
9444 msgstr "B<in_addr_t inet_addr(const char *>I<cp>B<);>\n"
9445
9446 #. type: Plain text
9447 #: build/C/man3/inet.3:57
9448 #, no-wrap
9449 msgid "B<in_addr_t inet_network(const char *>I<cp>B<);>\n"
9450 msgstr "B<in_addr_t inet_network(const char *>I<cp>B<);>\n"
9451
9452 #. type: Plain text
9453 #: build/C/man3/inet.3:59
9454 #, no-wrap
9455 msgid "B<char *inet_ntoa(struct in_addr >I<in>B<);>\n"
9456 msgstr "B<char *inet_ntoa(struct in_addr >I<in>B<);>\n"
9457
9458 #. type: Plain text
9459 #: build/C/man3/inet.3:61
9460 #, no-wrap
9461 msgid "B<struct in_addr inet_makeaddr(int >I<net>B<, int >I<host>B<);>\n"
9462 msgstr "B<struct in_addr inet_makeaddr(int >I<net>B<, int >I<host>B<);>\n"
9463
9464 #. type: Plain text
9465 #: build/C/man3/inet.3:63
9466 #, no-wrap
9467 msgid "B<in_addr_t inet_lnaof(struct in_addr >I<in>B<);>\n"
9468 msgstr "B<in_addr_t inet_lnaof(struct in_addr >I<in>B<);>\n"
9469
9470 #. type: Plain text
9471 #: build/C/man3/inet.3:65
9472 #, no-wrap
9473 msgid "B<in_addr_t inet_netof(struct in_addr >I<in>B<);>\n"
9474 msgstr "B<in_addr_t inet_netof(struct in_addr >I<in>B<);>\n"
9475
9476 #. type: Plain text
9477 #: build/C/man3/inet.3:75
9478 msgid "B<inet_aton>(), B<inet_ntoa>(): _BSD_SOURCE || _SVID_SOURCE"
9479 msgstr "B<inet_aton>(), B<inet_ntoa>(): _BSD_SOURCE || _SVID_SOURCE"
9480
9481 #. type: Plain text
9482 #: build/C/man3/inet.3:85
9483 msgid ""
9484 "B<inet_aton>()  converts the Internet host address I<cp> from the IPv4 "
9485 "numbers-and-dots notation into binary form (in network byte order)  and "
9486 "stores it in the structure that I<inp> points to.  B<inet_aton>()  returns "
9487 "nonzero if the address is valid, zero if not.  The address supplied in I<cp> "
9488 "can have one of the following forms:"
9489 msgstr ""
9490 "B<inet_aton>()  は、インターネットホストのアドレス I<cp> を、 IPv4 の数値と"
9491 "ドットによる表記から (ネットワークバイトオーダの) バイナリ値へ 変換し、変換結"
9492 "果を I<inp> が指している構造体に格納する。 アドレスが有効な場合 0 以外を返"
9493 "し、そうでない場合は 0 を返す。 I<cp> で渡すアドレスとして、以下の形式を用い"
9494 "ることができる。"
9495
9496 #. type: TP
9497 #: build/C/man3/inet.3:85
9498 #, no-wrap
9499 msgid "I<a.b.c.d>"
9500 msgstr "I<a.b.c.d>"
9501
9502 #. type: Plain text
9503 #: build/C/man3/inet.3:89
9504 msgid ""
9505 "Each of the four numeric parts specifies a byte of the address; the bytes "
9506 "are assigned in left-to-right order to produce the binary address."
9507 msgstr ""
9508 "4 つの数字のそれぞれはアドレスの各バイトを示す。 これらのバイトは左から右の順"
9509 "序でバイナリアドレスに割り当てられる。"
9510
9511 #. type: TP
9512 #: build/C/man3/inet.3:89
9513 #, no-wrap
9514 msgid "I<a.b.c>"
9515 msgstr "I<a.b.c>"
9516
9517 #. type: Plain text
9518 #: build/C/man3/inet.3:102
9519 msgid ""
9520 "Parts I<a> and I<b> specify the first two bytes of the binary address.  Part "
9521 "I<c> is interpreted as a 16-bit value that defines the rightmost two bytes "
9522 "of the binary address.  This notation is suitable for specifying (outmoded) "
9523 "Class B network addresses."
9524 msgstr ""
9525 "I<a> と I<b> はバイナリアドレスの最初の 2 バイトを示す。 I<c> は 16 ビット値"
9526 "と解釈され、バイナリアドレスの右側の 2 バイトを表す。 この表記は、(過去のもの"
9527 "となった) クラス B ネットワークアドレスを 指定するのに適している。"
9528
9529 #. type: TP
9530 #: build/C/man3/inet.3:102
9531 #, no-wrap
9532 msgid "I<a.b>"
9533 msgstr "I<a.b>"
9534
9535 #. type: Plain text
9536 #: build/C/man3/inet.3:113
9537 msgid ""
9538 "Part I<a> specifies the first byte of the binary address.  Part I<b> is "
9539 "interpreted as a 24-bit value that defines the rightmost three bytes of the "
9540 "binary address.  This notation is suitable for specifying (outmoded) Class C "
9541 "network addresses."
9542 msgstr ""
9543 "I<a> はバイナリアドレスの最初のバイトを示す。 I<b> は 24 ビット値と解釈され、"
9544 "バイナリアドレスの右側の 3 バイトを表す。 この表記は、(過去のものとなった) ク"
9545 "ラス C ネットワークアドレスを 指定するのに適している。"
9546
9547 #. type: TP
9548 #: build/C/man3/inet.3:113
9549 #, no-wrap
9550 msgid "I<a>"
9551 msgstr "I<a>"
9552
9553 #. type: Plain text
9554 #: build/C/man3/inet.3:119
9555 msgid ""
9556 "The value I<a> is interpreted as a 32-bit value that is stored directly into "
9557 "the binary address without any byte rearrangement."
9558 msgstr ""
9559 "値 I<a> は 32 ビット値と解釈され、バイトの再配置は行われず、 そのままバイナリ"
9560 "アドレスとして格納される。"
9561
9562 #. type: Plain text
9563 #: build/C/man3/inet.3:132
9564 msgid ""
9565 "In all of the above forms, components of the dotted address can be specified "
9566 "in decimal, octal (with a leading I<0>), or hexadecimal, with a leading "
9567 "I<0X>).  Addresses in any of these forms are collectively termed I<IPV4 "
9568 "numbers-and-dots notation>.  The form that uses exactly four decimal numbers "
9569 "is referred to as I<IPv4 dotted-decimal notation> (or sometimes: I<IPv4 "
9570 "dotted-quad notation>)."
9571 msgstr ""
9572 "上記の全ての形式で、ドット区切りのアドレスの各要素は、10 進数、 8 進数 (先頭"
9573 "に I<0> を付ける)、 16 進数 (先頭に I<0X> を付ける) で指定できる。 これらの形"
9574 "式のアドレスをまとめて I<IPv4 の数値とドットによる表記 (IPv4 numbers-and-"
9575 "dots notation)> と呼ぶ。 また、10 進数 4 つだけを使った形式を I<IPv4 のドット"
9576 "区切りの 10 進数表記 (IPv4 dotted-decimal notation)> と呼ぶ (I<IPv4 のドット"
9577 "区切り 4 分割表記 (IPv4 dotted-decimal notation)> と呼ぶこともある)。"
9578
9579 #. type: Plain text
9580 #: build/C/man3/inet.3:149
9581 msgid ""
9582 "The B<inet_addr>()  function converts the Internet host address I<cp> from "
9583 "IPv4 numbers-and-dots notation into binary data in network byte order.  If "
9584 "the input is invalid, B<INADDR_NONE> (usually -1) is returned.  Use of this "
9585 "function is problematic because -1 is a valid address (255.255.255.255).  "
9586 "Avoid its use in favor of B<inet_aton>(), B<inet_pton>(3), or B<getaddrinfo>"
9587 "(3)  which provide a cleaner way to indicate error return."
9588 msgstr ""
9589 "B<inet_addr>()  関数は、インターネットホストのアドレス I<cp> を、 IPv4 の数値"
9590 "とドットによる表記からネットワークバイトオーダでの バイナリ値へ変換して返"
9591 "す。 入力が不正な場合、 B<INADDR_NONE> (普通は -1) を返す。 -1 は有効なアドレ"
9592 "ス (255.255.255.255) なので、この関数を使うと 問題になるかもしれない。 この関"
9593 "数を使うのは避け、代わりに B<inet_aton>(), B<inet_pton>(3), B<getaddrinfo>"
9594 "(3)  を使うのがよい。 これらの関数の方が、エラーの通知がよりきれいな方法で行"
9595 "われる。"
9596
9597 #. type: Plain text
9598 #: build/C/man3/inet.3:159
9599 msgid ""
9600 "The B<inet_network>()  function converts I<cp>, a string in IPv4 numbers-and-"
9601 "dots notation, into a number in host byte order suitable for use as an "
9602 "Internet network address.  On success, the converted address is returned.  "
9603 "If the input is invalid, -1 is returned."
9604 msgstr ""
9605 "B<inet_network>()  関数は、 IPv4 の数値とドットによる表記の文字列 I<cp> を、 "
9606 "インターネットアドレスとしての使用に適した ホストバイトオーダの数値に変換す"
9607 "る。 成功すると、変換されたアドレスを返す。 入力が不正な場合は -1 を返す。"
9608
9609 #. type: Plain text
9610 #: build/C/man3/inet.3:167
9611 msgid ""
9612 "The B<inet_ntoa>()  function converts the Internet host address I<in>, given "
9613 "in network byte order, to a string in IPv4 dotted-decimal notation.  The "
9614 "string is returned in a statically allocated buffer, which subsequent calls "
9615 "will overwrite."
9616 msgstr ""
9617 "B<inet_ntoa>()  関数は、ネットワークバイトオーダで渡されたインターネットホス"
9618 "トアドレス I<in> を、 IPv4 のドット区切りの 10 進数表記の文字列に変換する。 "
9619 "文字列は静的に割当てられたバッファに格納されて返されるので、 この後でこの関数"
9620 "を再度呼び出すと文字列は上書きされる。"
9621
9622 #. type: Plain text
9623 #: build/C/man3/inet.3:173
9624 msgid ""
9625 "The B<inet_lnaof>()  function returns the local network address part of the "
9626 "Internet address I<in>.  The returned value is in host byte order."
9627 msgstr ""
9628 "B<inet_lnaof>()  関数は、インターネットアドレス I<in> のローカルネットワーク"
9629 "部分を返す。 この返り値はホストバイトオーダである。"
9630
9631 #. type: Plain text
9632 #: build/C/man3/inet.3:179
9633 msgid ""
9634 "The B<inet_netof>()  function returns the network number part of the "
9635 "Internet address I<in>.  The returned value is in host byte order."
9636 msgstr ""
9637 "B<inet_netof>()  関数は、インターネットアドレス I<in> のネットワーク部分を返"
9638 "す。 この返り値はホストバイトオーダである。"
9639
9640 #. type: Plain text
9641 #: build/C/man3/inet.3:190
9642 msgid ""
9643 "The B<inet_makeaddr>()  function is the converse of B<inet_netof>()  and "
9644 "B<inet_lnaof>().  It returns an Internet host address in network byte order, "
9645 "created by combining the network number I<net> with the local address "
9646 "I<host>, both in host byte order."
9647 msgstr ""
9648 "B<inet_makeaddr>()  関数は B<inet_netof>()  と B<inet_lnaof>()  の逆の機能を"
9649 "持つ。 ネットワーク番号 I<net> と、ローカルアドレス I<host> を 組み合わせて生"
9650 "成した、インターネットホストアドレスを ネットワークバイトオーダで返す。 "
9651 "I<host>, I<net> はともにホストバイトオーダである。"
9652
9653 #. type: Plain text
9654 #: build/C/man3/inet.3:200
9655 msgid ""
9656 "The structure I<in_addr> as used in B<inet_ntoa>(), B<inet_makeaddr>(), "
9657 "B<inet_lnaof>()  and B<inet_netof>()  is defined in I<E<lt>netinet/in."
9658 "hE<gt>> as:"
9659 msgstr ""
9660 "B<inet_ntoa>(), B<inet_makeaddr>(), B<inet_lnaof>(), B<inet_netof>()  で使用"
9661 "する構造体 I<in_addr> は I<E<lt>netinet/in.hE<gt>> で次のように定義されてい"
9662 "る:"
9663
9664 #. type: Plain text
9665 #: build/C/man3/inet.3:204
9666 #, no-wrap
9667 msgid "typedef uint32_t in_addr_t;\n"
9668 msgstr "typedef uint32_t in_addr_t;\n"
9669
9670 #. type: Plain text
9671 #: build/C/man3/inet.3:208
9672 #, no-wrap
9673 msgid ""
9674 "struct in_addr {\n"
9675 "    in_addr_t s_addr;\n"
9676 "};\n"
9677 msgstr ""
9678 "struct in_addr {\n"
9679 "    in_addr_t s_addr;\n"
9680 "};\n"
9681
9682 #. type: Plain text
9683 #: build/C/man3/inet.3:218
9684 msgid ""
9685 "4.3BSD.  B<inet_addr>()  and B<inet_ntoa>()  are specified in POSIX.1-2001.  "
9686 "B<inet_aton>()  is not specified in POSIX.1-2001, but is available on most "
9687 "systems."
9688 msgstr ""
9689 "4.3BSD.  B<inet_addr>(), B<inet_ntoa>()  は POSIX.1-2001 で規定されている。 "
9690 "B<inet_aton>()  は POSIX.1-2001 で規定されていないが、ほとんどのシステムで利"
9691 "用可能である。"
9692
9693 #. type: Plain text
9694 #: build/C/man3/inet.3:222
9695 msgid ""
9696 "On the i386 the host byte order is Least Significant Byte first (little "
9697 "endian), whereas the network byte order, as used on the Internet, is Most "
9698 "Significant Byte first (big endian)."
9699 msgstr ""
9700 "i386 ではホストバイトオーダは Least Significant Byte (LSB) first (リトルエン"
9701 "ディアン) だが、 インターネットで使われるネットワークバイトオーダは Most "
9702 "Significant Byte (MSB) first (ビッグエンディアン)  である点に注意すること。"
9703
9704 #. type: Plain text
9705 #: build/C/man3/inet.3:231
9706 msgid ""
9707 "B<inet_lnaof>(), B<inet_netof>(), and B<inet_makeaddr>()  are legacy "
9708 "functions that assume they are dealing with I<classful network addresses>.  "
9709 "Classful networking divides IPv4 network addresses into host and network "
9710 "components at byte boundaries, as follows:"
9711 msgstr ""
9712 "B<inet_lnaof>(), B<inet_netof>(), B<inet_makeaddr>()  は過去の名残であり、渡"
9713 "されたアドレスが I<クラスフル・ネットワークアドレス (classful network "
9714 "addresses)> であると仮定して処理を行う。 クラスフル・ネットワークアドレスで"
9715 "は、以下にあるように、 IPv4 ネットワークアドレスをバイト境界でネットワーク部"
9716 "とホスト部に分割する。"
9717
9718 #. type: TP
9719 #: build/C/man3/inet.3:231
9720 #, no-wrap
9721 msgid "Class A"
9722 msgstr "Class A"
9723
9724 #. type: Plain text
9725 #: build/C/man3/inet.3:237
9726 msgid ""
9727 "This address type is indicated by the value 0 in the most significant bit of "
9728 "the (network byte ordered) address.  The network address is contained in the "
9729 "most significant byte, and the host address occupies the remaining three "
9730 "bytes."
9731 msgstr ""
9732 "(ネットワークバイトオーダの) アドレスの最上位ビットが 0 の場合、 このアドレス"
9733 "種別となる。このアドレス種別では、 最上位バイトがネットワークアドレスを表"
9734 "し、 残りの 3 バイトがホストアドレスを表す。"
9735
9736 #. type: TP
9737 #: build/C/man3/inet.3:237
9738 #, no-wrap
9739 msgid "Class B"
9740 msgstr "Class B"
9741
9742 #. type: Plain text
9743 #: build/C/man3/inet.3:243
9744 msgid ""
9745 "This address type is indicated by the binary value 10 in the most "
9746 "significant two bits of the address.  The network address is contained in "
9747 "the two most significant bytes, and the host address occupies the remaining "
9748 "two bytes."
9749 msgstr ""
9750 "(ネットワークバイトオーダの) アドレスの上位側 2 ビットがバイナリ値で 10 の場"
9751 "合、このアドレス種別となる。このアドレス種別では、 上位 2 バイトがネットワー"
9752 "クアドレスを表し、 残りの 2 バイトがホストアドレスを表す。"
9753
9754 #. type: TP
9755 #: build/C/man3/inet.3:243
9756 #, no-wrap
9757 msgid "Class C"
9758 msgstr "Class C"
9759
9760 #. type: Plain text
9761 #: build/C/man3/inet.3:249
9762 msgid ""
9763 "This address type is indicated by the binary value 110 in the most "
9764 "significant three bits of the address.  The network address is contained in "
9765 "the three most significant bytes, and the host address occupies the "
9766 "remaining byte."
9767 msgstr ""
9768 "(ネットワークバイトオーダの) アドレスの上位側 3 ビットがバイナリ値で 110 の場"
9769 "合、このアドレス種別となる。このアドレス種別では、 上位 3 バイトがネットワー"
9770 "クアドレスを表し、 残りの 1 バイトがホストアドレスを表す。"
9771
9772 #. type: Plain text
9773 #: build/C/man3/inet.3:254
9774 msgid ""
9775 "Classful network addresses are now obsolete, having been superseded by "
9776 "Classless Inter-Domain Routing (CIDR), which divides addresses into network "
9777 "and host components at arbitrary bit (rather than byte) boundaries."
9778 msgstr ""
9779 "クラスフル・ネットワークアドレスは現在では廃止され、 クラスレス・ドメイン間"
9780 "ルーチン (CIDR) に取って代わられた。 CIDR では、アドレスを任意のビット境界 "
9781 "(バイト境界ではない) で ネットワーク部とホスト部に分割する。"
9782
9783 #. type: Plain text
9784 #: build/C/man3/inet.3:261
9785 msgid ""
9786 "An example of the use of B<inet_aton>()  and B<inet_ntoa>()  is shown "
9787 "below.  Here are some example runs:"
9788 msgstr ""
9789 "以下は B<inet_aton>()  と B<inet_ntoa>()  の使用例である。このように実行す"
9790 "る。"
9791
9792 #. type: Plain text
9793 #: build/C/man3/inet.3:268
9794 #, no-wrap
9795 msgid ""
9796 "$B< ./a.out 226.000.000.037>      # Last byte is in octal\n"
9797 "226.0.0.31\n"
9798 "$B< ./a.out 0x7f.1         >      # First byte is in hex\n"
9799 "127.0.0.1\n"
9800 msgstr ""
9801 "$B< ./a.out 226.000.000.037>      # Last byte is in octal\n"
9802 "226.0.0.31\n"
9803 "$B< ./a.out 0x7f.1         >      # First byte is in hex\n"
9804 "127.0.0.1\n"
9805
9806 #. type: Plain text
9807 #: build/C/man3/inet.3:277
9808 #, no-wrap
9809 msgid ""
9810 "#define _BSD_SOURCE\n"
9811 "#include E<lt>arpa/inet.hE<gt>\n"
9812 "#include E<lt>stdio.hE<gt>\n"
9813 "#include E<lt>stdlib.hE<gt>\n"
9814 msgstr ""
9815 "#define _BSD_SOURCE\n"
9816 "#include E<lt>arpa/inet.hE<gt>\n"
9817 "#include E<lt>stdio.hE<gt>\n"
9818 "#include E<lt>stdlib.hE<gt>\n"
9819
9820 #. type: Plain text
9821 #: build/C/man3/inet.3:282
9822 #, no-wrap
9823 msgid ""
9824 "int\n"
9825 "main(int argc, char *argv[])\n"
9826 "{\n"
9827 "    struct in_addr addr;\n"
9828 msgstr ""
9829 "int\n"
9830 "main(int argc, char *argv[])\n"
9831 "{\n"
9832 "    struct in_addr addr;\n"
9833
9834 #. type: Plain text
9835 #: build/C/man3/inet.3:287
9836 #, no-wrap
9837 msgid ""
9838 "    if (argc != 2) {\n"
9839 "        fprintf(stderr, \"%s E<lt>dotted-addressE<gt>\\en\", argv[0]);\n"
9840 "        exit(EXIT_FAILURE);\n"
9841 "    }\n"
9842 msgstr ""
9843 "    if (argc != 2) {\n"
9844 "        fprintf(stderr, \"%s E<lt>dotted-addressE<gt>\\en\", argv[0]);\n"
9845 "        exit(EXIT_FAILURE);\n"
9846 "    }\n"
9847
9848 #. type: Plain text
9849 #: build/C/man3/inet.3:292
9850 #, no-wrap
9851 msgid ""
9852 "    if (inet_aton(argv[1], &addr) == 0) {\n"
9853 "        perror(\"inet_aton\");\n"
9854 "        exit(EXIT_FAILURE);\n"
9855 "    }\n"
9856 msgstr ""
9857 "    if (inet_aton(argv[1], &addr) == 0) {\n"
9858 "        perror(\"inet_aton\");\n"
9859 "        exit(EXIT_FAILURE);\n"
9860 "    }\n"
9861
9862 #. type: Plain text
9863 #: build/C/man3/inet.3:296
9864 #, no-wrap
9865 msgid ""
9866 "    printf(\"%s\\en\", inet_ntoa(addr));\n"
9867 "    exit(EXIT_SUCCESS);\n"
9868 "}\n"
9869 msgstr ""
9870 "    printf(\"%s\\en\", inet_ntoa(addr));\n"
9871 "    exit(EXIT_SUCCESS);\n"
9872 "}\n"
9873
9874 #. type: Plain text
9875 #: build/C/man3/inet.3:307
9876 msgid ""
9877 "B<byteorder>(3), B<getaddrinfo>(3), B<gethostbyname>(3), B<getnameinfo>(3), "
9878 "B<getnetent>(3), B<inet_ntop>(3), B<inet_pton>(3), B<hosts>(5), B<networks>"
9879 "(5)"
9880 msgstr ""
9881 "B<byteorder>(3), B<getaddrinfo>(3), B<gethostbyname>(3), B<getnameinfo>(3), "
9882 "B<getnetent>(3), B<inet_ntop>(3), B<inet_pton>(3), B<hosts>(5), B<networks>"
9883 "(5)"
9884
9885 #. type: TH
9886 #: build/C/man3/inet_ntop.3:24
9887 #, no-wrap
9888 msgid "INET_NTOP"
9889 msgstr "INET_NTOP"
9890
9891 #. type: TH
9892 #: build/C/man3/inet_ntop.3:24
9893 #, no-wrap
9894 msgid "2008-11-11"
9895 msgstr "2008-11-11"
9896
9897 #. type: Plain text
9898 #: build/C/man3/inet_ntop.3:27
9899 msgid "inet_ntop - convert IPv4 and IPv6 addresses from binary to text form"
9900 msgstr "inet_ntop - IPv4/IPv6 アドレスをバイナリ形式からテキスト形式に変換する"
9901
9902 #. type: Plain text
9903 #: build/C/man3/inet_ntop.3:33
9904 #, no-wrap
9905 msgid ""
9906 "B<const char *inet_ntop(int >I<af>B<, const void *>I<src>B<,>\n"
9907 "B<                      char *>I<dst>B<, socklen_t >I<size>B<);>\n"
9908 msgstr ""
9909 "B<const char *inet_ntop(int >I<af>B<, const void *>I<src>B<,>\n"
9910 "B<                      char *>I<dst>B<, socklen_t >I<size>B<);>\n"
9911
9912 #. type: Plain text
9913 #: build/C/man3/inet_ntop.3:46
9914 msgid ""
9915 "This function converts the network address structure I<src> in the I<af> "
9916 "address family into a character string.  The resulting string is copied to "
9917 "the buffer pointed to by I<dst>, which must be a non-NULL pointer.  The "
9918 "caller specifies the number of bytes available in this buffer in the "
9919 "argument I<size>."
9920 msgstr ""
9921 "この関数は、 I<af> アドレスファミリーのネットワークアドレス構造体 I<src> を文"
9922 "字列に変換する。 変換結果の文字列は、 I<dst> が指すバッファにコピーされる。 "
9923 "I<dst> は NULL でないポインタでなければならない。 呼び出し時に、このバッファ"
9924 "で利用できるバイト数を 引き数 I<size> に指定する。"
9925
9926 #. type: Plain text
9927 #: build/C/man3/inet_ntop.3:55
9928 msgid ""
9929 "B<inet_ntop>()  extends the B<inet_ntoa>(3)  function to support multiple "
9930 "address families, B<inet_ntoa>(3)  is now considered to be deprecated in "
9931 "favor of B<inet_ntop>().  The following address families are currently "
9932 "supported:"
9933 msgstr ""
9934 "B<inet_ntop>()  は B<inet_ntoa>(3)  関数を拡張して複数のアドレスファミリーを"
9935 "扱えるようにしたものである。 今後は B<inet_ntoa>(3)  は使わず、 B<inet_ntop>"
9936 "()  を使うようにすると良いだろう。 現在サポートされているアドレスファミリーは"
9937 "以下の通り:"
9938
9939 #. type: Plain text
9940 #: build/C/man3/inet_ntop.3:68
9941 msgid ""
9942 "I<src> points to a I<struct in_addr> (in network byte order)  which is "
9943 "converted to an IPv4 network address in the dotted-decimal format, \"I<ddd."
9944 "ddd.ddd.ddd>\".  The buffer I<dst> must be at least B<INET_ADDRSTRLEN> bytes "
9945 "long."
9946 msgstr ""
9947 "この場合 I<src> は (ネットワークバイトオーダーの)  I<struct in_addr> へのポイ"
9948 "ンタとみなされ、この構造体の内容が ドット区切りの 10 進数形式 \"I<ddd.ddd."
9949 "ddd.ddd>\" の IPv4 ネットワークアドレスに変換される。 バッファ I<dst> は少な"
9950 "くとも B<INET_ADDRSTRLEN> バイトの長さを持たなければならない。"
9951
9952 #. type: Plain text
9953 #: build/C/man3/inet_ntop.3:81
9954 msgid ""
9955 "I<src> points to a I<struct in6_addr> (in network byte order)  which is "
9956 "converted to a representation of this address in the most appropriate IPv6 "
9957 "network address format for this address.  The buffer I<dst> must be at least "
9958 "B<INET6_ADDRSTRLEN> bytes long."
9959 msgstr ""
9960 "この場合 I<src> は (ネットワークバイトオーダーの)  I<struct in6_addr> へのポ"
9961 "インタとみなされ、この構造体の内容が、 (このアドレスに対してもっとも適切な)  "
9962 "IPv6 ネットワークアドレスの表示形式に変換される。 バッファ I<dst> は少なくと"
9963 "も B<INET6_ADDRSTRLEN> バイトの長さを持たなければならない。"
9964
9965 #. type: Plain text
9966 #: build/C/man3/inet_ntop.3:89
9967 msgid ""
9968 "On success, B<inet_ntop>()  returns a non-NULL pointer to I<dst>.  NULL is "
9969 "returned if there was an error, with I<errno> set to indicate the error."
9970 msgstr ""
9971 "成功すると、 B<inet_ntop>()  は I<dst> への (NULL でない) ポインタを返す。 エ"
9972 "ラーがあった場合は NULL を返し、 I<errno> をエラーを示す値に適切に設定する。"
9973
9974 #. type: TP
9975 #: build/C/man3/inet_ntop.3:90
9976 #, no-wrap
9977 msgid "B<EAFNOSUPPORT>"
9978 msgstr "B<EAFNOSUPPORT>"
9979
9980 #. type: Plain text
9981 #: build/C/man3/inet_ntop.3:94
9982 msgid "I<af> was not a valid address family."
9983 msgstr "I<af> がサポートされているアドレスファミリーでなかった。"
9984
9985 #. type: TP
9986 #: build/C/man3/inet_ntop.3:94
9987 #, no-wrap
9988 msgid "B<ENOSPC>"
9989 msgstr "B<ENOSPC>"
9990
9991 #. type: Plain text
9992 #: build/C/man3/inet_ntop.3:98
9993 msgid "The converted address string would exceed the size given by I<size>."
9994 msgstr ""
9995 "変換されたアドレス文字列の長さが I<size> で指定されたサイズを超過してしまう。"
9996
9997 #.  2.1.3: size_t, 2.1.91: socklen_t
9998 #. type: Plain text
9999 #: build/C/man3/inet_ntop.3:110
10000 msgid ""
10001 "POSIX.1-2001.  Note that RFC\\ 2553 defines a prototype where the last "
10002 "argument I<size> is of type I<size_t>.  Many systems follow RFC\\ 2553.  "
10003 "Glibc 2.0 and 2.1 have I<size_t>, but 2.2 and later have I<socklen_t>."
10004 msgstr ""
10005 "POSIX.1-2001.  RFC\\ 2553 では最後の引き数 I<size> のプロトタイプを "
10006 "I<size_t> 型と定義している。多くのシステムでは RFC\\ 2553 にしたがっている。 "
10007 "glibc 2.0 と 2.1 では I<size_t> だが、 glibc 2.2 以降では I<socklen_t> となっ"
10008 "ている。"
10009
10010 #. type: Plain text
10011 #: build/C/man3/inet_ntop.3:113
10012 msgid "B<AF_INET6> converts IPv4-mapped IPv6 addresses into an IPv6 format."
10013 msgstr ""
10014 "B<AF_INET6> は IPv4 がマップされた IPv6 アドレスを IPv6 形式に変換してしま"
10015 "う。"
10016
10017 #. type: Plain text
10018 #: build/C/man3/inet_ntop.3:116
10019 msgid "See B<inet_pton>(3)."
10020 msgstr "B<inet_pton>(3)  を参照。"
10021
10022 #. type: Plain text
10023 #: build/C/man3/inet_ntop.3:120
10024 msgid "B<getnameinfo>(3), B<inet>(3), B<inet_pton>(3)"
10025 msgstr "B<getnameinfo>(3), B<inet>(3), B<inet_pton>(3)"
10026
10027 #. type: TH
10028 #: build/C/man3/inet_pton.3:25
10029 #, no-wrap
10030 msgid "INET_PTON"
10031 msgstr "INET_PTON"
10032
10033 #. type: TH
10034 #: build/C/man3/inet_pton.3:25
10035 #, no-wrap
10036 msgid "2008-06-18"
10037 msgstr "2008-06-18"
10038
10039 #. type: Plain text
10040 #: build/C/man3/inet_pton.3:28
10041 msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
10042 msgstr "inet_pton - IPv4/IPv6 アドレスをテキスト形式からバイナリ形式に変換する"
10043
10044 #. type: Plain text
10045 #: build/C/man3/inet_pton.3:33
10046 #, no-wrap
10047 msgid "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
10048 msgstr "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
10049
10050 #. type: Plain text
10051 #: build/C/man3/inet_pton.3:49
10052 msgid ""
10053 "This function converts the character string I<src> into a network address "
10054 "structure in the I<af> address family, then copies the network address "
10055 "structure to I<dst>.  The I<af> argument must be either B<AF_INET> or "
10056 "B<AF_INET6>."
10057 msgstr ""
10058 "この関数は文字列 I<src> を、アドレスファミリー I<af> のネットワークアドレス構"
10059 "造体に変換し、 I<dst> にコピーする。 I<af> 引き数は B<AF_INET> か "
10060 "B<AF_INET6> のどちらかでなければならない。"
10061
10062 #. type: Plain text
10063 #: build/C/man3/inet_pton.3:51
10064 msgid "The following address families are currently supported:"
10065 msgstr "現在サポートされているアドレスファミリーは以下の通りである。"
10066
10067 #. type: Plain text
10068 #: build/C/man3/inet_pton.3:65
10069 msgid ""
10070 "I<src> points to a character string containing an IPv4 network address in "
10071 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
10072 "number of up to three digits in the range 0 to 255.  The address is "
10073 "converted to a I<struct in_addr> and copied to I<dst>, which must be I<sizeof"
10074 "(struct in_addr)> (4) bytes (32 bits) long."
10075 msgstr ""
10076 "I<src> はドット区切りの 10 進数形式 \"I<ddd.ddd.ddd.ddd>\" の IPv4 ネットワー"
10077 "クアドレス文字列へのポインタである。 I<ddd> は 0 から 255 までの範囲の最大 3 "
10078 "桁の 10 進数である。 このアドレスは I<struct in_addr> に変換されて I<dst> に"
10079 "コピーされる。 I<dst> の長さは I<sizeof(struct in_addr)> (4) バイト (32ビッ"
10080 "ト) でなければならない。"
10081
10082 #. type: Plain text
10083 #: build/C/man3/inet_pton.3:77
10084 msgid ""
10085 "I<src> points to a character string containing an IPv6 network address.  The "
10086 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
10087 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long.  The allowed "
10088 "formats for IPv6 addresses follow these rules:"
10089 msgstr ""
10090 "I<src> は IPv6 ネットワークアドレスが格納された文字列へのポインタである。 こ"
10091 "のアドレスは I<struct in6_addr> に変換されて I<dst> にコピーされる。 I<dst> "
10092 "の長さは I<sizeof(struct in6_addr)> (16) バイト (128 ビット) でなければならな"
10093 "い。 以下の 3 つのルールにしたがった形式が IPv6 アドレスとして入力できる。"
10094
10095 #. type: IP
10096 #: build/C/man3/inet_pton.3:78
10097 #, no-wrap
10098 msgid "1."
10099 msgstr "1."
10100
10101 #. type: Plain text
10102 #: build/C/man3/inet_pton.3:85
10103 msgid ""
10104 "The preferred format is I<x:x:x:x:x:x:x:x>.  This form consists of eight "
10105 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
10106 "can be up to 4 hex digits)."
10107 msgstr ""
10108 "推奨形式は I<x:x:x:x:x:x:x:x> である。この形式は 8 個の 16 進数から構成さ"
10109 "れ、 各々の 16 進数は 16 ビット値を表す (I<x> は最大 4 桁の 16 進数である)。"
10110
10111 #. type: IP
10112 #: build/C/man3/inet_pton.3:85
10113 #, no-wrap
10114 msgid "2."
10115 msgstr "2."
10116
10117 #. type: Plain text
10118 #: build/C/man3/inet_pton.3:98
10119 msgid ""
10120 "A series of contiguous zero values in the preferred format can be "
10121 "abbreviated to I<::>.  Only one instance of I<::> can occur in an address.  "
10122 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
10123 "I<::1>.  The wildcard address, consisting of all zeros, can be written as "
10124 "I<::>."
10125 msgstr ""
10126 "推奨形式の中の連続する 0 の列は I<::> に短縮できる。アドレス中で使用できる "
10127 "I<::> は 1 個だけである。 例えば、ループバックアドレス I<0:0:0:0:0:0:0:1> は "
10128 "I<::1> と短縮できる。 全ビットが 0 で構成されるワイルドカードアドレスは I<::"
10129 "> と記載できる。"
10130
10131 #. type: IP
10132 #: build/C/man3/inet_pton.3:98
10133 #, no-wrap
10134 msgid "3."
10135 msgstr "3."
10136
10137 #. type: Plain text
10138 #: build/C/man3/inet_pton.3:111
10139 msgid ""
10140 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses.  "
10141 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
10142 "are hexadecimal values that define the six most-significant 16-bit pieces of "
10143 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
10144 "notation that defines the least significant 32 bits of the address.  An "
10145 "example of such an address is I<::FFFF:204.152.189.116>."
10146 msgstr ""
10147 "IPv4 をマッピングした IPv6 アドレスを表記するには別の形式が便利である。 この"
10148 "別の形式は I<x:x:x:x:x:x:d.d.d.d> と書くことができる。 最初の 6 個の I<x> は"
10149 "アドレスを 16 ビット単位に区切ったときの上位側 6 個分 (つまり 96 ビット分)  "
10150 "を定義する 16 進数であり、 I<d> の部分はアドレスの下位 32 ビットをドット区切"
10151 "りの 10 進数表記で表したものである。 I<::FFFF:204.152.189.116> はこの形式の例"
10152 "である。"
10153
10154 #. type: Plain text
10155 #: build/C/man3/inet_pton.3:114
10156 msgid ""
10157 "See RFC 2373 for further details on the representation of IPv6 addresses."
10158 msgstr "IPv6 アドレスの表現方法の詳細については RFC 2373 を参照のこと。"
10159
10160 #. type: Plain text
10161 #: build/C/man3/inet_pton.3:127
10162 msgid ""
10163 "B<inet_pton>()  returns 1 on success (network address was successfully "
10164 "converted).  0 is returned if I<src> does not contain a character string "
10165 "representing a valid network address in the specified address family.  If "
10166 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
10167 "is set to B<EAFNOSUPPORT>."
10168 msgstr ""
10169 "成功する (ネットワークアドレスが正常に変換される) と、 B<inet_pton>()  は 1 "
10170 "を返す。 I<src> が指定されたアドレスファミリーに対する 正しいネットワークアド"
10171 "レス表記でない場合には、 0 を返す。 I<af> がサポートされているアドレスファミ"
10172 "リーでない場合には、 -1 を返し、 I<errno> に B<EAFNOSUPPORT> を設定する。"
10173
10174 #. type: Plain text
10175 #: build/C/man3/inet_pton.3:148
10176 msgid ""
10177 "Unlike B<inet_aton>(3)  and B<inet_addr>(3), B<inet_pton>()  supports IPv6 "
10178 "addresses.  On the other hand, B<inet_pton>()  only accepts IPv4 addresses "
10179 "in dotted-decimal notation, whereas B<inet_aton>(3)  and B<inet_addr>(3)  "
10180 "allow the more general numbers-and-dots notation (hexadecimal and octal "
10181 "number formats, and formats that don't require all four bytes to be "
10182 "explicitly written).  For an interface that handles both IPv6 addresses, and "
10183 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
10184 msgstr ""
10185 "B<inet_aton>(3)  や B<inet_addr>(3)  と異なり、 B<inet_pton>()  は IPv6 アド"
10186 "レスに対応している。 一方で、 B<inet_pton>()  が受け付ける IPv4 アドレスは"
10187 "ドット区切りの 10 進数表記だけである。 これに対し、 B<inet_aton>(3)  や "
10188 "B<inet_addr>(3)  ではもっと一般的なドット区切りの数字表記 (16 進数や 8 進数の"
10189 "形式や、 4 バイト全てを明示的に書かなくてもよい形式) が使用できる。 ドット区"
10190 "切りの数字表記で IPv6 アドレスと IPv4 アドレスの両方を扱える インターフェイス"
10191 "については、 B<getaddrinfo>(3)  を参照のこと。"
10192
10193 #. type: Plain text
10194 #: build/C/man3/inet_pton.3:154
10195 msgid ""
10196 "B<AF_INET6> does not recognize IPv4 addresses.  An explicit IPv4-mapped IPv6 "
10197 "address must be supplied in I<src> instead."
10198 msgstr ""
10199 "B<AF_INET6> は IPv4 アドレスを認識しない。 代わりに IPv4 アドレスをマッピング"
10200 "した IPv6 アドレスを I<src> に与えなければならない。"
10201
10202 #. type: Plain text
10203 #: build/C/man3/inet_pton.3:160
10204 msgid ""
10205 "The program below demonstrates the use of B<inet_pton>()  and B<inet_ntop>"
10206 "(3).  Here are some example runs:"
10207 msgstr ""
10208 "以下のプログラムは B<inet_pton>()  と B<inet_ntop>(3)  の使用例を示すものであ"
10209 "る。 実行すると以下のようになる。"
10210
10211 #. type: Plain text
10212 #: build/C/man3/inet_pton.3:169
10213 #, no-wrap
10214 msgid ""
10215 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
10216 "::\n"
10217 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
10218 "1::8\n"
10219 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
10220 "::ffff:204.152.189.116\n"
10221 msgstr ""
10222 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
10223 "::\n"
10224 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
10225 "1::8\n"
10226 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
10227 "::ffff:204.152.189.116\n"
10228
10229 #. type: Plain text
10230 #: build/C/man3/inet_pton.3:178
10231 #, no-wrap
10232 msgid ""
10233 "#include E<lt>arpa/inet.hE<gt>\n"
10234 "#include E<lt>stdio.hE<gt>\n"
10235 "#include E<lt>stdlib.hE<gt>\n"
10236 "#include E<lt>string.hE<gt>\n"
10237 msgstr ""
10238 "#include E<lt>arpa/inet.hE<gt>\n"
10239 "#include E<lt>stdio.hE<gt>\n"
10240 "#include E<lt>stdlib.hE<gt>\n"
10241 "#include E<lt>string.hE<gt>\n"
10242
10243 #. type: Plain text
10244 #: build/C/man3/inet_pton.3:185
10245 #, no-wrap
10246 msgid ""
10247 "int\n"
10248 "main(int argc, char *argv[])\n"
10249 "{\n"
10250 "    unsigned char buf[sizeof(struct in6_addr)];\n"
10251 "    int domain, s;\n"
10252 "    char str[INET6_ADDRSTRLEN];\n"
10253 msgstr ""
10254 "int\n"
10255 "main(int argc, char *argv[])\n"
10256 "{\n"
10257 "    unsigned char buf[sizeof(struct in6_addr)];\n"
10258 "    int domain, s;\n"
10259 "    char str[INET6_ADDRSTRLEN];\n"
10260
10261 #. type: Plain text
10262 #: build/C/man3/inet_pton.3:190
10263 #, no-wrap
10264 msgid ""
10265 "    if (argc != 3) {\n"
10266 "        fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\en\", argv[0]);\n"
10267 "        exit(EXIT_FAILURE);\n"
10268 "    }\n"
10269 msgstr ""
10270 "    if (argc != 3) {\n"
10271 "        fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\en\", argv[0]);\n"
10272 "        exit(EXIT_FAILURE);\n"
10273 "    }\n"
10274
10275 #. type: Plain text
10276 #: build/C/man3/inet_pton.3:193
10277 #, no-wrap
10278 msgid ""
10279 "    domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
10280 "             (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
10281 msgstr ""
10282 "    domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
10283 "             (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
10284
10285 #. type: Plain text
10286 #: build/C/man3/inet_pton.3:202
10287 #, no-wrap
10288 msgid ""
10289 "    s = inet_pton(domain, argv[2], buf);\n"
10290 "    if (s E<lt>= 0) {\n"
10291 "        if (s == 0)\n"
10292 "            fprintf(stderr, \"Not in presentation format\");\n"
10293 "        else\n"
10294 "            perror(\"inet_pton\");\n"
10295 "        exit(EXIT_FAILURE);\n"
10296 "    }\n"
10297 msgstr ""
10298 "    s = inet_pton(domain, argv[2], buf);\n"
10299 "    if (s E<lt>= 0) {\n"
10300 "        if (s == 0)\n"
10301 "            fprintf(stderr, \"Not in presentation format\");\n"
10302 "        else\n"
10303 "            perror(\"inet_pton\");\n"
10304 "        exit(EXIT_FAILURE);\n"
10305 "    }\n"
10306
10307 #. type: Plain text
10308 #: build/C/man3/inet_pton.3:207
10309 #, no-wrap
10310 msgid ""
10311 "    if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
10312 "        perror(\"inet_ntop\");\n"
10313 "        exit(EXIT_FAILURE);\n"
10314 "    }\n"
10315 msgstr ""
10316 "    if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
10317 "        perror(\"inet_ntop\");\n"
10318 "        exit(EXIT_FAILURE);\n"
10319 "    }\n"
10320
10321 #. type: Plain text
10322 #: build/C/man3/inet_pton.3:209
10323 #, no-wrap
10324 msgid "    printf(\"%s\\en\", str);\n"
10325 msgstr "    printf(\"%s\\en\", str);\n"
10326
10327 #. type: Plain text
10328 #: build/C/man3/inet_pton.3:217
10329 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
10330 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
10331
10332 #. type: TH
10333 #: build/C/man7/ip.7:12
10334 #, no-wrap
10335 msgid "IP"
10336 msgstr "IP"
10337
10338 #. type: TH
10339 #: build/C/man7/ip.7:12
10340 #, no-wrap
10341 msgid "2011-09-22"
10342 msgstr "2011-09-22"
10343
10344 #. type: Plain text
10345 #: build/C/man7/ip.7:15
10346 msgid "ip - Linux IPv4 protocol implementation"
10347 msgstr "ip - Linux IPv4 プロトコルの実装"
10348
10349 #. type: Plain text
10350 #: build/C/man7/ip.7:21 build/C/man7/ipv6.7:14 build/C/man7/raw.7:16
10351 #: build/C/man7/tcp.7:23 build/C/man7/udp.7:15
10352 msgid "B<#include E<lt>netinet/in.hE<gt>>"
10353 msgstr "B<#include E<lt>netinet/in.hE<gt>>"
10354
10355 #. type: Plain text
10356 #: build/C/man7/ip.7:23
10357 msgid "B<#include E<lt>netinet/ip.hE<gt> >/* superset of previous */"
10358 msgstr "B<#include E<lt>netinet/ip.hE<gt> >/* 上記のスーパーセット */"
10359
10360 #. type: Plain text
10361 #: build/C/man7/ip.7:25
10362 msgid "I<tcp_socket>B< = socket(AF_INET, SOCK_STREAM, 0);>"
10363 msgstr "I<tcp_socket>B< = socket(AF_INET, SOCK_STREAM, 0);>"
10364
10365 #. type: Plain text
10366 #: build/C/man7/ip.7:27
10367 msgid "I<udp_socket>B< = socket(AF_INET, SOCK_DGRAM, 0);>"
10368 msgstr "I<udp_socket>B< = socket(AF_INET, SOCK_DGRAM, 0);>"
10369
10370 #. type: Plain text
10371 #: build/C/man7/ip.7:29
10372 msgid "I<raw_socket>B< = socket(AF_INET, SOCK_RAW, >I<protocol>B<);>"
10373 msgstr "I<raw_socket>B< = socket(AF_INET, SOCK_RAW, >I<protocol>B<);>"
10374
10375 #.  FIXME has someone verified that 2.1 is really 1812 compliant?
10376 #. type: Plain text
10377 #: build/C/man7/ip.7:36
10378 msgid ""
10379 "Linux implements the Internet Protocol, version 4, described in RFC\\ 791 "
10380 "and RFC\\ 1122.  B<ip> contains a level 2 multicasting implementation "
10381 "conforming to RFC\\ 1112.  It also contains an IP router including a packet "
10382 "filter."
10383 msgstr ""
10384 "Linux は RFC\\ 791 と RFC\\ 1122 で記述されている Internet Protocol, version "
10385 "4 を実装している。 B<ip> には RFC\\ 1112 に準拠した level 2 マルチキャストの"
10386 "実装が含まれている。 またパケットフィルタ機能を含む IP ルーターも実装されてい"
10387 "る。"
10388
10389 #. type: Plain text
10390 #: build/C/man7/ip.7:40
10391 msgid ""
10392 "The programming interface is BSD-sockets compatible.  For more information "
10393 "on sockets, see B<socket>(7)."
10394 msgstr ""
10395 "プログラミング・インターフェースは BSD ソケットと互換である。 ソケットに関す"
10396 "るより詳細な情報は B<socket>(7)  を参照のこと。"
10397
10398 #. type: Plain text
10399 #: build/C/man7/ip.7:71
10400 msgid ""
10401 "An IP socket is created by calling the B<socket>(2)  function as B<socket"
10402 "(AF_INET, >I<socket_type>B<, >I<protocol>B<)>.  Valid socket types are "
10403 "B<SOCK_STREAM> to open a B<tcp>(7)  socket, B<SOCK_DGRAM> to open a B<udp>"
10404 "(7)  socket, or B<SOCK_RAW> to open a B<raw>(7)  socket to access the IP "
10405 "protocol directly.  I<protocol> is the IP protocol in the IP header to be "
10406 "received or sent.  The only valid values for I<protocol> are 0 and "
10407 "B<IPPROTO_TCP> for TCP sockets, and 0 and B<IPPROTO_UDP> for UDP sockets.  "
10408 "For B<SOCK_RAW> you may specify a valid IANA IP protocol defined in RFC\\ "
10409 "1700 assigned numbers."
10410 msgstr ""
10411 "IP ソケットは、 B<socket>(2) 関数を B<socket(AF_INET, >I<socket_type>B<, >\n"
10412 "I<protocol>B<)> のように呼び出すことで生成される。指定できるソケットタイプ"
10413 "は\n"
10414 "3 つあり、 B<tcp>(7) ソケットをオープンする場合 B<SOCK_STREAM>、 B<udp>(7)\n"
10415 "ソケットをオープンする場合 B<SOCK_DGRAM>、 IP プロトコルに直接アクセスする\n"
10416 "ために B<raw>(7) ソケットをオープンする場合には B<SOCK_RAW> である。 \n"
10417 "I<protocol> は送受信される IP ヘッダに書かれる IP プロトコルである。\n"
10418 "指定できる値は、 TCP ソケットには 0 か B<IPPROTO_TCP>、 UDP ソケットには \n"
10419 "0 か B<IPPROTO_UDP> に限られる。 B<SOCK_RAW> に対しては、 RFC\\ 1700 で定義\n"
10420 "されている有効な IANA IP プロトコルを、 割り当てられている番号で指定する\n"
10421 "ことができる。"
10422
10423 #.  FIXME ip current does an autobind in listen, but I'm not sure
10424 #.  if that should be documented.
10425 #. type: Plain text
10426 #: build/C/man7/ip.7:90
10427 msgid ""
10428 "When a process wants to receive new incoming packets or connections, it "
10429 "should bind a socket to a local interface address using B<bind>(2).  Only "
10430 "one IP socket may be bound to any given local (address, port) pair.  When "
10431 "B<INADDR_ANY> is specified in the bind call, the socket will be bound to "
10432 "I<all> local interfaces.  When B<listen>(2)  or B<connect>(2)  are called on "
10433 "an unbound socket, it is automatically bound to a random free port with the "
10434 "local address set to B<INADDR_ANY>."
10435 msgstr ""
10436 "あるプロセスで、やってくるパケットを受信したり 接続要求を受けたりしたい場合に"
10437 "は、 そのプロセスはローカルなインターフェースアドレスに、 B<bind>(2)  を用い"
10438 "てソケットをバインドしなければならない。 あるローカルな「アドレスとポート」の"
10439 "ペアに対してバインドできる IP ソケットは一つに限られる。 B<bind>(2)  の呼び出"
10440 "しで B<INADDR_ANY> が指定されていた場合は、ソケットはローカルなインターフェー"
10441 "スの I<すべて>にバインドされる。 B<listen>(2)  または B<connect>(2)  がバイン"
10442 "ドされていないソケットでコールされると、 そのソケットは自動的にローカルなアド"
10443 "レスを B<INADDR_ANY> にセットし、空いているポートをランダムに選んでバインドす"
10444 "る。"
10445
10446 #. type: Plain text
10447 #: build/C/man7/ip.7:96
10448 msgid ""
10449 "A TCP local socket address that has been bound is unavailable for some time "
10450 "after closing, unless the B<SO_REUSEADDR> flag has been set.  Care should be "
10451 "taken when using this flag as it makes TCP less reliable."
10452 msgstr ""
10453 "B<SO_REUSEADDR> フラグがセットされていない場合には、 バインドされていた TCP "
10454 "ローカルソケットアドレスは クローズされた後しばらくの間使えなくなる。 "
10455 "B<SO_REUSEADDR> フラグを使うと TCP の信頼性を低下させるので、 使うときには注"
10456 "意が必要である。"
10457
10458 #. type: Plain text
10459 #: build/C/man7/ip.7:107
10460 msgid ""
10461 "An IP socket address is defined as a combination of an IP interface address "
10462 "and a 16-bit port number.  The basic IP protocol does not supply port "
10463 "numbers, they are implemented by higher level protocols like B<udp>(7)  and "
10464 "B<tcp>(7).  On raw sockets I<sin_port> is set to the IP protocol."
10465 msgstr ""
10466 "IP ソケットアドレスは、 IP インターフェースアドレスと 16ビットのポート番号の"
10467 "組み合わせで定義される。 IP プロトコルそのものはポート番号を扱わない。 ポート"
10468 "番号は、 B<udp>(7)  や B<tcp>(7)  といった、上位のプロトコルで実装される。 "
10469 "raw ソケットでは、 I<sin_port> が IP プロトコルにセットされる。"
10470
10471 #. type: Plain text
10472 #: build/C/man7/ip.7:115
10473 #, no-wrap
10474 msgid ""
10475 "struct sockaddr_in {\n"
10476 "    sa_family_t    sin_family; /* address family: AF_INET */\n"
10477 "    in_port_t      sin_port;   /* port in network byte order */\n"
10478 "    struct in_addr sin_addr;   /* internet address */\n"
10479 "};\n"
10480 msgstr ""
10481 "struct sockaddr_in {\n"
10482 "    sa_family_t    sin_family; /* address family: AF_INET */\n"
10483 "    in_port_t      sin_port;   /* port in network byte order */\n"
10484 "    struct in_addr sin_addr;   /* internet address */\n"
10485 "};\n"
10486
10487 #. type: Plain text
10488 #: build/C/man7/ip.7:120
10489 #, no-wrap
10490 msgid ""
10491 "/* Internet address. */\n"
10492 "struct in_addr {\n"
10493 "    uint32_t       s_addr;     /* address in network byte order */\n"
10494 "};\n"
10495 msgstr ""
10496 "/* Internet address. */\n"
10497 "struct in_addr {\n"
10498 "    uint32_t       s_addr;     /* address in network byte order */\n"
10499 "};\n"
10500
10501 #. type: Plain text
10502 #: build/C/man7/ip.7:145
10503 msgid ""
10504 "I<sin_family> is always set to B<AF_INET>.  This is required; in Linux 2.2 "
10505 "most networking functions return B<EINVAL> when this setting is missing.  "
10506 "I<sin_port> contains the port in network byte order.  The port numbers below "
10507 "1024 are called I<privileged ports> (or sometimes: I<reserved ports>).  Only "
10508 "privileged processes (i.e., those having the B<CAP_NET_BIND_SERVICE> "
10509 "capability) may B<bind>(2)  to these sockets.  Note that the raw IPv4 "
10510 "protocol as such has no concept of a port, they are only implemented by "
10511 "higher protocols like B<tcp>(7)  and B<udp>(7)."
10512 msgstr ""
10513 "I<sin_familiy> には常に B<AF_INET> をセットする。これは必須である。 Linux "
10514 "2.2 では、このセットを忘れると ほとんどのネットワーク関数は B<EINVAL> を返す"
10515 "ようになっている。 I<sin_port> にはポート番号をネットワークバイトオーダーで指"
10516 "定する。 1024 未満のポート番号は I<特権ポート (privileged ports)> と呼ばれる "
10517 "(I<予約ポート (reserved ports)> とも時々呼ばれる)。 特権プロセス "
10518 "(B<CAP_NET_BIND_SERVICE> ケーパビリティを持つプロセス) 以外のプロセスは、これ"
10519 "らのポートには B<bind>(2)  できない。 IPv4 プロトコルそのものにはポートに関す"
10520 "る概念がない。 ポートは、 B<tcp>(7)  や B<udp>(7)  といった、上位のプロトコル"
10521 "において実装される。"
10522
10523 #. type: Plain text
10524 #: build/C/man7/ip.7:164
10525 msgid ""
10526 "I<sin_addr> is the IP host address.  The I<s_addr> member of I<struct "
10527 "in_addr> contains the host interface address in network byte order.  "
10528 "I<in_addr> should be assigned one of the B<INADDR_*> values (e.g., "
10529 "B<INADDR_ANY>)  or set using the B<inet_aton>(3), B<inet_addr>(3), "
10530 "B<inet_makeaddr>(3)  library functions or directly with the name resolver "
10531 "(see B<gethostbyname>(3))."
10532 msgstr ""
10533 "I<sin_addr> は IP ホストアドレスである。 I<struct in_addr> の I<s_addr> \n"
10534 "メンバには、ホストのインターフェースアドレスを ネットワークバイトオーダーで\n"
10535 "指定する。 I<in_addr> は、B<INADDR_*> の一つ (例えば B<INADDR_ANY>) を代入す"
10536 "る、\n"
10537 "ライブラリ関数 B<inet_aton>(3), B<inet_addr>(3), B<inet_makeaddr>(3) を用い"
10538 "る、\n"
10539 "あるいは名前解決機構 (name resolver) を直接用いる、のどれかで設定すべきであ"
10540 "る。\n"
10541 "(B<gethostbyname>(3) を見よ)。"
10542
10543 #.  Leave a loophole for XTP @)
10544 #. type: Plain text
10545 #: build/C/man7/ip.7:176
10546 msgid ""
10547 "IPv4 addresses are divided into unicast, broadcast and multicast addresses.  "
10548 "Unicast addresses specify a single interface of a host, broadcast addresses "
10549 "specify all hosts on a network and multicast addresses address all hosts in "
10550 "a multicast group.  Datagrams to broadcast addresses can be only sent or "
10551 "received when the B<SO_BROADCAST> socket flag is set.  In the current "
10552 "implementation, connection-oriented sockets are only allowed to use unicast "
10553 "addresses."
10554 msgstr ""
10555 "IPv4 アドレスには、ユニキャストアドレス、 ブロードキャストアドレス、マルチ"
10556 "キャストアドレスがある。 ユニキャストアドレスは、あるホストの一つのアドレスを"
10557 "指定する。 ブロードキャストアドレスは、あるネットワーク上の全てのホストを指定"
10558 "する。 マルチキャストアドレスは、マルチキャストグループに所属する 全てのホス"
10559 "トを指定する。ブロードキャストアドレスへのデータグラムは、 B<SO_BROADCAST> ソ"
10560 "ケットフラグがセットされていないと送信・受信できない。 現在の実装では、接続指"
10561 "向のソケットにはユニキャストアドレスしか使えない。"
10562
10563 #. type: Plain text
10564 #: build/C/man7/ip.7:184
10565 msgid ""
10566 "Note that the address and the port are always stored in network byte order.  "
10567 "In particular, this means that you need to call B<htons>(3)  on the number "
10568 "that is assigned to a port.  All address/port manipulation functions in the "
10569 "standard library work in network byte order."
10570 msgstr ""
10571 "アドレスとポートは常にネットワークバイトオーダーで格納されることに注意せよ。 "
10572 "具体的には、ポートを指定する数値には B<htons>(3)  を呼び出す必要がある。 標準"
10573 "ライブラリにあるアドレス/ポート操作関数は すべてネットワークバイトオーダーで"
10574 "動作する。"
10575
10576 #. type: Plain text
10577 #: build/C/man7/ip.7:197
10578 msgid ""
10579 "There are several special addresses: B<INADDR_LOOPBACK> (127.0.0.1)  always "
10580 "refers to the local host via the loopback device; B<INADDR_ANY> (0.0.0.0)  "
10581 "means any address for binding; B<INADDR_BROADCAST> (255.255.255.255)  means "
10582 "any host and has the same effect on bind as B<INADDR_ANY> for historical "
10583 "reasons."
10584 msgstr ""
10585 "特別なアドレスがいくつか存在する: B<INADDR_LOOPBACK>(127.0.0.1)  は loopback "
10586 "デバイスを通して常にローカルなホストを参照する。 B<INADDR_ANY>(0.0.0.0)  は任"
10587 "意のアドレスを意味し、バインド用である。 B<INADDR_BROADCAST>"
10588 "(255.255.255.255)  は任意のホストを意味し、歴史的理由から、バインドの際には "
10589 "B<INADDR_ANY> と同じ効果になる。"
10590
10591 #.  or SOL_IP on Linux
10592 #. type: Plain text
10593 #: build/C/man7/ip.7:206
10594 msgid ""
10595 "IP supports some protocol-specific socket options that can be set with "
10596 "B<setsockopt>(2)  and read with B<getsockopt>(2).  The socket option level "
10597 "for IP is B<IPPROTO_IP>.  A boolean integer flag is zero when it is false, "
10598 "otherwise true."
10599 msgstr ""
10600 "IP にはプロトコル固有のソケットオプションがいくつか存在し、 B<setsockopt>"
10601 "(2)  で設定が、 B<getsockopt>(2)  で取得ができる。 IP のソケットオプションレ"
10602 "ベルは B<IPPROTO_IP> である。 ブール整数値のフラグでは、 0 は偽、それ以外は真"
10603 "を意味する。"
10604
10605 #. type: TP
10606 #: build/C/man7/ip.7:206
10607 #, no-wrap
10608 msgid "B<IP_ADD_MEMBERSHIP> (since Linux 1.2)"
10609 msgstr "B<IP_ADD_MEMBERSHIP> (Linux 1.2 以降)"
10610
10611 #. type: Plain text
10612 #: build/C/man7/ip.7:212
10613 msgid "Join a multicast group.  Argument is an I<ip_mreqn> structure."
10614 msgstr "マルチキャストグループに参加する。 引き数は I<ip_mreqn> 構造体である。"
10615
10616 #. type: Plain text
10617 #: build/C/man7/ip.7:222
10618 #, no-wrap
10619 msgid ""
10620 "struct ip_mreqn {\n"
10621 "    struct in_addr imr_multiaddr; /* IP multicast group\n"
10622 "                                     address */\n"
10623 "    struct in_addr imr_address;   /* IP address of local\n"
10624 "                                     interface */\n"
10625 "    int            imr_ifindex;   /* interface index */\n"
10626 "};\n"
10627 msgstr ""
10628 "struct ip_mreqn {\n"
10629 "    struct in_addr imr_multiaddr; /* IP multicast group\n"
10630 "                                     address */\n"
10631 "    struct in_addr imr_address;   /* IP address of local\n"
10632 "                                     interface */\n"
10633 "    int            imr_ifindex;   /* interface index */\n"
10634 "};\n"
10635
10636 #.  (i.e., within the 224.0.0.0-239.255.255.255 range)
10637 #. type: Plain text
10638 #: build/C/man7/ip.7:243
10639 msgid ""
10640 "I<imr_multiaddr> contains the address of the multicast group the application "
10641 "wants to join or leave.  It must be a valid multicast address (or "
10642 "B<setsockopt>(2)  fails with the error B<EINVAL>).  I<imr_address> is the "
10643 "address of the local interface with which the system should join the "
10644 "multicast group; if it is equal to B<INADDR_ANY> an appropriate interface is "
10645 "chosen by the system.  I<imr_ifindex> is the interface index of the "
10646 "interface that should join/leave the I<imr_multiaddr> group, or 0 to "
10647 "indicate any interface."
10648 msgstr ""
10649 "I<imr_multiaddr> には、アプリケーションが参加または撤退したい マルチキャスト"
10650 "グループのアドレスが入る。 指定するアドレスは有効なマルチキャストアドレスでな"
10651 "ければならない (さもなければ B<setsockopt>(2)  がエラー B<EINVAL> で失敗す"
10652 "る)。 I<imr_address> はシステムがマルチキャストグループに参加する際に用いる "
10653 "ローカルなインターフェースのアドレスである。 これが B<INADDR_ANY> であった場"
10654 "合には、適切なインターフェースがシステムによって選択される。 I<imr_ifindex> "
10655 "は I<imr_multiaddr> グループに参加/撤退するインターフェースの interface "
10656 "index である。 どのインターフェースでもよい場合は 0 にする。"
10657
10658 #. type: Plain text
10659 #: build/C/man7/ip.7:258
10660 msgid ""
10661 "The I<ip_mreqn> structure is available only since Linux 2.2.  For "
10662 "compatibility, the old I<ip_mreq> structure (present since Linux 1.2) is "
10663 "still supported; it differs from I<ip_mreqn> only by not including the "
10664 "I<imr_ifindex> field.  Only valid as a B<setsockopt>(2)."
10665 msgstr ""
10666 "I<ip_mreqn> 構造体は Linux 2.2 以降でのみ利用可能である。互換性のため、\n"
10667 "古い I<ip_mreq> 構造体 (Linux 1.2 以降で存在する) もまだサポートされてい"
10668 "る。\n"
10669 "I<ip_mreqn> との違いは、 I<imr_ifindex> フィールドを含まないことだけであ"
10670 "る。\n"
10671 "B<setsockopt>(2) でのみ使える。"
10672
10673 #. type: TP
10674 #: build/C/man7/ip.7:258
10675 #, no-wrap
10676 msgid "B<IP_DROP_MEMBERSHIP> (since Linux 1.2)"
10677 msgstr "B<IP_DROP_MEMBERSHIP> (Linux 1.2 以降)"
10678
10679 #. type: Plain text
10680 #: build/C/man7/ip.7:267
10681 msgid ""
10682 "Leave a multicast group.  Argument is an I<ip_mreqn> or I<ip_mreq> structure "
10683 "similar to B<IP_ADD_MEMBERSHIP>."
10684 msgstr ""
10685 "マルチキャストグループから抜ける。引き数は B<IP_ADD_MEMBERSHIP> と同様に "
10686 "I<ip_mreqn> または I<ip_mreq> 構造体である。"
10687
10688 #. type: TP
10689 #: build/C/man7/ip.7:267
10690 #, no-wrap
10691 msgid "B<IP_FREEBIND> (since Linux 2.4)"
10692 msgstr "B<IP_FREEBIND> (Linux 2.4 以降)"
10693
10694 #.  Precisely: 2.4.0-test10
10695 #. type: Plain text
10696 #: build/C/man7/ip.7:280
10697 msgid ""
10698 "If enabled, this boolean option allows binding to an IP address that is "
10699 "nonlocal or does not (yet) exist.  This permits listening on a socket, "
10700 "without requiring the underlying network interface or the specified dynamic "
10701 "IP address to be up at the time that the application is trying to bind to "
10702 "it.  This option is the per-socket equivalent of the I<ip_nonlocal_bind> I</"
10703 "proc> interface described below."
10704 msgstr ""
10705 "このブール値のオプションを有効にすると、ローカルではない IP アドレスや存在\n"
10706 "しない IP アドレスをバインドできるようになる。これを使うと、対応するネット\n"
10707 "ワークインターフェイスがなかったり、アプリケーションがソケットをバインドしよ"
10708 "うと\n"
10709 "する時点で特定の動的 IP アドレスが有効になっていなかったりしても、ソケット"
10710 "を\n"
10711 "接続待ち状態 (listening) にできるようになる。\n"
10712 "このオプションは、下記に説明がある I<ip_nonlocal_bind> I</proc> インターフェ"
10713 "イス\n"
10714 "のソケット単位の設定である。"
10715
10716 #. type: TP
10717 #: build/C/man7/ip.7:280
10718 #, no-wrap
10719 msgid "B<IP_HDRINCL> (since Linux 2.0)"
10720 msgstr "B<IP_HDRINCL> (Linux 2.0 以降)"
10721
10722 #.  FIXME Document IP_IPSEC_POLICY
10723 #.  Since Linux 2.5.47
10724 #.  Needs CAP_NET_ADMIN
10725 #. type: Plain text
10726 #: build/C/man7/ip.7:300
10727 msgid ""
10728 "If enabled, the user supplies an IP header in front of the user data.  Only "
10729 "valid for B<SOCK_RAW> sockets.  See B<raw>(7)  for more information.  When "
10730 "this flag is enabled the values set by B<IP_OPTIONS>, B<IP_TTL> and "
10731 "B<IP_TOS> are ignored."
10732 msgstr ""
10733 "有効になっていると、ユーザは IP ヘッダをユーザーデータの前に与える。 "
10734 "B<SOCK_RAW> ソケットでのみ有効である。詳細は B<raw>(7)  を見よ。このフラグが"
10735 "有効になっていると、 B<IP_OPTIONS>, B<IP_TTL>, B<IP_TOS> は無視される。"
10736
10737 #. type: TP
10738 #: build/C/man7/ip.7:300
10739 #, no-wrap
10740 msgid "B<IP_MTU> (since Linux 2.2)"
10741 msgstr "B<IP_MTU> (Linux 2.2 以降)"
10742
10743 #.  Precisely: 2.1.124
10744 #. type: Plain text
10745 #: build/C/man7/ip.7:308
10746 msgid ""
10747 "Retrieve the current known path MTU of the current socket.  Only valid when "
10748 "the socket has been connected.  Returns an integer.  Only valid as a "
10749 "B<getsockopt>(2)."
10750 msgstr ""
10751 "ソケットの、既知の path MTU を取得する。 ソケットが接続している場合のみ有効で"
10752 "ある。 B<getsockopt>(2)  でのみ使える。"
10753
10754 #. type: TP
10755 #: build/C/man7/ip.7:308
10756 #, no-wrap
10757 msgid "B<IP_MTU_DISCOVER> (since Linux 2.2)"
10758 msgstr "B<IP_MTU_DISCOVER> (Linux 2.2 以降)"
10759
10760 #.  Precisely: 2.1.124
10761 #. type: Plain text
10762 #: build/C/man7/ip.7:329
10763 msgid ""
10764 "Set or receive the Path MTU Discovery setting for a socket.  When enabled, "
10765 "Linux will perform Path MTU Discovery as defined in RFC\\ 1191 on "
10766 "B<SOCK_STREAM> sockets.  For non-B<SOCK_STREAM> sockets, B<IP_PMTUDISC_DO> "
10767 "forces the don't-fragment flag to be set on all outgoing packets.  It is the "
10768 "user's responsibility to packetize the data in MTU-sized chunks and to do "
10769 "the retransmits if necessary.  The kernel will reject (with B<EMSGSIZE>)  "
10770 "datagrams that are bigger than the known path MTU.  B<IP_PMTUDISC_WANT> will "
10771 "fragment a datagram if needed according to the path MTU, or will set the "
10772 "don't-fragment flag otherwise."
10773 msgstr ""
10774 "ソケットの Path MTU Discovery の設定をセット・取得する。\n"
10775 "有効になっていると、Linux は B<SOCK_STREAM> ソケットに対して\n"
10776 "RFC\\ 1191 で定義されている Path MTU Discovery を行う。\n"
10777 "B<SOCK_STREAM> でないソケットについては、 B<IP_PMTUDISC_DO> をセットする"
10778 "と、\n"
10779 "全ての送信パケットでフラグメント不許可フラグ (don't-fragment flag) が必ず\n"
10780 "セットされるようになる。 B<SOCK_STREAM> でないソケットでは、\n"
10781 "パケットを MTU のサイズの塊に分割したり、必要に応じて再送したりするのは、\n"
10782 "ユーザが責任を持って行う必要がある。\n"
10783 "既知の Path MTU よりも大きなデータグラムの送信が要求されると、\n"
10784 "カーネルは (B<EMSGSIZE> で) 送信を拒否する。\n"
10785 "B<IP_PMTUDISC_WANT> の場合は、 Path MTU に基づいて必要であればデータグラム\n"
10786 "の分割が行われ、それ以外の場合はフラグメント不許可フラグがセットされる。"
10787
10788 #. type: Plain text
10789 #: build/C/man7/ip.7:337
10790 msgid ""
10791 "The system-wide default can be toggled between B<IP_PMTUDISC_WANT> and "
10792 "B<IP_PMTUDISC_DONT> by writing (respectively, zero and nonzero values) to "
10793 "the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file."
10794 msgstr ""
10795 "システム全体のデフォルトは B<IP_PMTUDISC_WANT> と B<IP_PMTUDISC_DONT> の\n"
10796 "どちらかに設定することができる。設定の変更は、\n"
10797 "I</proc/sys/net/ipv4/ip_no_pmtu_disc> ファイルに、0 (B<IP_PMTUDISC_WANT>) "
10798 "か\n"
10799 "0 以外 (B<IP_PMTUDISC_DONT>) を書き込むことで行う。"
10800
10801 #. type: tbl table
10802 #: build/C/man7/ip.7:342
10803 #, no-wrap
10804 msgid "Path MTU discovery value:Meaning\n"
10805 msgstr "Path MTU discovery 値:意味\n"
10806
10807 #. type: tbl table
10808 #: build/C/man7/ip.7:343
10809 #, no-wrap
10810 msgid "IP_PMTUDISC_WANT:Use per-route settings.\n"
10811 msgstr "IP_PMTUDISC_WANT:ルートごとの設定を用いる。\n"
10812
10813 #. type: tbl table
10814 #: build/C/man7/ip.7:344
10815 #, no-wrap
10816 msgid "IP_PMTUDISC_DONT:Never do Path MTU Discovery.\n"
10817 msgstr "IP_PMTUDISC_DONT:Path MTU Discovery を行わない。\n"
10818
10819 #. type: tbl table
10820 #: build/C/man7/ip.7:345
10821 #, no-wrap
10822 msgid "IP_PMTUDISC_DO:Always do Path MTU Discovery.\n"
10823 msgstr "IP_PMTUDISC_DO:常に Path MTU Discovery を行う。\n"
10824
10825 #. type: tbl table
10826 #: build/C/man7/ip.7:346
10827 #, no-wrap
10828 msgid "IP_PMTUDISC_PROBE:Set DF but ignore Path MTU.\n"
10829 msgstr "IP_PMTUDISC_PROBE:DFビットをセットするが、Path MTU を無視する。\n"
10830
10831 #. type: Plain text
10832 #: build/C/man7/ip.7:364
10833 msgid ""
10834 "When PMTU discovery is enabled, the kernel automatically keeps track of the "
10835 "path MTU per destination host.  When it is connected to a specific peer with "
10836 "B<connect>(2), the currently known path MTU can be retrieved conveniently "
10837 "using the B<IP_MTU> socket option (e.g., after an B<EMSGSIZE> error "
10838 "occurred).  The path MTU may change over time.  For connectionless sockets "
10839 "with many destinations, the new MTU for a given destination can also be "
10840 "accessed using the error queue (see B<IP_RECVERR>).  A new error will be "
10841 "queued for every incoming MTU update."
10842 msgstr ""
10843 "path MTU discovery が有効になっていると、カーネルは宛先ホストごとに 自動的"
10844 "に\n"
10845 "path MTU を処理する。特定の相手に B<connect>(2) で接続した場合には、\n"
10846 "B<IP_MTU> ソケットオプションを用いれば、既知の path MTU の取得に便利である\n"
10847 "(たとえば B<EMSGSIZE> エラーが起きた後など)。 path MTU は時間とともに変化す"
10848 "る\n"
10849 "かもしれない。 宛先がたくさんあるコネクションレスなソケットでは、 与えられ"
10850 "た\n"
10851 "宛先に対する新しい MTU にも、 エラーキューを用いてアクセスすることができる\n"
10852 "(B<IP_RECVERR> を見よ)。 MTU 更新が到着するごとに、新たなエラーがキューイン"
10853 "グ\n"
10854 "される。"
10855
10856 #. type: Plain text
10857 #: build/C/man7/ip.7:369
10858 msgid ""
10859 "While MTU discovery is in progress, initial packets from datagram sockets "
10860 "may be dropped.  Applications using UDP should be aware of this and not take "
10861 "it into account for their packet retransmit strategy."
10862 msgstr ""
10863 "MTU discovery の進行中には、データグラムソケットからの初期パケットは 到着しな"
10864 "いかもしれない。 UDP を用いるアプリケーションでは、 このことを気にかけてお"
10865 "き、 パケットの再送アルゴリズムにこの分を除外させるべきである。"
10866
10867 #.  FIXME this is an ugly hack
10868 #. type: Plain text
10869 #: build/C/man7/ip.7:374
10870 msgid ""
10871 "To bootstrap the path MTU discovery process on unconnected sockets, it is "
10872 "possible to start with a big datagram size (up to 64K-headers bytes long) "
10873 "and let it shrink by updates of the path MTU."
10874 msgstr ""
10875 "接続していないソケットに対して path MTU discovery プロセスを立ち上げるには、 "
10876 "大きなデータグラムサイズ (最大 64K ヘッダバイト長) からはじめて、 path MTU が"
10877 "更新されるまでサイズを縮めていくことも可能である。"
10878
10879 #. type: Plain text
10880 #: build/C/man7/ip.7:383
10881 msgid ""
10882 "To get an initial estimate of the path MTU, connect a datagram socket to the "
10883 "destination address using B<connect>(2)  and retrieve the MTU by calling "
10884 "B<getsockopt>(2)  with the B<IP_MTU> option."
10885 msgstr ""
10886 "path MTU の値をまず見積もってみるには、宛先アドレスに B<connect>(2)  を使って"
10887 "データグラムソケットを接続し、 B<getsockopt>(2)  を B<IP_MTU> オプションとと"
10888 "もに呼び、 MTU を取得することである。"
10889
10890 #. type: Plain text
10891 #: build/C/man7/ip.7:395
10892 msgid ""
10893 "It is possible to implement RFC 4821 MTU probing with B<SOCK_DGRAM> or "
10894 "B<SOCK_RAW> sockets by setting a value of B<IP_PMTUDISC_PROBE> (available "
10895 "since Linux 2.6.22).  This is also particularly useful for diagnostic tools "
10896 "such as B<tracepath>(8)  that wish to deliberately send probe packets larger "
10897 "than the observed Path MTU."
10898 msgstr ""
10899 "B<IP_PMTUDISC_PROBE> (Linux 2.6.22 以降で利用可能) を設定することで、 "
10900 "B<SOCK_DGRAM> や B<SOCK_RAW> のソケットで RFC 4821 の MTU 探索を実装すること"
10901 "が可能である。 また、この機能は、 B<tracepath>(8)  のような診断ツールで特に有"
10902 "用である。これらのツールでは、 観測された Path MTU よりも大きな探索パケットを"
10903 "意図的に 送信しようとする。"
10904
10905 #. type: TP
10906 #: build/C/man7/ip.7:395
10907 #, no-wrap
10908 msgid "B<IP_MULTICAST_IF> (since Linux 1.2)"
10909 msgstr "B<IP_MULTICAST_IF> (Linux 1.2 以降)"
10910
10911 #. type: Plain text
10912 #: build/C/man7/ip.7:404
10913 msgid ""
10914 "Set the local device for a multicast socket.  Argument is an I<ip_mreqn> or "
10915 "I<ip_mreq> structure similar to B<IP_ADD_MEMBERSHIP>."
10916 msgstr ""
10917 "ローカルデバイスをマルチキャストソケットとして設定する。引き数は "
10918 "B<IP_ADD_MEMBERSHIP> と同様に I<ip_mreqn> または I<ip_mreq> 構造体である。"
10919
10920 #. type: Plain text
10921 #: build/C/man7/ip.7:408
10922 msgid "When an invalid socket option is passed, B<ENOPROTOOPT> is returned."
10923 msgstr "不正なソケットオプションが渡されると、 B<ENOPROTOOPT> が返される。"
10924
10925 #. type: TP
10926 #: build/C/man7/ip.7:408
10927 #, no-wrap
10928 msgid "B<IP_MULTICAST_LOOP> (since Linux 1.2)"
10929 msgstr "B<IP_MULTICAST_LOOP> (Linux 1.2 以降)"
10930
10931 #. type: Plain text
10932 #: build/C/man7/ip.7:412
10933 msgid ""
10934 "Set or read a boolean integer argument that determines whether sent "
10935 "multicast packets should be looped back to the local sockets."
10936 msgstr ""
10937 "マルチキャストパケットをローカルなソケットにループバックするかどうかを 定める"
10938 "ブール値の整数引き数を設定・取得する。"
10939
10940 #. type: TP
10941 #: build/C/man7/ip.7:412
10942 #, no-wrap
10943 msgid "B<IP_MULTICAST_TTL> (since Linux 1.2)"
10944 msgstr "B<IP_MULTICAST_TTL> (Linux 1.2 以降)"
10945
10946 #. type: Plain text
10947 #: build/C/man7/ip.7:420
10948 msgid ""
10949 "Set or read the time-to-live value of outgoing multicast packets for this "
10950 "socket.  It is very important for multicast packets to set the smallest TTL "
10951 "possible.  The default is 1 which means that multicast packets don't leave "
10952 "the local network unless the user program explicitly requests it.  Argument "
10953 "is an integer."
10954 msgstr ""
10955 "このソケットから発信されるマルチキャストパケットの time-to-live 値を設定・取"
10956 "得する。 マルチキャストパケットに対しては、できるだけ小さな TTL に設定するこ"
10957 "とがとても重要である。デフォルトは 1 で、 ユーザープログラムが明示的に要求し"
10958 "ない限り マルチキャストパケットはローカルなネットワークから出ないことにな"
10959 "る。 引き数に整数を取る。"
10960
10961 #. type: TP
10962 #: build/C/man7/ip.7:420
10963 #, no-wrap
10964 msgid "B<IP_NODEFRAG> (since Linux 2.6.36)"
10965 msgstr "B<IP_NODEFRAG> (Linux 2.6.36 以降)"
10966
10967 #. type: Plain text
10968 #: build/C/man7/ip.7:428
10969 msgid ""
10970 "If enabled (argument is nonzero), the reassembly of outgoing packets is "
10971 "disabled in the netfilter layer.  This option is only valid for B<SOCK_RAW> "
10972 "sockets.  The argument is an integer."
10973 msgstr ""
10974 "有効 (引き数が 0 以外の場合) になっていると、netfilter 層での出力パケットの\n"
10975 "再構築 (reassembly) が行われなくなる。このオプションは B<SOCK_RAW> ソケット\n"
10976 "においてのみ有効である。引き数は整数である。"
10977
10978 #. type: TP
10979 #: build/C/man7/ip.7:428
10980 #, no-wrap
10981 msgid "B<IP_OPTIONS> (since Linux 2.0)"
10982 msgstr "B<IP_OPTIONS> (Linux 2.0 以降)"
10983
10984 #.  Precisely: 1.3.30
10985 #.  FIXME Document IP_PASSSEC
10986 #.  Boolean
10987 #.  Since Linux 2.6.17
10988 #.  commit 2c7946a7bf45ae86736ab3b43d0085e43947945c
10989 #.  Author: Catherine Zhang <cxzhang@watson.ibm.com>
10990 #. type: Plain text
10991 #: build/C/man7/ip.7:462
10992 msgid ""
10993 "Set or get the IP options to be sent with every packet from this socket.  "
10994 "The arguments are a pointer to a memory buffer containing the options and "
10995 "the option length.  The B<setsockopt>(2)  call sets the IP options "
10996 "associated with a socket.  The maximum option size for IPv4 is 40 bytes.  "
10997 "See RFC\\ 791 for the allowed options.  When the initial connection request "
10998 "packet for a B<SOCK_STREAM> socket contains IP options, the IP options will "
10999 "be set automatically to the options from the initial packet with routing "
11000 "headers reversed.  Incoming packets are not allowed to change options after "
11001 "the connection is established.  The processing of all incoming source "
11002 "routing options is disabled by default and can be enabled by using the "
11003 "I<accept_source_route> I</proc> interface.  Other options like timestamps "
11004 "are still handled.  For datagram sockets, IP options can be only set by the "
11005 "local user.  Calling B<getsockopt>(2)  with B<IP_OPTIONS> puts the current "
11006 "IP options used for sending into the supplied buffer."
11007 msgstr ""
11008 "このソケットから送られるパケット全てに付随する IP オプションを 設定・取得す"
11009 "る。オプションを保存しているメモリバッファへのポインタと オプションの長さとを"
11010 "引き数に取る。 B<setsockopt>(2)  を呼び出すと、ソケットに関連づけられる IP オ"
11011 "プションを設定できる。 IPv4 におけるオプションのサイズの最大値は 40 バイトで"
11012 "ある。 用いることのできるオプションについては RFC\\ 791 を見よ。 "
11013 "B<SOCK_STREAM> ソケットに対する初期接続要求パケットに IP オプションが含まれて"
11014 "いると、 ルーティングヘッダを付けて戻されてくる初期パケットの IP オプションに"
11015 "同じオプションがセットされる。接続が確立された後、 やってきたパケットのオプ"
11016 "ションを変更することはできない。 デフォルトでは。外部から受信したパケットの全"
11017 "ての source routing オプション の処理は無効となっており、 I</proc> インタ"
11018 "フェースの I<accept_source_route> を使うとこれを有効にできる。これを無効にし"
11019 "ていても timestamps など の他のオプションの処理は行われる。データグラムソケッ"
11020 "トでは、 IP オプションはローカルユーザーしか設定できない。 B<getsockopt>(2)  "
11021 "を B<IP_OPTIONS> をつけて呼ぶと、現在送信に用いられている IP オプションを 引"
11022 "き数に与えたバッファに取得できる。"
11023
11024 #. type: TP
11025 #: build/C/man7/ip.7:462
11026 #, no-wrap
11027 msgid "B<IP_PKTINFO> (since Linux 2.2)"
11028 msgstr "B<IP_PKTINFO> (Linux 2.2 以降)"
11029
11030 #.  Precisely: 2.1.68
11031 #. type: Plain text
11032 #: build/C/man7/ip.7:479
11033 msgid ""
11034 "Pass an B<IP_PKTINFO> ancillary message that contains a I<pktinfo> structure "
11035 "that supplies some information about the incoming packet.  This only works "
11036 "for datagram oriented sockets.  The argument is a flag that tells the socket "
11037 "whether the B<IP_PKTINFO> message should be passed or not.  The message "
11038 "itself can only be sent/retrieved as control message with a packet using "
11039 "B<recvmsg>(2)  or B<sendmsg>(2)."
11040 msgstr ""
11041 "B<IP_PKTINFO> 補助メッセージを渡す。これには到着パケットに関する情報を提供す"
11042 "る I<pktinfo> 構造体が含まれている。 データグラム指向のソケットでしか動作しな"
11043 "い。 引き数は B<IP_PKTINFO> メッセージを通過させるかどうかをソケットに知らせ"
11044 "るフラグである。 メッセージ自身は B<recvmsg>(2)  または B<sendmsg>(2)  を用い"
11045 "たパケットの制御メッセージとしてのみ送受信できる。"
11046
11047 #. type: Plain text
11048 #: build/C/man7/ip.7:488
11049 #, no-wrap
11050 msgid ""
11051 "struct in_pktinfo {\n"
11052 "    unsigned int   ipi_ifindex;  /* Interface index */\n"
11053 "    struct in_addr ipi_spec_dst; /* Local address */\n"
11054 "    struct in_addr ipi_addr;     /* Header Destination\n"
11055 "                                    address */\n"
11056 "};\n"
11057 msgstr ""
11058 "struct in_pktinfo {\n"
11059 "    unsigned int   ipi_ifindex;  /* Interface index */\n"
11060 "    struct in_addr ipi_spec_dst; /* Local address */\n"
11061 "    struct in_addr ipi_addr;     /* Header Destination\n"
11062 "                                    address */\n"
11063 "};\n"
11064
11065 #.  FIXME elaborate on that.
11066 #.  This field is grossly misnamed
11067 #. type: Plain text
11068 #: build/C/man7/ip.7:513
11069 msgid ""
11070 "I<ipi_ifindex> is the unique index of the interface the packet was received "
11071 "on.  I<ipi_spec_dst> is the local address of the packet and I<ipi_addr> is "
11072 "the destination address in the packet header.  If B<IP_PKTINFO> is passed to "
11073 "B<sendmsg>(2)  and I<ipi_spec_dst> is not zero, then it is used as the local "
11074 "source address for the routing table lookup and for setting up IP source "
11075 "route options.  When I<ipi_ifindex> is not zero, the primary local address "
11076 "of the interface specified by the index overwrites I<ipi_spec_dst> for the "
11077 "routing table lookup."
11078 msgstr ""
11079 "I<ipi_ifindex> はパケットが受信されたインターフェースの、他と重ならないイン"
11080 "デックスである。 I<ipi_spec_dst> はパケットのローカルアドレスである。 "
11081 "I<ipi_addr> はパケットヘッダにある宛先アドレスである。 B<IP_PKTINFO> が "
11082 "B<sendmsg>(2)  に渡されて、かつ I<ipi_spec_dst> が 0 以外の場合、 "
11083 "I<ipi_spec_dst> はルーティングテーブルを検索する際にローカルな送信元アドレス"
11084 "として使用され、 IP source route オプションを設定するのにも使用される。 "
11085 "I<ipi_ifindex> が 0 以外の場合、このインデックスによって指定されるインター"
11086 "フェースの プライマリローカルアドレスで I<ipi_spec_dst> を上書きし、ルーティ"
11087 "ングテーブルを検索する。"
11088
11089 #. type: TP
11090 #: build/C/man7/ip.7:513
11091 #, no-wrap
11092 msgid "B<IP_RECVERR> (since Linux 2.2)"
11093 msgstr "B<IP_RECVERR> (Linux 2.2 以降)"
11094
11095 #.  Precisely: 2.1.15
11096 #.  or SOL_IP on Linux
11097 #. type: Plain text
11098 #: build/C/man7/ip.7:535
11099 msgid ""
11100 "Enable extended reliable error message passing.  When enabled on a datagram "
11101 "socket, all generated errors will be queued in a per-socket error queue.  "
11102 "When the user receives an error from a socket operation, the errors can be "
11103 "received by calling B<recvmsg>(2)  with the B<MSG_ERRQUEUE> flag set.  The "
11104 "I<sock_extended_err> structure describing the error will be passed in an "
11105 "ancillary message with the type B<IP_RECVERR> and the level B<IPPROTO_IP>.  "
11106 "This is useful for reliable error handling on unconnected sockets.  The "
11107 "received data portion of the error queue contains the error packet."
11108 msgstr ""
11109 "エラーメッセージの受け渡しに、信頼性の高い拡張された方法を有効にする。 データ"
11110 "グラムソケットに対して有効になっていると、 発生したエラーは全てソケットごとの"
11111 "エラーキューに保存される。 ユーザーはソケット操作からエラーを受け取ったと"
11112 "き、 B<recvmsg>(2)  を B<MSG_ERRQUEUE> フラグとともに呼べばそのエラーを取得で"
11113 "きる。 そのエラーを記述する I<sock_extended_err> 構造体が、タイプ "
11114 "B<IP_RECVERR>・ レベル B<IPPROTO_IP> の補助メッセージとして渡される。 これは"
11115 "接続志向でないソケットで信頼性の高いエラー処理を行いたい場合に 有用である。エ"
11116 "ラーキューの受信データフラグメントには エラーパケットが含まれる。"
11117
11118 #. type: Plain text
11119 #: build/C/man7/ip.7:541
11120 msgid ""
11121 "The B<IP_RECVERR> control message contains a I<sock_extended_err> structure:"
11122 msgstr ""
11123 "B<IP_RECVERR> 制御メッセージには I<sock_extended_err> 構造体が含まれる:"
11124
11125 #. type: Plain text
11126 #: build/C/man7/ip.7:549
11127 #, no-wrap
11128 msgid ""
11129 "#define SO_EE_ORIGIN_NONE    0\n"
11130 "#define SO_EE_ORIGIN_LOCAL   1\n"
11131 "#define SO_EE_ORIGIN_ICMP    2\n"
11132 "#define SO_EE_ORIGIN_ICMP6   3\n"
11133 msgstr ""
11134 "#define SO_EE_ORIGIN_NONE    0\n"
11135 "#define SO_EE_ORIGIN_LOCAL   1\n"
11136 "#define SO_EE_ORIGIN_ICMP    2\n"
11137 "#define SO_EE_ORIGIN_ICMP6   3\n"
11138
11139 #. type: Plain text
11140 #: build/C/man7/ip.7:560
11141 #, no-wrap
11142 msgid ""
11143 "struct sock_extended_err {\n"
11144 "    uint32_t ee_errno;   /* error number */\n"
11145 "    uint8_t  ee_origin;  /* where the error originated */\n"
11146 "    uint8_t  ee_type;    /* type */\n"
11147 "    uint8_t  ee_code;    /* code */\n"
11148 "    uint8_t  ee_pad;\n"
11149 "    uint32_t ee_info;    /* additional information */\n"
11150 "    uint32_t ee_data;    /* other data */\n"
11151 "    /* More data may follow */\n"
11152 "};\n"
11153 msgstr ""
11154 "struct sock_extended_err {\n"
11155 "    uint32_t ee_errno;   /* error number */\n"
11156 "    uint8_t  ee_origin;  /* where the error originated */\n"
11157 "    uint8_t  ee_type;    /* type */\n"
11158 "    uint8_t  ee_code;    /* code */\n"
11159 "    uint8_t  ee_pad;\n"
11160 "    uint32_t ee_info;    /* additional information */\n"
11161 "    uint32_t ee_data;    /* other data */\n"
11162 "    /* More data may follow */\n"
11163 "};\n"
11164
11165 #. type: Plain text
11166 #: build/C/man7/ip.7:562
11167 #, no-wrap
11168 msgid "struct sockaddr *SO_EE_OFFENDER(struct sock_extended_err *);\n"
11169 msgstr "struct sockaddr *SO_EE_OFFENDER(struct sock_extended_err *);\n"
11170
11171 #. type: Plain text
11172 #: build/C/man7/ip.7:585
11173 msgid ""
11174 "I<ee_errno> contains the I<errno> number of the queued error.  I<ee_origin> "
11175 "is the origin code of where the error originated.  The other fields are "
11176 "protocol-specific.  The macro B<SO_EE_OFFENDER> returns a pointer to the "
11177 "address of the network object where the error originated from given a "
11178 "pointer to the ancillary message.  If this address is not known, the "
11179 "I<sa_family> member of the I<sockaddr> contains B<AF_UNSPEC> and the other "
11180 "fields of the I<sockaddr> are undefined."
11181 msgstr ""
11182 "I<ee_errno> にはキューに入っているエラーの I<errno> 番号が入る。 "
11183 "I<ee_origin> にはエラーが発生した場所を示すコードが入る。 その他のフィールド"
11184 "はプロトコル依存である。 B<SO_EE_OFFENDER> マクロは与えられた補助メッセージへ"
11185 "のポインタから エラーの発生したネットワークオブジェクトのアドレスへのポインタ"
11186 "を返す。 アドレスが不明な場合、 I<sockaddr> 構造体の I<sa_family> フィールド"
11187 "は B<AF_UNSPEC> となり、その他のフィールド値は不定である。"
11188
11189 #.  FIXME . Is it a good idea to document that? It is a dubious feature.
11190 #.  On
11191 #.  .B SOCK_STREAM
11192 #.  sockets,
11193 #.  .B IP_RECVERR
11194 #.  has slightly different semantics. Instead of
11195 #.  saving the errors for the next timeout, it passes all incoming
11196 #.  errors immediately to the user.
11197 #.  This might be useful for very short-lived TCP connections which
11198 #.  need fast error handling. Use this option with care:
11199 #.  it makes TCP unreliable
11200 #.  by not allowing it to recover properly from routing
11201 #.  shifts and other normal
11202 #.  conditions and breaks the protocol specification.
11203 #. type: Plain text
11204 #: build/C/man7/ip.7:644
11205 msgid ""
11206 "IP uses the I<sock_extended_err> structure as follows: I<ee_origin> is set "
11207 "to B<SO_EE_ORIGIN_ICMP> for errors received as an ICMP packet, or "
11208 "B<SO_EE_ORIGIN_LOCAL> for locally generated errors.  Unknown values should "
11209 "be ignored.  I<ee_type> and I<ee_code> are set from the type and code fields "
11210 "of the ICMP header.  I<ee_info> contains the discovered MTU for B<EMSGSIZE> "
11211 "errors.  The message also contains the I<sockaddr_in of the node> caused the "
11212 "error, which can be accessed with the B<SO_EE_OFFENDER> macro.  The "
11213 "I<sin_family> field of the B<SO_EE_OFFENDER> address is B<AF_UNSPEC> when "
11214 "the source was unknown.  When the error originated from the network, all IP "
11215 "options (B<IP_OPTIONS>, B<IP_TTL>, etc.) enabled on the socket and contained "
11216 "in the error packet are passed as control messages.  The payload of the "
11217 "packet causing the error is returned as normal payload.  Note that TCP has "
11218 "no error queue; B<MSG_ERRQUEUE> is not permitted on B<SOCK_STREAM> sockets.  "
11219 "B<IP_RECVERR> is valid for TCP, but all errors are returned by socket "
11220 "function return or B<SO_ERROR> only."
11221 msgstr ""
11222 "IP は以下のような I<sock_extended_err> 構造体を用いる: I<ee_origin> は、エ"
11223 "ラー\n"
11224 "が ICMP パケットとして受信された場合には B<SO_EE_ORIGIN_ICMP> にセットさ"
11225 "れ、\n"
11226 "ローカルで起こった場合には B<SO_EE_ORIGIN_LOCAL> にセットされる。 不明な値"
11227 "は\n"
11228 "無視される。 I<ee_type> と I<ee_code> は ICMP ヘッダの type フィールドと\n"
11229 "code フィールドの値にセットされる。 I<ee_info> には B<EMSGSIZE> エラーに対"
11230 "す\n"
11231 "る discover された MTU が入る。 メッセージにはエラーを引き起こしたノードの\n"
11232 "I<sockaddr_in> 構造体も含まれる。 これには B<SO_EE_OFFENDER> マクロを使って"
11233 "ア\n"
11234 "クセスできる。 ソースが不明の場合、 B<SO_EE_OFFENDER> アドレスの\n"
11235 "I<sin_family> フィールドは B<AF_UNSPEC> となる。 エラーがネットワークで起き"
11236 "た\n"
11237 "場合には、 ソケットで有効になっていたすべての IP オプション (B<IP_OPTIONS>,\n"
11238 "B<IP_TTL> など) とエラーパケットに含まれていたすべての IP オプションとが、 "
11239 "制\n"
11240 "御メッセージとして渡される。 エラーを起こしたパケットのペイロード (payload)\n"
11241 "は 普通のペイロードとして返される。 TCP にはエラーキューがないことに注意し"
11242 "て\n"
11243 "ほしい。 B<MSG_ERRQUEUE> は B<SOCK_STREAM> ソケットに対しては使えない。 TCP\n"
11244 "では B<IP_RECVERR> だけが有効だが、ソケット関数から返されるエラーは\n"
11245 "B<SO_ERROR> だけになる。"
11246
11247 #. type: Plain text
11248 #: build/C/man7/ip.7:649
11249 msgid ""
11250 "For raw sockets, B<IP_RECVERR> enables passing of all received ICMP errors "
11251 "to the application, otherwise errors are only reported on connected sockets"
11252 msgstr ""
11253 "raw ソケットに対して B<IP_RECVERR> を指定すると、受信したすべての ICMP エラー"
11254 "をアプリケーションに 渡すようになる。指定しないと、 接続済みのソケットに対す"
11255 "るエラーだけを報告する。"
11256
11257 #. type: Plain text
11258 #: build/C/man7/ip.7:653
11259 msgid ""
11260 "It sets or retrieves an integer boolean flag.  B<IP_RECVERR> defaults to off."
11261 msgstr ""
11262 "このオプションはブール値のフラグを設定・取得する。 B<IP_RECVERR> はデフォルト"
11263 "ではオフになっている。"
11264
11265 #. type: TP
11266 #: build/C/man7/ip.7:653
11267 #, no-wrap
11268 msgid "B<IP_RECVOPTS> (since Linux 2.2)"
11269 msgstr "B<IP_RECVOPTS> (Linux 2.2 以降)"
11270
11271 #.  Precisely: 2.1.15
11272 #. type: Plain text
11273 #: build/C/man7/ip.7:664
11274 msgid ""
11275 "Pass all incoming IP options to the user in a B<IP_OPTIONS> control "
11276 "message.  The routing header and other options are already filled in for the "
11277 "local host.  Not supported for B<SOCK_STREAM> sockets."
11278 msgstr ""
11279 "到着した全ての IP オプションを B<IP_OPTION> コントロールメッセージに入れて"
11280 "ユーザーに渡す。 ルーティングヘッダとその他のオプションとは、 ローカルホスト"
11281 "に対してはあらかじめ記入されている。 B<SOCK_STREAM> ソケットではサポートされ"
11282 "ていない。"
11283
11284 #. type: TP
11285 #: build/C/man7/ip.7:664
11286 #, no-wrap
11287 msgid "B<IP_RECVORIGDSTADDR> (since Linux 2.6.29)"
11288 msgstr "B<IP_RECVORIGDSTADDR> (Linux 2.6.29 以降)"
11289
11290 #.  commit e8b2dfe9b4501ed0047459b2756ba26e5a940a69
11291 #. type: Plain text
11292 #: build/C/man7/ip.7:675
11293 msgid ""
11294 "This boolean option enables the B<IP_ORIGDSTADDR> ancillary message in "
11295 "B<recvmsg>(2), in which the kernel returns the original destination address "
11296 "of the datagram being received.  The ancillary message contains a I<struct "
11297 "sockaddr_in>."
11298 msgstr ""
11299 "このブール値のオプションがセットされると、\n"
11300 "B<recvmsg>(2) で B<IP_ORIGDSTADDR> 補助メッセージが有効になる。\n"
11301 "カーネルはデータグラムを受信した元の宛先アドレスをこの補助メッセージで返"
11302 "す。\n"
11303 "この補助メッセージには I<struct sockaddr_in> が格納される。"
11304
11305 #. type: TP
11306 #: build/C/man7/ip.7:675
11307 #, no-wrap
11308 msgid "B<IP_RECVTOS> (since Linux 2.2)"
11309 msgstr "B<IP_RECVTOS> (Linux 2.2 以降)"
11310
11311 #.  Precisely: 2.1.68
11312 #. type: Plain text
11313 #: build/C/man7/ip.7:684
11314 msgid ""
11315 "If enabled the B<IP_TOS> ancillary message is passed with incoming packets.  "
11316 "It contains a byte which specifies the Type of Service/Precedence field of "
11317 "the packet header.  Expects a boolean integer flag."
11318 msgstr ""
11319 "有効になっていると、 B<IP_TOS> 補助メッセージが到着パケットとともに渡され"
11320 "る。 これにはパケットヘッダの Service/Precedence フィールドのタイプを指定する"
11321 "バイトデータが含まれている。 ブール整数値のフラグをとる。"
11322
11323 #. type: TP
11324 #: build/C/man7/ip.7:684
11325 #, no-wrap
11326 msgid "B<IP_RECVTTL> (since Linux 2.2)"
11327 msgstr "B<IP_RECVTTL> (Linux 2.2 以降)"
11328
11329 #.  Precisely: 2.1.68
11330 #. type: Plain text
11331 #: build/C/man7/ip.7:694
11332 msgid ""
11333 "When this flag is set, pass a B<IP_TTL> control message with the time to "
11334 "live field of the received packet as a byte.  Not supported for "
11335 "B<SOCK_STREAM> sockets."
11336 msgstr ""
11337 "このフラグがセットされていると、 B<IP_TTL> コントロールメッセージが受信パケッ"
11338 "トの time-to-live フィールドのバイトデータとともに渡される。 B<SOCK_STREAM> "
11339 "ソケットではサポートされていない。"
11340
11341 #. type: TP
11342 #: build/C/man7/ip.7:694
11343 #, no-wrap
11344 msgid "B<IP_RETOPTS> (since Linux 2.2)"
11345 msgstr "B<IP_RETOPTS>"
11346
11347 #.  Precisely: 2.1.15
11348 #. type: Plain text
11349 #: build/C/man7/ip.7:701
11350 msgid ""
11351 "Identical to B<IP_RECVOPTS>, but returns raw unprocessed options with "
11352 "timestamp and route record options not filled in for this hop."
11353 msgstr ""
11354 "B<IP_RETOPTS> (Linux 2.2 以降)  B<IP_RECVOPTS> と等価だが、未処理の生のオプ"
11355 "ションを、 この hop では記入されない timestamp レコードと route レコードとと"
11356 "もに返す。"
11357
11358 #. type: TP
11359 #: build/C/man7/ip.7:701
11360 #, no-wrap
11361 msgid "B<IP_ROUTER_ALERT> (since Linux 2.2)"
11362 msgstr "B<IP_ROUTER_ALERT> (Linux 2.2 以降)"
11363
11364 #.  Precisely: 2.1.68
11365 #. type: Plain text
11366 #: build/C/man7/ip.7:713
11367 msgid ""
11368 "Pass all to-be forwarded packets with the IP Router Alert option set to this "
11369 "socket.  Only valid for raw sockets.  This is useful, for instance, for user-"
11370 "space RSVP daemons.  The tapped packets are not forwarded by the kernel; it "
11371 "is the user's responsibility to send them out again.  Socket binding is "
11372 "ignored, such packets are only filtered by protocol.  Expects an integer "
11373 "flag."
11374 msgstr ""
11375 "フォワードすべきパケットを IP Router Alert オプションをつけて このソケットに"
11376 "渡す。 raw ソケットに対してのみ有効である。これはたとえばユーザー空間の RSVP "
11377 "デーモンに対して便利である。タップされたパケットは カーネルによってはフォワー"
11378 "ドされないので、これらを再送するのは ユーザーの責任となる。ソケットのバインド"
11379 "は無視され、 このようなパケットはプロトコルによってのみフィルタリングされ"
11380 "る。 整数値のフラグを取る。"
11381
11382 #. type: TP
11383 #: build/C/man7/ip.7:713
11384 #, no-wrap
11385 msgid "B<IP_TOS> (since Linux 1.0)"
11386 msgstr "B<IP_TOS> (Linux 1.0 以降)"
11387
11388 #.  FIXME elaborate on this
11389 #.  Needs CAP_NET_ADMIN
11390 #.  Boolean
11391 #.  Since Linux 2.6.27
11392 #.  Author: KOVACS Krisztian <hidden@sch.bme.hu>
11393 #.  http://lwn.net/Articles/252545/
11394 #. type: Plain text
11395 #: build/C/man7/ip.7:747
11396 msgid ""
11397 "Set or receive the Type-Of-Service (TOS) field that is sent with every IP "
11398 "packet originating from this socket.  It is used to prioritize packets on "
11399 "the network.  TOS is a byte.  There are some standard TOS flags defined: "
11400 "B<IPTOS_LOWDELAY> to minimize delays for interactive traffic, "
11401 "B<IPTOS_THROUGHPUT> to optimize throughput, B<IPTOS_RELIABILITY> to optimize "
11402 "for reliability, B<IPTOS_MINCOST> should be used for \"filler data\" where "
11403 "slow transmission doesn't matter.  At most one of these TOS values can be "
11404 "specified.  Other bits are invalid and shall be cleared.  Linux sends "
11405 "B<IPTOS_LOWDELAY> datagrams first by default, but the exact behavior depends "
11406 "on the configured queueing discipline.  Some high priority levels may "
11407 "require superuser privileges (the B<CAP_NET_ADMIN> capability).  The "
11408 "priority can also be set in a protocol independent way by the "
11409 "(B<SOL_SOCKET>, B<SO_PRIORITY>)  socket option (see B<socket>(7))."
11410 msgstr ""
11411 "このソケットから送信されるすべての IP パケットに適用される Type-Of-Service "
11412 "(TOS) フィールドを設定・取得する。 これはネットワーク上でのパケットの優先度を"
11413 "決めるために用いられる。 TOS はバイトデータである。標準の TOS フラグがいくつ"
11414 "か定義されている。 B<IPTOS_LOWDELAY> はインタラクティブなトラフィックの遅延を"
11415 "最小にする。 B<IPTOS_THROUGHPUT> はスループットを最大にする。 "
11416 "B<IPTOS_RELIABILITY> は信頼性を最高にする。 B<IPTOS_MINCOST> は転送速度が遅く"
11417 "てもかまわないとき、「データを詰め込む」のに用いられる。 これらのうち、 1 つ"
11418 "までだけを設定できる。 他のビットは無効で、クリアされる。 Linux はデフォルト"
11419 "では B<IPTOS_LOWDELAY> データグラムを最初に送信する。 しかし、正確な振る舞い"
11420 "はキュー処理の設定に依存する。 高い優先度にするにはスーパーユーザー権限 "
11421 "(B<CAP_NET_ADMIN> ケーパビリティ) が必要となるかもしれない。 優先度は "
11422 "(B<SOL_SOCKET>, B<SO_PRIORITY>)  ソケットオプションを用いれば、 プロトコルに"
11423 "依存しない形でも設定できる (B<socket>(7)  を見よ)。"
11424
11425 #. type: TP
11426 #: build/C/man7/ip.7:747
11427 #, no-wrap
11428 msgid "B<IP_TRANSPARENT> (since Linux 2.6.24)"
11429 msgstr "B<IP_TRANSPARENT> (Linux 2.6.24 以降)"
11430
11431 #.  commit f5715aea4564f233767ea1d944b2637a5fd7cd2e
11432 #.      This patch introduces the IP_TRANSPARENT socket option: enabling that
11433 #.      will make the IPv4 routing omit the non-local source address check on
11434 #.      output. Setting IP_TRANSPARENT requires NET_ADMIN capability.
11435 #.  http://lwn.net/Articles/252545/
11436 #. type: Plain text
11437 #: build/C/man7/ip.7:764
11438 msgid ""
11439 "Setting this boolean option enables transparent proxying on this socket.  "
11440 "This socket option allows the calling application to bind to a nonlocal IP "
11441 "address and operate both as a client and a server with the foreign address "
11442 "as the local endpoint.  NOTE: this requires that routing be set up in a way "
11443 "that packets going to the foreign address are routed through the TProxy "
11444 "box.  Enabling this socket option requires superuser privileges (the "
11445 "B<CAP_NET_ADMIN> capability)."
11446 msgstr ""
11447 "このブール値のオプションを有効にすると、\n"
11448 "このソケットで透過プロキシ (transparent proxy) ができるようになる。\n"
11449 "このソケットオプションを使うと、呼び出したアプリケーションは、\n"
11450 "ローカルではない IP アドレスをバインドして、ローカルの端点として自分以外の\n"
11451 "アドレス (foreign address) を持つクライアントやサーバの両方として\n"
11452 "動作できるようになる。\n"
11453 "B<注意>: この機能が動作するためには、自分以外のアドレス宛のパケットが\n"
11454 "透過プロキシが動作するマシン (TProxy box) 経由で転送されるように、\n"
11455 "ルーティングが設定される必要がある。\n"
11456 "このソケットオプションを有効にするには、スーパーユーザ特権\n"
11457 "(B<CAP_NET_ADMIN> ケーパビリティ) が必要である。"
11458
11459 #. type: Plain text
11460 #: build/C/man7/ip.7:767
11461 msgid ""
11462 "TProxy redirection with the iptables TPROXY target also requires that this "
11463 "option be set on the redirected socket."
11464 msgstr ""
11465 "iptables の TPROXY ターゲットで透過プロキシリダイレクション \n"
11466 "(TProxy redirection) を行うには、リダイレクトされるソケットに対して\n"
11467 "このオプションを設定する必要がある。"
11468
11469 #. type: TP
11470 #: build/C/man7/ip.7:767
11471 #, no-wrap
11472 msgid "B<IP_TTL> (since Linux 1.0)"
11473 msgstr "B<IP_TTL> (Linux 1.0 以降)"
11474
11475 #.  FIXME Document IP_XFRM_POLICY
11476 #.  Since Linux 2.5.48
11477 #.  Needs CAP_NET_ADMIN
11478 #. type: Plain text
11479 #: build/C/man7/ip.7:774
11480 msgid ""
11481 "Set or retrieve the current time-to-live field that is used in every packet "
11482 "sent from this socket."
11483 msgstr ""
11484 "time-to-live フィールドの値を設定または取得する。 この値はこのソケットから送"
11485 "信されるすべてのパケットに用いられる。"
11486
11487 #.  FIXME As at 2.6.12, 14 Jun 2005, the following are undocumented:
11488 #.      ip_queue_maxlen
11489 #.      ip_conntrack_max
11490 #. type: Plain text
11491 #: build/C/man7/ip.7:790
11492 msgid ""
11493 "The IP protocol supports a set of I</proc> interfaces to configure some "
11494 "global parameters.  The parameters can be accessed by reading or writing "
11495 "files in the directory I</proc/sys/net/ipv4/>.  Interfaces described as "
11496 "I<Boolean> take an integer value, with a nonzero value (\"true\") meaning "
11497 "that the corresponding option is enabled, and a zero value (\"false\")  "
11498 "meaning that the option is disabled."
11499 msgstr ""
11500 "IP プロトコルでは、いくつかのグローバルパラメータを設定するための I</proc> "
11501 "ファイル群が用意されている。 これらのパラメータには、 I</proc/sys/net/ipv4/> "
11502 "ディレクトリ内のファイルの読み書きでアクセスできる。 I<Boolean> と書かれたイ"
11503 "ンタフェースは整数値をとり、 0 以外の値 (\"true\") は対応するオプションが有"
11504 "効、 0 値 (\"false\") は無効、であることを意味する。"
11505
11506 #. type: TP
11507 #: build/C/man7/ip.7:790
11508 #, no-wrap
11509 msgid "I<ip_always_defrag> (Boolean; since Linux 2.2.13)"
11510 msgstr "I<ip_always_defrag> (Boolean; Linux 2.2.13 以降)"
11511
11512 #. type: Plain text
11513 #: build/C/man7/ip.7:796
11514 msgid ""
11515 "[New with kernel 2.2.13; in earlier kernel versions this feature was "
11516 "controlled at compile time by the B<CONFIG_IP_ALWAYS_DEFRAG> option; this "
11517 "option is not present in 2.4.x and later]"
11518 msgstr ""
11519 "[2.2.13 で新規登場。以前のバージョンのカーネルでは、この機能は コンパイル時"
11520 "に B<CONFIG_IP_ALWAYS_DEFRAG> オプションによって制御されていた; このファイル"
11521 "は 2.4.x 以降では存在しない]"
11522
11523 #. type: Plain text
11524 #: build/C/man7/ip.7:803
11525 msgid ""
11526 "When this boolean flag is enabled (not equal 0), incoming fragments (parts "
11527 "of IP packets that arose when some host between origin and destination "
11528 "decided that the packets were too large and cut them into pieces) will be "
11529 "reassembled (defragmented) before being processed, even if they are about to "
11530 "be forwarded."
11531 msgstr ""
11532 "このブール値のフラグが有効になっている (0 以外になっている) と、 到着したフラ"
11533 "グメント (IP パケットの一部で、 発信元と発信先の間のどこかのホストで、そのパ"
11534 "ケットが 大きすぎると判断され、分割された場合に生じる)  は、たとえフォワード"
11535 "される場合であっても 処理前に再構築 (デフラグメント) される。"
11536
11537 #. type: Plain text
11538 #: build/C/man7/ip.7:810
11539 msgid ""
11540 "Only enable if running either a firewall that is the sole link to your "
11541 "network or a transparent proxy; never ever use it for a normal router or "
11542 "host.  Otherwise fragmented communication can be disturbed if the fragments "
11543 "travel over different links.  Defragmentation also has a large memory and "
11544 "CPU time cost."
11545 msgstr ""
11546 "ファイアウォールがローカル側のネットワークに唯一のリンクを持っている 場合や、"
11547 "透過プロクシの場合に限って有効にすべきである。 通常のルーターやホストでは決し"
11548 "て使用することのないように。 さもないとフラグメントが別のリンクを経由して伝わ"
11549 "る場合に、 通信のフラグメント化ができなくなってしまう。 またフラグメント再構"
11550 "築処理はメモリと CPU 時間のコストが非常に大きい。"
11551
11552 #. type: Plain text
11553 #: build/C/man7/ip.7:814
11554 msgid ""
11555 "This is automagically turned on when masquerading or transparent proxying "
11556 "are configured."
11557 msgstr ""
11558 "これはマスカレードや透過プロクシが設定されると、 不思議な仕組みによって自動的"
11559 "に有効になる。"
11560
11561 #. type: TP
11562 #: build/C/man7/ip.7:814
11563 #, no-wrap
11564 msgid "I<ip_autoconfig> (since Linux 2.2 to 2.6.17)"
11565 msgstr "I<ip_autoconfig> (Linux 2.2 以降 2.6.17 まで)"
11566
11567 #.  Precisely: since 2.1.68
11568 #.  FIXME document ip_autoconfig
11569 #. type: Plain text
11570 #: build/C/man7/ip.7:820
11571 msgid "Not documented."
11572 msgstr "まだ記述していない。"
11573
11574 #. type: TP
11575 #: build/C/man7/ip.7:820
11576 #, no-wrap
11577 msgid "I<ip_default_ttl> (integer; default: 64; since Linux 2.2)"
11578 msgstr "I<ip_default_ttl> (integer; default: 64; Linux 2.2 以降)"
11579
11580 #.  Precisely: 2.1.15
11581 #. type: Plain text
11582 #: build/C/man7/ip.7:828
11583 msgid ""
11584 "Set the default time-to-live value of outgoing packets.  This can be changed "
11585 "per socket with the B<IP_TTL> option."
11586 msgstr ""
11587 "送出されるパケットの time-to-live 値のデフォルトをセットする。 これは "
11588 "B<IP_TTL> オプションを用いれば、パケットごとに変えることもできる。"
11589
11590 #. type: TP
11591 #: build/C/man7/ip.7:828
11592 #, no-wrap
11593 msgid "I<ip_dynaddr> (Boolean; default: disabled; since Linux 2.0.31)"
11594 msgstr "I<ip_dynaddr> (Boolean; default: disabled; Linux 2.0.31 以降)"
11595
11596 #. type: Plain text
11597 #: build/C/man7/ip.7:835
11598 msgid ""
11599 "Enable dynamic socket address and masquerading entry rewriting on interface "
11600 "address change.  This is useful for dialup interface with changing IP "
11601 "addresses.  0 means no rewriting, 1 turns it on and 2 enables verbose mode."
11602 msgstr ""
11603 "動的ソケットアドレスと、インターフェースアドレスが変更された際の マスカレード"
11604 "エントリの再書き込みを有効にする。 ダイアルアップインターフェースで、 IP アド"
11605 "レスが変更される場合に便利である。"
11606
11607 #. type: TP
11608 #: build/C/man7/ip.7:835
11609 #, no-wrap
11610 msgid "I<ip_forward> (Boolean; default: disabled; since Linux 1.2)"
11611 msgstr "I<ip_forward> (Boolean; default: disabled; Linux 1.2 以降)"
11612
11613 #. type: Plain text
11614 #: build/C/man7/ip.7:840
11615 msgid ""
11616 "Enable IP forwarding with a boolean flag.  IP forwarding can be also set on "
11617 "a per-interface basis."
11618 msgstr ""
11619 "IP forwarding を有効にするかどうかのブール値フラグ。 IP forwarding するかどう"
11620 "かはインターフェースごとにも設定できる。"
11621
11622 #. type: TP
11623 #: build/C/man7/ip.7:840
11624 #, no-wrap
11625 msgid "I<ip_local_port_range> (since Linux 2.2)"
11626 msgstr "I<ip_local_port_range> (Linux 2.2 以降)"
11627
11628 #.  Precisely: since 2.1.68
11629 #. type: Plain text
11630 #: build/C/man7/ip.7:854
11631 msgid ""
11632 "Contains two integers that define the default local port range allocated to "
11633 "sockets.  Allocation starts with the first number and ends with the second "
11634 "number.  Note that these should not conflict with the ports used by "
11635 "masquerading (although the case is handled).  Also arbitrary choices may "
11636 "cause problems with some firewall packet filters that make assumptions about "
11637 "the local ports in use.  First number should be at least greater than 1024, "
11638 "or better, greater than 4096, to avoid clashes with well known ports and to "
11639 "minimize firewall problems."
11640 msgstr ""
11641 "ソケットに割り当てられているデフォルトのローカルポートの範囲を定める 二つの整"
11642 "数を与える。割り当ては 1 番目の番号から始まり、 2 番目の番号で終わる。 これら"
11643 "はマスカレードで用いられているポートと重なってはならない (その場合も取り扱わ"
11644 "れるが)。 ファイアウォールのパケットフィルターが「利用中のローカルポート」 に"
11645 "ついて何らかの仮定をしている場合には、 番号を勝手に決めてしまうと問題が起きる"
11646 "かもしれない。 1 番目の番号は少なくとも 1024 より大きくすべきである。 良く使"
11647 "われるポートとの衝突を避けたり、ファイアウォールの問題を 回避したければ、 "
11648 "4096 よりも大きくするほうが良いだろう。"
11649
11650 #. type: TP
11651 #: build/C/man7/ip.7:854
11652 #, no-wrap
11653 msgid "I<ip_no_pmtu_disc> (Boolean; default: disabled; since Linux 2.2)"
11654 msgstr "I<ip_no_pmtu_disc> (Boolean; default: disabled; Linux 2.2 以降)"
11655
11656 #.  Precisely: 2.1.15
11657 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
11658 #. type: Plain text
11659 #: build/C/man7/ip.7:866
11660 msgid ""
11661 "If enabled, don't do Path MTU Discovery for TCP sockets by default.  Path "
11662 "MTU discovery may fail if misconfigured firewalls (that drop all ICMP "
11663 "packets) or misconfigured interfaces (e.g., a point-to-point link where the "
11664 "both ends don't agree on the MTU) are on the path.  It is better to fix the "
11665 "broken routers on the path than to turn off Path MTU Discovery globally, "
11666 "because not doing it incurs a high cost to the network."
11667 msgstr ""
11668 "有効になっていると、デフォルトで TCP ソケットに対する Path MTU Discoverty を"
11669 "行わない。 Path MTU Discovery は、 正しく設定されていない (ICMP パケットを全"
11670 "てドロップする) ファイアウォールや、 (point-to-point リンクで双方の MTU が一"
11671 "致していない場合など)  正しく設定されていないインターフェースが経路上に存在す"
11672 "ると失敗してしまう。 Path MTU Discovery をグローバルに無効にするよりは、 壊れ"
11673 "ているルータを直すほうが良い。 Path MTU Discovery を無効にするとネットワーク"
11674 "のコストが 大きくなってしまうからである。"
11675
11676 #. type: TP
11677 #: build/C/man7/ip.7:866
11678 #, no-wrap
11679 msgid "I<ip_nonlocal_bind> (Boolean; default: disabled; since Linux 2.4)"
11680 msgstr "I<ip_nonlocal_bind> (Boolean; default: disabled; Linux 2.4 以降)"
11681
11682 #.  Precisely: patch-2.4.0-test10
11683 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
11684 #. type: Plain text
11685 #: build/C/man7/ip.7:875
11686 msgid ""
11687 "If set, allows processes to B<bind>(2)  to nonlocal IP addresses, which can "
11688 "be quite useful, but may break some applications."
11689 msgstr ""
11690 "セットされていれば、プロセスが自分以外の IP アドレスを B<bind>(2)  できるよう"
11691 "になる。これはかなり便利だが、うまく動かないアプリケーションもある。"
11692
11693 #. type: TP
11694 #: build/C/man7/ip.7:875
11695 #, no-wrap
11696 msgid "I<ip6frag_time> (integer; default: 30)"
11697 msgstr "I<ip6frag_time> (integer; default: 30)"
11698
11699 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
11700 #. type: Plain text
11701 #: build/C/man7/ip.7:880
11702 msgid "Time in seconds to keep an IPv6 fragment in memory."
11703 msgstr "IPv6 フラグメントをメモリに保持しておく時間 (秒単位)。"
11704
11705 #. type: TP
11706 #: build/C/man7/ip.7:880
11707 #, no-wrap
11708 msgid "I<ip6frag_secret_interval> (integer; default: 600)"
11709 msgstr "I<ip6frag_secret_interval> (integer; default: 600)"
11710
11711 #. type: Plain text
11712 #: build/C/man7/ip.7:884
11713 msgid ""
11714 "Regeneration interval (in seconds) of the hash secret (or lifetime for the "
11715 "hash secret) for IPv6 fragments."
11716 msgstr ""
11717 "IPv6 フラグメントの hash secret の生成間隔 (hash secret の寿命)  (秒単位)。"
11718
11719 #. type: TP
11720 #: build/C/man7/ip.7:884
11721 #, no-wrap
11722 msgid "I<ipfrag_high_thresh> (integer), I<ipfrag_low_thresh> (integer)"
11723 msgstr "I<ipfrag_high_thresh> (integer), I<ipfrag_low_thresh> (integer)"
11724
11725 #. type: Plain text
11726 #: build/C/man7/ip.7:891
11727 msgid ""
11728 "If the amount of queued IP fragments reaches I<ipfrag_high_thresh>, the "
11729 "queue is pruned down to I<ipfrag_low_thresh>.  Contains an integer with the "
11730 "number of bytes."
11731 msgstr ""
11732 "キューイングされている IP フラグメントの量が I<ipfrag_high_thresh> に達する"
11733 "と、キューの内容は I<ipfrag_low_thresh> にまで切り捨てられる。それぞれの大き"
11734 "さを バイト単位で表す整数値が入っている。"
11735
11736 #. type: TP
11737 #: build/C/man7/ip.7:891
11738 #, no-wrap
11739 msgid "I<neigh/*>"
11740 msgstr "I<neigh/*>"
11741
11742 #.  FIXME Document the conf/*/* interfaces
11743 #.  FIXME Document the route/* interfaces
11744 #.  FIXME document them all
11745 #. type: Plain text
11746 #: build/C/man7/ip.7:898
11747 msgid "See B<arp>(7)."
11748 msgstr "B<arp>(7)  を見よ。"
11749
11750 #.  2006-04-02, mtk
11751 #.  commented out the following because ipchains is obsolete
11752 #.  .PP
11753 #.  The ioctls to configure firewalling are documented in
11754 #.  .BR ipfw (4)
11755 #.  from the
11756 #.  .B ipchains
11757 #.  package.
11758 #. type: Plain text
11759 #: build/C/man7/ip.7:911
11760 msgid "All ioctls described in B<socket>(7)  apply to B<ip>."
11761 msgstr "B<socket>(7)  に記述されている ioctl は、すべて B<ip> にも適用される。"
11762
11763 #.  FIXME Add a discussion of multicasting
11764 #. type: Plain text
11765 #: build/C/man7/ip.7:915
11766 msgid ""
11767 "Ioctls to configure generic device parameters are described in B<netdevice>"
11768 "(7)."
11769 msgstr ""
11770 "ジェネリックデバイスのパラメータを設定する ioctl については B<netdevice>(7)  "
11771 "に記述されている。"
11772
11773 #. type: Plain text
11774 #: build/C/man7/ip.7:935
11775 msgid ""
11776 "The user tried to execute an operation without the necessary permissions.  "
11777 "These include: sending a packet to a broadcast address without having the "
11778 "B<SO_BROADCAST> flag set; sending a packet via a I<prohibit> route; "
11779 "modifying firewall settings without superuser privileges (the "
11780 "B<CAP_NET_ADMIN> capability); binding to a privileged port without superuser "
11781 "privileges (the B<CAP_NET_BIND_SERVICE> capability)."
11782 msgstr ""
11783 "必要な権限のないユーザーが操作を実行しようとした。 以下のような場合が考えられ"
11784 "る: B<SO_BROADCAST> フラグを設定していない状態でブロードキャストアドレスに パ"
11785 "ケットを送ろうとした。 I<prohibit> なルートを通してパケットを送ろうとした。 "
11786 "スーパーユーザー権限 (B<CAP_NET_ADMIN> ケーパビリティ) なしでファイアウォール"
11787 "の設定を変更しようとした。 スーパーユーザー権限 (B<CAP_NET_BIND_SERVICE> ケー"
11788 "パビリティ) なしで特権ポートにバインドしようとした。"
11789
11790 #. type: Plain text
11791 #: build/C/man7/ip.7:948
11792 msgid "An connection operation on a nonblocking socket is already in progress."
11793 msgstr "非ブロッキングソケットに対する接続操作が既に実行中である。"
11794
11795 #. type: Plain text
11796 #: build/C/man7/ip.7:957
11797 msgid ""
11798 "No valid routing table entry matches the destination address.  This error "
11799 "can be caused by a ICMP message from a remote router or for the local "
11800 "routing table."
11801 msgstr ""
11802 "宛先アドレスにマッチする有効なエントリがルーティングテーブルに 存在しない。こ"
11803 "のエラーはリモートルータからの、 あるいはローカルルーティングテーブルへの "
11804 "ICMP メッセージによって引き起こされることがある。"
11805
11806 #. type: Plain text
11807 #: build/C/man7/ip.7:963
11808 msgid ""
11809 "Invalid argument passed.  For send operations this can be caused by sending "
11810 "to a I<blackhole> route."
11811 msgstr ""
11812 "不正な引き数が渡された。送信操作において、 I<blackhole> ルートに送信しようと"
11813 "するとこのエラーが起こることがある。"
11814
11815 #. type: Plain text
11816 #: build/C/man7/ip.7:970
11817 msgid "Datagram is bigger than an MTU on the path and it cannot be fragmented."
11818 msgstr "データグラムが path MTU よりも大きく、フラグメント化もできない。"
11819
11820 #. type: TP
11821 #: build/C/man7/ip.7:970
11822 #, no-wrap
11823 msgid "B<ENOBUFS>, B<ENOMEM>"
11824 msgstr "B<ENOBUFS>, B<ENOMEM>"
11825
11826 #. type: Plain text
11827 #: build/C/man7/ip.7:975
11828 msgid ""
11829 "Not enough free memory.  This often means that the memory allocation is "
11830 "limited by the socket buffer limits, not by the system memory, but this is "
11831 "not 100% consistent."
11832 msgstr ""
11833 "空きメモリが足りない。 このエラーは、メモリアロケーションがソケットバッファ"
11834 "の 大きさによって制限されていることを意味しているのが通常であるが、 100% そう"
11835 "だというわけではない。"
11836
11837 #. type: Plain text
11838 #: build/C/man7/ip.7:993
11839 msgid ""
11840 "User doesn't have permission to set high priority, change configuration, or "
11841 "send signals to the requested process or group."
11842 msgstr ""
11843 "高い優先度を設定したり、設定を変更したり、要求されたプロセスや プロセスグルー"
11844 "プにシグナルを送ったりするのに必要な権限を、 ユーザーが持っていない。"
11845
11846 #. type: Plain text
11847 #: build/C/man7/ip.7:999
11848 msgid "The socket is not configured or an unknown socket type was requested."
11849 msgstr "ソケットが未設定であるか、知らないソケットタイプが要求された。"
11850
11851 #. type: Plain text
11852 #: build/C/man7/ip.7:1006
11853 msgid ""
11854 "Other errors may be generated by the overlaying protocols; see B<tcp>(7), "
11855 "B<raw>(7), B<udp>(7)  and B<socket>(7)."
11856 msgstr ""
11857 "他のエラーが上層のプロトコルによって生じるかもしれない。 B<tcp>(7), B<raw>"
11858 "(7), B<udp>(7), B<socket>(7)  などを参照のこと。"
11859
11860 #.  IP_PASSSEC is Linux-specific
11861 #.  IP_XFRM_POLICY is Linux-specific
11862 #.  IP_IPSEC_POLICY is a nonstandard extension, also present on some BSDs
11863 #. type: Plain text
11864 #: build/C/man7/ip.7:1020
11865 msgid ""
11866 "B<IP_FREEBIND>, B<IP_MTU>, B<IP_MTU_DISCOVER>, B<IP_RECVORIGDSTADDR>, "
11867 "B<IP_PKTINFO>, B<IP_RECVERR>, B<IP_ROUTER_ALERT>, and B<IP_TRANSPARENT> are "
11868 "Linux-specific."
11869 msgstr ""
11870 "B<IP_FREEBIND>, B<IP_MTU>, B<IP_MTU_DISCOVER>, B<IP_RECVORIGDSTADDR>,\n"
11871 "B<IP_PKTINFO>, B<IP_RECVERR>, B<IP_ROUTER_ALERT>, and B<IP_TRANSPARENT> \n"
11872 "は Linux 固有である。"
11873
11874 #. type: Plain text
11875 #: build/C/man7/ip.7:1029
11876 msgid ""
11877 "Be very careful with the B<SO_BROADCAST> option - it is not privileged in "
11878 "Linux.  It is easy to overload the network with careless broadcasts.  For "
11879 "new application protocols it is better to use a multicast group instead of "
11880 "broadcasting.  Broadcasting is discouraged."
11881 msgstr ""
11882 "B<SO_BROADCAST> オプションの利用には、くれぐれも注意すること。\n"
11883 "これは Linux では特権操作ではない。\n"
11884 "不注意なブロードキャストを行うと、ネットワークは簡単に過負荷状態になる。\n"
11885 "新しいアプリケーションプロトコルには、ブロードキャストではなく\n"
11886 "マルチキャストグループを用いるほうがよい。 ブロードキャストは推奨されない。"
11887
11888 #. type: Plain text
11889 #: build/C/man7/ip.7:1039
11890 msgid ""
11891 "Some other BSD sockets implementations provide B<IP_RCVDSTADDR> and "
11892 "B<IP_RECVIF> socket options to get the destination address and the interface "
11893 "of received datagrams.  Linux has the more general B<IP_PKTINFO> for the "
11894 "same task."
11895 msgstr ""
11896 "他の BSD のソケット実装では、 B<IP_RCVDSTADDR> と B<IP_RECVIF> といったソケッ"
11897 "トオプションがサポートされており、 宛先アドレスや受信データグラムのインター"
11898 "フェースが取得できるように なっていることもある。 Linux で同じことをやらせる"
11899 "には、より一般的な B<IP_PKTINFO> が使える。"
11900
11901 #. type: Plain text
11902 #: build/C/man7/ip.7:1048
11903 msgid ""
11904 "Some BSD sockets implementations also provide an B<IP_RECVTTL> option, but "
11905 "an ancillary message with type B<IP_RECVTTL> is passed with the incoming "
11906 "packet.  This is different from the B<IP_TTL> option used in Linux."
11907 msgstr ""
11908 "いくつかの BSD のソケット実装では B<IP_RECVTTL> オプションも提供されている"
11909 "が、タイプ B<IP_RECVTTL> の補助メッセージは受信パケットとともに渡される。 こ"
11910 "れは Linux で使われている B<IP_TTL> オプションとは異なる動作である。"
11911
11912 #. type: Plain text
11913 #: build/C/man7/ip.7:1054
11914 msgid ""
11915 "Using B<SOL_IP> socket options level isn't portable, BSD-based stacks use "
11916 "B<IPPROTO_IP> level."
11917 msgstr ""
11918 "B<SOL_IP> ソケットオプションレベルは移植性がない。 BSD ベースのプロトコルス"
11919 "タックでは B<IPPROTO_IP> レベルが使用されている。"
11920
11921 #. type: Plain text
11922 #: build/C/man7/ip.7:1067
11923 msgid ""
11924 "For compatibility with Linux 2.0, the obsolete B<socket(AF_INET, "
11925 "SOCK_PACKET, >I<protocol>B<)> syntax is still supported to open a B<packet>"
11926 "(7)  socket.  This is deprecated and should be replaced by B<socket"
11927 "(AF_PACKET, SOCK_RAW, >I<protocol>B<)> instead.  The main difference is the "
11928 "new I<sockaddr_ll> address structure for generic link layer information "
11929 "instead of the old B<sockaddr_pkt>."
11930 msgstr ""
11931 "Linux 2.0 との互換性のために、 obsolete な B<socket(AF_INET, SOCK_PACKET, "
11932 ">I<protocol>B<)> という書式でも B<packet>(7)  をオープンできるようになってい"
11933 "るが、これはお勧めできない。今後は B<socket(AF_PACKET, SOCK_RAW, "
11934 ">I<protocol>B<)> を代わりに用いるべきである。主な違いは、ジェネリックなリンク"
11935 "層用の I<sockaddr_ll> アドレス構造体が、古い B<sockaddr_pkt> に変わって用いら"
11936 "れるようになったことである。"
11937
11938 #. type: Plain text
11939 #: build/C/man7/ip.7:1072
11940 msgid ""
11941 "The ioctls to configure IP-specific interface options and ARP tables are not "
11942 "described."
11943 msgstr ""
11944 "IP 固有のインターフェースオプションを指定するための ioctl と ARP テーブルのこ"
11945 "とが記述されていない。"
11946
11947 #. type: Plain text
11948 #: build/C/man7/ip.7:1076
11949 msgid ""
11950 "Some versions of glibc forget to declare I<in_pktinfo>.  Workaround "
11951 "currently is to copy it into your program from this man page."
11952 msgstr ""
11953 "glibc のバージョンによっては I<in_pktinfo> の定義を忘れているものがある。 現"
11954 "時点でのとりあえずの対策としては、この man ページにある定義をプログラム中に "
11955 "コピーすることである。"
11956
11957 #.  .SH AUTHORS
11958 #.  This man page was written by Andi Kleen.
11959 #. type: Plain text
11960 #: build/C/man7/ip.7:1086
11961 msgid ""
11962 "Receiving the original destination address with B<MSG_ERRQUEUE> in "
11963 "I<msg_name> by B<recvmsg>(2)  does not work in some 2.2 kernels."
11964 msgstr ""
11965 "B<recvmsg>(2)  で I<msg_name> に B<MSG_ERRQUEUE> を指定して、受信パケットに"
11966 "入っていた宛先アドレスを取得する方法は 2.2 カーネルの一部でうまく動かない。"
11967
11968 #. type: Plain text
11969 #: build/C/man7/ip.7:1097
11970 msgid ""
11971 "B<recvmsg>(2), B<sendmsg>(2), B<byteorder>(3), B<ipfw>(4), B<capabilities>"
11972 "(7), B<netlink>(7), B<raw>(7), B<socket>(7), B<tcp>(7), B<udp>(7)"
11973 msgstr ""
11974 "B<recvmsg>(2), B<sendmsg>(2), B<byteorder>(3), B<ipfw>(4), B<capabilities>"
11975 "(7), B<netlink>(7), B<raw>(7), B<socket>(7), B<tcp>(7), B<udp>(7)"
11976
11977 #. type: Plain text
11978 #: build/C/man7/ip.7:1099
11979 msgid "RFC\\ 791 for the original IP specification."
11980 msgstr "B<RFC\\ 791>: オリジナルの IP の仕様"
11981
11982 #. type: Plain text
11983 #: build/C/man7/ip.7:1101
11984 msgid "RFC\\ 1122 for the IPv4 host requirements."
11985 msgstr "B<RFC\\ 1122>: IPv4 ホストの必要条件"
11986
11987 #.  FIXME autobind INADDR REUSEADDR
11988 #. type: Plain text
11989 #: build/C/man7/ip.7:1104
11990 msgid "RFC\\ 1812 for the IPv4 router requirements."
11991 msgstr "B<RFC\\ 1812>: IPv4 ルータの必要条件"
11992
11993 #. type: TH
11994 #: build/C/man7/ipv6.7:7
11995 #, no-wrap
11996 msgid "IPV6"
11997 msgstr "IPV6"
11998
11999 #. type: TH
12000 #: build/C/man7/ipv6.7:7
12001 #, no-wrap
12002 msgid "2011-09-08"
12003 msgstr "2011-09-08"
12004
12005 #. type: Plain text
12006 #: build/C/man7/ipv6.7:10
12007 msgid "ipv6, AF_INET6 - Linux IPv6 protocol implementation"
12008 msgstr "ipv6, AF_INET6 - Linux の IPv6 プロトコル実装"
12009
12010 #. type: Plain text
12011 #: build/C/man7/ipv6.7:16
12012 msgid "I<tcp6_socket>B< = socket(AF_INET6, SOCK_STREAM, 0);>"
12013 msgstr "I<tcp6_socket>B< = socket(AF_INET6, SOCK_STREAM, 0);>"
12014
12015 #. type: Plain text
12016 #: build/C/man7/ipv6.7:18
12017 msgid "I<raw6_socket>B< = socket(AF_INET6, SOCK_RAW, >I<protocol>B<);>"
12018 msgstr "I<raw6_socket>B< = socket(AF_INET6, SOCK_RAW, >I<protocol>B<);>"
12019
12020 #. type: Plain text
12021 #: build/C/man7/ipv6.7:20
12022 msgid "I<udp6_socket>B< = socket(AF_INET6, SOCK_DGRAM, >I<protocol>B<);>"
12023 msgstr "I<udp6_socket>B< = socket(AF_INET6, SOCK_DGRAM, >I<protocol>B<);>"
12024
12025 #. type: Plain text
12026 #: build/C/man7/ipv6.7:27
12027 msgid ""
12028 "Linux 2.2 optionally implements the Internet Protocol, version 6.  This man "
12029 "page contains a description of the IPv6 basic API as implemented by the "
12030 "Linux kernel and glibc 2.1.  The interface is based on the BSD sockets "
12031 "interface; see B<socket>(7)."
12032 msgstr ""
12033 "Linux 2.2 では、Internet Protocol, version 6 を オプションとして実装してい"
12034 "る。 この man ページでは、Linux カーネルと glibc 2.1 での実装に基づいて、 "
12035 "IPv6 の基本的な API を解説する。 インターフェースは BSD ソケットインター"
12036 "フェースをもとにしている。 B<socket>(7)  を参照。"
12037
12038 #. type: Plain text
12039 #: build/C/man7/ipv6.7:32
12040 msgid ""
12041 "The IPv6 API aims to be mostly compatible with the IPv4 API (see B<ip>(7)).  "
12042 "Only differences are described in this man page."
12043 msgstr ""
12044 "IPv6 API は、 IPv4 API (B<ip>(7)  参照) とほぼ互換になることを目指している。 "
12045 "この man ページでは相違点のみを解説する。"
12046
12047 #. type: Plain text
12048 #: build/C/man7/ipv6.7:44
12049 msgid ""
12050 "To bind an B<AF_INET6> socket to any process, the local address should be "
12051 "copied from the I<in6addr_any> variable which has I<in6_addr> type.  In "
12052 "static initializations, B<IN6ADDR_ANY_INIT> may also be used, which expands "
12053 "to a constant expression.  Both of them are in network byte order."
12054 msgstr ""
12055 "B<AF_INET6> ソケットを何らかのプロセスにバインドするには、 ローカルアドレス"
12056 "を I<in6_addr> 型の変数 I<in6addr_any> からコピーしてくる必要がある。 static "
12057 "な初期値 B<IN6ADDR_ANY_INIT> も用いることができ、これは定数式に展開される。 "
12058 "これらの両者はネットワークバイトオーダーである。"
12059
12060 #. type: Plain text
12061 #: build/C/man7/ipv6.7:51
12062 msgid ""
12063 "The IPv6 loopback address (::1) is available in the global "
12064 "I<in6addr_loopback> variable.  For initializations, B<IN6ADDR_LOOPBACK_INIT> "
12065 "should be used."
12066 msgstr ""
12067 "IPv6 のループバックアドレス (::1) は global 変数 I<in6addr_loopback> から取得"
12068 "できる。初期化には B<IN6ADDR_LOOPBACK_INIT> を用いるべきである。"
12069
12070 #. type: Plain text
12071 #: build/C/man7/ipv6.7:58
12072 msgid ""
12073 "IPv4 connections can be handled with the v6 API by using the v4-mapped-on-v6 "
12074 "address type; thus a program only needs to support this API type to support "
12075 "both protocols.  This is handled transparently by the address handling "
12076 "functions in the C library."
12077 msgstr ""
12078 "v4-mapped-on-v6 アドレス型を用いることで、 IPv4 接続も v6 API で扱うことがで"
12079 "きる。 こうすれば、プログラムは v6 の API をサポートするだけで、 両方のプロト"
12080 "コルをサポートできる。 v4-mapped-on-v6 アドレス型は C ライブラリ内部のアドレ"
12081 "スを 扱う関数によって透過的に処理される。"
12082
12083 #. type: Plain text
12084 #: build/C/man7/ipv6.7:63
12085 msgid ""
12086 "IPv4 and IPv6 share the local port space.  When you get an IPv4 connection "
12087 "or packet to a IPv6 socket, its source address will be mapped to v6 and it "
12088 "will be mapped to v6."
12089 msgstr ""
12090 "IPv4 と IPv6 はローカルポート空間を共有する。 IPv4 の接続 (またはパケット) "
12091 "を IPv6 ソケットが取得すると、 発信元アドレスが v6 にマップされ、その接続 (パ"
12092 "ケット) も v6 にマップされる。"
12093
12094 #. type: Plain text
12095 #: build/C/man7/ipv6.7:73
12096 #, no-wrap
12097 msgid ""
12098 "struct sockaddr_in6 {\n"
12099 "    sa_family_t     sin6_family;   /* AF_INET6 */\n"
12100 "    in_port_t       sin6_port;     /* port number */\n"
12101 "    uint32_t        sin6_flowinfo; /* IPv6 flow information */\n"
12102 "    struct in6_addr sin6_addr;     /* IPv6 address */\n"
12103 "    uint32_t        sin6_scope_id; /* Scope ID (new in 2.4) */\n"
12104 "};\n"
12105 msgstr ""
12106 "struct sockaddr_in6 {\n"
12107 "    sa_family_t     sin6_family;   /* AF_INET6 */\n"
12108 "    in_port_t       sin6_port;     /* port number */\n"
12109 "    uint32_t        sin6_flowinfo; /* IPv6 flow information */\n"
12110 "    struct in6_addr sin6_addr;     /* IPv6 address */\n"
12111 "    uint32_t        sin6_scope_id; /* Scope ID (new in 2.4) */\n"
12112 "};\n"
12113
12114 #. type: Plain text
12115 #: build/C/man7/ipv6.7:77
12116 #, no-wrap
12117 msgid ""
12118 "struct in6_addr {\n"
12119 "    unsigned char   s6_addr[16];   /* IPv6 address */\n"
12120 "};\n"
12121 msgstr ""
12122 "struct in6_addr {\n"
12123 "    unsigned char   s6_addr[16];   /* IPv6 address */\n"
12124 "};\n"
12125
12126 #. type: Plain text
12127 #: build/C/man7/ipv6.7:99
12128 msgid ""
12129 "I<sin6_family> is always set to B<AF_INET6>; I<sin6_port> is the protocol "
12130 "port (see I<sin_port> in B<ip>(7)); I<sin6_flowinfo> is the IPv6 flow "
12131 "identifier; I<sin6_addr> is the 128-bit IPv6 address.  I<sin6_scope_id> is "
12132 "an ID depending on the scope of the address.  It is new in Linux 2.4.  Linux "
12133 "only supports it for link scope addresses, in that case I<sin6_scope_id> "
12134 "contains the interface index (see B<netdevice>(7))"
12135 msgstr ""
12136 "I<sin6_family> は常に B<AF_INET6> に設定される。 I<sin6_port> はプロトコル"
12137 "ポートである (B<ip>(7)  の I<sin_port> を参照)。 I<sin6_flowinfo> は IPv6 の"
12138 "フロー指定子 (flow identifier) である。 I<sin6_addr> は 128 ビットの IPv6 ア"
12139 "ドレスである。 I<sin6_scope_id> はアドレスのスコープに依存した ID である (こ"
12140 "れは Linux 2.4 で導入された)。 Linux の場合は、これはリンクスコープアドレスで"
12141 "しかサポートされない。 この場合 I<sin6_scope_id> にはインターフェースのイン"
12142 "デックスが含まれることになる (B<netdevice>(7)  を参照)。"
12143
12144 #. type: Plain text
12145 #: build/C/man7/ipv6.7:105
12146 msgid ""
12147 "IPv6 supports several address types: unicast to address a single host, "
12148 "multicast to address a group of hosts, anycast to address the nearest member "
12149 "of a group of hosts (not implemented in Linux), IPv4-on-IPv6 to address a "
12150 "IPv4 host, and other reserved address types."
12151 msgstr ""
12152 "IPv6 は何種類かのアドレスタイプをサポートしている。 単一のホストをアドレスす"
12153 "るための unicast、 ホストのグループをアドレスするための multicast、 ホストの"
12154 "グループ中で最も近くにいるものをアドレスするための anycast (これは Linux では"
12155 "実装されていない)、 IPv4 ホストをアドレスするための IPv4-on-IPv6。 他にも予約"
12156 "済みのアドレスタイプがある。"
12157
12158 #. type: Plain text
12159 #: build/C/man7/ipv6.7:111
12160 msgid ""
12161 "The address notation for IPv6 is a group of 8 4-digit hexadecimal numbers, "
12162 "separated with a \\(aq:\\(aq.  \\&\"::\" stands for a string of 0 bits.  "
12163 "Special addresses are ::1 for loopback and ::FFFF:E<lt>IPv4 addressE<gt> for "
12164 "IPv4-mapped-on-IPv6."
12165 msgstr ""
12166 "IPv6 でのアドレス表記は 4 桁の 16 進数 8 個からなり、 \\(aq:\\(aq は区切り文"
12167 "字はで、\"::\" は 0 ビットの文字列を表す。 特殊なアドレスとして、ループバック"
12168 "を表す ::1、 IPv4-mapped-on-IPv6 を表す ::FFFF::E<lt>IPv4 アドレスE<gt> があ"
12169 "る。"
12170
12171 #. type: Plain text
12172 #: build/C/man7/ipv6.7:113
12173 msgid "The port space of IPv6 is shared with IPv4."
12174 msgstr "IPv6 のポート空間は IPv4 と共有されている。"
12175
12176 #. type: Plain text
12177 #: build/C/man7/ipv6.7:121
12178 msgid ""
12179 "IPv6 supports some protocol-specific socket options that can be set with "
12180 "B<setsockopt>(2)  and read with B<getsockopt>(2).  The socket option level "
12181 "for IPv6 is B<IPPROTO_IPV6>.  A boolean integer flag is zero when it is "
12182 "false, otherwise true."
12183 msgstr ""
12184 "IPv6 はプロトコル固有のソケットオプションをいくつかサポートしている。 これら"
12185 "は B<setsockopt>(2)  で設定でき、 B<getsockopt>(2)  で取得できる。 IPv6 のソ"
12186 "ケットオプションレベルは B<IPPROTO_IPV6> である。 ブール整数のフラグは、0 が"
12187 "偽であり、それ以外は真である。"
12188
12189 #. type: TP
12190 #: build/C/man7/ipv6.7:121
12191 #, no-wrap
12192 msgid "B<IPV6_ADDRFORM>"
12193 msgstr "B<IPV6_ADDRFORM>"
12194
12195 #. type: Plain text
12196 #: build/C/man7/ipv6.7:135
12197 msgid ""
12198 "Turn an B<AF_INET6> socket into a socket of a different address family.  "
12199 "Only B<AF_INET> is currently supported for that.  It is only allowed for "
12200 "IPv6 sockets that are connected and bound to a v4-mapped-on-v6 address.  The "
12201 "argument is a pointer to an integer containing B<AF_INET>.  This is useful "
12202 "to pass v4-mapped sockets as file descriptors to programs that don't know "
12203 "how to deal with the IPv6 API."
12204 msgstr ""
12205 "B<AF_INET6> ソケットを別のアドレスファミリーのソケットに変える。 現在は "
12206 "B<AF_INET> のみが変更先のアドレスファミリーとしてサポートされている。 これが"
12207 "許可されるのは、IPv6 が接続され、 v4-mapped-on-v6 アドレスにバインドされた場"
12208 "合に限られる。 引き数は B<AF_INET> が入っている整数へのポインタである。 v4-"
12209 "mapped ソケットを、IPv6 API を扱えないプログラムに対して ファイルディスクリプ"
12210 "ターとして渡す場合に便利。"
12211
12212 #. type: TP
12213 #: build/C/man7/ipv6.7:135
12214 #, no-wrap
12215 msgid "B<IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP>"
12216 msgstr "B<IPV6_ADD_MEMBERSHIP, IPV6_DROP_MEMBERSHIP>"
12217
12218 #.  FIXME IPV6_CHECKSUM is not documented, and probably should be
12219 #.  FIXME IPV6_JOIN_ANYCAST is not documented, and probably should be
12220 #.  FIXME IPV6_LEAVE_ANYCAST is not documented, and probably should be
12221 #.  FIXME IPV6_RECVPKTINFO is not documented, and probably should be
12222 #.  FIXME IPV6_2292PKTINFO is not documented, and probably should be
12223 #.  FIXME there are probably many other IPV6_* socket options that
12224 #.  should be documented
12225 #. type: Plain text
12226 #: build/C/man7/ipv6.7:148
12227 msgid ""
12228 "Control membership in multicast groups.  Argument is a pointer to a I<struct "
12229 "ipv6_mreq> structure."
12230 msgstr ""
12231 "multicast グループのメンバーを制御する。 引き数は I<struct ipv6_mreq> 構造体"
12232 "へのポインタ。"
12233
12234 #. type: TP
12235 #: build/C/man7/ipv6.7:148
12236 #, no-wrap
12237 msgid "B<IPV6_MTU>"
12238 msgstr "B<IPV6_MTU>"
12239
12240 #. type: Plain text
12241 #: build/C/man7/ipv6.7:154
12242 msgid ""
12243 "Set the MTU to be used for the socket.  The MTU is limited by the device MTU "
12244 "or the path MTU when path MTU discovery is enabled.  Argument is a pointer "
12245 "to integer."
12246 msgstr ""
12247 "そのソケットに対して用いる MTU の値を設定する。 MTU の大きさは、 そのデバイス"
12248 "の MTU または (Path MTU Discovery が可能なら) その経路の MTU の大きさ以下でな"
12249 "ければならない。 引き数は整数へのポインタ。"
12250
12251 #. type: TP
12252 #: build/C/man7/ipv6.7:154
12253 #, no-wrap
12254 msgid "B<IPV6_MTU_DISCOVER>"
12255 msgstr "B<IPV6_MTU_DISCOVER>"
12256
12257 #. type: Plain text
12258 #: build/C/man7/ipv6.7:162
12259 msgid ""
12260 "Control path-MTU discovery on the socket.  See B<IP_MTU_DISCOVER> in B<ip>"
12261 "(7)  for details."
12262 msgstr ""
12263 "そのソケットでの Path MTU Discovery を制御する。 詳細は B<ip>(7)  の "
12264 "B<IP_MTU_DISCOVER> を参照。"
12265
12266 #. type: TP
12267 #: build/C/man7/ipv6.7:162
12268 #, no-wrap
12269 msgid "B<IPV6_MULTICAST_HOPS>"
12270 msgstr "B<IPV6_MULTICAST_HOPS>"
12271
12272 #. type: Plain text
12273 #: build/C/man7/ipv6.7:169
12274 msgid ""
12275 "Set the multicast hop limit for the socket.  Argument is a pointer to an "
12276 "integer.  -1 in the value means use the route default, otherwise it should "
12277 "be between 0 and 255."
12278 msgstr ""
12279 "そのソケットでの multicast の hop 数の上限値を設定する。 引き数は整数へのポイ"
12280 "ンタである。 -1 を指定すると経路のデフォルトを用いることを意味する。 それ以外"
12281 "の場合は 0 から 255 の範囲を指定する。"
12282
12283 #. type: TP
12284 #: build/C/man7/ipv6.7:169
12285 #, no-wrap
12286 msgid "B<IPV6_MULTICAST_IF>"
12287 msgstr "B<IPV6_MULTICAST_IF>"
12288
12289 #. type: Plain text
12290 #: build/C/man7/ipv6.7:181
12291 msgid ""
12292 "Set the device for outgoing multicast packets on the socket.  This is only "
12293 "allowed for B<SOCK_DGRAM> and B<SOCK_RAW> socket.  The argument is a pointer "
12294 "to an interface index (see B<netdevice>(7))  in an integer."
12295 msgstr ""
12296 "そのソケットでの、送信 multicast パケットに用いるデバイスを設定する。 これは "
12297 "B<SOCK_DGRAM> および B<SOCK_RAW> 各ソケットでのみ許される。 引き数はインター"
12298 "フェースのインデックスの整数値 (B<netdevice>(7)  を参照) へのポインタである。"
12299
12300 #. type: TP
12301 #: build/C/man7/ipv6.7:181
12302 #, no-wrap
12303 msgid "B<IPV6_MULTICAST_LOOP>"
12304 msgstr "B<IPV6_MULTICAST_LOOP>"
12305
12306 #. type: Plain text
12307 #: build/C/man7/ipv6.7:185
12308 msgid ""
12309 "Control whether the socket sees multicast packets that it has send itself.  "
12310 "Argument is a pointer to boolean."
12311 msgstr ""
12312 "ソケットが、自分自身の送信した multicast パケットを監視するかどうかを制御す"
12313 "る。 引き数はブール値へのポインタ。"
12314
12315 #. type: TP
12316 #: build/C/man7/ipv6.7:185
12317 #, no-wrap
12318 msgid "B<IPV6_PKTINFO>"
12319 msgstr "B<IPV6_PKTINFO>"
12320
12321 #. type: Plain text
12322 #: build/C/man7/ipv6.7:196
12323 msgid ""
12324 "Set delivery of the B<IPV6_PKTINFO> control message on incoming datagrams.  "
12325 "Only allowed for B<SOCK_DGRAM> or B<SOCK_RAW> sockets.  Argument is a "
12326 "pointer to a boolean value in an integer."
12327 msgstr ""
12328 "データグラムの到着時における B<IPV6_PKTINFO> 制御メッセージを配送するかどうか"
12329 "を設定する。 B<SOCK_DGRAM> ソケットまたは B<SOCK_RAW> ソケットに対してのみ許"
12330 "可される。 引き数はブール値の入った整数。"
12331
12332 #. type: Plain text
12333 #: build/C/man7/ipv6.7:199
12334 msgid ""
12335 "B<IPV6_RTHDR, IPV6_AUTHHDR, IPV6_DSTOPTS, IPV6_HOPOPTS, IPV6_FLOWINFO, "
12336 "IPV6_HOPLIMIT>"
12337 msgstr ""
12338 "B<IPV6_RTHDR, IPV6_AUTHHDR, IPV6_DSTOPTS, IPV6_HOPOPTS, IPV6_FLOWINFO, "
12339 "IPV6_HOPLIMIT>"
12340
12341 #. type: Plain text
12342 #: build/C/man7/ipv6.7:224
12343 msgid ""
12344 "Set delivery of control messages for incoming datagrams containing extension "
12345 "headers from the received packet.  B<IPV6_RTHDR> delivers the routing "
12346 "header, B<IPV6_AUTHHDR> delivers the authentication header, B<IPV6_DSTOPTS> "
12347 "delivers the destination options, B<IPV6_HOPOPTS> delivers the hop options, "
12348 "B<IPV6_FLOWINFO> delivers an integer containing the flow ID, "
12349 "B<IPV6_HOPLIMIT> delivers an integer containing the hop count of the "
12350 "packet.  The control messages have the same type as the socket option.  All "
12351 "these header options can also be set for outgoing packets by putting the "
12352 "appropriate control message into the control buffer of B<sendmsg>(2).  Only "
12353 "allowed for B<SOCK_DGRAM> or B<SOCK_RAW> sockets.  Argument is a pointer to "
12354 "a boolean value."
12355 msgstr ""
12356 "受信パケットのデータグラムに拡張ヘッダが含まれている場合の、 制御メッセージの"
12357 "配送を設定する。 B<IPV6_RTHDR>: routing ヘッダを配送するかどうか。 "
12358 "B<IPV6_AUTHHDR>: authentication ヘッダを配送するかどうか。 B<IPV6_DSTOPTS>: "
12359 "destination オプションを配送するかどうか。 B<IPV6_HOPOPTS>: hop オプションを"
12360 "配送するかどうか。 B<IPV6_FLOWINFO>: flow ID を含む整数を配送するかどうか。 "
12361 "B<IPV6_HOPLIMIT>: パケットの hop カウントを含む整数を配送するかどうか。 制御"
12362 "メッセージはソケットオプションのものと同じタイプを持つ。 これらのすべてのヘッ"
12363 "ダオプションは、 適切な制御メッセージを B<sendmsg>(2)  の制御バッファーに書き"
12364 "こめば、 送信パケットにでも設定できる。 B<SOCK_DGRAM> ソケットまたは "
12365 "B<SOCK_RAW> ソケットでのみ許される。引き数はブール値へのポインタ。"
12366
12367 #. type: TP
12368 #: build/C/man7/ipv6.7:224
12369 #, no-wrap
12370 msgid "B<IPV6_RECVERR>"
12371 msgstr "B<IPV6_RECVERR>"
12372
12373 #. type: Plain text
12374 #: build/C/man7/ipv6.7:233
12375 msgid ""
12376 "Control receiving of asynchronous error options.  See B<IP_RECVERR> in B<ip>"
12377 "(7)  for details.  Argument is a pointer to boolean."
12378 msgstr ""
12379 "非同期エラー (asynchronous error) オプションの受信を制御する。 詳細は B<ip>"
12380 "(7)  の B<IP_RECVERR> を参照。 引き数はブール値へのポインタ。"
12381
12382 #. type: TP
12383 #: build/C/man7/ipv6.7:233
12384 #, no-wrap
12385 msgid "B<IPV6_ROUTER_ALERT>"
12386 msgstr "B<IPV6_ROUTER_ALERT>"
12387
12388 #. type: Plain text
12389 #: build/C/man7/ipv6.7:246
12390 msgid ""
12391 "Pass forwarded packets containing a router alert hop-by-hop option to this "
12392 "socket.  Only allowed for SOCK_RAW sockets.  The tapped packets are not "
12393 "forwarded by the kernel, it is the user's responsibility to send them out "
12394 "again.  Argument is a pointer to an integer.  A positive integer indicates a "
12395 "router alert option value to intercept.  Packets carrying a router alert "
12396 "option with a value field containing this integer will be delivered to the "
12397 "socket.  A negative integer disables delivery of packets with router alert "
12398 "options to this socket."
12399 msgstr ""
12400 "このソケットで、router alert hop-by-hop オプションの付いた転送パケットを 通す"
12401 "かどうかを制御する。 B<SOCK_RAW> ソケットでのみ許可される。 tap されたパケッ"
12402 "トはカーネルによっては転送されない。そうしたパケットを 再度送信するのはユー"
12403 "ザーの責任である。 引き数は整数 (integer) へのポインタ。 正の整数は傍受を行"
12404 "う router alert オプション値を示す。 オプション値がこの整数である router "
12405 "alert オプションの付いたパケットは ソケットに配送される。負の整数を指定する"
12406 "と、このソケットへの router alert オプションの付いたパケットの配送が行われな"
12407 "い。"
12408
12409 #. type: TP
12410 #: build/C/man7/ipv6.7:246
12411 #, no-wrap
12412 msgid "B<IPV6_UNICAST_HOPS>"
12413 msgstr "B<IPV6_UNICAST_HOPS>"
12414
12415 #. type: Plain text
12416 #: build/C/man7/ipv6.7:252
12417 msgid ""
12418 "Set the unicast hop limit for the socket.  Argument is a pointer to an "
12419 "integer.  -1 in the value means use the route default, otherwise it should "
12420 "be between 0 and 255."
12421 msgstr ""
12422 "そのソケットでの unicast の hop 数の上限値を設定する。 引き数は整数へのポイン"
12423 "タである。 -1 を指定すると経路のデフォルトを用いることを意味する。 それ以外の"
12424 "場合は 0 から 255 の範囲を指定する。"
12425
12426 #. type: TP
12427 #: build/C/man7/ipv6.7:252
12428 #, no-wrap
12429 msgid "B<IPV6_V6ONLY> (since Linux 2.4.21 and 2.6)"
12430 msgstr "B<IPV6_V6ONLY> (Linux 2.4.21 以降および 2.6 以降)"
12431
12432 #.  See RFC 3493
12433 #. type: Plain text
12434 #: build/C/man7/ipv6.7:259
12435 msgid ""
12436 "If this flag is set to true (nonzero), then the socket is restricted to "
12437 "sending and receiving IPv6 packets only.  In this case, an IPv4 and an IPv6 "
12438 "application can bind to a single port at the same time."
12439 msgstr ""
12440 "このフラグを真 (0 以外) に設定すると、そのソケットは IPv6 パケットだけを 送受"
12441 "信するように制限される。 この場合、IPv4 アプリケーションと IPv6 アプリケー"
12442 "ションが同時に 一つのポートをバインドできる。"
12443
12444 #. type: Plain text
12445 #: build/C/man7/ipv6.7:263
12446 msgid ""
12447 "If this flag is set to false (zero), then the socket can be used to send and "
12448 "receive packets to and from an IPv6 address or an IPv4-mapped IPv6 address."
12449 msgstr ""
12450 "このフラグを偽 (0) に設定すると、そのソケットはパケットの送受信に IPv6 アドレ"
12451 "スと IPv4-mapped IPv6 アドレスの両方を使用できる。"
12452
12453 #. type: Plain text
12454 #: build/C/man7/ipv6.7:265
12455 msgid "The argument is a pointer to a boolean value in an integer."
12456 msgstr "引き数はブール値の入った整数へのポインタである。"
12457
12458 #.  FLOWLABEL_MGR, FLOWINFO_SEND
12459 #. type: Plain text
12460 #: build/C/man7/ipv6.7:270
12461 msgid ""
12462 "The default value for this flag is defined by the contents of the file I</"
12463 "proc/sys/net/ipv6/bindv6only>.  The default value for that file is 0 (false)."
12464 msgstr ""
12465 "このフラグのデフォルト値はファイル I</proc/sys/net/ipv6/bindv6only> の内容に"
12466 "より定義される。 このファイルのデフォルト値は 0 (偽) である。"
12467
12468 #. type: Plain text
12469 #: build/C/man7/ipv6.7:275
12470 msgid ""
12471 "The older I<libinet6> libc5 based IPv6 API implementation for Linux is not "
12472 "described here and may vary in details."
12473 msgstr ""
12474 "IPv6 API を libc5 ベースで Linux 向けに実装した、以前の I<libinet6> について"
12475 "はここでは記述していない。 おそらく細かいところには相違点があるだろう。"
12476
12477 #. type: Plain text
12478 #: build/C/man7/ipv6.7:291
12479 msgid ""
12480 "Linux 2.4 will break binary compatibility for the I<sockaddr_in6> for 64-bit "
12481 "hosts by changing the alignment of I<in6_addr> and adding an additional "
12482 "I<sin6_scope_id> field.  The kernel interfaces stay compatible, but a "
12483 "program including I<sockaddr_in6> or I<in6_addr> into other structures may "
12484 "not be.  This is not a problem for 32-bit hosts like i386."
12485 msgstr ""
12486 "Linux 2.4 では 64 ビットのホストに対して I<sockaddr_in6> のバイナリ互換性が保"
12487 "たれていない。 I<in6_addr> のアラインメントが変更され、また I<sin6_scope_id> "
12488 "フィールドが新たに追加されたからである。 カーネルインターフェースの互換性は保"
12489 "たれているが、 I<sockaddr_in6> や I<in6_addr> を他の構造体に含んでいるような"
12490 "プログラムでは 保たれないかもしれない。 これは i386 のような 32 ビットのホス"
12491 "トでは問題にならない。"
12492
12493 #. type: Plain text
12494 #: build/C/man7/ipv6.7:299
12495 msgid ""
12496 "The I<sin6_flowinfo> field is new in Linux 2.4.  It is transparently passed/"
12497 "read by the kernel when the passed address length contains it.  Some "
12498 "programs that pass a longer address buffer and then check the outgoing "
12499 "address length may break."
12500 msgstr ""
12501 "I<sin6_flowinfo> フィールドは Linux 2.4 で登場した。 これが渡されたアドレス長"
12502 "に含まれていると、 カーネルに透過的に渡され、読まれる。 より長いアドレスバッ"
12503 "ファを渡し、 そして送信アドレスの長さをチェックするようなプログラムは うまく"
12504 "動かないかもしれない。"
12505
12506 #. type: Plain text
12507 #: build/C/man7/ipv6.7:309
12508 msgid ""
12509 "The I<sockaddr_in6> structure is bigger than the generic I<sockaddr>.  "
12510 "Programs that assume that all address types can be stored safely in a "
12511 "I<struct sockaddr> need to be changed to use I<struct sockaddr_storage> for "
12512 "that instead."
12513 msgstr ""
12514 "I<sockaddr_in6> 構造体はジェネリックな I<sockaddr> よりも大きい。 すべてのア"
12515 "ドレスタイプが I<struct sockaddr> の中に安全に納められると仮定しているプログ"
12516 "ラムは、代わりに I<struct sockaddr_storage> を用いるように変更する必要があ"
12517 "る。"
12518
12519 #. type: Plain text
12520 #: build/C/man7/ipv6.7:314
12521 msgid ""
12522 "The IPv6 extended API as in RFC\\ 2292 is currently only partly implemented; "
12523 "although the 2.2 kernel has near complete support for receiving options, the "
12524 "macros for generating IPv6 options are missing in glibc 2.1."
12525 msgstr ""
12526 "IPv6 拡張 API は、現在まだ RFC\\ 2292 を完全には実装していない。 2.2 カーネル"
12527 "は受信オプションをほぼ完全にサポートサポートしているが、 glibc2.1 には IPv6 "
12528 "オプションを生成するマクロが存在していない。"
12529
12530 #. type: Plain text
12531 #: build/C/man7/ipv6.7:316
12532 msgid "IPSec support for EH and AH headers is missing."
12533 msgstr "EH および AH ヘッダ での IPSec のサポートは存在しない。"
12534
12535 #. type: Plain text
12536 #: build/C/man7/ipv6.7:318
12537 msgid "Flow label management is not complete and not documented here."
12538 msgstr "フローラベル管理はまだ完全でなく、ここにも記述されていない。"
12539
12540 #. type: Plain text
12541 #: build/C/man7/ipv6.7:320
12542 msgid "This man page is not complete."
12543 msgstr "この man ページはまだ完成していない。"
12544
12545 #. type: Plain text
12546 #: build/C/man7/ipv6.7:323
12547 msgid "B<cmsg>(3), B<ip>(7)"
12548 msgstr "B<cmsg>(3), B<ip>(7)"
12549
12550 #. type: Plain text
12551 #: build/C/man7/ipv6.7:326
12552 msgid "RFC\\ 2553: IPv6 BASIC API.  Linux tries to be compliant to this."
12553 msgstr ""
12554 "RFC\\ 2553: IPv6 BASIC API.  Linux はこの RFC に準拠するようにしている。"
12555
12556 #. type: Plain text
12557 #: build/C/man7/ipv6.7:328
12558 msgid "RFC\\ 2460: IPv6 specification."
12559 msgstr "RFC\\ 2460: IPv6 specification."
12560
12561 #. type: TH
12562 #: build/C/man7/netdevice.7:15
12563 #, no-wrap
12564 msgid "NETDEVICE"
12565 msgstr "NETDEVICE"
12566
12567 #. type: TH
12568 #: build/C/man7/netdevice.7:15
12569 #, no-wrap
12570 msgid "2012-04-26"
12571 msgstr "2012-04-26"
12572
12573 #. type: Plain text
12574 #: build/C/man7/netdevice.7:18
12575 msgid "netdevice - Low level access to Linux network devices"
12576 msgstr "netdevice - Linux ネットワークデバイスへの低レベルアクセス"
12577
12578 #. type: Plain text
12579 #: build/C/man7/netdevice.7:20
12580 msgid "B<#include E<lt>sys/ioctl.hE<gt>>"
12581 msgstr "B<#include E<lt>sys/ioctl.hE<gt>>"
12582
12583 #. type: Plain text
12584 #: build/C/man7/netdevice.7:22
12585 msgid "B<#include E<lt>net/if.hE<gt>>"
12586 msgstr "B<#include E<lt>net/if.hE<gt>>"
12587
12588 #. type: Plain text
12589 #: build/C/man7/netdevice.7:25
12590 msgid ""
12591 "This man page describes the sockets interface which is used to configure "
12592 "network devices."
12593 msgstr ""
12594 "この man ページでは、ネットワークデバイスを設定するために 用いるソケットイン"
12595 "ターフェースについて解説する。"
12596
12597 #. type: Plain text
12598 #: build/C/man7/netdevice.7:32
12599 msgid ""
12600 "Linux supports some standard ioctls to configure network devices.  They can "
12601 "be used on any socket's file descriptor regardless of the family or type.  "
12602 "They pass an I<ifreq> structure:"
12603 msgstr ""
12604 "Linux はネットワークデバイスを設定するための標準的な ioctl を いくつか備えて"
12605 "いる。これらはどんなソケットのファイルディスクリプタにも 用いることができる。"
12606 "ファミリーやタイプは何でもよい。 これらの ioctl は I<ifreq> 構造体を渡す。"
12607
12608 #. type: Plain text
12609 #: build/C/man7/netdevice.7:53
12610 #, no-wrap
12611 msgid ""
12612 "struct ifreq {\n"
12613 "    char ifr_name[IFNAMSIZ]; /* Interface name */\n"
12614 "    union {\n"
12615 "        struct sockaddr ifr_addr;\n"
12616 "        struct sockaddr ifr_dstaddr;\n"
12617 "        struct sockaddr ifr_broadaddr;\n"
12618 "        struct sockaddr ifr_netmask;\n"
12619 "        struct sockaddr ifr_hwaddr;\n"
12620 "        short           ifr_flags;\n"
12621 "        int             ifr_ifindex;\n"
12622 "        int             ifr_metric;\n"
12623 "        int             ifr_mtu;\n"
12624 "        struct ifmap    ifr_map;\n"
12625 "        char            ifr_slave[IFNAMSIZ];\n"
12626 "        char            ifr_newname[IFNAMSIZ];\n"
12627 "        char           *ifr_data;\n"
12628 "    };\n"
12629 "};\n"
12630 msgstr ""
12631 "struct ifreq {\n"
12632 "    char ifr_name[IFNAMSIZ]; /* Interface name */\n"
12633 "    union {\n"
12634 "        struct sockaddr ifr_addr;\n"
12635 "        struct sockaddr ifr_dstaddr;\n"
12636 "        struct sockaddr ifr_broadaddr;\n"
12637 "        struct sockaddr ifr_netmask;\n"
12638 "        struct sockaddr ifr_hwaddr;\n"
12639 "        short           ifr_flags;\n"
12640 "        int             ifr_ifindex;\n"
12641 "        int             ifr_metric;\n"
12642 "        int             ifr_mtu;\n"
12643 "        struct ifmap    ifr_map;\n"
12644 "        char            ifr_slave[IFNAMSIZ];\n"
12645 "        char            ifr_newname[IFNAMSIZ];\n"
12646 "        char           *ifr_data;\n"
12647 "    };\n"
12648 "};\n"
12649
12650 #. type: Plain text
12651 #: build/C/man7/netdevice.7:61
12652 #, no-wrap
12653 msgid ""
12654 "struct ifconf {\n"
12655 "    int                 ifc_len; /* size of buffer */\n"
12656 "    union {\n"
12657 "        char           *ifc_buf; /* buffer address */\n"
12658 "        struct ifreq   *ifc_req; /* array of structures */\n"
12659 "    };\n"
12660 "};\n"
12661 msgstr ""
12662 "struct ifconf {\n"
12663 "    int                 ifc_len; /* size of buffer */\n"
12664 "    union {\n"
12665 "        char           *ifc_buf; /* buffer address */\n"
12666 "        struct ifreq   *ifc_req; /* array of structures */\n"
12667 "    };\n"
12668 "};\n"
12669
12670 #. type: Plain text
12671 #: build/C/man7/netdevice.7:69
12672 msgid ""
12673 "Normally, the user specifies which device to affect by setting I<ifr_name> "
12674 "to the name of the interface.  All other members of the structure may share "
12675 "memory."
12676 msgstr ""
12677 "通常、ユーザーによる設定対象デバイスの指定は、 I<ifr_name> にインターフェース"
12678 "の名前をセットすることによって行う。 他の構造体の全てのメンバは、メモリを共有"
12679 "する。"
12680
12681 #. type: Plain text
12682 #: build/C/man7/netdevice.7:77
12683 msgid ""
12684 "If an ioctl is marked as privileged then using it requires an effective user "
12685 "ID of 0 or the B<CAP_NET_ADMIN> capability.  If this is not the case "
12686 "B<EPERM> will be returned."
12687 msgstr ""
12688 "「特権が必要」と記述されている ioctl を実行するには、 実効ユーザー ID が 0 "
12689 "か、 B<CAP_NET_ADMIN> 権限が必要である。これが満たされていない場合は "
12690 "B<EPERM> が返される。"
12691
12692 #. type: TP
12693 #: build/C/man7/netdevice.7:77
12694 #, no-wrap
12695 msgid "B<SIOCGIFNAME>"
12696 msgstr "B<SIOCGIFNAME>"
12697
12698 #. type: Plain text
12699 #: build/C/man7/netdevice.7:85
12700 msgid ""
12701 "Given the I<ifr_ifindex>, return the name of the interface in I<ifr_name>.  "
12702 "This is the only ioctl which returns its result in I<ifr_name>."
12703 msgstr ""
12704 "I<ifr_ifindex> を受け取り、インターフェースの名前を I<ifr_name> に入れて返"
12705 "す。これは結果を I<ifr_name> として返す唯一の ioctl である。"
12706
12707 #. type: TP
12708 #: build/C/man7/netdevice.7:85
12709 #, no-wrap
12710 msgid "B<SIOCGIFINDEX>"
12711 msgstr "B<SIOCGIFINDEX>"
12712
12713 #. type: Plain text
12714 #: build/C/man7/netdevice.7:89
12715 msgid "Retrieve the interface index of the interface into I<ifr_ifindex>."
12716 msgstr ""
12717 "インターフェースの interface index を取得し、 I<ifr_ifindex> に入れて返す。"
12718
12719 #. type: TP
12720 #: build/C/man7/netdevice.7:89
12721 #, no-wrap
12722 msgid "B<SIOCGIFFLAGS>, B<SIOCSIFFLAGS>"
12723 msgstr "B<SIOCGIFFLAGS>, B<SIOCSIFFLAGS>"
12724
12725 #. type: Plain text
12726 #: build/C/man7/netdevice.7:94
12727 msgid ""
12728 "Get or set the active flag word of the device.  I<ifr_flags> contains a bit "
12729 "mask of the following values:"
12730 msgstr ""
12731 "デバイスの active フラグワードを取得または設定する。 I<ifr_flags> には以下の"
12732 "値のビットマスクが入る。"
12733
12734 #. type: tbl table
12735 #: build/C/man7/netdevice.7:98
12736 #, no-wrap
12737 msgid "Device flags\n"
12738 msgstr "デバイスフラグ\n"
12739
12740 #. type: tbl table
12741 #: build/C/man7/netdevice.7:99
12742 #, no-wrap
12743 msgid "IFF_UP:Interface is running.\n"
12744 msgstr "IFF_UP:インターフェースは動作中。\n"
12745
12746 #. type: tbl table
12747 #: build/C/man7/netdevice.7:100
12748 #, no-wrap
12749 msgid "IFF_BROADCAST:Valid broadcast address set.\n"
12750 msgstr "IFF_BROADCAST:有効なブロードキャストアドレスがセットされている。\n"
12751
12752 #. type: tbl table
12753 #: build/C/man7/netdevice.7:101
12754 #, no-wrap
12755 msgid "IFF_DEBUG:Internal debugging flag.\n"
12756 msgstr "IFF_DEBUG:内部のデバッグフラグ。\n"
12757
12758 #. type: tbl table
12759 #: build/C/man7/netdevice.7:102
12760 #, no-wrap
12761 msgid "IFF_LOOPBACK:Interface is a loopback interface.\n"
12762 msgstr "IFF_LOOPBACK:インターフェースはループバックである。\n"
12763
12764 #. type: tbl table
12765 #: build/C/man7/netdevice.7:103
12766 #, no-wrap
12767 msgid "IFF_POINTOPOINT:Interface is a point-to-point link.\n"
12768 msgstr "IFF_POINTOPOINT:インターフェースは point-to-point リンクである。\n"
12769
12770 #. type: tbl table
12771 #: build/C/man7/netdevice.7:104
12772 #, no-wrap
12773 msgid "IFF_RUNNING:Resources allocated.\n"
12774 msgstr "IFF_RUNNING:リソースが割り当て済み。\n"
12775
12776 #. type: tbl table
12777 #: build/C/man7/netdevice.7:105
12778 #, no-wrap
12779 msgid "IFF_NOARP:No arp protocol, L2 destination address not set.\n"
12780 msgstr "IFF_NOARP:arp プロトコルがない。\n"
12781
12782 #. type: tbl table
12783 #: build/C/man7/netdevice.7:106
12784 #, no-wrap
12785 msgid "IFF_PROMISC:Interface is in promiscuous mode.\n"
12786 msgstr "IFF_PROMISC:インターフェースは promiscuous モードである。\n"
12787
12788 #. type: tbl table
12789 #: build/C/man7/netdevice.7:107
12790 #, no-wrap
12791 msgid "IFF_NOTRAILERS:Avoid use of trailers.\n"
12792 msgstr "IFF_NOTRAILERS:trailer の利用を避ける。\n"
12793
12794 #. type: tbl table
12795 #: build/C/man7/netdevice.7:108
12796 #, no-wrap
12797 msgid "IFF_ALLMULTI:Receive all multicast packets.\n"
12798 msgstr "IFF_ALLMULTI:全てのマルチキャストパケットを受信する。\n"
12799
12800 #. type: tbl table
12801 #: build/C/man7/netdevice.7:109
12802 #, no-wrap
12803 msgid "IFF_MASTER:Master of a load balancing bundle.\n"
12804 msgstr "IFF_MASTER:負荷分散グループのマスターである。\n"
12805
12806 #. type: tbl table
12807 #: build/C/man7/netdevice.7:110
12808 #, no-wrap
12809 msgid "IFF_SLAVE:Slave of a load balancing bundle.\n"
12810 msgstr "IFF_SLAVE:負荷分散グループのスレーブである。\n"
12811
12812 #. type: tbl table
12813 #: build/C/man7/netdevice.7:111
12814 #, no-wrap
12815 msgid "IFF_MULTICAST:Supports multicast\n"
12816 msgstr "IFF_MULTICAST:マルチキャストをサポートしている。\n"
12817
12818 #. type: tbl table
12819 #: build/C/man7/netdevice.7:112
12820 #, no-wrap
12821 msgid "IFF_PORTSEL:Is able to select media type via ifmap.\n"
12822 msgstr "IFF_PORTSEL:ifmap によってメディアタイプを選択できる。\n"
12823
12824 #. type: tbl table
12825 #: build/C/man7/netdevice.7:113
12826 #, no-wrap
12827 msgid "IFF_AUTOMEDIA:Auto media selection active.\n"
12828 msgstr "IFF_AUTOMEDIA:自動メディア選択が有効になっている。\n"
12829
12830 #. type: tbl table
12831 #: build/C/man7/netdevice.7:114
12832 #, no-wrap
12833 msgid "IFF_DYNAMIC:T{\n"
12834 msgstr "IFF_DYNAMIC:T{\n"
12835
12836 #. type: tbl table
12837 #: build/C/man7/netdevice.7:115
12838 #, no-wrap
12839 msgid "The addresses are lost when the interface goes down.\n"
12840 msgstr "このインターフェースが閉じると、アドレスは失われる。\n"
12841
12842 #. type: tbl table
12843 #: build/C/man7/netdevice.7:116
12844 #, no-wrap
12845 msgid "T}\n"
12846 msgstr "T}\n"
12847
12848 #. type: tbl table
12849 #: build/C/man7/netdevice.7:117
12850 #, no-wrap
12851 msgid "IFF_LOWER_UP:Driver signals L1 up (since Linux 2.6.17)\n"
12852 msgstr "IFF_LOWER_UP:ドライバからの L1 アップの通知 (Linux 2.6.17 以降)\n"
12853
12854 #. type: tbl table
12855 #: build/C/man7/netdevice.7:118
12856 #, no-wrap
12857 msgid "IFF_DORMANT:Driver signals dormant (since Linux 2.6.17)\n"
12858 msgstr "IFF_DORMANT:ドライバからの休止状態の通知 (Linux 2.6.17 以降)\n"
12859
12860 #. type: tbl table
12861 #: build/C/man7/netdevice.7:119
12862 #, no-wrap
12863 msgid "IFF_ECHO:Echo sent packets (since Linux 2.6.25)\n"
12864 msgstr "IFF_ECHO:送られたパケットをエコーする (Linux 2.6.25 以降)\n"
12865
12866 #. type: Plain text
12867 #: build/C/man7/netdevice.7:125
12868 msgid ""
12869 "Setting the active flag word is a privileged operation, but any process may "
12870 "read it."
12871 msgstr ""
12872 "active フラグワードの設定は特権が必要な操作である。 しかし読み出しはどんなプ"
12873 "ロセスからも可能である。"
12874
12875 #. type: TP
12876 #: build/C/man7/netdevice.7:125
12877 #, no-wrap
12878 msgid "B<SIOCGIFPFLAGS>, B<SIOCSIFPFLAGS>"
12879 msgstr "B<SIOCGIFPFLAGS>, B<SIOCSIFPFLAGS>"
12880
12881 #. type: Plain text
12882 #: build/C/man7/netdevice.7:130
12883 msgid ""
12884 "Get or set extended (private) flags for the device.  I<ifr_flags> contains a "
12885 "bit mask of the following values:"
12886 msgstr ""
12887 "デバイスの拡張 (プライベート) フラグを取得または設定する。\n"
12888 "I<ifr_flags> には以下の値のビットマスクが入る。"
12889
12890 #. type: tbl table
12891 #: build/C/man7/netdevice.7:134
12892 #, no-wrap
12893 msgid "Private flags\n"
12894 msgstr "プライベートフラグ\n"
12895
12896 #. type: tbl table
12897 #: build/C/man7/netdevice.7:135
12898 #, no-wrap
12899 msgid "IFF_802_1Q_VLAN:Interface is 802.1Q VLAN device.\n"
12900 msgstr "IFF_802_1Q_VLAN:インターフェースは 802.1Q VLAN デバイスである。\n"
12901
12902 #. type: tbl table
12903 #: build/C/man7/netdevice.7:136
12904 #, no-wrap
12905 msgid "IFF_EBRIDGE:Interface is Ethernet bridging device.\n"
12906 msgstr "IFF_EBRIDGE:インターフェースは Ethernet ブリッジデバイスである。\n"
12907
12908 #. type: tbl table
12909 #: build/C/man7/netdevice.7:137
12910 #, no-wrap
12911 msgid "IFF_SLAVE_INACTIVE:Interface is inactive bonding slave.\n"
12912 msgstr "IFF_SLAVE_INACTIVE:インターフェースは非アクティブな bonding のスレーブである。\n"
12913
12914 #. type: tbl table
12915 #: build/C/man7/netdevice.7:138
12916 #, no-wrap
12917 msgid "IFF_MASTER_8023AD:Interface is 802.3ad bonding master.\n"
12918 msgstr "IFF_MASTER_8023AD:インターフェースは 802.3ad bonding のマスターである。\n"
12919
12920 #. type: tbl table
12921 #: build/C/man7/netdevice.7:139
12922 #, no-wrap
12923 msgid "IFF_MASTER_ALB:Interface is balanced-alb bonding master.\n"
12924 msgstr "IFF_MASTER_ALB:インターフェースは balanced-alb bonding のマスターである。\n"
12925
12926 #. type: tbl table
12927 #: build/C/man7/netdevice.7:140
12928 #, no-wrap
12929 msgid "IFF_BONDING:Interface is a bonding master or slave.\n"
12930 msgstr "IFF_BONDING:インターフェースは bonding のマスターかスレーブである。\n"
12931
12932 #. type: tbl table
12933 #: build/C/man7/netdevice.7:141
12934 #, no-wrap
12935 msgid "IFF_SLAVE_NEEDARP:Interface needs ARPs for validation.\n"
12936 msgstr "IFF_SLAVE_NEEDARP:インターフェースは検証に APR が必要である。\n"
12937
12938 #. type: tbl table
12939 #: build/C/man7/netdevice.7:142
12940 #, no-wrap
12941 msgid "IFF_ISATAP:Interface is RFC4214 ISATAP interface.\n"
12942 msgstr "IFF_ISATAP:インターフェースは RFC4214 ISATAP インターフェースである。\n"
12943
12944 #. type: Plain text
12945 #: build/C/man7/netdevice.7:146
12946 msgid ""
12947 "Setting the extended (private) interface flags is a privileged operation."
12948 msgstr "拡張 (プライベート) インターフェースフラグの設定には特権が必要である。"
12949
12950 #. type: TP
12951 #: build/C/man7/netdevice.7:146
12952 #, no-wrap
12953 msgid "B<SIOCGIFADDR>, B<SIOCSIFADDR>"
12954 msgstr "B<SIOCGIFADDR>, B<SIOCSIFADDR>"
12955
12956 #. type: Plain text
12957 #: build/C/man7/netdevice.7:154
12958 msgid ""
12959 "Get or set the address of the device using I<ifr_addr>.  Setting the "
12960 "interface address is a privileged operation.  For compatibility, only "
12961 "B<AF_INET> addresses are accepted or returned."
12962 msgstr ""
12963
12964 #. type: TP
12965 #: build/C/man7/netdevice.7:154
12966 #, no-wrap
12967 msgid "B<SIOCGIFDSTADDR>, B<SIOCSIFDSTADDR>"
12968 msgstr "B<SIOCGIFDSTADDR>, B<SIOCSIFDSTADDR>"
12969
12970 #. type: Plain text
12971 #: build/C/man7/netdevice.7:162
12972 msgid ""
12973 "Get or set the destination address of a point-to-point device using "
12974 "I<ifr_dstaddr>.  For compatibility, only B<AF_INET> addresses are accepted "
12975 "or returned.  Setting the destination address is a privileged operation."
12976 msgstr ""
12977
12978 #. type: TP
12979 #: build/C/man7/netdevice.7:162
12980 #, no-wrap
12981 msgid "B<SIOCGIFBRDADDR>, B<SIOCSIFBRDADDR>"
12982 msgstr "B<SIOCGIFBRDADDR>, B<SIOCSIFBRDADDR>"
12983
12984 #. type: Plain text
12985 #: build/C/man7/netdevice.7:170
12986 msgid ""
12987 "Get or set the broadcast address for a device using I<ifr_brdaddr>.  For "
12988 "compatibility, only B<AF_INET> addresses are accepted or returned.  Setting "
12989 "the broadcast address is a privileged operation."
12990 msgstr ""
12991
12992 #. type: TP
12993 #: build/C/man7/netdevice.7:170
12994 #, no-wrap
12995 msgid "B<SIOCGIFNETMASK>, B<SIOCSIFNETMASK>"
12996 msgstr "B<SIOCGIFNETMASK>, B<SIOCSIFNETMASK>"
12997
12998 #. type: Plain text
12999 #: build/C/man7/netdevice.7:178
13000 msgid ""
13001 "Get or set the network mask for a device using I<ifr_netmask>.  For "
13002 "compatibility, only B<AF_INET> addresses are accepted or returned.  Setting "
13003 "the network mask is a privileged operation."
13004 msgstr ""
13005
13006 #. type: TP
13007 #: build/C/man7/netdevice.7:178
13008 #, no-wrap
13009 msgid "B<SIOCGIFMETRIC>, B<SIOCSIFMETRIC>"
13010 msgstr "B<SIOCGIFMETRIC>, B<SIOCSIFMETRIC>"
13011
13012 #. type: Plain text
13013 #: build/C/man7/netdevice.7:187
13014 msgid ""
13015 "Get or set the metric of the device using I<ifr_metric>.  This is currently "
13016 "not implemented; it sets I<ifr_metric> to 0 if you attempt to read it and "
13017 "returns B<EOPNOTSUPP> if you attempt to set it."
13018 msgstr ""
13019 "デバイスのメトリックを I<ifr_metric> を用いて取得・設定する。 これはまだ実装"
13020 "されていない。読み出そうとすると I<ifr_metric> に 0 をセットして返り、設定し"
13021 "ようとすると B<EOPNOTSUPP> が返る。"
13022
13023 #. type: TP
13024 #: build/C/man7/netdevice.7:187
13025 #, no-wrap
13026 msgid "B<SIOCGIFMTU>, B<SIOCSIFMTU>"
13027 msgstr "B<SIOCGIFMTU>, B<SIOCSIFMTU>"
13028
13029 #. type: Plain text
13030 #: build/C/man7/netdevice.7:194
13031 msgid ""
13032 "Get or set the MTU (Maximum Transfer Unit) of a device using I<ifr_mtu>.  "
13033 "Setting the MTU is a privileged operation.  Setting the MTU to too small "
13034 "values may cause kernel crashes."
13035 msgstr ""
13036 "デバイスの MTU (Maximum Transfer Unit) を I<ifr_mtu> を用いて取得・設定す"
13037 "る。 MTU の設定は特権が必要な操作である。 MTU の値を小さくしすぎるとカーネル"
13038 "がクラッシュするかもしれない。"
13039
13040 #. type: TP
13041 #: build/C/man7/netdevice.7:194
13042 #, no-wrap
13043 msgid "B<SIOCGIFHWADDR>, B<SIOCSIFHWADDR>"
13044 msgstr "B<SIOCGIFHWADDR>, B<SIOCSIFHWADDR>"
13045
13046 #. type: Plain text
13047 #: build/C/man7/netdevice.7:205
13048 msgid ""
13049 "Get or set the hardware address of a device using I<ifr_hwaddr>.  The "
13050 "hardware address is specified in a struct I<sockaddr>.  I<sa_family> "
13051 "contains the ARPHRD_* device type, I<sa_data> the L2 hardware address "
13052 "starting from byte 0.  Setting the hardware address is a privileged "
13053 "operation."
13054 msgstr ""
13055 "デバイスのハードウェアアドレスを I<ifr_hwaddr> を用いて取得・設定する。 ハー"
13056 "ドウェアアドレスは I<sockaddr> 構造体に設定される。 I<sa_family> には "
13057 "ARPHRD_* デバイスタイプが入り、 I<sa_data> にはバイト 0 から始まる L2 ハード"
13058 "ウェアアドレスが入る。 ハードウェアアドレスの設定は特権が必要な操作である。"
13059
13060 #. type: TP
13061 #: build/C/man7/netdevice.7:205
13062 #, no-wrap
13063 msgid "B<SIOCSIFHWBROADCAST>"
13064 msgstr "B<SIOCSIFHWBROADCAST>"
13065
13066 #. type: Plain text
13067 #: build/C/man7/netdevice.7:210
13068 msgid ""
13069 "Set the hardware broadcast address of a device from I<ifr_hwaddr>.  This is "
13070 "a privileged operation."
13071 msgstr ""
13072 "デバイスのハードウェアブロードキャストアドレスを I<ifr_hwaddr> の値に設定す"
13073 "る。この操作には特権が必要である。"
13074
13075 #. type: TP
13076 #: build/C/man7/netdevice.7:210
13077 #, no-wrap
13078 msgid "B<SIOCGIFMAP>, B<SIOCSIFMAP>"
13079 msgstr "B<SIOCGIFMAP>, B<SIOCSIFMAP>"
13080
13081 #. type: Plain text
13082 #: build/C/man7/netdevice.7:215
13083 msgid ""
13084 "Get or set the interface's hardware parameters using I<ifr_map>.  Setting "
13085 "the parameters is a privileged operation."
13086 msgstr ""
13087 "インターフェースのハードウェアのパラメータを I<ifr_map> を用いて取得・設定す"
13088 "る。 パラメータの設定は特権が必要な操作である。"
13089
13090 #. type: Plain text
13091 #: build/C/man7/netdevice.7:226
13092 #, no-wrap
13093 msgid ""
13094 "struct ifmap {\n"
13095 "    unsigned long   mem_start;\n"
13096 "    unsigned long   mem_end;\n"
13097 "    unsigned short  base_addr;\n"
13098 "    unsigned char   irq;\n"
13099 "    unsigned char   dma;\n"
13100 "    unsigned char   port;\n"
13101 "};\n"
13102 msgstr ""
13103 "struct ifmap {\n"
13104 "    unsigned long   mem_start;\n"
13105 "    unsigned long   mem_end;\n"
13106 "    unsigned short  base_addr;\n"
13107 "    unsigned char   irq;\n"
13108 "    unsigned char   dma;\n"
13109 "    unsigned char   port;\n"
13110 "};\n"
13111
13112 #. type: Plain text
13113 #: build/C/man7/netdevice.7:231
13114 msgid ""
13115 "The interpretation of the ifmap structure depends on the device driver and "
13116 "the architecture."
13117 msgstr "ifmap 構造体の解釈はデバイスドライバとアーキテクチャに依存する。"
13118
13119 #. type: TP
13120 #: build/C/man7/netdevice.7:231
13121 #, no-wrap
13122 msgid "B<SIOCADDMULTI>, B<SIOCDELMULTI>"
13123 msgstr "B<SIOCADDMULTI>, B<SIOCDELMULTI>"
13124
13125 #. type: Plain text
13126 #: build/C/man7/netdevice.7:240
13127 msgid ""
13128 "Add an address to or delete an address from the device's link layer "
13129 "multicast filters using I<ifr_hwaddr>.  These are privileged operations.  "
13130 "See also B<packet>(7)  for an alternative."
13131 msgstr ""
13132 "デバイスのリンク層のマルチキャストフィルターから、 I<ifr_hwaddr> のアドレスを"
13133 "追加・削除する。これらの操作には特権が必要である。 別の方法が B<packet>(7)  "
13134 "で解説されている。"
13135
13136 #. type: TP
13137 #: build/C/man7/netdevice.7:240
13138 #, no-wrap
13139 msgid "B<SIOCGIFTXQLEN>, B<SIOCSIFTXQLEN>"
13140 msgstr "B<SIOCGIFTXQLEN>, B<SIOCSIFTXQLEN>"
13141
13142 #. type: Plain text
13143 #: build/C/man7/netdevice.7:245
13144 msgid ""
13145 "Get or set the transmit queue length of a device using I<ifr_qlen>.  Setting "
13146 "the transmit queue length is a privileged operation."
13147 msgstr ""
13148 "デバイスの送信キューの長さを I<ifr_qlen> に取得・設定する。送信キューの長さの"
13149 "設定には特権が必要である。"
13150
13151 #. type: TP
13152 #: build/C/man7/netdevice.7:245
13153 #, no-wrap
13154 msgid "B<SIOCSIFNAME>"
13155 msgstr "B<SIOCSIFNAME>"
13156
13157 #. type: Plain text
13158 #: build/C/man7/netdevice.7:254
13159 msgid ""
13160 "Changes the name of the interface specified in I<ifr_name> to "
13161 "I<ifr_newname>.  This is a privileged operation.  It is only allowed when "
13162 "the interface is not up."
13163 msgstr ""
13164 "I<ifr_name> で指定したインターフェースの名前を I<ifr_newname> に変更する。こ"
13165 "の操作には特権が必要である。インターフェースが up していない 時にのみ使用でき"
13166 "る。"
13167
13168 #. type: TP
13169 #: build/C/man7/netdevice.7:254
13170 #, no-wrap
13171 msgid "B<SIOCGIFCONF>"
13172 msgstr "B<SIOCGIFCONF>"
13173
13174 #.  Slaving isn't supported in 2.2
13175 #.  .
13176 #.  .TP
13177 #.  .BR SIOCGIFSLAVE ", " SIOCSIFSLAVE
13178 #.  Get or set the slave device using
13179 #.  .IR ifr_slave .
13180 #.  Setting the slave device is a privileged operation.
13181 #.  .PP
13182 #.  FIXME add amateur radio stuff.
13183 #. type: Plain text
13184 #: build/C/man7/netdevice.7:294
13185 msgid ""
13186 "Return a list of interface (transport layer) addresses.  This currently "
13187 "means only addresses of the B<AF_INET> (IPv4) family for compatibility.  The "
13188 "user passes a I<ifconf> structure as argument to the ioctl.  It contains a "
13189 "pointer to an array of I<ifreq> structures in I<ifc_req> and its length in "
13190 "bytes in I<ifc_len>.  The kernel fills the ifreqs with all current L3 "
13191 "interface addresses that are running: I<ifr_name> contains the interface "
13192 "name (eth0:1 etc.), I<ifr_addr> the address.  The kernel returns with the "
13193 "actual length in I<ifc_len>.  If I<ifc_len> is equal to the original length "
13194 "the buffer probably has overflowed and you should retry with a bigger buffer "
13195 "to get all addresses.  When no error occurs the ioctl returns 0; otherwise "
13196 "-1.  Overflow is not an error."
13197 msgstr ""
13198 "インターフェース(トランスポート層)アドレスのリストを返す。 現在のところ、互換"
13199 "性のために B<AF_INET> (IPv4) ファミリーのアドレスのみである。 ユーザーは "
13200 "I<ifconf> 構造体を ioctl の引数として渡す。 I<ifconf> 構造体には、 I<ifreq> "
13201 "構造体の配列へのポインタである I<ifc_req> と、バイト単位の配列の長さを指定す"
13202 "る I<ifc_len> が含まれる。 カーネルは ifreqs を現在動作している全ての L3 イン"
13203 "ターフェースアドレスで埋める。 I<ifr_name> にはインターフェース名 (eth0:1 な"
13204 "ど) が入り、 I<ifr_addr> にはアドレスが入る。 カーネルは実際の長さを "
13205 "I<ifc_len> に返す。 I<ifc_len> が元のバッファの長さと同じだった場合、 オー"
13206 "バーフローを起こしている可能性があるので、 全てのアドレスを取得するためにより"
13207 "大きなバッファで再試行するべきである。 エラーがなかった場合は ioctl は 0 を返"
13208 "す。 エラーがあった場合は -1 を返す。 オーバーフローはエラーとは見なされな"
13209 "い。"
13210
13211 #. type: Plain text
13212 #: build/C/man7/netdevice.7:300
13213 msgid ""
13214 "Most protocols support their own ioctls to configure protocol-specific "
13215 "interface options.  See the protocol man pages for a description.  For "
13216 "configuring IP addresses see B<ip>(7)."
13217 msgstr ""
13218 "ほとんどのプロトコルには、専用のインターフェースオプションを 設定するための独"
13219 "自の ioctl が存在する。 説明は各プロトコルの man ページを見よ。"
13220
13221 #. type: Plain text
13222 #: build/C/man7/netdevice.7:303
13223 msgid ""
13224 "In addition some devices support private ioctls.  These are not described "
13225 "here."
13226 msgstr ""
13227 "さらに、デバイスによってはプライベートな ioctl がある。 これらはここでは説明"
13228 "しない。"
13229
13230 #. type: Plain text
13231 #: build/C/man7/netdevice.7:311
13232 msgid ""
13233 "Strictly speaking, B<SIOCGIFCONF> and the other ioctls that only accept or "
13234 "return B<AF_INET> socket addresses, are IP specific and belong in B<ip>(7)."
13235 msgstr ""
13236 "厳密にいうと、 B<SIOCGIFCONF> や、 B<AF_INET> ソケットアドレスだけを\n"
13237 "引き数に取ったり返したりする他の ioctl は IP 固有であり、 B<ip>(7) \n"
13238 "に属する。"
13239
13240 #. type: Plain text
13241 #: build/C/man7/netdevice.7:316
13242 msgid ""
13243 "The names of interfaces with no addresses or that don't have the "
13244 "B<IFF_RUNNING> flag set can be found via I</proc/net/dev>."
13245 msgstr ""
13246 "アドレスがなかったり、 B<IFF_RUNNING> フラグがセットされていないインター"
13247 "フェースの名前は I</proc/net/dev> で知ることができる。"
13248
13249 #. type: Plain text
13250 #: build/C/man7/netdevice.7:321
13251 msgid ""
13252 "Local IPv6 IP addresses can be found via I</proc/net> or via B<rtnetlink>(7)."
13253 msgstr ""
13254 "ローカル IPV6 IP アドレスは I</proc/net> か B<rtnetlink>(7)  で知ることができ"
13255 "る。"
13256
13257 #. type: Plain text
13258 #: build/C/man7/netdevice.7:327
13259 msgid ""
13260 "glibc 2.1 is missing the I<ifr_newname> macro in I<E<lt>net/if.hE<gt>>.  Add "
13261 "the following to your program as a workaround:"
13262 msgstr ""
13263 "glibc 2.1 では I<E<lt>net/if.hE<gt>> に I<ifr_newname> マクロがない。 とりあ"
13264 "えずの対応策として、以下のコードを追加しておくこと。"
13265
13266 #. type: Plain text
13267 #: build/C/man7/netdevice.7:333
13268 #, no-wrap
13269 msgid ""
13270 "#ifndef ifr_newname\n"
13271 "#define ifr_newname     ifr_ifru.ifru_slave\n"
13272 "#endif\n"
13273 msgstr ""
13274 "#ifndef ifr_newname\n"
13275 "#define ifr_newname     ifr_ifru.ifru_slave\n"
13276 "#endif\n"
13277
13278 #. type: Plain text
13279 #: build/C/man7/netdevice.7:340
13280 msgid "B<proc>(5), B<capabilities>(7), B<ip>(7), B<rtnetlink>(7)"
13281 msgstr "B<proc>(5), B<capabilities>(7), B<ip>(7), B<rtnetlink>(7)"
13282
13283 #. type: TH
13284 #: build/C/man5/networks.5:24
13285 #, no-wrap
13286 msgid "NETWORKS"
13287 msgstr "NETWORKS"
13288
13289 #. type: TH
13290 #: build/C/man5/networks.5:24
13291 #, no-wrap
13292 msgid "2008-09-04"
13293 msgstr "2008-09-04"
13294
13295 #. type: TH
13296 #: build/C/man5/networks.5:24
13297 #, no-wrap
13298 msgid "GNU/Linux"
13299 msgstr "GNU/Linux"
13300
13301 #. type: Plain text
13302 #: build/C/man5/networks.5:27
13303 msgid "networks - network name information"
13304 msgstr ""
13305
13306 #. type: Plain text
13307 #: build/C/man5/networks.5:33
13308 msgid ""
13309 "The file I</etc/networks> is a plain ASCII file that describes known DARPA "
13310 "networks and symbolic names for these networks.  Each line represents a "
13311 "network and has the following structure:"
13312 msgstr ""
13313
13314 #. type: Plain text
13315 #: build/C/man5/networks.5:36
13316 msgid "I<name number aliases ...>"
13317 msgstr "I<name number aliases ...>"
13318
13319 #. type: Plain text
13320 #: build/C/man5/networks.5:44
13321 msgid ""
13322 "where the fields are delimited by spaces or tabs.  Empty lines are ignored.  "
13323 "The hash character (B<#>) indicates the start of a comment: this character, "
13324 "and the remaining characters up to the end of the current line, are ignored "
13325 "by library functions that process the file."
13326 msgstr ""
13327
13328 #. type: Plain text
13329 #: build/C/man5/networks.5:46 build/C/man5/protocols.5:58
13330 msgid "The field descriptions are:"
13331 msgstr "フィールドの説明は以下のとおり。"
13332
13333 #. type: TP
13334 #: build/C/man5/networks.5:47
13335 #, no-wrap
13336 msgid "I<name>"
13337 msgstr "I<name>"
13338
13339 #. type: Plain text
13340 #: build/C/man5/networks.5:52
13341 msgid ""
13342 "The symbolic name for the network.  Network names can contain any printable "
13343 "characters execept white-space characters or the comment character."
13344 msgstr ""
13345
13346 #. type: TP
13347 #: build/C/man5/networks.5:52 build/C/man5/protocols.5:66
13348 #, no-wrap
13349 msgid "I<number>"
13350 msgstr "I<number>"
13351
13352 #. type: Plain text
13353 #: build/C/man5/networks.5:57
13354 msgid ""
13355 "The official number for this network in numbers-and-dots notation (see "
13356 "B<inet>(3)).  The trailing \".0\" (for the host component of the network "
13357 "address) may be omitted."
13358 msgstr ""
13359
13360 #. type: TP
13361 #: build/C/man5/networks.5:57 build/C/man5/protocols.5:70
13362 #: build/C/man5/services.5:120
13363 #, no-wrap
13364 msgid "I<aliases>"
13365 msgstr "I<aliases>"
13366
13367 #. type: Plain text
13368 #: build/C/man5/networks.5:60
13369 msgid "Optional aliases for the network."
13370 msgstr ""
13371
13372 #. type: Plain text
13373 #: build/C/man5/networks.5:69
13374 msgid ""
13375 "This file is read by the B<route>(8)  and B<netstat>(8)  utilities.  Only "
13376 "Class A, B or C networks are supported, partitioned networks (i.e., "
13377 "network/26 or network/28) are not supported by this facility."
13378 msgstr ""
13379
13380 #. type: Plain text
13381 #: build/C/man5/networks.5:73
13382 msgid "The networks definition file."
13383 msgstr ""
13384
13385 #. type: Plain text
13386 #: build/C/man5/networks.5:79
13387 msgid ""
13388 "B<getnetbyaddr>(3), B<getnetbyname>(3), B<getnetent>(3), B<netstat>(8), "
13389 "B<route>(8)"
13390 msgstr ""
13391 "B<getnetbyaddr>(3), B<getnetbyname>(3), B<getnetent>(3), B<netstat>(8), "
13392 "B<route>(8)"
13393
13394 #. type: TH
13395 #: build/C/man8/nscd.8:23
13396 #, no-wrap
13397 msgid "NSCD"
13398 msgstr "NSCD"
13399
13400 #. type: TH
13401 #: build/C/man8/nscd.8:23
13402 #, no-wrap
13403 msgid "2008-12-05"
13404 msgstr "2008-12-05"
13405
13406 #. type: Plain text
13407 #: build/C/man8/nscd.8:26
13408 msgid "/usr/sbin/nscd - name service cache daemon"
13409 msgstr "/usr/sbin/nscd - ネームサービスキャッシュデーモン"
13410
13411 #. type: Plain text
13412 #: build/C/man8/nscd.8:34
13413 msgid ""
13414 "Nscd is a daemon that provides a cache for the most common name service "
13415 "requests.  The default configuration file, I</etc/nscd.conf>, determines the "
13416 "behavior of the cache daemon.  See B<nscd.conf>(5)."
13417 msgstr ""
13418 "nscd は一般的なネームサービスに必要な多くのものを キャッシュとして提供する"
13419 "デーモンである。 デフォルトの設定ファイル I</etc/nscd.conf> でキャッシュデー"
13420 "モンの動作を決定する。 B<nscd.conf>(5)  を見よ。"
13421
13422 #. type: Plain text
13423 #: build/C/man8/nscd.8:47
13424 msgid ""
13425 "Nscd provides caching for accesses of the B<passwd>(5), B<group>(5), and "
13426 "B<hosts>(5)  databases through standard libc interfaces, such as B<getpwnam>"
13427 "(3), B<getpwuid>(3), B<getgrnam>(3), B<getgrgid>(3), B<gethostbyname>(3), "
13428 "and others."
13429 msgstr ""
13430 "nscd は B<passwd>(5), B<group>(5), B<hosts>(5)  データベースへのアクセスの"
13431 "キャッシュを B<getpwnam>(3), B<getpwuid>(3), B<getgrnam>(3), B<getgrgid>(3), "
13432 "B<gethostbyname>(3)  などの標準 libc インターフェースを通して提供する。"
13433
13434 #. type: Plain text
13435 #: build/C/man8/nscd.8:56
13436 msgid ""
13437 "There are two caches for each database: a positive one for items found, and "
13438 "a negative one for items not found.  Each cache has a separate TTL (time-to-"
13439 "live)  period for its data.  Note that the shadow file is specifically not "
13440 "cached.  B<getspnam>(3)  calls remain uncached as a result."
13441 msgstr ""
13442 "各データベースには 2 つのキャッシュがある。 肯定的 (positive) なキャッシュは"
13443 "見つかったアイテムをキャッシュし、 否定的 (negative) なキャッシュは見つからな"
13444 "かったアイテムをキャッシュする。 各キャッシュはデータの TTL (time-to-live, 生"
13445 "存時間) を個別に持っている。 特例として shadow ファイルはキャッシュされない点"
13446 "に注意すること。 B<getspnam>(3)  を呼び出しても結果としてキャッシュされないま"
13447 "まになる。"
13448
13449 #. type: SH
13450 #: build/C/man8/nscd.8:56
13451 #, no-wrap
13452 msgid "OPTIONS"
13453 msgstr "オプション"
13454
13455 #. type: TP
13456 #: build/C/man8/nscd.8:57
13457 #, no-wrap
13458 msgid "B<--help>"
13459 msgstr "B<--help>"
13460
13461 #. type: Plain text
13462 #: build/C/man8/nscd.8:60
13463 msgid "will give you a list with all options and what they do."
13464 msgstr "全てのオプションとその動作をリストして表示する。"
13465
13466 #. type: Plain text
13467 #: build/C/man8/nscd.8:83
13468 msgid ""
13469 "The daemon will try to watch for changes in configuration files appropriate "
13470 "for each database (e.g.  I</etc/passwd> for the I<passwd> database or I</etc/"
13471 "hosts> and I</etc/resolv.conf> for the I<hosts> database), and flush the "
13472 "cache when these are changed.  However, this will happen only after a short "
13473 "delay (unless the B<inotify>(7)  mechanism is available and glibc 2.9 or "
13474 "later is available), and this auto-detection does not cover configuration "
13475 "files required by nonstandard NSS modules, if any are specified in I</etc/"
13476 "nsswitch.conf>.  In that case, you need to run the following command after "
13477 "changing the configuration file of the database so that B<nscd> invalidates "
13478 "its cache:"
13479 msgstr ""
13480 "デーモンは( I<passwd> データベースについては I</etc/passwd>、 I<hosts> データ"
13481 "ベースについては I</etc/hosts> と I</etc/resolv.conf> というような)それぞれの"
13482 "データベースのための設定ファイルを見張って、 これらが変更されるとキャッシュを"
13483 "フラッシュする。 しかし、これは( B<inotify>(7)  が利用可能で、glibc 2.9 以降"
13484 "が利用可能な場合を除いて)  短い遅延の後に起こり、またこの自動検出は非標準 "
13485 "NSS モジュールが I</etc/nsswitch.conf> で指定されている場合はその設定ファイル"
13486 "には対応しない。 この場合、データベースの設定ファイルを変更した後、 B<nscd> "
13487 "のキャッシュを無効にするために以下のコマンドを実行する必要がある:"
13488
13489 #. type: Plain text
13490 #: build/C/man8/nscd.8:85
13491 #, no-wrap
13492 msgid "    $ B<nscd -i> I<E<lt>databaseE<gt>>\n"
13493 msgstr "    $ B<nscd -i> I<E<lt>databaseE<gt>>\n"
13494
13495 #.  .SH AUTHOR
13496 #.  .B nscd
13497 #.  was written by Thorsten Kukuk and Ulrich Drepper.
13498 #. type: Plain text
13499 #: build/C/man8/nscd.8:91
13500 msgid "B<nscd.conf>(5), B<nsswitch.conf>(5)"
13501 msgstr "B<nscd.conf>(5), B<nsswitch.conf>(5)"
13502
13503 #. type: TH
13504 #: build/C/man5/nscd.conf.5:20
13505 #, no-wrap
13506 msgid "NSCD.CONF"
13507 msgstr "NSCD.CONF"
13508
13509 #. type: TH
13510 #: build/C/man5/nscd.conf.5:20
13511 #, no-wrap
13512 msgid "1999-10-01"
13513 msgstr "1999-10-01"
13514
13515 #. type: Plain text
13516 #: build/C/man5/nscd.conf.5:23
13517 msgid "/etc/nscd.conf - name service cache daemon configuration file"
13518 msgstr "/etc/nscd.conf - ネームサービスキャッシュデーモンの設定ファイル"
13519
13520 #. type: Plain text
13521 #: build/C/man5/nscd.conf.5:36
13522 msgid ""
13523 "The file I</etc/nscd.conf> is read from B<nscd>(8)  at startup.  Each line "
13524 "specifies either an attribute and a value, or an attribute, service, and a "
13525 "value.  Fields are separated either by SPACE or TAB characters.  A \\(aq#"
13526 "\\(aq (number sign) indicates the beginning of a comment; following "
13527 "characters, up to the end of the line, are not interpreted by nscd."
13528 msgstr ""
13529 "B<nscd>(8)  は起動時にファイル I</etc/nscd.conf> を読み込む。 各行には「属"
13530 "性・値」または「属性・サービス・値」を指定する。 フィールドはスペース文字また"
13531 "はタブ文字で区切られる。 \\(aq#\\(aq (ナンバー記号) はコメントの始まりを表"
13532 "す。 この記号から行末までは nscd によって解釈されない。"
13533
13534 #. type: Plain text
13535 #: build/C/man5/nscd.conf.5:38
13536 msgid "Valid services are I<passwd>, I<group>, or I<hosts>."
13537 msgstr "指定可能なサービスは I<passwd>, I<group>, I<hosts> である。"
13538
13539 #. type: Plain text
13540 #: build/C/man5/nscd.conf.5:41
13541 msgid "B<logfile> I<debug-file-name>"
13542 msgstr "B<logfile> I<debug-file-name>"
13543
13544 #. type: Plain text
13545 #: build/C/man5/nscd.conf.5:43
13546 msgid "Specifies name of the file to which debug info should be written."
13547 msgstr "デバッグ情報が書き込まれるファイルの名前を指定する。"
13548
13549 #. type: Plain text
13550 #: build/C/man5/nscd.conf.5:47
13551 msgid "B<debug-level> I<value>"
13552 msgstr "B<debug-level> I<value>"
13553
13554 #. type: Plain text
13555 #: build/C/man5/nscd.conf.5:49
13556 msgid "Sets the desired debug level."
13557 msgstr "希望するデバッグレベルを設定する。"
13558
13559 #. type: Plain text
13560 #: build/C/man5/nscd.conf.5:53
13561 msgid "B<threads> I<number>"
13562 msgstr "B<threads> I<number>"
13563
13564 #. type: Plain text
13565 #: build/C/man5/nscd.conf.5:57
13566 msgid ""
13567 "This is the number of threads that are started to wait for requests.  At "
13568 "least five threads will always be created."
13569 msgstr ""
13570 "スレッドをいくつ起動してリクエストを待つのかを指定する。 少なくとも 5 つのス"
13571 "レッドが常に作成される。"
13572
13573 #. type: Plain text
13574 #: build/C/man5/nscd.conf.5:61
13575 msgid "B<server-user> I<user>"
13576 msgstr "B<server-user> I<user>"
13577
13578 #. type: Plain text
13579 #: build/C/man5/nscd.conf.5:65
13580 msgid ""
13581 "If this option is set, nscd will run as this user and not as root.  If a "
13582 "separate cache for every user is used (-S parameter), this option is ignored."
13583 msgstr ""
13584 "このオプションが設定されると、 nscd は root ではなく、この user として実行さ"
13585 "れる。 (-S パラメータにより) 各ユーザー毎に別々のキャッシュが使われる場合、 "
13586 "このオプションは無視される。"
13587
13588 #. type: Plain text
13589 #: build/C/man5/nscd.conf.5:70
13590 msgid "B<enable-cache> I<service> I<E<lt>yes|noE<gt>>"
13591 msgstr "B<enable-cache> I<service> I<E<lt>yes|noE<gt>>"
13592
13593 #. type: Plain text
13594 #: build/C/man5/nscd.conf.5:74
13595 msgid "Enables or disables the specified I<service> cache."
13596 msgstr "指定した I<service> のキャッシュを有効または無効にする。"
13597
13598 #. type: Plain text
13599 #: build/C/man5/nscd.conf.5:79
13600 msgid "B<positive-time-to-live> I<service> I<value>"
13601 msgstr "B<positive-time-to-live> I<service> I<value>"
13602
13603 #. type: Plain text
13604 #: build/C/man5/nscd.conf.5:87
13605 msgid ""
13606 "Sets the TTL (time-to-live) for positive entries (successful queries)  in "
13607 "the specified cache for I<service>.  I<Value> is in seconds.  Larger values "
13608 "increase cache hit rates and reduce mean response times, but increase "
13609 "problems with cache coherence."
13610 msgstr ""
13611 "指定した I<service> のキャッシュにあるポジティブエントリ (成功した問い合わ"
13612 "せ) の TTL (time-to-live) を設定する。 I<value> の単位は秒である。 値を大きく"
13613 "すると、ヒット率が高くなり平均応答時間を短くできるが、 キャッシュのコヒーレン"
13614 "ス (coherence, キャッシュが実際のデータと一致していること) に問題が生じる。"
13615
13616 #. type: Plain text
13617 #: build/C/man5/nscd.conf.5:92
13618 msgid "B<negative-time-to-live> I<service> I<value>"
13619 msgstr "B<negative-time-to-live> I<service> I<value>"
13620
13621 #. type: Plain text
13622 #: build/C/man5/nscd.conf.5:102
13623 msgid ""
13624 "Sets the TTL (time-to-live) for negative entries (unsuccessful queries)  in "
13625 "the specified cache for I<service>.  I<Value> is in seconds.  Can result in "
13626 "significant performance improvements if there are several files owned by "
13627 "UIDs (user IDs) not in system databases (for example untarring the linux "
13628 "kernel sources as root); should be kept small to reduce cache coherency "
13629 "problems."
13630 msgstr ""
13631 "指定した I<service> のキャッシュにあるネガティブエントリ (失敗した問い合わ"
13632 "せ) の TTL (time-to-live) を設定する。 I<value> の単位は秒である。 システム"
13633 "データベースにない UID (ユーザーID) で所有されるファイル (たとえば root で "
13634 "tar を展開した linux カーネルのソース) が少ないと、 顕著な性能の向上が見られ"
13635 "る。 キャッシュのコヒーレンス問題を少なくするために小さな値にすべきである。"
13636
13637 #. type: Plain text
13638 #: build/C/man5/nscd.conf.5:107
13639 msgid "B<suggested-size> I<service> I<value>"
13640 msgstr "B<suggested-size> I<service> I<value>"
13641
13642 #. type: Plain text
13643 #: build/C/man5/nscd.conf.5:111
13644 msgid ""
13645 "This is the internal hash table size, I<value> should remain a prime number "
13646 "for optimum efficiency."
13647 msgstr ""
13648 "内部ハッシュテーブルの大きさを指定する。 効率を最適にするために I<value> は素"
13649 "数にしておくべきである。"
13650
13651 #. type: Plain text
13652 #: build/C/man5/nscd.conf.5:116
13653 msgid "B<check-files> I<service> I<E<lt>yes|noE<gt>>"
13654 msgstr "B<check-files> I<service> I<E<lt>yes|noE<gt>>"
13655
13656 #. type: Plain text
13657 #: build/C/man5/nscd.conf.5:125
13658 msgid ""
13659 "Enables or disables checking the file belonging to the specified I<service> "
13660 "for changes.  The files are I</etc/passwd>, I</etc/group>, and I</etc/hosts>."
13661 msgstr ""
13662 "指定した I<service> に関連するファイルの変更のチェックを有効または無効にす"
13663 "る。 ファイルは I</etc/passwd>, I</etc/group>, I</etc/hosts> である。"
13664
13665 #. type: Plain text
13666 #: build/C/man5/nscd.conf.5:129
13667 msgid "B<max-threads> I<threads>"
13668 msgstr "B<max-threads> I<threads>"
13669
13670 #. type: Plain text
13671 #: build/C/man5/nscd.conf.5:131
13672 msgid "Specifies the maximum number of threads to be started."
13673 msgstr "開始するスレッドの最大数を指定する。"
13674
13675 #. type: Plain text
13676 #: build/C/man5/nscd.conf.5:135
13677 msgid "B<stat-user> I<username>"
13678 msgstr "B<stat-user> I<username>"
13679
13680 #. type: Plain text
13681 #: build/C/man5/nscd.conf.5:137
13682 msgid "Specifies the user who is allowed to request statistics."
13683 msgstr "統計情報の参照を許可するユーザを指定する。"
13684
13685 #. type: Plain text
13686 #: build/C/man5/nscd.conf.5:142
13687 msgid "B<reload-count> unlimited | I<number>"
13688 msgstr "B<reload-count> unlimited | I<number>"
13689
13690 #. type: Plain text
13691 #: build/C/man5/nscd.conf.5:146
13692 msgid ""
13693 "Limit on the number of times a cached entry gets reloaded without being used "
13694 "before it gets removed.  The default is 5."
13695 msgstr ""
13696 "キャッシュされたエントリが使用されなかったときに、 削除される前に何回リロード"
13697 "されるかを設定する。"
13698
13699 #. type: Plain text
13700 #: build/C/man5/nscd.conf.5:150
13701 msgid "B<paranoia> I<E<lt>yes|noE<gt>>"
13702 msgstr "B<paranoia> I<E<lt>yes|noE<gt>>"
13703
13704 #. type: Plain text
13705 #: build/C/man5/nscd.conf.5:152
13706 msgid "Enabling paranoia mode causes nscd to restart itself periodically."
13707 msgstr ""
13708 "パラノイアモードを有効にする。 パラノイアモードでは nscd を定期的に再起動す"
13709 "る。"
13710
13711 #. type: Plain text
13712 #: build/C/man5/nscd.conf.5:156
13713 msgid "B<restart-interval> I<time>"
13714 msgstr "B<restart-interval> I<time>"
13715
13716 #. type: Plain text
13717 #: build/C/man5/nscd.conf.5:163
13718 msgid ""
13719 "Sets the restart interval to I<time> seconds if periodic restart is enabled "
13720 "by enabling B<paranoia> mode."
13721 msgstr ""
13722 "パラノイアモードが有効で定期的に再起動する場合の、 再起動間隔を I<time> 秒に"
13723 "設定する。"
13724
13725 #. type: Plain text
13726 #: build/C/man5/nscd.conf.5:168
13727 msgid "B<persistent> I<service> I<E<lt>yes|noE<gt>>"
13728 msgstr "B<persistent> I<service> I<E<lt>yes|noE<gt>>"
13729
13730 #. type: Plain text
13731 #: build/C/man5/nscd.conf.5:174
13732 msgid ""
13733 "Keep the content of the cache for I<service> over server restarts; useful "
13734 "when B<paranoia> mode is set."
13735 msgstr ""
13736 "サーバの再起動の前後で I<service> のキャッシュ内容を保持する。 B<paranoia> "
13737 "モードが有効の場合に便利である。"
13738
13739 #. type: Plain text
13740 #: build/C/man5/nscd.conf.5:179
13741 msgid "B<shared> I<service> I<E<lt>yes|noE<gt>>"
13742 msgstr "B<shared> I<service> I<E<lt>yes|noE<gt>>"
13743
13744 #. type: Plain text
13745 #: build/C/man5/nscd.conf.5:185
13746 msgid ""
13747 "The memory mapping of the nscd databases for I<service> is shared with the "
13748 "clients so that they can directly search in them instead of having to ask "
13749 "the daemon over the socket each time a lookup is performed."
13750 msgstr ""
13751 "I<service> の nscd データベースのメモリ・マッピングをクライアント間で共有す"
13752 "る。 これにより、検索を実行する度にソケット経由でデーモンに問い合わせを 行わ"
13753 "ずに、直接データベースを検索できるようになる。"
13754
13755 #.  .SH AUTHOR
13756 #.  .B nscd
13757 #.  was written by Thorsten Kukuk and Ulrich Drepper.
13758 #. type: Plain text
13759 #: build/C/man5/nscd.conf.5:191
13760 msgid "B<nscd>(8)"
13761 msgstr "B<nscd>(8)"
13762
13763 #. type: TH
13764 #: build/C/man5/nsswitch.conf.5:24
13765 #, no-wrap
13766 msgid "NSSWITCH.CONF"
13767 msgstr "NSSWITCH.CONF"
13768
13769 #. type: Plain text
13770 #: build/C/man5/nsswitch.conf.5:27
13771 msgid "nsswitch.conf - Name Service Switch configuration file"
13772 msgstr "nsswitch.conf - ネームサービススイッチの設定ファイル"
13773
13774 #. type: Plain text
13775 #: build/C/man5/nsswitch.conf.5:36
13776 msgid ""
13777 "The Name Service Switch (NSS) configuration file, I</etc/nsswitch.conf>, is "
13778 "used by the GNU C Library to determine the sources from which to obtain name-"
13779 "service information in a range of categories, and in what order.  (The \" "
13780 "Each category of information is identified by a database name."
13781 msgstr ""
13782
13783 #. type: Plain text
13784 #: build/C/man5/nsswitch.conf.5:42
13785 msgid ""
13786 "The file is plain ASCII text, with columns separated by spaces or tab "
13787 "characters.  The first column specifies the database name.  The remaining "
13788 "columns describe the order of sources to query and a limited set of actions "
13789 "that can be performed by lookup result."
13790 msgstr ""
13791
13792 #. type: Plain text
13793 #: build/C/man5/nsswitch.conf.5:44
13794 msgid "The following databases are understood by the GNU C Library:"
13795 msgstr "GNU C ライブラリでは以下のデータベースを扱うことができる。"
13796
13797 #. type: Plain text
13798 #: build/C/man5/nsswitch.conf.5:49
13799 msgid "Mail aliases, used by B<getaliasent>(3)  and related functions."
13800 msgstr "メールのエイリアス。 B<getaliasent>(3) や関連する関数が使用する。"
13801
13802 #. type: Plain text
13803 #: build/C/man5/nsswitch.conf.5:52
13804 msgid "Ethernet numbers."
13805 msgstr "イーサーネット番号。"
13806
13807 #. type: Plain text
13808 #: build/C/man5/nsswitch.conf.5:57
13809 msgid "Groups of users, used by B<getgrent>(3)  and related functions."
13810 msgstr "ユーザーのグループ。 B<getgrent>(3) や関連する関数が使用する。"
13811
13812 #. type: Plain text
13813 #: build/C/man5/nsswitch.conf.5:62
13814 msgid ""
13815 "Host names and numbers, used by B<gethostbyname>(3)  and related functions."
13816 msgstr "ホスト名とホスト番号。 B<gethostbyname>(3) や関連する関数が使用する。"
13817
13818 #. type: Plain text
13819 #: build/C/man5/nsswitch.conf.5:66
13820 msgid ""
13821 "Network-wide list of hosts and users, used for access rules.  C libraries "
13822 "before glibc 2.1 supported netgroups only over NIS."
13823 msgstr ""
13824 "ネットワークワイドに用いられるホストやユーザーのリスト。アクセス制限に利用\n"
13825 "される。 glibc 2.1 より前の C ライブラリは、 NIS による netgroup のみを\n"
13826 "サポートしていた。"
13827
13828 #. type: Plain text
13829 #: build/C/man5/nsswitch.conf.5:71
13830 msgid ""
13831 "Network names and numbers, used by B<getnetent>(3)  and related functions."
13832 msgstr "ネットワーク名と番号。 B<getnetent>(3) と関連する関数が使用する。"
13833
13834 #. type: Plain text
13835 #: build/C/man5/nsswitch.conf.5:76
13836 msgid "User passwords, used by B<getpwent>(3)  and related functions."
13837 msgstr "ユーザーパスワード。 B<getpwent>(3) や関連する関数が使用する。"
13838
13839 #. type: Plain text
13840 #: build/C/man5/nsswitch.conf.5:81
13841 msgid "Network protocols, used by B<getprotoent>(3)  and related functions."
13842 msgstr "ネットワークプロトコル。 B<getprotoent>(3) や関連する関数が使用する。"
13843
13844 #. type: TP
13845 #: build/C/man5/nsswitch.conf.5:81
13846 #, no-wrap
13847 msgid "B<publickey>"
13848 msgstr "B<publickey>"
13849
13850 #. type: Plain text
13851 #: build/C/man5/nsswitch.conf.5:84
13852 msgid "Public and secret keys for Secure_RPC used by NFS and NIS+."
13853 msgstr "NIS+ と NFS によって用いられる secure_rpc の公開鍵と秘密鍵。"
13854
13855 #. type: Plain text
13856 #: build/C/man5/nsswitch.conf.5:89
13857 msgid ""
13858 "Remote procedure call names and numbers, used by B<getrpcbyname>(3)  and "
13859 "related functions."
13860 msgstr ""
13861 "リモート手続き呼び出し (remote procedure call) の名前と番号。 \n"
13862 "B<getrpcbyname>(3) と関連する関数が使用する。"
13863
13864 #. type: Plain text
13865 #: build/C/man5/nsswitch.conf.5:94
13866 msgid "Network services, used by B<getservent>(3)  and related functions."
13867 msgstr "ネットワークサービス。 B<getservent>(3) や関連する関数が使用する。"
13868
13869 #. type: Plain text
13870 #: build/C/man5/nsswitch.conf.5:99
13871 msgid "Shadow user passwords, used by B<getspnam>(3)  and related functions."
13872 msgstr "シャドウユーザーパスワード。 B<getspnam>(3) や関連する関数が使用する。"
13873
13874 #. type: Plain text
13875 #: build/C/man5/nsswitch.conf.5:103
13876 msgid "Here is an example I</etc/nsswitch.conf> file:"
13877 msgstr "以下は I</etc/nsswitch.conf> ファイルの例である。"
13878
13879 #. type: TP
13880 #: build/C/man5/nsswitch.conf.5:106
13881 #, no-wrap
13882 msgid "passwd:"
13883 msgstr "passwd:"
13884
13885 #. type: Plain text
13886 #: build/C/man5/nsswitch.conf.5:109 build/C/man5/nsswitch.conf.5:112
13887 #: build/C/man5/nsswitch.conf.5:115
13888 msgid "compat"
13889 msgstr "compat"
13890
13891 #. type: TP
13892 #: build/C/man5/nsswitch.conf.5:109
13893 #, no-wrap
13894 msgid "group:"
13895 msgstr "group:"
13896
13897 #. type: TP
13898 #: build/C/man5/nsswitch.conf.5:112
13899 #, no-wrap
13900 msgid "shadow:"
13901 msgstr "shadow:"
13902
13903 #. type: TP
13904 #: build/C/man5/nsswitch.conf.5:116
13905 #, no-wrap
13906 msgid "hosts:"
13907 msgstr "hosts:"
13908
13909 #. type: Plain text
13910 #: build/C/man5/nsswitch.conf.5:119
13911 msgid "dns [!UNAVAIL=return] files"
13912 msgstr "dns [!UNAVAIL=return] files"
13913
13914 #. type: TP
13915 #: build/C/man5/nsswitch.conf.5:119
13916 #, no-wrap
13917 msgid "networks:"
13918 msgstr "networks:"
13919
13920 #. type: Plain text
13921 #: build/C/man5/nsswitch.conf.5:122 build/C/man5/nsswitch.conf.5:125
13922 #: build/C/man5/nsswitch.conf.5:128 build/C/man5/nsswitch.conf.5:131
13923 #: build/C/man5/nsswitch.conf.5:134
13924 msgid "nis [NOTFOUND=return] files"
13925 msgstr "nis [NOTFOUND=return] files"
13926
13927 #. type: TP
13928 #: build/C/man5/nsswitch.conf.5:122
13929 #, no-wrap
13930 msgid "ethers:"
13931 msgstr "ethers:"
13932
13933 #. type: TP
13934 #: build/C/man5/nsswitch.conf.5:125
13935 #, no-wrap
13936 msgid "protocols:"
13937 msgstr "protocols:"
13938
13939 #. type: TP
13940 #: build/C/man5/nsswitch.conf.5:128
13941 #, no-wrap
13942 msgid "rpc:"
13943 msgstr "rpc:"
13944
13945 #. type: TP
13946 #: build/C/man5/nsswitch.conf.5:131
13947 #, no-wrap
13948 msgid "services:"
13949 msgstr "services:"
13950
13951 #. type: Plain text
13952 #: build/C/man5/nsswitch.conf.5:139
13953 msgid "The first column is the database name.  The remaining columns specify:"
13954 msgstr ""
13955
13956 #. type: Plain text
13957 #: build/C/man5/nsswitch.conf.5:143
13958 msgid ""
13959 "One or more service specifications e.g., \"files\", \"db\", or \"nis\".  The "
13960 "order of the services on the line determines the order in which those "
13961 "services will be queried, in turn, until a result is found."
13962 msgstr ""
13963
13964 #. type: Plain text
13965 #: build/C/man5/nsswitch.conf.5:146
13966 msgid ""
13967 "Optional actions to perform if a particular result is obtained from the "
13968 "preceding service, e.g., \"[NOTFOUND=return]\"."
13969 msgstr ""
13970
13971 #. type: Plain text
13972 #: build/C/man5/nsswitch.conf.5:173
13973 msgid ""
13974 "The service specifications supported on your system depend on the presence "
13975 "of shared libraries, and are therefore extensible.  Libraries called I</lib/"
13976 "libnss_SERVICE.so.>B<X> will provide the named I<SERVICE>.  On a standard "
13977 "installation, you can use \"files\", \"db\", \"nis\", and \"nisplus\".  For "
13978 "the B<hosts> database, you can additionally specify \"dns\".  For the "
13979 "B<passwd>, B<group>, and B<shadow> databases, you can additionally specify "
13980 "\"compat\" (see B<Compatibility mode> below).  The version number B<X> may "
13981 "be 1 for glibc 2.0, or 2 for glibc 2.1 and later.  On systems with "
13982 "additional libraries installed, you may have access to further services such "
13983 "as \"hesiod\", \"ldap\", \"winbind\" and \"wins\"."
13984 msgstr ""
13985
13986 #. type: Plain text
13987 #: build/C/man5/nsswitch.conf.5:178
13988 msgid ""
13989 "An action may also be specified following a service specification.  The "
13990 "action modifies the behavior following a result obtained from the preceding "
13991 "data source.  Action items take the general form:"
13992 msgstr ""
13993
13994 #. type: Plain text
13995 #: build/C/man5/nsswitch.conf.5:181
13996 msgid "[I<STATUS>=I<ACTION>]"
13997 msgstr "[I<STATUS>=I<ACTION>]"
13998
13999 #. type: Plain text
14000 #: build/C/man5/nsswitch.conf.5:183
14001 msgid "[!I<STATUS>=I<ACTION>]"
14002 msgstr "[!I<STATUS>=I<ACTION>]"
14003
14004 #. type: Plain text
14005 #: build/C/man5/nsswitch.conf.5:186
14006 msgid "where"
14007 msgstr "STATUS と ACTION はそれぞれ以下の値を取る。"
14008
14009 #. type: Plain text
14010 #: build/C/man5/nsswitch.conf.5:197
14011 msgid "I<STATUS> =E<gt> B<success> | B<notfound> | B<unavail> | B<tryagain>"
14012 msgstr "I<STATUS> =E<gt> B<success> | B<notfound> | B<unavail> | B<tryagain>"
14013
14014 #. type: Plain text
14015 #: build/C/man5/nsswitch.conf.5:203
14016 msgid "I<ACTION> =E<gt> B<return> | B<continue>"
14017 msgstr "I<ACTION> =E<gt> B<return> | B<continue>"
14018
14019 #. type: Plain text
14020 #: build/C/man5/nsswitch.conf.5:208
14021 msgid ""
14022 "The ! negates the test, matching all possible results except the one "
14023 "specified.  The case of the keywords is not significant."
14024 msgstr ""
14025
14026 #. type: Plain text
14027 #: build/C/man5/nsswitch.conf.5:213
14028 msgid ""
14029 "The I<STATUS> value is matched against the result of the lookup function "
14030 "called by the preceding service specification, and can be one of:"
14031 msgstr ""
14032
14033 #. type: TP
14034 #: build/C/man5/nsswitch.conf.5:214
14035 #, no-wrap
14036 msgid "B<success>"
14037 msgstr "B<success>"
14038
14039 #. type: Plain text
14040 #: build/C/man5/nsswitch.conf.5:218
14041 msgid ""
14042 "No error occurred and the requested entry is returned.  The default action "
14043 "for this condition is \"return\"."
14044 msgstr ""
14045 "エラーは発生せず、要求されたエントリが返された。\n"
14046 "この場合のデフォルトのアクションは \"return\" である。"
14047
14048 #. type: TP
14049 #: build/C/man5/nsswitch.conf.5:218
14050 #, no-wrap
14051 msgid "B<notfound>"
14052 msgstr "B<notfound>"
14053
14054 #. type: Plain text
14055 #: build/C/man5/nsswitch.conf.5:222
14056 msgid ""
14057 "The lookup succeeded, but the requested entry was not found.  The default "
14058 "action for this condition is \"continue\"."
14059 msgstr ""
14060 "検索は成功したが、要求されたエントリーが見つからなかった。\n"
14061 "この場合のデフォルトのアクションは \"continue\" である。"
14062
14063 #. type: TP
14064 #: build/C/man5/nsswitch.conf.5:222
14065 #, no-wrap
14066 msgid "B<unavail>"
14067 msgstr "B<unavail>"
14068
14069 #. type: Plain text
14070 #: build/C/man5/nsswitch.conf.5:229
14071 msgid ""
14072 "The service is permanently unavailable.  This can mean either that the "
14073 "required file cannot be read, or, for network services, that the server is "
14074 "not available or does not allow queries.  The default action for this "
14075 "condition is \"continue\"."
14076 msgstr ""
14077 "サービスが永続的に利用できない。\n"
14078 "必要なファイルを読み込むことができない、\n"
14079 "ネットワークサービスの場合には、サーバが利用できないとか、\n"
14080 "サーバが問い合わせを許可していない、などが考えられる。\n"
14081 "この場合のデフォルトのアクションは \"continue\" である。"
14082
14083 #. type: TP
14084 #: build/C/man5/nsswitch.conf.5:229
14085 #, no-wrap
14086 msgid "B<tryagain>"
14087 msgstr "B<tryagain>"
14088
14089 #. type: Plain text
14090 #: build/C/man5/nsswitch.conf.5:235
14091 msgid ""
14092 "The service is temporarily unavailable.  This could mean a file is locked or "
14093 "a server currently cannot accept more connections.  The default action for "
14094 "this condition is \"continue\"."
14095 msgstr ""
14096 "サービスが一時的に利用できない。\n"
14097 "ファイルがロックされている、サーバがこれ以上接続を受け付けることができな"
14098 "い、\n"
14099 "などが考えられる。デフォル トのアクションは \"continue\" である。"
14100
14101 #. type: Plain text
14102 #: build/C/man5/nsswitch.conf.5:240
14103 msgid "The I<ACTION> value can be one of:"
14104 msgstr ""
14105
14106 #. type: TP
14107 #: build/C/man5/nsswitch.conf.5:241
14108 #, no-wrap
14109 msgid "B<return>"
14110 msgstr ""
14111
14112 #. type: Plain text
14113 #: build/C/man5/nsswitch.conf.5:245
14114 msgid "Return a result now.  Do not call any further lookup functions."
14115 msgstr ""
14116
14117 #. type: TP
14118 #: build/C/man5/nsswitch.conf.5:245
14119 #, no-wrap
14120 msgid "B<continue>"
14121 msgstr ""
14122
14123 #. type: Plain text
14124 #: build/C/man5/nsswitch.conf.5:248
14125 msgid "Call the next lookup function."
14126 msgstr ""
14127
14128 #. type: SS
14129 #: build/C/man5/nsswitch.conf.5:249
14130 #, no-wrap
14131 msgid "Compatibility mode (compat)"
14132 msgstr ""
14133
14134 #. type: Plain text
14135 #: build/C/man5/nsswitch.conf.5:255
14136 msgid ""
14137 "The NSS \"compat\" service is similar to \"files\" except that it "
14138 "additionally permits special entries in I</etc/passwd> for granting users or "
14139 "members of netgroups access to the system.  The following entries are valid "
14140 "in this mode:"
14141 msgstr ""
14142
14143 #. type: TP
14144 #: build/C/man5/nsswitch.conf.5:256
14145 #, no-wrap
14146 msgid "B<+>I<user>"
14147 msgstr "B<+>I<user>"
14148
14149 #. type: Plain text
14150 #: build/C/man5/nsswitch.conf.5:261
14151 msgid "Include the specified I<user> from the NIS passwd map."
14152 msgstr ""
14153
14154 #. type: TP
14155 #: build/C/man5/nsswitch.conf.5:261
14156 #, no-wrap
14157 msgid "B<+@>I<netgroup>"
14158 msgstr "B<+@>I<netgroup>"
14159
14160 #. type: Plain text
14161 #: build/C/man5/nsswitch.conf.5:265
14162 msgid "Include all users in the given I<netgroup>."
14163 msgstr ""
14164
14165 #. type: TP
14166 #: build/C/man5/nsswitch.conf.5:265
14167 #, no-wrap
14168 msgid "B<->I<user>"
14169 msgstr "B<->I<user>"
14170
14171 #. type: Plain text
14172 #: build/C/man5/nsswitch.conf.5:270
14173 msgid "Exclude the specified I<user> from the NIS passwd map."
14174 msgstr ""
14175
14176 #. type: TP
14177 #: build/C/man5/nsswitch.conf.5:270
14178 #, no-wrap
14179 msgid "B<-@>I<netgroup>"
14180 msgstr "B<-@>I<netgroup>"
14181
14182 #. type: Plain text
14183 #: build/C/man5/nsswitch.conf.5:274
14184 msgid "Exclude all users in the given I<netgroup>."
14185 msgstr ""
14186
14187 #. type: TP
14188 #: build/C/man5/nsswitch.conf.5:274
14189 #, no-wrap
14190 msgid "B<+>"
14191 msgstr ""
14192
14193 #. type: Plain text
14194 #: build/C/man5/nsswitch.conf.5:278
14195 msgid ""
14196 "Include every user, except previously excluded ones, from the NIS passwd map."
14197 msgstr ""
14198
14199 #. type: Plain text
14200 #: build/C/man5/nsswitch.conf.5:286
14201 msgid ""
14202 "By default the source is \"nis\", but this may be overridden by specifying "
14203 "\"nisplus\" as the source for the pseudo-databases B<passwd_compat>, "
14204 "B<group_compat>, and B<shadow_compat>."
14205 msgstr ""
14206
14207 #. type: Plain text
14208 #: build/C/man5/nsswitch.conf.5:293
14209 msgid ""
14210 "A service named I<SERVICE> is implemented by a shared object library named "
14211 "I<libnss_SERVICE.so.>B<X> that resides in I</lib>."
14212 msgstr ""
14213 "I<SERVICE> という名前のサービスは I<libnss_SERVICE.so.>B<X> という名前の共"
14214 "有\n"
14215 "オブジェクトライブラリで実装されている。これは I</lib> に置かれる。"
14216
14217 #. type: Plain text
14218 #: build/C/man5/nsswitch.conf.5:298
14219 msgid "NSS configuration file."
14220 msgstr "NSS の設定ファイル。"
14221
14222 #. type: TP
14223 #: build/C/man5/nsswitch.conf.5:298
14224 #, no-wrap
14225 msgid "I</lib/libnss_compat.so.>B<X>"
14226 msgstr "I</lib/libnss_compat.so.>B<X>"
14227
14228 #. type: Plain text
14229 #: build/C/man5/nsswitch.conf.5:301
14230 msgid "implements \"compat\" source."
14231 msgstr "\"compat\" ソースを実装したもの。"
14232
14233 #. type: TP
14234 #: build/C/man5/nsswitch.conf.5:301
14235 #, no-wrap
14236 msgid "I</lib/libnss_db.so.>B<X>"
14237 msgstr "I</lib/libnss_db.so.>B<X>"
14238
14239 #. type: Plain text
14240 #: build/C/man5/nsswitch.conf.5:304
14241 msgid "implements \"db\" source."
14242 msgstr "\"db\" ソースを実装したもの。"
14243
14244 #. type: TP
14245 #: build/C/man5/nsswitch.conf.5:304
14246 #, no-wrap
14247 msgid "I</lib/libnss_dns.so.>B<X>"
14248 msgstr "I</lib/libnss_dns.so.>B<X>"
14249
14250 #. type: Plain text
14251 #: build/C/man5/nsswitch.conf.5:307
14252 msgid "implements \"dns\" source."
14253 msgstr "\"dns\" ソースを実装したもの。"
14254
14255 #. type: TP
14256 #: build/C/man5/nsswitch.conf.5:307
14257 #, no-wrap
14258 msgid "I</lib/libnss_files.so.>B<X>"
14259 msgstr "I</lib/libnss_files.so.>B<X>"
14260
14261 #. type: Plain text
14262 #: build/C/man5/nsswitch.conf.5:310
14263 msgid "implements \"files\" source."
14264 msgstr "\"files\" ソースを実装したもの。"
14265
14266 #. type: TP
14267 #: build/C/man5/nsswitch.conf.5:310
14268 #, no-wrap
14269 msgid "I</lib/libnss_hesiod.so.>B<X>"
14270 msgstr "I</lib/libnss_hesiod.so.>B<X>"
14271
14272 #. type: Plain text
14273 #: build/C/man5/nsswitch.conf.5:313
14274 msgid "implements \"hesiod\" source."
14275 msgstr "\"hesoid\" ソースを実装したもの。"
14276
14277 #. type: TP
14278 #: build/C/man5/nsswitch.conf.5:313
14279 #, no-wrap
14280 msgid "I</lib/libnss_nis.so.>B<X>"
14281 msgstr "I</lib/libnss_nis.so.>B<X>"
14282
14283 #. type: Plain text
14284 #: build/C/man5/nsswitch.conf.5:316
14285 msgid "implements \"nis\" source."
14286 msgstr "\"nis\" ソースを実装したもの。"
14287
14288 #. type: TP
14289 #: build/C/man5/nsswitch.conf.5:316
14290 #, no-wrap
14291 msgid "I</lib/libnss_nisplus.so.>B<X>"
14292 msgstr "I</lib/libnss_nisplus.so.>B<X>"
14293
14294 #. type: Plain text
14295 #: build/C/man5/nsswitch.conf.5:319
14296 msgid "implements \"nisplus\" source."
14297 msgstr "\"nisplus\" ソースを実装したもの。"
14298
14299 #. type: Plain text
14300 #: build/C/man5/nsswitch.conf.5:327
14301 msgid ""
14302 "Within each process that uses B<nsswitch.conf>, the entire file is read only "
14303 "once.  If the file is later changed, the process will continue using the old "
14304 "configuration."
14305 msgstr ""
14306 "I<nsswitch.conf> を利用するプロセスは、ファイルは一度しか読み込まない。\n"
14307 "その後で nsswitch.conf が書き換えられても、そのプロセスは古い設定のままで\n"
14308 "動作を継続する。"
14309
14310 #. type: Plain text
14311 #: build/C/man5/nsswitch.conf.5:340
14312 msgid ""
14313 "Traditionally, there was only a single source for service information, often "
14314 "in the form of a single configuration file (e.g., I</etc/passwd>).  However, "
14315 "as other name services, such as the Network Information Service (NIS) and "
14316 "the Domain Name Service (DNS), became popular, a method was needed that "
14317 "would be more flexible than fixed search orders coded into the C library.  "
14318 "The Name Service Switch mechanism, which was based on the mechanism used by "
14319 "Sun Microsystems in the Solaris 2 C library, introduced a cleaner solution "
14320 "to the problem."
14321 msgstr ""
14322
14323 #. type: Plain text
14324 #: build/C/man5/nsswitch.conf.5:343
14325 msgid "B<getent>(1), B<nss>(5)"
14326 msgstr "B<getent>(1), B<nss>(5)"
14327
14328 #. type: TH
14329 #: build/C/man7/packet.7:7
14330 #, no-wrap
14331 msgid "PACKET"
14332 msgstr "PACKET"
14333
14334 #. type: TH
14335 #: build/C/man7/packet.7:7
14336 #, no-wrap
14337 msgid "2012-03-25"
14338 msgstr "2012-03-25"
14339
14340 #. type: Plain text
14341 #: build/C/man7/packet.7:10
14342 msgid "packet, AF_PACKET - packet interface on device level."
14343 msgstr "packet, AF_PACKET - デバイスレベルのパケットインターフェース"
14344
14345 #. type: Plain text
14346 #: build/C/man7/packet.7:13
14347 #, no-wrap
14348 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
14349 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
14350
14351 #. type: Plain text
14352 #: build/C/man7/packet.7:15
14353 #, no-wrap
14354 msgid "B<#include E<lt>netpacket/packet.hE<gt>>\n"
14355 msgstr "B<#include E<lt>netpacket/packet.hE<gt>>\n"
14356
14357 #. type: Plain text
14358 #: build/C/man7/packet.7:17
14359 #, no-wrap
14360 msgid "B<#include E<lt>net/ethernet.hE<gt> /* the L2 protocols */>\n"
14361 msgstr "B<#include E<lt>net/ethernet.hE<gt> /* the L2 protocols */>\n"
14362
14363 #. type: Plain text
14364 #: build/C/man7/packet.7:19
14365 #, no-wrap
14366 msgid "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n"
14367 msgstr "B<packet_socket = socket(AF_PACKET, int >I<socket_type>B<, int >I<protocol>B<);>\n"
14368
14369 #. type: Plain text
14370 #: build/C/man7/packet.7:25
14371 msgid ""
14372 "Packet sockets are used to receive or send raw packets at the device driver "
14373 "(OSI Layer 2) level.  They allow the user to implement protocol modules in "
14374 "user space on top of the physical layer."
14375 msgstr ""
14376 "packet ソケットは、デバイスドライバ (OSI レイヤ 2) レベルで 生のパケット "
14377 "(raw packet) を送受信するために用いられる。 packet ソケットを使うと、ユーザー"
14378 "空間で物理層の上に プロトコルモジュールを実装することができる。"
14379
14380 #. type: Plain text
14381 #: build/C/man7/packet.7:47
14382 msgid ""
14383 "The I<socket_type> is either B<SOCK_RAW> for raw packets including the link "
14384 "level header or B<SOCK_DGRAM> for cooked packets with the link level header "
14385 "removed.  The link level header information is available in a common format "
14386 "in a I<sockaddr_ll>.  I<protocol> is the IEEE 802.3 protocol number in "
14387 "network order.  See the I<E<lt>linux/if_ether.hE<gt>> include file for a "
14388 "list of allowed protocols.  When protocol is set to B<htons(ETH_P_ALL)> then "
14389 "all protocols are received.  All incoming packets of that protocol type will "
14390 "be passed to the packet socket before they are passed to the protocols "
14391 "implemented in the kernel."
14392 msgstr ""
14393 "I<socket_type> には B<SOCK_RAW> と B<SOCK_DGRAM> のいずれかを指定する。 "
14394 "B<SOCK_RAW> はリンクレベルヘッダを含む raw パケットを、 B<SOCK_DGRAM> はリン"
14395 "クレベルヘッダが削除された加工済みパケットを示す。 リンクレベルヘッダ情報は "
14396 "I<sockaddr_ll> で共通のフォーマットで入手できる。 I<protocol> には IEEE "
14397 "802.3 プロトコル番号を ネットワークバイトオーダーで指定する。 指定できるプロ"
14398 "トコルのリストは、インクルードファイル I<E<lt>linux/if_ether.hE<gt>> を参照。"
14399 "プロトコルを B<htons(ETH_P_ALL)> にすると、全てのプロトコルが受信される。 外"
14400 "部から来たパケットのうち指定したプロトコルのものは、 カーネルに実装されている"
14401 "プロトコルに渡される前の段階で、 packet ソケットに渡される。"
14402
14403 #. type: Plain text
14404 #: build/C/man7/packet.7:51
14405 msgid ""
14406 "Only processes with effective UID 0 or the B<CAP_NET_RAW> capability may "
14407 "open packet sockets."
14408 msgstr ""
14409 "packet ソケットをオープンできるのは、 実効ユーザーID が 0 のプロセスか、 "
14410 "B<CAP_NET_RAW> ケーパビリティを持つプロセスだけである。"
14411
14412 #. type: Plain text
14413 #: build/C/man7/packet.7:69
14414 msgid ""
14415 "B<SOCK_RAW> packets are passed to and from the device driver without any "
14416 "changes in the packet data.  When receiving a packet, the address is still "
14417 "parsed and passed in a standard I<sockaddr_ll> address structure.  When "
14418 "transmitting a packet, the user supplied buffer should contain the physical "
14419 "layer header.  That packet is then queued unmodified to the network driver "
14420 "of the interface defined by the destination address.  Some device drivers "
14421 "always add other headers.  B<SOCK_RAW> is similar to but not compatible with "
14422 "the obsolete B<AF_INET/SOCK_PACKET> of Linux 2.0."
14423 msgstr ""
14424 "B<SOCK_RAW> パケットでは、パケットをデバイスドライバと受け渡しする際、 パケッ"
14425 "トデータに変更が行われることはない。 パケットの受信時には、アドレスの解析だけ"
14426 "は行われ、 標準的な I<sockaddr_ll> アドレス構造体に渡される。パケットの送信時"
14427 "には、ユーザが指定する バッファに物理層のヘッダが含まれている必要がある。 パ"
14428 "ケットはそのまま修正を受けずに、行き先アドレスから決定される インターフェース"
14429 "のネットワークドライバにキューイングされる。 デバイスドライバによっては、他の"
14430 "ヘッダを常に追加するものもある。 B<SOCK_RAW> は Linux 2.0 の obosolete な "
14431 "B<AF_INET/SOCK_PACKET> と似ているが、互換性があるわけではない。"
14432
14433 #. type: Plain text
14434 #: build/C/man7/packet.7:79
14435 msgid ""
14436 "B<SOCK_DGRAM> operates on a slightly higher level.  The physical header is "
14437 "removed before the packet is passed to the user.  Packets sent through a "
14438 "B<SOCK_DGRAM> packet socket get a suitable physical layer header based on "
14439 "the information in the I<sockaddr_ll> destination address before they are "
14440 "queued."
14441 msgstr ""
14442 "B<SOCK_DGRAM> はやや高位のレベルで動作する。物理ヘッダは、パケットがユーザー"
14443 "に 渡される前に削除される。 B<SOCK_DGRAM> の packet ソケットを通して送られる"
14444 "パケットは、 I<sockaddr_ll> の行き先アドレスの情報に基づき、適切な物理層の"
14445 "ヘッダが付加されてから、 キューに送られる。"
14446
14447 #. type: Plain text
14448 #: build/C/man7/packet.7:92
14449 msgid ""
14450 "By default all packets of the specified protocol type are passed to a packet "
14451 "socket.  To only get packets from a specific interface use B<bind>(2)  "
14452 "specifying an address in a I<struct sockaddr_ll> to bind the packet socket "
14453 "to an interface.  Only the I<sll_protocol> and the I<sll_ifindex> address "
14454 "fields are used for purposes of binding."
14455 msgstr ""
14456 "デフォルトでは、指定したプロトコル型のパケットはすべて packet ソケットに送ら"
14457 "れる。特定のインターフェースからのパケットだけを 取得したい場合には、 "
14458 "I<struct sockaddr_ll> にアドレスを指定して B<bind>(2)  を呼び、 packet ソケッ"
14459 "トをそのインターフェースに結び付ける (バインドする)。 バインドの際には、アド"
14460 "レスフィールドのうち I<sll_protocol> と I<sll_ifindex> だけが用いられる。"
14461
14462 #. type: Plain text
14463 #: build/C/man7/packet.7:96
14464 msgid "The B<connect>(2)  operation is not supported on packet sockets."
14465 msgstr "B<connect>(2)  操作は packet ソケットではサポートされていない。"
14466
14467 #. type: Plain text
14468 #: build/C/man7/packet.7:105
14469 msgid ""
14470 "When the B<MSG_TRUNC> flag is passed to B<recvmsg>(2), B<recv>(2), "
14471 "B<recvfrom>(2)  the real length of the packet on the wire is always "
14472 "returned, even when it is longer than the buffer."
14473 msgstr ""
14474 "B<MSG_TRUNC> フラグが B<recvmsg>(2), B<recv>(2), B<recvfrom>(2)  に渡される"
14475 "と、 (バッファサイズより大きかったとしても) 常に実際に通信された パケットの長"
14476 "さが返される。"
14477
14478 #. type: SS
14479 #: build/C/man7/packet.7:105
14480 #, no-wrap
14481 msgid "Address Types"
14482 msgstr "アドレスのタイプ"
14483
14484 #. type: Plain text
14485 #: build/C/man7/packet.7:107
14486 msgid "The sockaddr_ll is a device independent physical layer address."
14487 msgstr "sockaddr_ll はデバイスに依存しない物理層のアドレスである。"
14488
14489 #. type: Plain text
14490 #: build/C/man7/packet.7:119
14491 #, no-wrap
14492 msgid ""
14493 "struct sockaddr_ll {\n"
14494 "    unsigned short sll_family;   /* Always AF_PACKET */\n"
14495 "    unsigned short sll_protocol; /* Physical layer protocol */\n"
14496 "    int            sll_ifindex;  /* Interface number */\n"
14497 "    unsigned short sll_hatype;   /* ARP hardware type */\n"
14498 "    unsigned char  sll_pkttype;  /* Packet type */\n"
14499 "    unsigned char  sll_halen;    /* Length of address */\n"
14500 "    unsigned char  sll_addr[8];  /* Physical layer address */\n"
14501 "};\n"
14502 msgstr ""
14503 "struct sockaddr_ll {\n"
14504 "    unsigned short sll_family;   /* 常に AF_PACKET */\n"
14505 "    unsigned short sll_protocol; /* 物理層のプロトコル */\n"
14506 "    int            sll_ifindex;  /* インターフェース番号 */\n"
14507 "    unsigned short sll_hatype;   /* ARP ハードウェア種別 */\n"
14508 "    unsigned char  sll_pkttype;  /* パケット種別 */\n"
14509 "    unsigned char  sll_halen;    /* アドレスの長さ */\n"
14510 "    unsigned char  sll_addr[8];  /* 物理層のアドレス */\n"
14511 "};\n"
14512
14513 #. type: Plain text
14514 #: build/C/man7/packet.7:158
14515 msgid ""
14516 "I<sll_protocol> is the standard ethernet protocol type in network order as "
14517 "defined in the I<E<lt>linux/if_ether.hE<gt>> include file.  It defaults to "
14518 "the socket's protocol.  I<sll_ifindex> is the interface index of the "
14519 "interface (see B<netdevice>(7)); 0 matches any interface (only permitted for "
14520 "binding).  I<sll_hatype> is an ARP type as defined in the I<E<lt>linux/"
14521 "if_arp.hE<gt>> include file.  I<sll_pkttype> contains the packet type.  "
14522 "Valid types are B<PACKET_HOST> for a packet addressed to the local host, "
14523 "B<PACKET_BROADCAST> for a physical layer broadcast packet, "
14524 "B<PACKET_MULTICAST> for a packet sent to a physical layer multicast address, "
14525 "B<PACKET_OTHERHOST> for a packet to some other host that has been caught by "
14526 "a device driver in promiscuous mode, and B<PACKET_OUTGOING> for a packet "
14527 "originated from the local host that is looped back to a packet socket.  "
14528 "These types make only sense for receiving.  I<sll_addr> and I<sll_halen> "
14529 "contain the physical layer (e.g., IEEE 802.3) address and its length.  The "
14530 "exact interpretation depends on the device."
14531 msgstr ""
14532 "I<sll_protocol> は標準的なイーサネットプロトコルのタイプで、 ネットワーク\n"
14533 "バイトオーダーで記述する。 インクルードファイル\n"
14534 "I<E<lt>linux/if_ether.hE<gt>> で定義されている。 これがこのソケットのプロト\n"
14535 "コルのデフォルトとなる。 I<sll_ifindex> はそのインターフェースの interface\n"
14536 "index である (B<netdevice>(7) を参照)。 0 は (バインドが許可されている) 任\n"
14537 "意のインターフェースにマッチする。 I<sll_hatype> は、インクルードファイル\n"
14538 "I<E<lt>linux/if_arp.hE<gt>> で定義されている ARP 種別である。\n"
14539 "I<sll_pkttype> はパケット種別である。指定できる種別は以下のいずれかである:\n"
14540 "B<PACKET_HOST> (ローカルホスト向けのパケット)、 B<PACKET_BORADCAST> (物理層\n"
14541 "のブロードキャストパケット)、 B<PACKET_MULTICAST> (物理層のマルチキャストア\n"
14542 "ドレスに送るパケット)、 B<PACKET_OTHERHOST> (他のホストに向けられたパケット\n"
14543 "のうち、 無差別モード (promiscuous mode: 後述) のデバイスドライバにより補足\n"
14544 "されたもの)、 B<PACKET_OUTGOING> (ローカルホストから発信され、 packet ソ"
14545 "ケッ\n"
14546 "トにループバックしてきたパケット)。 これらの種別が意味を持つのは受信時のみ\n"
14547 "である。 I<sll_addr> と I<sll_halen> は、物理層の (つまり IEEE 802.3 の) \n"
14548 "アドレスとその長さである。 厳密な解釈はデバイスに依存する。"
14549
14550 #. type: Plain text
14551 #: build/C/man7/packet.7:174
14552 msgid ""
14553 "When you send packets it is enough to specify I<sll_family>, I<sll_addr>, "
14554 "I<sll_halen>, I<sll_ifindex>.  The other fields should be 0.  I<sll_hatype> "
14555 "and I<sll_pkttype> are set on received packets for your information.  For "
14556 "bind only I<sll_protocol> and I<sll_ifindex> are used."
14557 msgstr ""
14558 "パケットを送る場合は、 I<sll_family>, I<sll_addr>, I<sll_halen>, "
14559 "I<sll_ifindex> を指定すれば十分である。 その他のフィールドは 0 にしておくべき"
14560 "である。 I<sll_hatype> と I<sll_pkttype> には受信したパケットの情報が設定され"
14561 "る。 バインドの際には、 I<sll_protocol> と I<sll_ifindex> だけが使用される。"
14562
14563 #. type: Plain text
14564 #: build/C/man7/packet.7:189
14565 msgid ""
14566 "Packet sockets can be used to configure physical layer multicasting and "
14567 "promiscuous mode.  It works by calling B<setsockopt>(2)  on a packet socket "
14568 "for B<SOL_PACKET> and one of the options B<PACKET_ADD_MEMBERSHIP> to add a "
14569 "binding or B<PACKET_DROP_MEMBERSHIP> to drop it.  They both expect a "
14570 "B<packet_mreq> structure as argument:"
14571 msgstr ""
14572 "packet ソケットは、物理層のマルチキャストや 無差別モード (promiscuous mode) "
14573 "を設定して使うことができる。 これには B<SOL_PACKET> と以下のオプションのいず"
14574 "れかを指定して B<setsockopt>(2)  を呼べばよい。 バインドを追加する場合は "
14575 "B<PACKET_ADD_MEMBERSHIP> であり、取り去る場合は B<PACKET_DROP_MEMBERSHIP> で"
14576 "ある。これらはいずれも B<packet_mreq> 構造体を引き数に取る。"
14577
14578 #. type: Plain text
14579 #: build/C/man7/packet.7:198
14580 #, no-wrap
14581 msgid ""
14582 "struct packet_mreq {\n"
14583 "    int            mr_ifindex;    /* interface index */\n"
14584 "    unsigned short mr_type;       /* action */\n"
14585 "    unsigned short mr_alen;       /* address length */\n"
14586 "    unsigned char  mr_address[8]; /* physical layer address */\n"
14587 "};\n"
14588 msgstr ""
14589 "struct packet_mreq {\n"
14590 "    int            mr_ifindex;    /* インターフェース番号 */\n"
14591 "    unsigned short mr_type;       /* 動作 */\n"
14592 "    unsigned short mr_alen;       /* アドレスの長さ */\n"
14593 "    unsigned char  mr_address[8]; /* 物理層のアドレス */\n"
14594 "};\n"
14595
14596 #. type: Plain text
14597 #: build/C/man7/packet.7:219
14598 msgid ""
14599 "B<mr_ifindex> contains the interface index for the interface whose status "
14600 "should be changed.  The B<mr_type> parameter specifies which action to "
14601 "perform.  B<PACKET_MR_PROMISC> enables receiving all packets on a shared "
14602 "medium (often known as \"promiscuous mode\"), B<PACKET_MR_MULTICAST> binds "
14603 "the socket to the physical layer multicast group specified in B<mr_address> "
14604 "and B<mr_alen>, and B<PACKET_MR_ALLMULTI> sets the socket up to receive all "
14605 "multicast packets arriving at the interface."
14606 msgstr ""
14607 "I<mr_ifindex> は、ステータスを変更したいインターフェースの インターフェース番"
14608 "号である。 I<mr_type> パラメータは実行する動作を指定する: "
14609 "B<PACKET_MR_PROMISC> は、共有している媒体からの全てのパケットを受信できるよう"
14610 "にする (しばしば \"無差別モード (promiscuous mode)\" と呼ばれる)。 "
14611 "B<PACKET_MR_MULTICAST> は、そのソケットを、 I<mr_address> と I<mr_alen> で指"
14612 "定される物理層のマルチキャストブループにバインドする。 B<PACKET_MR_ALLMULTI> "
14613 "は socket を up にして、そのインターフェースに到達したすべての マルチキャスト"
14614 "パケットを受信できるようにする。"
14615
14616 #. type: Plain text
14617 #: build/C/man7/packet.7:225
14618 msgid ""
14619 "In addition the traditional ioctls B<SIOCSIFFLAGS>, B<SIOCADDMULTI>, "
14620 "B<SIOCDELMULTI> can be used for the same purpose."
14621 msgstr ""
14622 "昔からある ioctl だけでなく、 B<SIOCSIFFLAGS>, B<SIOCADDMULTI>, "
14623 "B<SIOCDELMULTI> を同じ目的に用いることができる。"
14624
14625 #.  FIXME Document SIOCGSTAMPNS
14626 #. type: Plain text
14627 #: build/C/man7/packet.7:231
14628 msgid ""
14629 "B<SIOCGSTAMP> can be used to receive the timestamp of the last received "
14630 "packet.  Argument is a I<struct timeval.>"
14631 msgstr ""
14632 "B<SIOCGSTAMP> を用いると、最後に受信したパケットのタイムスタンプを得ることが"
14633 "できる。 引き数は I<struct timeval> である。"
14634
14635 #. type: Plain text
14636 #: build/C/man7/packet.7:237
14637 msgid ""
14638 "In addition all standard ioctls defined in B<netdevice>(7)  and B<socket>"
14639 "(7)  are valid on packet sockets."
14640 msgstr ""
14641 "さらに、 B<netdevice>(7)  および B<socket>(7)  で定義されている標準の ioctl "
14642 "はいずれも packet ソケットに指定可能である。"
14643
14644 #. type: SS
14645 #: build/C/man7/packet.7:237 build/C/man7/raw.7:127 build/C/man7/tcp.7:1080
14646 #: build/C/man7/udp.7:97
14647 #, no-wrap
14648 msgid "Error Handling"
14649 msgstr "エラー処理"
14650
14651 #. type: Plain text
14652 #: build/C/man7/packet.7:241
14653 msgid ""
14654 "Packet sockets do no error handling other than errors occurred while passing "
14655 "the packet to the device driver.  They don't have the concept of a pending "
14656 "error."
14657 msgstr ""
14658 "packet ソケットは、パケットをデバイスドライバに渡すときに 起きたエラーしか処"
14659 "理しない。遅延エラー (pending error)  に関する概念は持っていない。"
14660
14661 #. type: Plain text
14662 #: build/C/man7/packet.7:245
14663 msgid "Unknown multicast group address passed."
14664 msgstr "不明なマルチキャストグループアドレスが渡された。"
14665
14666 #. type: Plain text
14667 #: build/C/man7/packet.7:248
14668 msgid "User passed invalid memory address."
14669 msgstr "ユーザが渡したメモリアドレスが不正。"
14670
14671 #. type: Plain text
14672 #: build/C/man7/packet.7:251 build/C/man7/raw.7:151
14673 msgid "Invalid argument."
14674 msgstr "引き数が不正。"
14675
14676 #. type: Plain text
14677 #: build/C/man7/packet.7:254
14678 msgid "Packet is bigger than interface MTU."
14679 msgstr "パケットがインターフェースの MTU より大きい。"
14680
14681 #. type: TP
14682 #: build/C/man7/packet.7:254
14683 #, no-wrap
14684 msgid "B<ENETDOWN>"
14685 msgstr "B<ENETDOWN>"
14686
14687 #. type: Plain text
14688 #: build/C/man7/packet.7:257
14689 msgid "Interface is not up."
14690 msgstr "インターフェースが up でない。"
14691
14692 #. type: Plain text
14693 #: build/C/man7/packet.7:260
14694 msgid "Not enough memory to allocate the packet."
14695 msgstr "パケットに割り当てるメモリが足りない。"
14696
14697 #. type: Plain text
14698 #: build/C/man7/packet.7:263
14699 msgid "Unknown device name or interface index specified in interface address."
14700 msgstr ""
14701 "デバイス名が不明。あるいはインターフェースアドレスで指定された インターフェー"
14702 "スインデックスが不明。"
14703
14704 #. type: Plain text
14705 #: build/C/man7/packet.7:266
14706 msgid "No packet received."
14707 msgstr "パケットを一つも受信していない。"
14708
14709 #. type: Plain text
14710 #: build/C/man7/packet.7:269
14711 msgid "No interface address passed."
14712 msgstr "インターフェースアドレスが渡されなかった。"
14713
14714 #. type: TP
14715 #: build/C/man7/packet.7:269
14716 #, no-wrap
14717 msgid "B<ENXIO>"
14718 msgstr "B<ENXIO>"
14719
14720 #. type: Plain text
14721 #: build/C/man7/packet.7:272
14722 msgid "Interface address contained an invalid interface index."
14723 msgstr ""
14724 "インターフェースアドレスに不正なインターフェースインデックスが含まれている。"
14725
14726 #. type: Plain text
14727 #: build/C/man7/packet.7:275
14728 msgid "User has insufficient privileges to carry out this operation."
14729 msgstr "この操作を行うのに必要な権限をユーザが持っていない。"
14730
14731 #. type: Plain text
14732 #: build/C/man7/packet.7:277
14733 msgid "In addition other errors may be generated by the low-level driver."
14734 msgstr "上記以外のエラーが、低レベルのドライバで生成されることがある。"
14735
14736 #. type: Plain text
14737 #: build/C/man7/packet.7:282
14738 msgid ""
14739 "B<AF_PACKET> is a new feature in Linux 2.2.  Earlier Linux versions "
14740 "supported only B<SOCK_PACKET>."
14741 msgstr ""
14742 "B<AF_PACKET> は Linux 2.2 の新機能である。これより古いバージョンの Linux で"
14743 "は B<SOCK_PACKET> のみをサポートしていた。"
14744
14745 #. type: Plain text
14746 #: build/C/man7/packet.7:287
14747 msgid ""
14748 "The include file I<E<lt>netpacket/packet.hE<gt>> is present since glibc "
14749 "2.1.  Older systems need:"
14750 msgstr ""
14751 "インクルードファイル I<E<lt>netpacket/packet.hE<gt>> が存在するのは glibc "
14752 "2.1 以降である。 それ以前のシステムでは以下のようにする必要がある:"
14753
14754 #. type: Plain text
14755 #: build/C/man7/packet.7:293
14756 #, no-wrap
14757 msgid ""
14758 "#include E<lt>asm/types.hE<gt>\n"
14759 "#include E<lt>linux/if_packet.hE<gt>\n"
14760 "#include E<lt>linux/if_ether.hE<gt>  /* The L2 protocols */\n"
14761 msgstr ""
14762 "#include E<lt>asm/types.hE<gt>\n"
14763 "#include E<lt>linux/if_packet.hE<gt>\n"
14764 "#include E<lt>linux/if_ether.hE<gt>  /* The L2 protocols */\n"
14765
14766 #. type: Plain text
14767 #: build/C/man7/packet.7:303
14768 msgid ""
14769 "For portable programs it is suggested to use B<AF_PACKET> via B<pcap>(3); "
14770 "although this only covers a subset of the B<AF_PACKET> features."
14771 msgstr ""
14772 "移植性の必要なプログラムでは、 B<pcap>(3)  経由で B<AF_PACKET> を用いることを"
14773 "お薦めする。ただし、この方法では B<AF_PACKET> の機能すべてを利用することはで"
14774 "きない。"
14775
14776 #. type: Plain text
14777 #: build/C/man7/packet.7:324
14778 msgid ""
14779 "The B<SOCK_DGRAM> packet sockets make no attempt to create or parse the IEEE "
14780 "802.2 LLC header for a IEEE 802.3 frame.  When B<ETH_P_802_3> is specified "
14781 "as protocol for sending the kernel creates the 802.3 frame and fills out the "
14782 "length field; the user has to supply the LLC header to get a fully "
14783 "conforming packet.  Incoming 802.3 packets are not multiplexed on the DSAP/"
14784 "SSAP protocol fields; instead they are supplied to the user as protocol "
14785 "B<ETH_P_802_2> with the LLC header prepended.  It is thus not possible to "
14786 "bind to B<ETH_P_802_3>; bind to B<ETH_P_802_2> instead and do the protocol "
14787 "multiplex yourself.  The default for sending is the standard Ethernet DIX "
14788 "encapsulation with the protocol filled in."
14789 msgstr ""
14790 "B<SOCK_DGRAM> packet ソケットは、IEEE 802.3 フレームの IEEE 802.2 LLC ヘッダ"
14791 "の 生成や解析を行おうとしない。 B<ETH_P_802_3> が送信プロトコルに指定される"
14792 "と、カーネルは 802.3 フレームを 生成して length フィールドに書き込む。 完全に"
14793 "準拠したパケットを得るためにはユーザーが LLC ヘッダを 与える必要がある。到着"
14794 "した 802.3 パケットでは、 DSAP/SSAP protocol の各フィールドは多重化 "
14795 "(multiplex) されていない。 代わりにこれらは LLC ヘッダが前置された "
14796 "B<ETH_P_802_2> プロトコルとして与えられる。したがって、 B<ETH_P_802_3> にバイ"
14797 "ンドすることはできない。かわりに B<ETH_P_802_2> にバインドし、自分自身でプロ"
14798 "トコルの多重化を行うこと。 送信のデフォルトは、プロトコルフィールドを持つ 標"
14799 "準の Ethernet DIX encapsulation である。"
14800
14801 #. type: Plain text
14802 #: build/C/man7/packet.7:326
14803 msgid "Packet sockets are not subject to the input or output firewall chains."
14804 msgstr "packet ソケットは入出力の firewall chain に影響をうけない。"
14805
14806 #. type: Plain text
14807 #: build/C/man7/packet.7:336
14808 msgid ""
14809 "In Linux 2.0, the only way to get a packet socket was by calling B<socket"
14810 "(AF_INET, SOCK_PACKET, >I<protocol>B<)>.  This is still supported but "
14811 "strongly deprecated.  The main difference between the two methods is that "
14812 "B<SOCK_PACKET> uses the old I<struct sockaddr_pkt> to specify an interface, "
14813 "which doesn't provide physical layer independence."
14814 msgstr ""
14815 "Linux 2.0 では、 packet ソケットを得る方法は B<socket(AF_INET, SOCK_PACKET, "
14816 ">I<protocol>B<)> を呼ぶやり方しかなかった。この方法はまだサポートされている"
14817 "が、 用いないことを強く推奨する。現在の方法との主な違いは、 B<SOCK_PACKET> で"
14818 "はインターフェースの指定に古い I<struct sockaddr_pkt> を用いる点である。これ"
14819 "には物理層からの独立性がない。"
14820
14821 #. type: Plain text
14822 #: build/C/man7/packet.7:344
14823 #, no-wrap
14824 msgid ""
14825 "struct sockaddr_pkt {\n"
14826 "    unsigned short spkt_family;\n"
14827 "    unsigned char  spkt_device[14];\n"
14828 "    unsigned short spkt_protocol;\n"
14829 "};\n"
14830 msgstr ""
14831 "struct sockaddr_pkt {\n"
14832 "    unsigned short spkt_family;\n"
14833 "    unsigned char  spkt_device[14];\n"
14834 "    unsigned short spkt_protocol;\n"
14835 "};\n"
14836
14837 #. type: Plain text
14838 #: build/C/man7/packet.7:356
14839 msgid ""
14840 "I<spkt_family> contains the device type, I<spkt_protocol> is the IEEE 802.3 "
14841 "protocol type as defined in I<E<lt>sys/if_ether.hE<gt>> and I<spkt_device> "
14842 "is the device name as a null-terminated string, for example, eth0."
14843 msgstr ""
14844 "I<spkt_family> はデバイスのタイプ、 I<spkt_protocol> は I<E<lt>sys/if_ether."
14845 "hE<gt>> で定義されている IEEE 802.3 プロトコルタイプ、 I<spkt_device> はデバ"
14846 "イスの名前を NULL 終端された文字列で与えたもの (例: eth0) である。"
14847
14848 #. type: Plain text
14849 #: build/C/man7/packet.7:358
14850 msgid "This structure is obsolete and should not be used in new code."
14851 msgstr ""
14852 "この構造体は obsolete であり、 新しくコードを書く時には用いるべきでない。"
14853
14854 #. type: Plain text
14855 #: build/C/man7/packet.7:362
14856 msgid ""
14857 "glibc 2.1 does not have a define for B<SOL_PACKET>.  The suggested "
14858 "workaround is to use:"
14859 msgstr ""
14860 "glibc 2.1 には B<SOL_PACKET> の定義がない。回避策としては、以下のようにすると"
14861 "よい。"
14862
14863 #. type: Plain text
14864 #: build/C/man7/packet.7:368
14865 #, no-wrap
14866 msgid ""
14867 "#ifndef SOL_PACKET\n"
14868 "#define SOL_PACKET 263\n"
14869 "#endif\n"
14870 msgstr ""
14871 "#ifndef SOL_PACKET\n"
14872 "#define SOL_PACKET 263\n"
14873 "#endif\n"
14874
14875 #. type: Plain text
14876 #: build/C/man7/packet.7:373
14877 msgid ""
14878 "This is fixed in later glibc versions and also does not occur on libc5 "
14879 "systems."
14880 msgstr ""
14881 "この問題は新しいバージョンの glibc では修正されている。 libc5 のシステムには"
14882 "この問題はない。"
14883
14884 #. type: Plain text
14885 #: build/C/man7/packet.7:375
14886 msgid "The IEEE 802.2/803.3 LLC handling could be considered as a bug."
14887 msgstr "IEEE 802.2/803.3 の LLC の扱い方は、バグと考えても良いだろう。"
14888
14889 #. type: Plain text
14890 #: build/C/man7/packet.7:377
14891 msgid "Socket filters are not documented."
14892 msgstr "ソケットフィルターについて記載されていない。"
14893
14894 #.  .SH CREDITS
14895 #.  This man page was written by Andi Kleen with help from Matthew Wilcox.
14896 #.  AF_PACKET in Linux 2.2 was implemented
14897 #.  by Alexey Kuznetsov, based on code by Alan Cox and others.
14898 #. type: Plain text
14899 #: build/C/man7/packet.7:389
14900 msgid ""
14901 "The B<MSG_TRUNC> B<recvmsg>(2)  extension is an ugly hack and should be "
14902 "replaced by a control message.  There is currently no way to get the "
14903 "original destination address of packets via B<SOCK_DGRAM>."
14904 msgstr ""
14905 "B<MSG_TRUNC> B<recvmsg>(2)  拡張は非常にまずい対処であり、制御メッセージで置"
14906 "き換えるべきである。 今のところ B<SOCK_DGRAM> 経由でパケットについていた宛先"
14907 "アドレスを得る方法がない。"
14908
14909 #. type: Plain text
14910 #: build/C/man7/packet.7:396
14911 msgid ""
14912 "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), B<socket>"
14913 "(7)"
14914 msgstr ""
14915 "B<socket>(2), B<pcap>(3), B<capabilities>(7), B<ip>(7), B<raw>(7), B<socket>"
14916 "(7)"
14917
14918 #. type: Plain text
14919 #: build/C/man7/packet.7:398
14920 msgid "RFC\\ 894 for the standard IP Ethernet encapsulation."
14921 msgstr "標準 IP Ethernet encapsulation に関する情報は RFC\\ 894 にある。"
14922
14923 #. type: Plain text
14924 #: build/C/man7/packet.7:400
14925 msgid "RFC\\ 1700 for the IEEE 802.3 IP encapsulation."
14926 msgstr "IEEE 802.3 IP encapsulation に関する情報は RFC\\ 1700 にある。"
14927
14928 #. type: Plain text
14929 #: build/C/man7/packet.7:404
14930 msgid ""
14931 "The I<E<lt>linux/if_ether.hE<gt>> include file for physical layer protocols."
14932 msgstr ""
14933 "物理層のプロトコルに関する記述は I<E<lt>linux/if_ether.hE<gt>> インクルード"
14934 "ファイルにある。"
14935
14936 #. type: TH
14937 #: build/C/man5/protocols.5:28
14938 #, no-wrap
14939 msgid "PROTOCOLS"
14940 msgstr "PROTOCOLS"
14941
14942 #. type: TH
14943 #: build/C/man5/protocols.5:28
14944 #, no-wrap
14945 msgid "2008-09-23"
14946 msgstr "2008-09-23"
14947
14948 #. type: Plain text
14949 #: build/C/man5/protocols.5:31
14950 msgid "protocols - protocols definition file"
14951 msgstr "protocols - プロトコル定義ファイル"
14952
14953 #. type: Plain text
14954 #: build/C/man5/protocols.5:39
14955 msgid ""
14956 "This file is a plain ASCII file, describing the various DARPA internet "
14957 "protocols that are available from the TCP/IP subsystem.  It should be "
14958 "consulted instead of using the numbers in the ARPA include files, or, even "
14959 "worse, just guessing them.  These numbers will occur in the protocol field "
14960 "of any IP header."
14961 msgstr ""
14962 "このファイルは ASCII ファイルで、TCP/IP サブシステムから利用できる いろいろ"
14963 "な DARPA インターネットプロトコルを記述している。 ARPA 関連のインクルードファ"
14964 "イル内の数値を使うべきではないし、 単に推測した値を使うのはさらに良くない。 "
14965 "代わりにこのファイルに問い合わせるべきである。 これらの数値は IP ヘッダのプロ"
14966 "トコルフィールドに現れる。"
14967
14968 #.  .. by the DDN Network Information Center.
14969 #. type: Plain text
14970 #: build/C/man5/protocols.5:45
14971 msgid ""
14972 "Keep this file untouched since changes would result in incorrect IP "
14973 "packages.  Protocol numbers and names are specified by the IANA (Internet "
14974 "Assigned Numbers Authority)."
14975 msgstr ""
14976 "このファイルは変更しないこと。変更すると IP パッケージが不正になる。 プロトコ"
14977 "ル番号とプロトコル名は IANA (Internet Assigned Numbers Authority) によって指"
14978 "定される。"
14979
14980 #. type: Plain text
14981 #: build/C/man5/protocols.5:47
14982 msgid "Each line is of the following format:"
14983 msgstr "それぞれの行は次のフォーマットである。"
14984
14985 #. type: Plain text
14986 #: build/C/man5/protocols.5:50
14987 msgid "I<protocol number aliases ...>"
14988 msgstr "I<protocol number aliases ...>"
14989
14990 #. type: Plain text
14991 #: build/C/man5/protocols.5:56
14992 msgid ""
14993 "where the fields are delimited by spaces or tabs.  Empty lines are ignored.  "
14994 "If a line contains a hash mark (#), the hash mark and the part of the line "
14995 "following it are ignored."
14996 msgstr ""
14997 "各フィールドは空白かタブで区切られていて、空行は無視される。 行にハッシュ記号"
14998 "(#)が含まれる場合、 ハッシュ記号を含むその行の残りは無視される。"
14999
15000 #. type: TP
15001 #: build/C/man5/protocols.5:58 build/C/man5/services.5:109
15002 #, no-wrap
15003 msgid "I<protocol>"
15004 msgstr "I<protocol>"
15005
15006 #. type: Plain text
15007 #: build/C/man5/protocols.5:66
15008 msgid ""
15009 "the native name for the protocol.  For example I<ip>, I<tcp>, or I<udp>."
15010 msgstr "プロトコルの固有名。たとえば I<ip>, I<tcp>, I<udp> など。"
15011
15012 #. type: Plain text
15013 #: build/C/man5/protocols.5:70
15014 msgid ""
15015 "the official number for this protocol as it will appear within the IP header."
15016 msgstr "プロトコルの公式番号、IP ヘッダに現れる。"
15017
15018 #. type: Plain text
15019 #: build/C/man5/protocols.5:73
15020 msgid "optional aliases for the protocol."
15021 msgstr "プロトコルの別名、オプション。"
15022
15023 #.  The following is not true as at glibc 2.8 (a line with a comma is
15024 #.  ignored by getservent()); it's not clear if/when it was ever true.
15025 #.    As a backward compatibility feature, the slash (/) between the
15026 #.    .I port
15027 #.    number and
15028 #.    .I protocol
15029 #.    name can in fact be either a slash or a comma (,).
15030 #.    Use of the comma in
15031 #.    modern installations is deprecated.
15032 #. type: Plain text
15033 #: build/C/man5/protocols.5:76 build/C/man5/services.5:165
15034 msgid ""
15035 "This file might be distributed over a network using a network-wide naming "
15036 "service like Yellow Pages/NIS or BIND/Hesiod."
15037 msgstr ""
15038 "このファイルは Yellow Pages/NIS や BIND/Hesiod のようなネットワーク上の名前"
15039 "サービスを用いて、ネットワークを通じて配布される可能性もある。"
15040
15041 #. type: Plain text
15042 #: build/C/man5/protocols.5:80
15043 msgid "The protocols definition file."
15044 msgstr "プロトコル定義ファイル。"
15045
15046 #. type: Plain text
15047 #: build/C/man5/protocols.5:82
15048 msgid "B<getprotoent>(3)"
15049 msgstr "B<getprotoent>(3)"
15050
15051 #. type: Plain text
15052 #: build/C/man5/protocols.5:84
15053 msgid "http://www.iana.org/assignments/protocol-numbers"
15054 msgstr "http://www.iana.org/assignments/protocol-numbers"
15055
15056 #. type: TH
15057 #: build/C/man7/raw.7:9
15058 #, no-wrap
15059 msgid "RAW"
15060 msgstr "RAW"
15061
15062 #. type: Plain text
15063 #: build/C/man7/raw.7:12
15064 msgid "raw, SOCK_RAW - Linux IPv4 raw sockets"
15065 msgstr "raw, SOCK_RAW - Linux の IPv4 raw ソケット"
15066
15067 #. type: Plain text
15068 #: build/C/man7/raw.7:18
15069 msgid "B<raw_socket = socket(AF_INET, SOCK_RAW, int >I<protocol>B<);>"
15070 msgstr "B<raw_socket = socket(AF_INET, SOCK_RAW, int >I<protocol>B<);>"
15071
15072 #. type: Plain text
15073 #: build/C/man7/raw.7:22
15074 msgid ""
15075 "Raw sockets allow new IPv4 protocols to be implemented in user space.  A raw "
15076 "socket receives or sends the raw datagram not including link level headers."
15077 msgstr ""
15078 "raw ソケットを使うと、新しい IPv4 プロトコルをユーザ空間で 実装できるようにな"
15079 "る。 raw ソケットは、リンクレベルヘッダを 含まない raw データグラムの送受信が"
15080 "できる。"
15081
15082 #. type: Plain text
15083 #: build/C/man7/raw.7:28
15084 msgid ""
15085 "The IPv4 layer generates an IP header when sending a packet unless the "
15086 "B<IP_HDRINCL> socket option is enabled on the socket.  When it is enabled, "
15087 "the packet must contain an IP header.  For receiving the IP header is always "
15088 "included in the packet."
15089 msgstr ""
15090 "IPv4 レイヤは、扱っているソケットで B<IP_HDRINCL> ソケットオプションが有効に"
15091 "なっていなければ、 パケットを送信するときに IP ヘッダを生成する。 "
15092 "B<IP_HDRINCL> オプションが有効になっているときは、パケットには IP ヘッダが含"
15093 "まれていなければならない。 受信時には、 IP ヘッダは常にパケットに含まれてい"
15094 "る。"
15095
15096 #. type: Plain text
15097 #: build/C/man7/raw.7:32
15098 msgid ""
15099 "Only processes with an effective user ID of 0 or the B<CAP_NET_RAW> "
15100 "capability are allowed to open raw sockets."
15101 msgstr ""
15102 "実効ユーザー ID が 0 のプロセスか、 B<CAP_NET_RAW> 権限を持つプロセスだけが "
15103 "raw ソケットをオープンすることができる。"
15104
15105 #. type: Plain text
15106 #: build/C/man7/raw.7:39
15107 msgid ""
15108 "All packets or errors matching the I<protocol> number specified for the raw "
15109 "socket are passed to this socket.  For a list of the allowed protocols see "
15110 "RFC\\ 1700 assigned numbers and B<getprotobyname>(3)."
15111 msgstr ""
15112 "この raw ソケットに指定された I<protocol> 番号にマッチする全てのパケットとエ"
15113 "ラーとが、このソケットに渡される。 許可されているプロトコルのリストは RFC\\ "
15114 "1700 の割り当て番号と B<getprotobyname>(3)  を見よ。"
15115
15116 #. type: Plain text
15117 #: build/C/man7/raw.7:49
15118 msgid ""
15119 "A protocol of B<IPPROTO_RAW> implies enabled B<IP_HDRINCL> and is able to "
15120 "send any IP protocol that is specified in the passed header.  Receiving of "
15121 "all IP protocols via B<IPPROTO_RAW> is not possible using raw sockets."
15122 msgstr ""
15123 "B<IPPROTO_RAW> のプロトコルは暗黙のうちに B<IP_HDRINCL> を有効にするので、 渡"
15124 "されたヘッダで指定された、あらゆる IP プロトコルを送信できる。 "
15125 "B<IPPROTO_RAW> 経由でのあらゆる IP プロトコルの受信は、 raw ソケットを用いて"
15126 "は行えない。"
15127
15128 #. type: tbl table
15129 #: build/C/man7/raw.7:54
15130 #, no-wrap
15131 msgid "IP Header fields modified on sending by B<IP_HDRINCL>\n"
15132 msgstr "IP ヘッダフィールド。 B<IP_HDRINCL> によって送信時に変更される。\n"
15133
15134 #. type: tbl table
15135 #: build/C/man7/raw.7:55
15136 #, no-wrap
15137 msgid "IP Checksum:Always filled in.\n"
15138 msgstr "IP チェックサム:常に変更される。\n"
15139
15140 #. type: tbl table
15141 #: build/C/man7/raw.7:56
15142 #, no-wrap
15143 msgid "Source Address:Filled in when zero.\n"
15144 msgstr "ソースアドレス:元の値が 0 の時に変更される。\n"
15145
15146 #. type: tbl table
15147 #: build/C/man7/raw.7:57
15148 #, no-wrap
15149 msgid "Packet Id:Filled in when zero.\n"
15150 msgstr "パケット ID:元の値が 0 の時に変更される。\n"
15151
15152 #. type: tbl table
15153 #: build/C/man7/raw.7:58
15154 #, no-wrap
15155 msgid "Total Length:Always filled in.\n"
15156 msgstr "全体の長さ:常に埋められる。\n"
15157
15158 #. type: Plain text
15159 #: build/C/man7/raw.7:72
15160 msgid ""
15161 "If B<IP_HDRINCL> is specified and the IP header has a nonzero destination "
15162 "address then the destination address of the socket is used to route the "
15163 "packet.  When B<MSG_DONTROUTE> is specified, the destination address should "
15164 "refer to a local interface, otherwise a routing table lookup is done anyway "
15165 "but gatewayed routes are ignored."
15166 msgstr ""
15167 "B<IP_HERINCL> が指定されていて、 IP ヘッダに 0 でない送信先アドレスが記入され"
15168 "ていた場合は、 その送信先アドレスがパケットの経路を決めるのに用いられる。 "
15169 "B<MSG_DONTROUTE> が指定されている時には、 送信先アドレスはローカルなインター"
15170 "フェースを参照するものでなければならない。 さもないと、ルーティングテーブルの"
15171 "参照はいずれにせよ行われるが、 ゲートウェイが必要な経路は無視される。"
15172
15173 #. type: Plain text
15174 #: build/C/man7/raw.7:80
15175 msgid ""
15176 "If B<IP_HDRINCL> isn't set, then IP header options can be set on raw sockets "
15177 "with B<setsockopt>(2); see B<ip>(7)  for more information."
15178 msgstr ""
15179 "B<IP_HDRINCL> がセットされていなければ、 raw ソケットの IP ヘッダオプション"
15180 "を B<setsockopt>(2)  を用いて設定することができる。詳細な情報は B<ip>(7)  を"
15181 "見よ。"
15182
15183 #. type: Plain text
15184 #: build/C/man7/raw.7:85
15185 msgid ""
15186 "In Linux 2.2, all IP header fields and options can be set using IP socket "
15187 "options.  This means raw sockets are usually only needed for new protocols "
15188 "or protocols with no user interface (like ICMP)."
15189 msgstr ""
15190 "Linux 2.2 では、 IP ヘッダの全てのフィールドとオプションとを IP ソケットオプ"
15191 "ションによって設定できる。したがって raw ソケットが必要になるのは、新しいプロ"
15192 "トコルを設計する場合か、 ユーザーインターフェースを持たないプロトコル (ICMP "
15193 "など) を扱う場合に 限られる。"
15194
15195 #. type: Plain text
15196 #: build/C/man7/raw.7:89
15197 msgid ""
15198 "When a packet is received, it is passed to any raw sockets which have been "
15199 "bound to its protocol before it is passed to other protocol handlers (e.g., "
15200 "kernel protocol modules)."
15201 msgstr ""
15202 "パケットは、受信されるとまずプロトコルにバインドしている raw ソケットに渡さ"
15203 "れ、 その後で他のプロトコルハンドラ (カーネルのプロトコルモジュールなど)  に"
15204 "渡される。"
15205
15206 #. type: Plain text
15207 #: build/C/man7/raw.7:105
15208 msgid ""
15209 "Raw sockets use the standard I<sockaddr_in> address structure defined in "
15210 "B<ip>(7).  The I<sin_port> field could be used to specify the IP protocol "
15211 "number, but it is ignored for sending in Linux 2.2 and should be always set "
15212 "to 0 (see BUGS).  For incoming packets, I<sin_port> is set to the protocol "
15213 "of the packet.  See the I<E<lt>netinet/in.hE<gt>> include file for valid IP "
15214 "protocols."
15215 msgstr ""
15216 "raw ソケットは標準の I<sockaddr_in> アドレス構造体を用いる。定義は B<ip>(7)  "
15217 "でなされている。 I<sin_port> フィールドを IP プロトコル番号の指定に用いること"
15218 "ができるが、 Linux 2.2 ではこれは送信時には無視され、常に 0 にされる (バグ の"
15219 "項を参照)。 受信パケットに対しては、 I<sin_port> はそのパケットのプロトコルに"
15220 "セットされる。 用いることのできる IP プロトコルは、インクルードファイル "
15221 "I<E<lt>netinet/in.hE<gt>> を見よ。"
15222
15223 #.  Or SOL_RAW on Linux
15224 #. type: Plain text
15225 #: build/C/man7/raw.7:114
15226 msgid ""
15227 "Raw socket options can be set with B<setsockopt>(2)  and read with "
15228 "B<getsockopt>(2)  by passing the B<IPPROTO_RAW> family flag."
15229 msgstr ""
15230 "raw ソケットのオプションは、 B<IPPROTO_RAW> ファミリーフラグを与えて "
15231 "B<setsockopt>(2)  を呼べば設定でき、 B<getsockopt>(2)  を呼べば取得できる。"
15232
15233 #. type: TP
15234 #: build/C/man7/raw.7:114
15235 #, no-wrap
15236 msgid "B<ICMP_FILTER>"
15237 msgstr "B<ICMP_FILTER>"
15238
15239 #. type: Plain text
15240 #: build/C/man7/raw.7:122
15241 msgid ""
15242 "Enable a special filter for raw sockets bound to the B<IPPROTO_ICMP> "
15243 "protocol.  The value has a bit set for each ICMP message type which should "
15244 "be filtered out.  The default is to filter no ICMP messages."
15245 msgstr ""
15246 "B<IPPROTO_ICMP> プロトコルにバインドされた raw ソケットのための特殊なフィルタ"
15247 "を有効にする。 この値は ICMP メッセージのタイプそれぞれに対して、どれをフィル"
15248 "ターアウト するかを表したビットセットである。デフォルトでは ICMP メッセージは"
15249 "全くフィルターしない。"
15250
15251 #. type: Plain text
15252 #: build/C/man7/raw.7:127
15253 msgid ""
15254 "In addition, all B<ip>(7)  B<IPPROTO_IP> socket options valid for datagram "
15255 "sockets are supported."
15256 msgstr ""
15257 "さらに、データグラムソケットに使える全ての B<ip>(7)  B<SOL_IP> ソケットオプ"
15258 "ションがサポートされている。"
15259
15260 #. type: Plain text
15261 #: build/C/man7/raw.7:140
15262 msgid ""
15263 "Errors originating from the network are only passed to the user when the "
15264 "socket is connected or the B<IP_RECVERR> flag is enabled.  For connected "
15265 "sockets, only B<EMSGSIZE> and B<EPROTO> are passed for compatibility.  With "
15266 "B<IP_RECVERR>, all network errors are saved in the error queue."
15267 msgstr ""
15268 "ネットワークで生じたエラーがユーザに渡されるのは、 ソケットが接続済みの場合"
15269 "か B<IP_RECVERR> フラグが有効になっている場合に限られる。 接続済みのソケット"
15270 "に対しては、 B<EMSGSIZE> および B<EPROTO> だけが渡される (互換性のため)。 "
15271 "B<IP_RECVERR> を設定すると、全てのネットワークエラーがエラーキューに保存され"
15272 "る。"
15273
15274 #. type: Plain text
15275 #: build/C/man7/raw.7:145
15276 msgid ""
15277 "User tried to send to a broadcast address without having the broadcast flag "
15278 "set on the socket."
15279 msgstr ""
15280 "ユーザーが broadcast フラグを設定していないソケットを用いて ブロードキャスト"
15281 "アドレスに送信を行おうとした。"
15282
15283 #. type: Plain text
15284 #: build/C/man7/raw.7:148
15285 msgid "An invalid memory address was supplied."
15286 msgstr "不正なメモリアドレスが与えられた。"
15287
15288 #. type: Plain text
15289 #: build/C/man7/raw.7:158
15290 msgid ""
15291 "Packet too big.  Either Path MTU Discovery is enabled (the "
15292 "B<IP_MTU_DISCOVER> socket flag) or the packet size exceeds the maximum "
15293 "allowed IPv4 packet size of 64KB."
15294 msgstr ""
15295 "パケットが大きすぎる。 Path MTU Discoverry が有効になっている "
15296 "(B<IP_MTU_DISCOVER> ソケットフラグ) か、パケットのサイズが IPv4 で許されてい"
15297 "る パケットサイズの最大値 64KB を越えている。"
15298
15299 #. type: TP
15300 #: build/C/man7/raw.7:158 build/C/man7/unix.7:360
15301 #, no-wrap
15302 msgid "B<EOPNOTSUPP>"
15303 msgstr "B<EOPNOTSUPP>"
15304
15305 #. type: Plain text
15306 #: build/C/man7/raw.7:162
15307 msgid "Invalid flag has been passed to a socket call (like B<MSG_OOB>)."
15308 msgstr "ソケット呼び出しに不正なフラグ (B<MSG_OOB> など) が渡された。"
15309
15310 #. type: Plain text
15311 #: build/C/man7/raw.7:168
15312 msgid ""
15313 "The user doesn't have permission to open raw sockets.  Only processes with "
15314 "an effective user ID of 0 or the B<CAP_NET_RAW> attribute may do that."
15315 msgstr ""
15316 "ユーザーは raw ソケットをオープンする権限を持っていない。 実行ユーザー ID が "
15317 "0 のプロセスか、 B<CAP_NET_RAW> 属性を持つプロセスだけがこれを行うことができ"
15318 "る。"
15319
15320 #. type: TP
15321 #: build/C/man7/raw.7:168
15322 #, no-wrap
15323 msgid "B<EPROTO>"
15324 msgstr "B<EPROTO>"
15325
15326 #. type: Plain text
15327 #: build/C/man7/raw.7:171
15328 msgid "An ICMP error has arrived reporting a parameter problem."
15329 msgstr "パラメータの問題を報告する ICMP エラーを受け取った。"
15330
15331 #. type: Plain text
15332 #: build/C/man7/raw.7:177
15333 msgid ""
15334 "B<IP_RECVERR> and B<ICMP_FILTER> are new in Linux 2.2.  They are Linux "
15335 "extensions and should not be used in portable programs."
15336 msgstr ""
15337 "B<IP_RECVERR> と B<ICMP_FILTER> は Linux 2.2 で登場した。これらは Linux での"
15338 "拡張であり、 移植性の必要なプログラムでは用いるべきでない。"
15339
15340 #. type: Plain text
15341 #: build/C/man7/raw.7:183
15342 msgid ""
15343 "Linux 2.0 enabled some bug-to-bug compatibility with BSD in the raw socket "
15344 "code when the B<SO_BSDCOMPAT> socket option was set \\(em since Linux 2.2, "
15345 "this option no longer has that effect."
15346 msgstr ""
15347 "Linux 2.0 では B<SO_BSDCOMPAT> ソケットオプションをセットすると、 BSD の raw "
15348 "ソケットにあるバグに互換性を取ることができた \\(em Linux 2.2 以降では、このオ"
15349 "プションはもはや効力を持たない。"
15350
15351 #. type: Plain text
15352 #: build/C/man7/raw.7:201
15353 msgid ""
15354 "By default, raw sockets do path MTU (Maximum Transmission Unit) discovery.  "
15355 "This means the kernel will keep track of the MTU to a specific target IP "
15356 "address and return B<EMSGSIZE> when a raw packet write exceeds it.  When "
15357 "this happens, the application should decrease the packet size.  Path MTU "
15358 "discovery can be also turned off using the B<IP_MTU_DISCOVER> socket option "
15359 "or the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file, see B<ip>(7)  for "
15360 "details.  When turned off, raw sockets will fragment outgoing packets that "
15361 "exceed the interface MTU.  However, disabling it is not recommended for "
15362 "performance and reliability reasons."
15363 msgstr ""
15364 "デフォルトでは、raw ソケットは Path MTU Discovery を行う。 つまり、カーネルは"
15365 "特定の宛先 IP アドレスの MTU (Maximum Transmission Unit; 最大転送単位) を記録"
15366 "し、raw パケットの書き込みが MTU を超えた場合 B<EMSGSIZE> を返す。 "
15367 "B<EMSGSIZE> を返された場合、アプリケーションはパケットサイズを小さくすべきで"
15368 "ある。 ソケットオプション B<IP_MTU_DISCOVER> または I</proc/sys/net/ipv4/"
15369 "ip_no_pmtu_disc> ファイルを使って Path MTU Discovery を無効にすることもでき"
15370 "る (詳細は B<ip>(7)  を参照)。 Path MTU Discovery を無効にした場合は、パケッ"
15371 "トサイズが インタフェースの MTU よりも大きいと raw ソケットはそのパケットを "
15372 "フラグメント化して送出する。 しかしながら、性能と信頼性の理由から Path MTU "
15373 "Discovery を 無効にするのは推奨できない。"
15374
15375 #. type: Plain text
15376 #: build/C/man7/raw.7:210
15377 msgid ""
15378 "A raw socket can be bound to a specific local address using the B<bind>(2)  "
15379 "call.  If it isn't bound, all packets with the specified IP protocol are "
15380 "received.  In addition, a RAW socket can be bound to a specific network "
15381 "device using B<SO_BINDTODEVICE>; see B<socket>(7)."
15382 msgstr ""
15383 "B<bind>(2)  システムコールを用いると、 raw ソケットを 特定のローカルアドレス"
15384 "にバインドさせることができる。 このバインドがされていない場合は、指定した IP "
15385 "プロトコルの すべてのパケットが受信される。 さらに、 B<SO_BINDTODEVICE> を用"
15386 "いれば raw ソケットを特定のネットワークデバイスに バインドさせることもでき"
15387 "る。 B<socket>(7)  を見よ。"
15388
15389 #. type: Plain text
15390 #: build/C/man7/raw.7:221
15391 msgid ""
15392 "An B<IPPROTO_RAW> socket is send only.  If you really want to receive all IP "
15393 "packets, use a B<packet>(7)  socket with the B<ETH_P_IP> protocol.  Note "
15394 "that packet sockets don't reassemble IP fragments, unlike raw sockets."
15395 msgstr ""
15396 "B<IPPROTO_RAW> ソケットは送信専用である。もしどうしてもすべての IP パケット"
15397 "を 受信したい場合は、 B<packet>(7)  ソケットを B<ETH_P_IP> プロトコルで用いる"
15398 "こと。 packet ソケットは raw ソケットのように IP フラグメントを再構成しないこ"
15399 "とに注意。"
15400
15401 #. type: Plain text
15402 #: build/C/man7/raw.7:227
15403 msgid ""
15404 "If you want to receive all ICMP packets for a datagram socket, it is often "
15405 "better to use B<IP_RECVERR> on that particular socket; see B<ip>(7)."
15406 msgstr ""
15407 "datagram ソケットに対するすべての ICMP パケットを受信したい場合は、 特定のソ"
15408 "ケットに対して B<IP_RECVERR> を用いるほうが良い場合が多い。 B<ip>(7)  を見"
15409 "よ。"
15410
15411 #. type: Plain text
15412 #: build/C/man7/raw.7:234
15413 msgid ""
15414 "Raw sockets may tap all IP protocols in Linux, even protocols like ICMP or "
15415 "TCP which have a protocol module in the kernel.  In this case, the packets "
15416 "are passed to both the kernel module and the raw socket(s).  This should not "
15417 "be relied upon in portable programs, many other BSD socket implementation "
15418 "have limitations here."
15419 msgstr ""
15420 "raw ソケットは、 Linux のすべての IP プロトコルを受信することができる。 ICMP "
15421 "や TCP のように、カーネル内部にプロトコルモジュールを持つような ものも可能で"
15422 "ある。この場合には、パケットはカーネルモジュールと raw ソケットの両方に渡され"
15423 "る (raw ソケットが複数あればそれぞれに渡される)。 移植性の必要なプログラムで"
15424 "はこの機能に依存するべきではない。 他の多くの BSD におけるソケットの実装では"
15425 "この点において制限がある。"
15426
15427 #. type: Plain text
15428 #: build/C/man7/raw.7:239
15429 msgid ""
15430 "Linux never changes headers passed from the user (except for filling in some "
15431 "zeroed fields as described for B<IP_HDRINCL>).  This differs from many other "
15432 "implementations of raw sockets."
15433 msgstr ""
15434 "Linux はユーザーから渡されたヘッダを決して変更しない (ただし B<IP_HDRINCL> の"
15435 "説明にあるように、 0 をいくつか埋める場合を除く)。 これは他の多くの raw ソ"
15436 "ケットの実装では異なる。"
15437
15438 #. type: Plain text
15439 #: build/C/man7/raw.7:242
15440 msgid ""
15441 "RAW sockets are generally rather unportable and should be avoided in "
15442 "programs intended to be portable."
15443 msgstr ""
15444 "一般に raw ソケットは移植性がないことが多いので、 移植性が必要なプログラムで"
15445 "は避けるべきである。"
15446
15447 #. type: Plain text
15448 #: build/C/man7/raw.7:248
15449 msgid ""
15450 "Sending on raw sockets should take the IP protocol from I<sin_port>; this "
15451 "ability was lost in Linux 2.2.  The workaround is to use B<IP_HDRINCL>."
15452 msgstr ""
15453 "raw ソケットへの送信では、 IP プロトコルを I<sin_port> から取得できなければな"
15454 "らない。この機能は Linux 2.2 では使えなくなった。 B<IP_HDRINCL> を用いれば同"
15455 "様のことが実現できる。"
15456
15457 #. type: Plain text
15458 #: build/C/man7/raw.7:250
15459 msgid "Transparent proxy extensions are not described."
15460 msgstr "透過プロクシ (transparent proxy) 拡張については記述していない。"
15461
15462 #. type: Plain text
15463 #: build/C/man7/raw.7:255
15464 msgid ""
15465 "When the B<IP_HDRINCL> option is set, datagrams will not be fragmented and "
15466 "are limited to the interface MTU."
15467 msgstr ""
15468 "B<IP_HDRINCL> オプションがセットされているとデータグラムはフラグメント化され"
15469 "ず、 インターフェースの MTU の大きさに制限される。"
15470
15471 #.  .SH AUTHORS
15472 #.  This man page was written by Andi Kleen.
15473 #. type: Plain text
15474 #: build/C/man7/raw.7:265
15475 msgid ""
15476 "Setting the IP protocol for sending in I<sin_port> got lost in Linux 2.2.  "
15477 "The protocol that the socket was bound to or that was specified in the "
15478 "initial B<socket>(2)  call is always used."
15479 msgstr ""
15480 "送信用の IP プロトコルの設定を I<sin_port> にしておく機能は Linux 2.2 から使"
15481 "えなくなった。 ソケットにバインドされているプロトコルか、最初の B<socket>"
15482 "(2)  コールによって指定されたプロトコルが常に用いられる。"
15483
15484 #. type: Plain text
15485 #: build/C/man7/raw.7:271
15486 msgid ""
15487 "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<ip>(7), B<socket>(7)"
15488 msgstr ""
15489 "B<recvmsg>(2), B<sendmsg>(2), B<capabilities>(7), B<ip>(7), B<socket>(7)"
15490
15491 #. type: Plain text
15492 #: build/C/man7/raw.7:274
15493 msgid "B<RFC\\ 1191> for path MTU discovery."
15494 msgstr "パス MTU 発見に関する情報は B<RFC\\ 1191> にある"
15495
15496 #. type: Plain text
15497 #: build/C/man7/raw.7:279
15498 msgid ""
15499 "B<RFC\\ 791> and the I<E<lt>linux/ip.hE<gt>> include file for the IP "
15500 "protocol."
15501 msgstr ""
15502 "IP プロトコルに関しては B<RFC\\ 791> とインクルードファイル I<E<lt>linux/ip."
15503 "hE<gt>> を参照。"
15504
15505 #. type: TH
15506 #: build/C/man3/rcmd.3:41
15507 #, no-wrap
15508 msgid "RCMD"
15509 msgstr "RCMD"
15510
15511 #. type: TH
15512 #: build/C/man3/rcmd.3:41 build/C/man5/resolv.conf.5:21
15513 #: build/C/man3/resolver.3:30 build/C/man3/rexec.3:39 build/C/man7/tcp.7:16
15514 #, no-wrap
15515 msgid "2012-04-23"
15516 msgstr "2012-04-23"
15517
15518 #. type: Plain text
15519 #: build/C/man3/rcmd.3:46
15520 msgid ""
15521 "rcmd, rresvport, iruserok, ruserok, rcmd_af, rresvport_af, iruserok_af, "
15522 "ruserok_af - routines for returning a stream to a remote command"
15523 msgstr ""
15524 "rcmd, rresvport, iruserok, ruserok, rcmd_af, rresvport_af, iruserok_af, \n"
15525 "ruserok_af - リモートコマンドにストリームを返す関数群"
15526
15527 #. type: Plain text
15528 #: build/C/man3/rcmd.3:49
15529 #, no-wrap
15530 msgid "B<#include E<lt>netdb.hE<gt> \\ \\ >/* Or E<lt>unistd.hE<gt> on some systems */\n"
15531 msgstr "B<#include E<lt>netdb.hE<gt> \\ \\ >/* Or E<lt>unistd.hE<gt> on some systems */\n"
15532
15533 #. type: Plain text
15534 #: build/C/man3/rcmd.3:52
15535 #, no-wrap
15536 msgid ""
15537 "B<int rcmd(char **>I<ahost>B<, int >I<inport>B<, const char *>I<locuser>B<, >\n"
15538 "B<         const char *>I<remuser>B<, const char *>I<cmd>B<, int *>I<fd2p>B<);>\n"
15539 msgstr ""
15540 "B<int rcmd(char **>I<ahost>B<, int >I<inport>B<, const char *>I<locuser>B<, >\n"
15541 "B<         const char *>I<remuser>B<, const char *>I<cmd>B<, int *>I<fd2p>B<);>\n"
15542
15543 #. type: Plain text
15544 #: build/C/man3/rcmd.3:54
15545 #, no-wrap
15546 msgid "B<int rresvport(int *>I<port>B<);>\n"
15547 msgstr "B<int rresvport(int *>I<port>B<);>\n"
15548
15549 #. type: Plain text
15550 #: build/C/man3/rcmd.3:57
15551 #, no-wrap
15552 msgid ""
15553 "B<int iruserok(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
15554 "B<             const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
15555 msgstr ""
15556 "B<int iruserok(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
15557 "B<             const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
15558
15559 #. type: Plain text
15560 #: build/C/man3/rcmd.3:60
15561 #, no-wrap
15562 msgid ""
15563 "B<int ruserok(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
15564 "B<            const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
15565 msgstr ""
15566 "B<int ruserok(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
15567 "B<            const char *>I<ruser>B<, const char *>I<luser>B<);>\n"
15568
15569 #. type: Plain text
15570 #: build/C/man3/rcmd.3:64
15571 #, no-wrap
15572 msgid ""
15573 "B<int rcmd_af(char **>I<ahost>B<, int >I<inport>B<, const char *>I<locuser>B<, >\n"
15574 "B<            const char *>I<remuser>B<, const char *>I<cmd>B<, int *>I<fd2p>B<,>\n"
15575 "B<            sa_family_t >I<af>B<);>\n"
15576 msgstr ""
15577 "B<int rcmd_af(char **>I<ahost>B<, int >I<inport>B<, const char *>I<locuser>B<, >\n"
15578 "B<            const char *>I<remuser>B<, const char *>I<cmd>B<, int *>I<fd2p>B<,>\n"
15579 "B<            sa_family_t >I<af>B<);>\n"
15580
15581 #. type: Plain text
15582 #: build/C/man3/rcmd.3:66
15583 #, no-wrap
15584 msgid "B<int rresvport_af(int *>I<port>B<, sa_family_t >I<af>B<);>\n"
15585 msgstr "B<int rresvport_af(int *>I<port>B<, sa_family_t >I<af>B<);>\n"
15586
15587 #. type: Plain text
15588 #: build/C/man3/rcmd.3:70
15589 #, no-wrap
15590 msgid ""
15591 "B<int iruserok_af(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
15592 "B<                const char *>I<ruser>B<, const char *>I<luser>B<, sa_family_t >I<af>B<);>\n"
15593 msgstr ""
15594 "B<int iruserok_af(uint32_t >I<raddr>B<, int >I<superuser>B<, >\n"
15595 "B<                const char *>I<ruser>B<, const char *>I<luser>B<, sa_family_t >I<af>B<);>\n"
15596
15597 #. type: Plain text
15598 #: build/C/man3/rcmd.3:74
15599 #, no-wrap
15600 msgid ""
15601 "B<int ruserok_af(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
15602 "B<               const char *>I<ruser>B<, const char *>I<luser>B<, sa_family_t >I<af>B<);>\n"
15603 msgstr ""
15604 "B<int ruserok_af(const char *>I<rhost>B<, int >I<superuser>B<, >\n"
15605 "B<               const char *>I<ruser>B<, const char *>I<luser>B<, sa_family_t >I<af>B<);>\n"
15606
15607 #. type: Plain text
15608 #: build/C/man3/rcmd.3:90
15609 msgid ""
15610 "B<rcmd>(), B<rcmd_af>(), B<rresvport>(), B<rresvport_af>(), B<iruserok>(), "
15611 "B<iruserok_af>(), B<ruserok>(), B<ruserok_af>(): _BSD_SOURCE"
15612 msgstr ""
15613 "B<rcmd>(), B<rcmd_af>(), B<rresvport>(), B<rresvport_af>(),\n"
15614 "B<iruserok>(), B<iruserok_af>(), B<ruserok>(), B<ruserok_af>():\n"
15615 "_BSD_SOURCE"
15616
15617 #. type: Plain text
15618 #: build/C/man3/rcmd.3:111
15619 msgid ""
15620 "The B<rcmd>()  function is used by the superuser to execute a command on a "
15621 "remote machine using an authentication scheme based on privileged port "
15622 "numbers.  The B<rresvport>()  function returns a descriptor to a socket with "
15623 "an address in the privileged port space.  The B<iruserok>()  and B<ruserok>"
15624 "()  functions are used by servers to authenticate clients requesting service "
15625 "with B<rcmd>().  All four functions are used by the B<rshd>(8)  server "
15626 "(among others)."
15627 msgstr ""
15628 "B<rcmd>() 関数は、スーパーユーザーがリモートマシンでコマンドを実行する\n"
15629 "ために 用いられる。このとき特権ポート番号をもとにした認証スキームが 用\n"
15630 "いられる。 B<rresvport>() 関数は、特権ポート空間のアドレスを持つソケッ\n"
15631 "トの ディスクリプターを返す。 B<iruserok>() 関数と B<ruserok>() 関数は、\n"
15632 "B<rcmd>() でサービス要求を行ったクライアントの認証を行うために サーバー\n"
15633 "が用いる関数である。 以上の 4 つの関数は、 B<rshd>(8) サーバーによって\n"
15634 "(他の関数とともに) 利用される。"
15635
15636 #. type: SS
15637 #: build/C/man3/rcmd.3:111
15638 #, no-wrap
15639 msgid "rcmd()"
15640 msgstr "rcmd()"
15641
15642 #. type: Plain text
15643 #: build/C/man3/rcmd.3:127
15644 msgid ""
15645 "The B<rcmd>()  function looks up the host I<*ahost> using B<gethostbyname>"
15646 "(3), returning -1 if the host does not exist.  Otherwise I<*ahost> is set to "
15647 "the standard name of the host and a connection is established to a server "
15648 "residing at the well-known Internet port I<inport>."
15649 msgstr ""
15650 "B<rcmd>()  関数は B<gethostbyname>(3)  を用いて I<*ahost> の参照を行う。ホス"
15651 "トが存在しない場合は -1 を返す。 見つかった場合は I<*ahost> にホストの標準名 "
15652 "(standard name) をセットして、 予約されているインターネットポート I<inport> "
15653 "経由でサーバーへの接続を確立する。"
15654
15655 #. type: Plain text
15656 #: build/C/man3/rcmd.3:156
15657 msgid ""
15658 "If the connection succeeds, a socket in the Internet domain of type "
15659 "B<SOCK_STREAM> is returned to the caller, and given to the remote command as "
15660 "I<stdin> and I<stdout>.  If I<fd2p> is nonzero, then an auxiliary channel to "
15661 "a control process will be set up, and a descriptor for it will be placed in "
15662 "I<*fd2p>.  The control process will return diagnostic output from the "
15663 "command (unit 2) on this channel, and will also accept bytes on this channel "
15664 "as being UNIX signal numbers, to be forwarded to the process group of the "
15665 "command.  If I<fd2p> is 0, then the I<stderr> (unit 2 of the remote command) "
15666 "will be made the same as the I<stdout> and no provision is made for sending "
15667 "arbitrary signals to the remote process, although you may be able to get its "
15668 "attention by using out-of-band data."
15669 msgstr ""
15670 "接続に成功したら、インターネットドメインに存在するタイプ B<SOCK_STREAM> のソ"
15671 "ケットが呼び出しもとに返される。 このソケットの相手側はリモートコマンドの "
15672 "I<stdin> および I<stdout> に接続される。 I<fd2p> がゼロでない場合は、制御プロ"
15673 "セスへの接続がもう一つ用意され、 そのディスクリプターが I<*fd2p> にセットされ"
15674 "る。 制御プロセスはリモートコマンドからの標準エラー出力 (unit 2) を このチャ"
15675 "ンネルに返す。 また制御プロセスはこの接続から受け取ったバイトデータを UNIX シ"
15676 "グナルの番号として扱い、リモートコマンドのプロセス グループへとシグナルを送"
15677 "る。 I<fd2p> がゼロの場合は、 I<stderr> (リモートコマンドの unit 2) は "
15678 "I<stdout> と一緒にまとめられる。またこの場合はリモートプロセスへ 任意のシグナ"
15679 "ルを送ることはできなくなる。 ただし帯域外 (out-of-band) データを用いれば、 リ"
15680 "モートプロセスの注意を引くことはできるかもしれない。"
15681
15682 #. type: Plain text
15683 #: build/C/man3/rcmd.3:159
15684 msgid "The protocol is described in detail in B<rshd>(8)."
15685 msgstr "プロトコルの詳細は B<rshd>(8)  に記述されている。"
15686
15687 #. type: SS
15688 #: build/C/man3/rcmd.3:159
15689 #, no-wrap
15690 msgid "rresvport()"
15691 msgstr "rresvport()"
15692
15693 #. type: Plain text
15694 #: build/C/man3/rcmd.3:181
15695 msgid ""
15696 "The B<rresvport>()  function is used to obtain a socket with a privileged "
15697 "port bound to it.  This socket is suitable for use by B<rcmd>()  and several "
15698 "other functions.  Privileged ports are those in the range 0 to 1023.  Only a "
15699 "privileged process (B<CAP_NET_BIND_SERVICE>)  is allowed to bind to a "
15700 "privileged port.  In the glibc implementation, this function restricts its "
15701 "search to the ports from 512 to 1023.  The I<port> argument is value-result: "
15702 "the value it supplies to the call is used as the starting point for a "
15703 "circular search of the port range; on (successful) return, it contains the "
15704 "port number that was bound to."
15705 msgstr ""
15706 "B<rresvport>() 関数は特権ポートにバインドされたソケットを取得するために\n"
15707 "用いられる。 このソケットは B<rcmd>() などの関数での利用に適している。\n"
15708 "インターネットポートの特権ポートは、 0 から 1023 の範囲である。特権プロ\n"
15709 "セス (B<CAP_NET_BIND_SERVICE>) だけが特権ポートをバインドすることができ\n"
15710 "る。 glibc の実装では、この関数は特権ポートの検索範囲を 512 から 1023\n"
15711 "までの範囲に制限している。 I<port> 引き数は入出力両用で使用される。呼び\n"
15712 "出し時にこの引き数で渡された値は特権ポートを巡回検索する際の開始ポイン\n"
15713 "トとして使用され、(成功で) 返る際にはこの引き数にバインドされたポート\n"
15714 "番号が格納される。"
15715
15716 #. type: SS
15717 #: build/C/man3/rcmd.3:181
15718 #, no-wrap
15719 msgid "iruserok() and ruserok()"
15720 msgstr "iruserok() と ruserok()"
15721
15722 #. type: Plain text
15723 #: build/C/man3/rcmd.3:199
15724 msgid ""
15725 "The B<iruserok>()  and B<ruserok>()  functions take a remote host's IP "
15726 "address or name, respectively, two usernames and a flag indicating whether "
15727 "the local user's name is that of the superuser.  Then, if the user is I<not> "
15728 "the superuser, it checks the I</etc/hosts.equiv> file.  If that lookup is "
15729 "not done, or is unsuccessful, the I<.rhosts> in the local user's home "
15730 "directory is checked to see if the request for service is allowed."
15731 msgstr ""
15732 "B<iruserok>()  と B<ruserok>()  関数は、まず以下の引数を取る: リモートホスト "
15733 "(B<iruserok>()  は IP アドレスで、 B<ruserok>()  はホスト名で指定)、 2 つの"
15734 "ユーザー名、ローカルユーザーの名前が スーパーユーザーのものであるかどうかを示"
15735 "すフラグ、である。 もしユーザーがB<スーパーユーザーではない>場合は、これらの"
15736 "関数は I</etc/hosts.equiv> ファイルをチェックする。ファイルが見つからなかった"
15737 "り、 内容のチェックに失敗した場合には、 ローカルユーザーのホームディレクトリ"
15738 "にある I<.rhosts> ファイルをチェックして、サービス要求が許可されているかどう"
15739 "か調べる。"
15740
15741 #. type: Plain text
15742 #: build/C/man3/rcmd.3:215
15743 msgid ""
15744 "If this file does not exist, is not a regular file, is owned by anyone other "
15745 "than the user or the superuser, or is writable by anyone other than the "
15746 "owner, the check automatically fails.  Zero is returned if the machine name "
15747 "is listed in the I<hosts.equiv> file, or the host and remote username are "
15748 "found in the I<.rhosts> file; otherwise B<iruserok>()  and B<ruserok>()  "
15749 "return -1.  If the local domain (as obtained from B<gethostname>(2))  is the "
15750 "same as the remote domain, only the machine name need be specified."
15751 msgstr ""
15752 "このファイルが存在しなかったり、 通常ファイル (regular file) ではなかった"
15753 "り、 指定ユーザーまたはスーパーユーザー以外の所有だったり、 所有者以外から書"
15754 "き込み可能だったりした場合には、 このチェックは自動的に失敗する。 マシンの名"
15755 "前が I<hosts.equiv> にリストされていたり、 ホストとリモートユーザーの名前が "
15756 "I<.rhosts> ファイルに書かれていた場合には 0 が返される。 それ以外の場合に"
15757 "は、 B<iruserok>()  と B<ruserok>()  は -1 を返す。 (B<gethostname>(2)  に"
15758 "よって取得される) ローカルドメインがリモートのドメインと同じ場合は、 マシンの"
15759 "名前だけを指定すればよい。"
15760
15761 #. type: Plain text
15762 #: build/C/man3/rcmd.3:221
15763 msgid ""
15764 "If the IP address of the remote host is known, B<iruserok>()  should be used "
15765 "in preference to B<ruserok>(), as it does not require trusting the DNS "
15766 "server for the remote host's domain."
15767 msgstr ""
15768 "リモートホストの IP アドレスがわかっている場合は、 B<ruserok>()  よりも "
15769 "B<iruserok>()B<を用いる方が良いだろう。> B<ruserok>()  はリモートホストの所属"
15770 "するドメインの DNS サーバーが信頼できなくても 使用できるからである。"
15771
15772 #. type: SS
15773 #: build/C/man3/rcmd.3:221
15774 #, no-wrap
15775 msgid "*_af() variants"
15776 msgstr "*_af() 版"
15777
15778 #. type: Plain text
15779 #: build/C/man3/rcmd.3:237
15780 msgid ""
15781 "All of the functions described above work with IPv4 (B<AF_INET>)  sockets.  "
15782 "The \"_af\" variants take an extra argument that allows the socket address "
15783 "family to be specified.  For these functions, the I<af> argument can be "
15784 "specified as B<AF_INET> or B<AF_INET6>.  In addition, B<rcmd_af>()  supports "
15785 "the use of B<AF_UNSPEC>."
15786 msgstr ""
15787 "上記で述べた関数は全て IPv4 (B<AF_INET>) ソケットで動作する。\n"
15788 "\"_af\" 版では追加の引き数があり、この引き数でソケットアドレス\n"
15789 "ファミリーを指定できる。これらの関数では、 I<af> 引き数には \n"
15790 "B<AF_INET> か B<AF_INET6> が指定できる。\n"
15791 "B<rcmd_af>() では追加で B<AF_UNSPEC> も指定できる。"
15792
15793 #. type: Plain text
15794 #: build/C/man3/rcmd.3:243
15795 msgid ""
15796 "The B<rcmd>()  function returns a valid socket descriptor on success.  It "
15797 "returns -1 on error and prints a diagnostic message on the standard error."
15798 msgstr ""
15799 "B<rcmd>()  関数は成功すると有効なソケットディスクリプターを返す。 失敗すると "
15800 "-1 を返し、標準エラー出力に診断メッセージを 表示する。"
15801
15802 #. type: Plain text
15803 #: build/C/man3/rcmd.3:254
15804 msgid ""
15805 "The B<rresvport>()  function returns a valid, bound socket descriptor on "
15806 "success.  It returns -1 on error with the global value I<errno> set "
15807 "according to the reason for failure.  The error code B<EAGAIN> is overloaded "
15808 "to mean \"All network ports in use.\""
15809 msgstr ""
15810 "B<rresvport>()  関数は、成功するとバインドされた有効なソケットディスクリプ"
15811 "ターを返す。 失敗すると -1 を返し、グローバル変数 I<errno> をエラーの原因に対"
15812 "応する値にセットする。 エラーコード B<EAGAIN> は、この関数においては「すべて"
15813 "のネットワークポートが使用中」 という意味を表す。"
15814
15815 #. type: Plain text
15816 #: build/C/man3/rcmd.3:260
15817 msgid ""
15818 "For information on the return from B<ruserok>()  and B<iruserok>(), see "
15819 "above."
15820 msgstr "B<ruserok>() と B<iruserok>() の返り値については、上述の説明を参照。"
15821
15822 #. type: Plain text
15823 #: build/C/man3/rcmd.3:268
15824 msgid ""
15825 "The functions B<iruserok_af>(), B<rcmd_af>(), B<rresvport_af>(), and "
15826 "B<ruserok_af>()  functions are provide in glibc since version 2.2."
15827 msgstr ""
15828 "関数 B<iruserok_af>(), B<rcmd_af>(), B<rresvport_af>(),\n"
15829 "B<ruserok_af>() は glibc バージョン 2.2 以降で提供されている。"
15830
15831 #. type: Plain text
15832 #: build/C/man3/rcmd.3:276
15833 msgid ""
15834 "Not in POSIX.1-2001.  Present on the BSDs, Solaris, and many other systems.  "
15835 "These functions appeared in 4.2BSD.  The \"_af\" variants are more recent "
15836 "additions, and are not present on as wide a range of systems."
15837 msgstr ""
15838 "POSIX.1-2001 にはない。 BSD 系、Solaris や他の多くのシステムに存在する。\n"
15839 "これらの関数は 4.2BSD で登場した。 \"_af\" が付くバージョンはより最近に\n"
15840 "追加されたもので、あまり多くのシステムには存在しない。"
15841
15842 #.  Bug filed 25 Nov 2007:
15843 #.  http://sources.redhat.com/bugzilla/show_bug.cgi?id=5399
15844 #. type: Plain text
15845 #: build/C/man3/rcmd.3:283
15846 msgid ""
15847 "B<iruserok>()  and B<iruserok_af>()  are declared in glibc headers only "
15848 "since version 2.12."
15849 msgstr ""
15850 "B<iruserok>() と B<iruserok_af>() は glibc バージョン 2.12 以降のヘッダ\n"
15851 "でのみ宣言されている。"
15852
15853 #. type: Plain text
15854 #: build/C/man3/rcmd.3:291
15855 msgid ""
15856 "B<rlogin>(1), B<rsh>(1), B<intro>(2), B<rexec>(3), B<rexecd>(8), B<rlogind>"
15857 "(8), B<rshd>(8)"
15858 msgstr ""
15859 "B<rlogin>(1), B<rsh>(1), B<intro>(2), B<rexec>(3), B<rexecd>(8), B<rlogind>"
15860 "(8), B<rshd>(8)"
15861
15862 #. type: TH
15863 #: build/C/man5/resolv.conf.5:21
15864 #, no-wrap
15865 msgid "RESOLV.CONF"
15866 msgstr "RESOLV.CONF"
15867
15868 #. type: Plain text
15869 #: build/C/man5/resolv.conf.5:25
15870 msgid "resolv.conf - resolver configuration file"
15871 msgstr "resolv.conf - レゾルバ設定ファイル"
15872
15873 #. type: Plain text
15874 #: build/C/man5/resolv.conf.5:27
15875 msgid "B</etc/resolv.conf>"
15876 msgstr "B</etc/resolv.conf>"
15877
15878 #. type: Plain text
15879 #: build/C/man5/resolv.conf.5:36
15880 msgid ""
15881 "The I<resolver> is a set of routines in the C library that provide access to "
15882 "the Internet Domain Name System (DNS).  The resolver configuration file "
15883 "contains information that is read by the resolver routines the first time "
15884 "they are invoked by a process.  The file is designed to be human readable "
15885 "and contains a list of keywords with values that provide various types of "
15886 "resolver information."
15887 msgstr ""
15888 "I<resolver> は、インターネットのドメインネームシステム (DNS) へのアクセスを提"
15889 "供する C ライブラリのルーチン群である。 レゾルバ設定ファイルには、レゾルバ"
15890 "ルーチンがプロセスによって最初に 起動されたときに読み込まれる情報が格納されて"
15891 "いる。 このファイルは人間に可読なように設計されている。 キーワードと値のリス"
15892 "トが含まれ、いろいろなタイプのレゾルバ情報を提供する。"
15893
15894 #. type: Plain text
15895 #: build/C/man5/resolv.conf.5:41
15896 msgid ""
15897 "On a normally configured system this file should not be necessary.  The only "
15898 "name server to be queried will be on the local machine; the domain name is "
15899 "determined from the hostname and the domain search path is constructed from "
15900 "the domain name."
15901 msgstr ""
15902 "普通に設定されたシステムでは、このファイルは必要ない。 問い合わせをされる唯一"
15903 "のネームサーバはローカルマシン上にある。 ドメイン名はホスト名から決定され、 "
15904 "ドメインの検索パスはドメイン名から作成される。"
15905
15906 #. type: Plain text
15907 #: build/C/man5/resolv.conf.5:43
15908 msgid "The different configuration options are:"
15909 msgstr "この状態を変更するための設定オプションには、以下のようなものがある。"
15910
15911 #. type: TP
15912 #: build/C/man5/resolv.conf.5:43
15913 #, no-wrap
15914 msgid "B<nameserver> Name server IP address"
15915 msgstr "B<nameserver> ネームサーバの IP アドレス"
15916
15917 #. type: Plain text
15918 #: build/C/man5/resolv.conf.5:59
15919 msgid ""
15920 "Internet address (in dot notation) of a name server that the resolver should "
15921 "query.  Up to B<MAXNS> (currently 3, see I<E<lt>resolv.hE<gt>>) name servers "
15922 "may be listed, one per keyword.  If there are multiple servers, the resolver "
15923 "library queries them in the order listed.  If no B<nameserver> entries are "
15924 "present, the default is to use the name server on the local machine.  (The "
15925 "algorithm used is to try a name server, and if the query times out, try the "
15926 "next, until out of name servers, then repeat trying all the name servers "
15927 "until a maximum number of retries are made.)"
15928 msgstr ""
15929 "レゾルバが問い合わせをするネームサーバの (ドット表記の) インターネットアドレ"
15930 "ス。 このキーワード 1 つごとに 1 台づつ、 B<MAXNS> 台 (現状では 3 台、"
15931 "I<E<lt>resolv.hE<gt>> を参照) までのネームサーバをリストできる。 複数のサーバ"
15932 "が指定された場合、レゾルバライブラリは リストされた順に問い合わせを行う。 "
15933 "B<nameserver> エントリがない場合、 デフォルトではローカルマシン上のネームサー"
15934 "バが使われる。 (ここで使われるアルゴリズムは以下のようなものである。 はじめに"
15935 "ネームサーバに問い合わせを試みる。 この問い合わせがタイムアウトになった場"
15936 "合、 次のネームサーバに問い合わせを試みる。 これをネームサーバがなくなるまで"
15937 "続ける。 それでも応答がない場合は、リトライ最大回数に達するまで 全てのネーム"
15938 "サーバに問い合わせを繰り返す。)"
15939
15940 #. type: TP
15941 #: build/C/man5/resolv.conf.5:59
15942 #, no-wrap
15943 msgid "B<domain> Local domain name."
15944 msgstr "B<domain> ローカルドメイン名"
15945
15946 #. type: Plain text
15947 #: build/C/man5/resolv.conf.5:69
15948 msgid ""
15949 "Most queries for names within this domain can use short names relative to "
15950 "the local domain.  If no B<domain> entry is present, the domain is "
15951 "determined from the local hostname returned by B<gethostname>(2); the domain "
15952 "part is taken to be everything after the first \\(aq.\\(aq.  Finally, if the "
15953 "hostname does not contain a domain part, the root domain is assumed."
15954 msgstr ""
15955 "このドメインにある名前の問い合わせのほとんどに、 このローカルドメインにおける"
15956 "短い名前を使用することができる。 B<domain> エントリがない場合、ドメイン名は "
15957 "B<gethostname>(2)  で返されるローカルホスト名から決定され、 最初の \\(aq."
15958 "\\(aq 以降の全ての部分がドメイン名とされる。 このホスト名にもドメイン部を含ん"
15959 "でいない場合、ルートドメインが仮定される。"
15960
15961 #. type: TP
15962 #: build/C/man5/resolv.conf.5:69
15963 #, no-wrap
15964 msgid "B<search> Search list for host-name lookup."
15965 msgstr "B<search> ホスト名ルックアップのための検索リスト"
15966
15967 #.  When having a resolv.conv with a line
15968 #.   search subdomain.domain.tld domain.tld
15969 #.  and doing a hostlookup, for example by
15970 #.   ping host.anothersubdomain
15971 #.  it sends dns-requests for
15972 #.   host.anothersubdomain.
15973 #.   host.anothersubdomain.subdomain.domain.tld.
15974 #.   host.anothersubdomain.domain.tld.
15975 #.  thus not only causing unnecessary traffic for the root-dns-servers
15976 #.  but broadcasting information to the outside and making man-in-the-middle
15977 #.  attacks possible.
15978 #. type: Plain text
15979 #: build/C/man5/resolv.conf.5:99
15980 msgid ""
15981 "The search list is normally determined from the local domain name; by "
15982 "default, it contains only the local domain name.  This may be changed by "
15983 "listing the desired domain search path following the I<search> keyword with "
15984 "spaces or tabs separating the names.  Resolver queries having fewer than "
15985 "I<ndots> dots (default is 1) in them will be attempted using each component "
15986 "of the search path in turn until a match is found.  For environments with "
15987 "multiple subdomains please read B<options ndots:>I<n> below to avoid man-in-"
15988 "the-middle attacks and unnecessary traffic for the root-dns-servers.  Note "
15989 "that this process may be slow and will generate a lot of network traffic if "
15990 "the servers for the listed domains are not local, and that queries will time "
15991 "out if no server is available for one of the domains."
15992 msgstr ""
15993 "検索リストは通常ローカルドメイン名から決定される。 デフォルトでは、検索リスト"
15994 "はローカルドメイン名のみである。 これを変更するには、I<search> キーワードの後"
15995 "に 希望するドメイン検索パスをスペースまたはタブで区切ってリストすればよい。 "
15996 "ドットの数が I<ndots> (デフォルトでは 1) より少ないレゾルバの問い合わせは、 "
15997 "一致するものが見つかるまで検索パスの各要素を順に使って試す。 複数のサブドメイ"
15998 "ンを持つ環境では、 第三者による攻撃 (man-in-the-middle attack) と ルート DNS "
15999 "サーバへの不必要なトラフィックを避けるために、 以下の B<options ndots:>I<n> "
16000 "を読んでほしい。 このプロセスは遅く、リストされたドメインがローカルのものでな"
16001 "い場合、 多大なネットワークトラフィックを発生させることに注意すること。 さら"
16002 "に、これらのドメインのいずれかひとつにでも適切なサーバがない場合、 問い合わせ"
16003 "がタイムアウトになる点にも注意すること。"
16004
16005 #. type: Plain text
16006 #: build/C/man5/resolv.conf.5:102
16007 msgid ""
16008 "The search list is currently limited to six domains with a total of 256 "
16009 "characters."
16010 msgstr "現状では、検索リストは 6 ドメイン・計 256 文字に制限されている。"
16011
16012 #. type: TP
16013 #: build/C/man5/resolv.conf.5:102
16014 #, no-wrap
16015 msgid "B<sortlist>"
16016 msgstr "B<sortlist>"
16017
16018 #. type: Plain text
16019 #: build/C/man5/resolv.conf.5:115
16020 msgid ""
16021 "This option allows addresses returned by B<gethostbyname>(3)  to be sorted.  "
16022 "A sortlist is specified by IP-address-netmask pairs.  The netmask is "
16023 "optional and defaults to the natural netmask of the net.  The IP address and "
16024 "optional network pairs are separated by slashes.  Up to 10 pairs may be "
16025 "specified.  Here is an example:"
16026 msgstr ""
16027 "このオプションを使うと、 B<gethostbyname>(3)  で返されるアドレスをソートさせ"
16028 "ることができる。 sortlist は IP アドレスとネットマスクのペアで指定される。 "
16029 "ネットマスクは省略可能であり、 デフォルトではネットに対するデフォルトのネット"
16030 "マスクである。 IP アドレスとオプションのネットマスクのペアはスラッシュで区切"
16031 "る。 最大 10 組のペアを指定できる。 以下に例を示す。"
16032
16033 #. type: Plain text
16034 #: build/C/man5/resolv.conf.5:118
16035 msgid "sortlist 130.155.160.0/255.255.240.0 130.155.0.0"
16036 msgstr "sortlist 130.155.160.0/255.255.240.0 130.155.0.0"
16037
16038 #. type: TP
16039 #: build/C/man5/resolv.conf.5:120
16040 #, no-wrap
16041 msgid "B<options>"
16042 msgstr "B<options>"
16043
16044 #. type: Plain text
16045 #: build/C/man5/resolv.conf.5:124
16046 msgid ""
16047 "Options allows certain internal resolver variables to be modified.  The "
16048 "syntax is"
16049 msgstr ""
16050 "options により、レゾルバの内部変数を変更することができる。 書式は以下の通りで"
16051 "ある。"
16052
16053 #. type: Plain text
16054 #: build/C/man5/resolv.conf.5:127
16055 msgid "B<options> I<option> I<...>"
16056 msgstr "B<options> I<option> I<...>"
16057
16058 #. type: Plain text
16059 #: build/C/man5/resolv.conf.5:129
16060 msgid "where I<option> is one of the following:"
16061 msgstr "ここで I<option> は次のうちのいずれかである。"
16062
16063 #. type: TP
16064 #: build/C/man5/resolv.conf.5:129
16065 #, no-wrap
16066 msgid "B<debug>"
16067 msgstr "B<debug>"
16068
16069 #.  Since glibc 2.2?
16070 #. type: Plain text
16071 #: build/C/man5/resolv.conf.5:136
16072 msgid "sets B<RES_DEBUG> in I<_res.options>."
16073 msgstr "I<_res.options> に B<RES_DEBUG> を設定する。"
16074
16075 #. type: TP
16076 #: build/C/man5/resolv.conf.5:136
16077 #, no-wrap
16078 msgid "B<ndots:>I<n>"
16079 msgstr "B<ndots:>I<n>"
16080
16081 #.  Since glibc 2.2
16082 #. type: Plain text
16083 #: build/C/man5/resolv.conf.5:150
16084 msgid ""
16085 "sets a threshold for the number of dots which must appear in a name given to "
16086 "B<res_query>(3)  (see B<resolver>(3))  before an I<initial absolute query> "
16087 "will be made.  The default for I<n> is 1, meaning that if there are any dots "
16088 "in a name, the name will be tried first as an absolute name before any "
16089 "I<search list> elements are appended to it.  The value for this option is "
16090 "silently capped to 15."
16091 msgstr ""
16092 "「I<最初の完全な名前での問い合わせ>が実行される前に、 B<res_query>(3)  "
16093 "(B<resolver>(3)  を参照) に与えられる名前に含まれているべきドットの数の閾値」"
16094 "を設定する。 I<n> のデフォルトは 1 である。 これは、名前にドットがある場合、"
16095 "I<search list> の要素が付加される前に、 その名前が完全な名前として最初に試さ"
16096 "れるということを意味している。 このオプションの値の上限は 15 であり、黙ってこ"
16097 "の値まで切り詰められる。"
16098
16099 #. type: TP
16100 #: build/C/man5/resolv.conf.5:150
16101 #, no-wrap
16102 msgid "B<timeout:>I<n>"
16103 msgstr "B<timeout:>I<n>"
16104
16105 #.  Since glibc 2.2
16106 #. type: Plain text
16107 #: build/C/man5/resolv.conf.5:161
16108 msgid ""
16109 "sets the amount of time the resolver will wait for a response from a remote "
16110 "name server before retrying the query via a different name server.  Measured "
16111 "in seconds, the default is B<RES_TIMEOUT> (currently 5, see I<E<lt>resolv."
16112 "hE<gt>>).  The value for this option is silently capped to 30."
16113 msgstr ""
16114 "「レゾルバが他のネームサーバで問い合わせをリトライする前に、 リモートネーム"
16115 "サーバからの応答を待つ時間」を設定する。 単位は秒で、デフォルトは "
16116 "B<RES_TIMEOUT> である (現状では 5 秒、I<E<lt>resolv.hE<gt>> を参照)。 このオ"
16117 "プションの値の上限は 30 であり、黙ってこの値まで切り詰められる。"
16118
16119 #. type: TP
16120 #: build/C/man5/resolv.conf.5:161
16121 #, no-wrap
16122 msgid "B<attempts:>I<n>"
16123 msgstr "B<attempts:>I<n>"
16124
16125 #. type: Plain text
16126 #: build/C/man5/resolv.conf.5:170
16127 msgid ""
16128 "sets the number of times the resolver will send a query to its name servers "
16129 "before giving up and returning an error to the calling application.  The "
16130 "default is B<RES_DFLRETRY> (currently 2, see I<E<lt>resolv.hE<gt>>).  The "
16131 "value for this option is silently capped to 5."
16132 msgstr ""
16133 "「レゾルバが諦めて呼び出し元のアプリケーションにエラーを返すまでに、 ネーム"
16134 "サーバに問い合わせを行う回数」を設定する。 デフォルトは B<RES_DFLRETRY> 回で"
16135 "ある (現状では 2 回、I<E<lt>resolv.hE<gt>> を参照)。 このオプションの値の上限"
16136 "は 5 であり、黙ってこの値まで切り詰められる。"
16137
16138 #. type: TP
16139 #: build/C/man5/resolv.conf.5:170
16140 #, no-wrap
16141 msgid "B<rotate>"
16142 msgstr "B<rotate>"
16143
16144 #.  Since glibc 2.2
16145 #. type: Plain text
16146 #: build/C/man5/resolv.conf.5:180
16147 msgid ""
16148 "sets B<RES_ROTATE> in I<_res.options>, which causes round robin selection of "
16149 "nameservers from among those listed.  This has the effect of spreading the "
16150 "query load among all listed servers, rather than having all clients try the "
16151 "first listed server first every time."
16152 msgstr ""
16153 "I<_res.options> に RES_ROTATE を設定する。 リストされているネームサーバから選"
16154 "ぶときに、 ラウンドロビン (round robin) 選択を行わせる。 リストされている全て"
16155 "のサーバで問い合わせの負荷を分散する効果があり、 最初にリストされたサーバに全"
16156 "てのクライアントが 毎回最初に問い合わせを行うわけではなくなる。"
16157
16158 #. type: TP
16159 #: build/C/man5/resolv.conf.5:180
16160 #, no-wrap
16161 msgid "B<no-check-names>"
16162 msgstr "B<no-check-names>"
16163
16164 #.  since glibc 2.2
16165 #. type: Plain text
16166 #: build/C/man5/resolv.conf.5:190
16167 msgid ""
16168 "sets B<RES_NOCHECKNAME> in I<_res.options>, which disables the modern BIND "
16169 "checking of incoming hostnames and mail names for invalid characters such as "
16170 "underscore (_), non-ASCII, or control characters."
16171 msgstr ""
16172 "I<_res.options> に B<RES_NOCHECKNAME> を設定する。 入ってくるホスト名とメール"
16173 "アドレスに、 アンダースコア (_)・ASCII 以外の文字・制御文字といった 不正な文"
16174 "字が含まれていないかを調べる 最近の BIND のチェックを無効にする。"
16175
16176 #. type: TP
16177 #: build/C/man5/resolv.conf.5:190
16178 #, no-wrap
16179 msgid "B<inet6>"
16180 msgstr "B<inet6>"
16181
16182 #.  Since glibc 2.2
16183 #. type: Plain text
16184 #: build/C/man5/resolv.conf.5:201
16185 msgid ""
16186 "sets B<RES_USE_INET6> in I<_res.options>.  This has the effect of trying a "
16187 "AAAA query before an A query inside the B<gethostbyname>(3)  function, and "
16188 "of mapping IPv4 responses in IPv6 \"tunneled form\" if no AAAA records are "
16189 "found but an A record set exists."
16190 msgstr ""
16191 "I<_res.options> に B<RES_USE_INET6> を設定する。このオプションが設定される"
16192 "と、 B<gethostbyname>(3)  関数の内部で A レコードの問い合わせを行う前に AAAA "
16193 "レコードの問い合わせを行うようになる。 また、AAAA レコードは見つからないが A "
16194 "レコードセットが存在する場合に、 IPv4 の応答を IPv6「トンネル形式」にマップす"
16195 "るようになる。"
16196
16197 #. type: TP
16198 #: build/C/man5/resolv.conf.5:201
16199 #, no-wrap
16200 msgid "B<ip6-bytestring> (since glibc 2.3.4)"
16201 msgstr "B<ip6-bytestring> (glibc 2.3.4 以降)"
16202
16203 #. type: Plain text
16204 #: build/C/man5/resolv.conf.5:210
16205 msgid ""
16206 "sets B<RES_USE_BSTRING> in I<_res.options>.  This causes reverse IPv6 "
16207 "lookups to be made using the bit-label format described in RFC\\ 2673; if "
16208 "this option is not set, then nibble format is used."
16209 msgstr ""
16210 "I<_res.options> に B<RES_USE_BSTRING> を設定する。このオプションが設定される"
16211 "と、IPv6 アドレスの逆引きで RFC\\ 2673 で規定された bit-label 形式が使用され"
16212 "るようになる。 このオプションが設定されない場合、nibble 形式が使用される。"
16213
16214 #. type: TP
16215 #: build/C/man5/resolv.conf.5:210
16216 #, no-wrap
16217 msgid "B<ip6-dotint>/B<no-ip6-dotint> (since glibc 2.3.4)"
16218 msgstr "B<ip6-dotint>/B<no-ip6-dotint> (glibc 2.3.4 以降)"
16219
16220 #. type: Plain text
16221 #: build/C/man5/resolv.conf.5:227
16222 msgid ""
16223 "Clear/set B<RES_NOIP6DOTINT> in I<_res.options>.  When this option is clear "
16224 "(B<ip6-dotint>), reverse IPv6 lookups are made in the (deprecated)  I<ip6."
16225 "int> zone; when this option is set (B<no-ip6-dotint>), reverse IPv6 lookups "
16226 "are made in the I<ip6.arpa> zone by default.  This option is set by default."
16227 msgstr ""
16228 "I<_res.options> への B<RES_NOIP6DOTINT> のセット/クリアを行う。 このオプショ"
16229 "ンがクリアされると (B<ip6-dotint>)、 IPv6 アドレスの逆引きが (非推奨の)  "
16230 "I<ip6.int> ゾーンで行われるようになり、 このオプションがセットされると (B<no-"
16231 "ip6-dotint>)、 IPv6 アドレスの逆引きがデフォルトの I<ip6.arpa> ゾーンで行われ"
16232 "るようになる。 このオプションはデフォルトでセットされる。"
16233
16234 #. type: TP
16235 #: build/C/man5/resolv.conf.5:227
16236 #, no-wrap
16237 msgid "B<edns0> (since glibc 2.6)"
16238 msgstr "B<edns0> (glibc 2.6 以降)"
16239
16240 #. type: Plain text
16241 #: build/C/man5/resolv.conf.5:234
16242 msgid ""
16243 "sets B<RES_USE_EDNSO> in I<_res.options>.  This enables support for the DNS "
16244 "extensions described in RFC\\ 2671."
16245 msgstr ""
16246 "I<_res.options> に B<RES_USE_EDNSO> をセットする。これにより、RFC\\ 2671 で規"
16247 "定されている DNS 拡張のサポートが有効になる。"
16248
16249 #. type: TP
16250 #: build/C/man5/resolv.conf.5:234
16251 #, no-wrap
16252 msgid "B<single-request> (since glibc 2.10)"
16253 msgstr "B<single-request> (glibc 2.10 以降)"
16254
16255 #. type: Plain text
16256 #: build/C/man5/resolv.conf.5:247
16257 msgid ""
16258 "sets B<RES_SNGLKUP> in I<_res.options>.  By default, glibc performs IPv4 and "
16259 "IPv6 lookups in parallel since version 2.9.  Some appliance DNS servers "
16260 "cannot handle these queries properly and make the requests time out.  This "
16261 "option disables the behavior and makes glibc perform the IPv6 and IPv4 "
16262 "requests sequentially (at the cost of some slowdown of the resolving "
16263 "process)."
16264 msgstr ""
16265
16266 #. type: Plain text
16267 #: build/C/man5/resolv.conf.5:252
16268 msgid ""
16269 "The I<domain> and I<search> keywords are mutually exclusive.  If more than "
16270 "one instance of these keywords is present, the last instance wins."
16271 msgstr ""
16272 "I<domain> と I<search> キーワードは、互いに排他的である。 これらのキーワード"
16273 "が 2 つ以上記述されている場合、 最後に記述されているものが有効になる。"
16274
16275 #. type: Plain text
16276 #: build/C/man5/resolv.conf.5:257
16277 msgid ""
16278 "The I<search> keyword of a system's I<resolv.conf> file can be overridden on "
16279 "a per-process basis by setting the environment variable B<LOCALDOMAIN> to a "
16280 "space-separated list of search domains."
16281 msgstr ""
16282 "システムの I<resolv.conf> ファイルにある I<search> キーワードは、 スペースで"
16283 "区切った検索ドメインのリストを 環境変数 B<LOCALDOMAIN> に設定することにより、"
16284 "各プロセス毎に上書きすることができる。"
16285
16286 #. type: Plain text
16287 #: build/C/man5/resolv.conf.5:263
16288 msgid ""
16289 "The I<options> keyword of a system's I<resolv.conf> file can be amended on a "
16290 "per-process basis by setting the environment variable B<RES_OPTIONS> to a "
16291 "space-separated list of resolver options as explained above under B<options>."
16292 msgstr ""
16293 "システムの I<resolv.conf> ファイルにある I<options> キーワードは、 上の "
16294 "B<options> セクションで説明したように、 スペースで区切ったレゾルバオプション"
16295 "のリストを 環境変数 B<RES_OPTIONS> に設定することにより、各プロセス毎に修正す"
16296 "ることができる。"
16297
16298 #. type: Plain text
16299 #: build/C/man5/resolv.conf.5:267
16300 msgid ""
16301 "The keyword and value must appear on a single line, and the keyword (e.g., "
16302 "B<nameserver>) must start the line.  The value follows the keyword, "
16303 "separated by white space."
16304 msgstr ""
16305 "キーワードと値は同じ行に書かなければならない。 また、(B<nameserver> のよう"
16306 "な) キーワードが行の先頭になければならない。 値はキーワードの後にスペースで区"
16307 "切って続ける。"
16308
16309 #. type: Plain text
16310 #: build/C/man5/resolv.conf.5:270
16311 msgid ""
16312 "Lines that contain a semicolon (;) or hash character (#)  in the first "
16313 "column are treated as comments."
16314 msgstr "セミコロン (;) かハッシュ文字 (#) で始まる行はコメントとして扱われる。"
16315
16316 #. type: Plain text
16317 #: build/C/man5/resolv.conf.5:273
16318 msgid "I</etc/resolv.conf>, I<E<lt>resolv.hE<gt>>"
16319 msgstr "I</etc/resolv.conf>, I<E<lt>resolv.hE<gt>>"
16320
16321 #. type: Plain text
16322 #: build/C/man5/resolv.conf.5:278
16323 msgid "B<gethostbyname>(3), B<resolver>(3), B<hostname>(7), B<named>(8)"
16324 msgstr "B<gethostbyname>(3), B<resolver>(3), B<hostname>(7), B<named>(8)"
16325
16326 #. type: Plain text
16327 #: build/C/man5/resolv.conf.5:280
16328 msgid "Name Server Operations Guide for BIND"
16329 msgstr "BIND のネームサーバオペレーションガイド"
16330
16331 #. type: TH
16332 #: build/C/man3/resolver.3:30
16333 #, no-wrap
16334 msgid "RESOLVER"
16335 msgstr "RESOLVER"
16336
16337 #. type: Plain text
16338 #: build/C/man3/resolver.3:34
16339 msgid ""
16340 "res_init, res_query, res_search, res_querydomain, res_mkquery, res_send, "
16341 "dn_comp, dn_expand - resolver routines"
16342 msgstr ""
16343 "res_init, res_query, res_search, res_querydomain, res_mkquery, res_send, "
16344 "dn_comp, dn_expand - レゾルバ・ルーチン"
16345
16346 #. type: Plain text
16347 #: build/C/man3/resolver.3:40
16348 #, no-wrap
16349 msgid ""
16350 "B<#include E<lt>netinet/in.hE<gt>>\n"
16351 "B<#include E<lt>arpa/nameser.hE<gt>>\n"
16352 "B<#include E<lt>resolv.hE<gt>>\n"
16353 "B<extern struct state _res;>\n"
16354 msgstr ""
16355 "B<#include E<lt>netinet/in.hE<gt>>\n"
16356 "B<#include E<lt>arpa/nameser.hE<gt>>\n"
16357 "B<#include E<lt>resolv.hE<gt>>\n"
16358 "B<extern struct state _res;>\n"
16359
16360 #. type: Plain text
16361 #: build/C/man3/resolver.3:42
16362 #, no-wrap
16363 msgid "B<int res_init(void);>\n"
16364 msgstr "B<int res_init(void);>\n"
16365
16366 #. type: Plain text
16367 #: build/C/man3/resolver.3:44
16368 #, no-wrap
16369 msgid "B<int res_query(const char *>I<dname>B<, int >I<class>B<, int >I<type>B<,>\n"
16370 msgstr "B<int res_query(const char *>I<dname>B<, int >I<class>B<, int >I<type>B<,>\n"
16371
16372 #. type: Plain text
16373 #: build/C/man3/resolver.3:46 build/C/man3/resolver.3:51
16374 #, no-wrap
16375 msgid "B<unsigned char *>I<answer>B<, int >I<anslen>B<);>\n"
16376 msgstr "B<unsigned char *>I<answer>B<, int >I<anslen>B<);>\n"
16377
16378 #. type: Plain text
16379 #: build/C/man3/resolver.3:49
16380 #, no-wrap
16381 msgid "B<int res_search(const char *>I<dname>B<, int >I<class>B<, int >I<type>B<,>\n"
16382 msgstr "B<int res_search(const char *>I<dname>B<, int >I<class>B<, int >I<type>B<,>\n"
16383
16384 #. type: Plain text
16385 #: build/C/man3/resolver.3:54
16386 #, no-wrap
16387 msgid "B<int res_querydomain(const char *>I<name>B<, const char *>I<domain>B<,>\n"
16388 msgstr "B<int res_querydomain(const char *>I<name>B<, const char *>I<domain>B<,>\n"
16389
16390 #. type: Plain text
16391 #: build/C/man3/resolver.3:57
16392 #, no-wrap
16393 msgid ""
16394 "B<int >I<class>B<, int >I<type>B<, unsigned char *>I<answer>B<,>\n"
16395 "B<int >I<anslen>B<);>\n"
16396 msgstr ""
16397 "B<int >I<class>B<, int >I<type>B<, unsigned char *>I<answer>B<,>\n"
16398 "B<int >I<anslen>B<);>\n"
16399
16400 #. type: Plain text
16401 #: build/C/man3/resolver.3:60
16402 #, no-wrap
16403 msgid "B<int res_mkquery(int >I<op>B<, const char *>I<dname>B<, int >I<class>B<,>\n"
16404 msgstr "B<int res_mkquery(int >I<op>B<, const char *>I<dname>B<, int >I<class>B<,>\n"
16405
16406 #. type: Plain text
16407 #: build/C/man3/resolver.3:63
16408 #, no-wrap
16409 msgid ""
16410 "B<int >I<type>B<, char *>I<data>B<, int >I<datalen>B<, struct rrec *>I<newrr>B<,>\n"
16411 "B<char *>I<buf>B<, int >I<buflen>B<);>\n"
16412 msgstr ""
16413 "B<int >I<type>B<, char *>I<data>B<, int >I<datalen>B<, struct rrec *>I<newrr>B<,>\n"
16414 "B<char *>I<buf>B<, int >I<buflen>B<);>\n"
16415
16416 #. type: Plain text
16417 #: build/C/man3/resolver.3:66
16418 #, no-wrap
16419 msgid "B<int res_send(const char *>I<msg>B<, int >I<msglen>B<, char *>I<answer>B<,>\n"
16420 msgstr "B<int res_send(const char *>I<msg>B<, int >I<msglen>B<, char *>I<answer>B<,>\n"
16421
16422 #. type: Plain text
16423 #: build/C/man3/resolver.3:68
16424 #, no-wrap
16425 msgid "B<int >I<anslen>B<);>\n"
16426 msgstr "B<int >I<anslen>B<);>\n"
16427
16428 #. type: Plain text
16429 #: build/C/man3/resolver.3:71
16430 #, no-wrap
16431 msgid "B<int dn_comp(unsigned char *>I<exp_dn>B<, unsigned char *>I<comp_dn>B<,>\n"
16432 msgstr "B<int dn_comp(unsigned char *>I<exp_dn>B<, unsigned char *>I<comp_dn>B<,>\n"
16433
16434 #. type: Plain text
16435 #: build/C/man3/resolver.3:73
16436 #, no-wrap
16437 msgid "B<int >I<length>B<, unsigned char **>I<dnptrs>B<, unsigned char **>I<lastdnptr>B<);>\n"
16438 msgstr "B<int >I<length>B<, unsigned char **>I<dnptrs>B<, unsigned char **>I<lastdnptr>B<);>\n"
16439
16440 #. type: Plain text
16441 #: build/C/man3/resolver.3:76
16442 #, no-wrap
16443 msgid "B<int dn_expand(unsigned char *>I<msg>B<, unsigned char *>I<eomorig>B<,>\n"
16444 msgstr "B<int dn_expand(unsigned char *>I<msg>B<, unsigned char *>I<eomorig>B<,>\n"
16445
16446 #. type: Plain text
16447 #: build/C/man3/resolver.3:79
16448 #, no-wrap
16449 msgid ""
16450 "B<unsigned char *>I<comp_dn>B<, char *>I<exp_dn>B<,>\n"
16451 "B<int >I<length>B<);>\n"
16452 msgstr ""
16453 "B<unsigned char *>I<comp_dn>B<, char *>I<exp_dn>B<,>\n"
16454 "B<int >I<length>B<);>\n"
16455
16456 #. type: Plain text
16457 #: build/C/man3/resolver.3:83
16458 msgid "Link with I<-lresolv>."
16459 msgstr "I<-lresolv> でリンクする。"
16460
16461 #. type: Plain text
16462 #: build/C/man3/resolver.3:86
16463 msgid ""
16464 "These functions make queries to and interpret the responses from Internet "
16465 "domain name servers."
16466 msgstr ""
16467 "これらの関数はインターネットのドメインネームサーバーに問い合わせ、 その応答を"
16468 "解釈する。"
16469
16470 #. type: Plain text
16471 #: build/C/man3/resolver.3:99
16472 msgid ""
16473 "The B<res_init>()  function reads the configuration files (see resolv.conf"
16474 "(5)) to get the default domain name, search order and name server address"
16475 "(es).  If no server is given, the local host is tried.  If no domain is "
16476 "given, that associated with the local host is used.  It can be overridden "
16477 "with the environment variable B<LOCALDOMAIN>.  B<res_init>()  is normally "
16478 "executed by the first call to one of the other functions."
16479 msgstr ""
16480 "B<res_init>()  関数は、デフォルトのドメイン名、検索順、ネームサーバー アドレ"
16481 "スを得るために設定ファイル (resolv.conf(5) 参照) を読む。 もしサーバーが示さ"
16482 "れていなければローカルホストを試す。 ドメインが示されていなければローカルホス"
16483 "トに付けられたドメインを用いる。 環境変数 B<LOCALDOMAIN> でオーバーライドでき"
16484 "る。 B<res_init>()  は、後述する関数のどれかが最初に呼び出された時、その関数 "
16485 "から実行される。"
16486
16487 #. type: Plain text
16488 #: build/C/man3/resolver.3:107
16489 msgid ""
16490 "The B<res_query>()  function queries the name server for the fully qualified "
16491 "domain name I<name> of specified I<type> and I<class>.  The reply is left in "
16492 "the buffer I<answer> of length I<anslen> supplied by the caller."
16493 msgstr ""
16494 "B<res_query>()  関数は、指定された I<type> と I<class> の 完全修飾ドメイン名 "
16495 "(FQDN) I<name> を、ネームサーバーへ問い合わせる。 応答は、呼び出した側によっ"
16496 "て用意される長さ I<anslen> の I<answer> バッファーに残される。"
16497
16498 #. type: Plain text
16499 #: build/C/man3/resolver.3:120
16500 msgid ""
16501 "The B<res_search>()  function makes a query and waits for the response like "
16502 "B<res_query>(), but in addition implements the default and search rules "
16503 "controlled by B<RES_DEFNAMES> and B<RES_DNSRCH> (see description of I<_res> "
16504 "options below)."
16505 msgstr ""
16506 "B<res_search>()  関数は、問い合わせを行い B<res_query>()  同様その応答を 待つ"
16507 "が、さらにデフォルトを実装しており B<RES_DEFNAMES> と B<RES_DNSRCH> によって"
16508 "規定される検索ルールを適用する。 (下記 I<_res> オプションの説明を参照)"
16509
16510 #. type: Plain text
16511 #: build/C/man3/resolver.3:126
16512 msgid ""
16513 "The B<res_querydomain>()  function makes a query using B<res_query>()  on "
16514 "the concatenation of I<name> and I<domain>."
16515 msgstr ""
16516 "B<res_querydomain>()  関数は I<name> と I<domain> の結合に B<res_query>()  を"
16517 "用いて問い合わせを行う。"
16518
16519 #. type: Plain text
16520 #: build/C/man3/resolver.3:129
16521 msgid ""
16522 "The following functions are lower-level routines used by B<res_query>()."
16523 msgstr "次の関数は、 B<res_query>()  で使われる下位ルーチンである。"
16524
16525 #. type: Plain text
16526 #: build/C/man3/resolver.3:140
16527 msgid ""
16528 "The B<res_mkquery>()  function constructs a query message in I<buf> of "
16529 "length I<buflen> for the domain name I<dname>.  The query type I<op> is "
16530 "usually B<QUERY>, but can be any of the types defined in I<E<lt>arpa/nameser."
16531 "hE<gt>>.  I<newrr> is currently unused."
16532 msgstr ""
16533 "B<res_mkquery>()  関数は、ドメイン名 I<dname> の為に、長さ I<buflen> の "
16534 "I<buf> に問い合わせるメッセージを作成する。 問い合わせの型 I<op> は通常 "
16535 "B<QUERY> だが、 I<E<lt>arpa/nameser.hE<gt>> で定義された型のどれでも良い。 "
16536 "I<newrr> は現在使用されていない。"
16537
16538 #. type: Plain text
16539 #: build/C/man3/resolver.3:150
16540 msgid ""
16541 "The B<res_send>()  function sends a preformatted query given in I<msg> of "
16542 "length I<msglen> and returns the answer in I<answer> which is of length "
16543 "I<anslen>.  It will call B<res_init>(), if it has not already been called."
16544 msgstr ""
16545 "B<res_send>()  関数は、長さ I<msglen> の I<msg> に決められた書式 で問い合わ"
16546 "せ、I<answer> に長さ I<anslen> の回答を返す。 まだ呼び出されていなければ "
16547 "B<res_init>()  を呼び出す。"
16548
16549 #. type: Plain text
16550 #: build/C/man3/resolver.3:163
16551 msgid ""
16552 "The B<dn_comp>()  function compresses the domain name I<exp_dn> and stores "
16553 "it in the buffer I<comp_dn> of length I<length>.  The compression uses an "
16554 "array of pointers I<dnptrs> to previously compressed names in the current "
16555 "message.  The first pointer points to the beginning of the message and the "
16556 "list ends with NULL.  The limit of the array is specified by I<lastdnptr>.  "
16557 "If I<dnptr> is NULL, domain names are not compressed.  If I<lastdnptr> is "
16558 "NULL, the list of labels is not updated."
16559 msgstr ""
16560 "B<dn_comp>()  関数はドメイン名 I<exp_dn> を圧縮して、長さ I<length> のバッ"
16561 "ファー I<comp_dn> に保存する。 圧縮にはポインター配列 I<dnptrs> を用いる。 こ"
16562 "れらのポインターは、現在のメッセージの中にある以前に圧縮された名前を指す。 最"
16563 "初のポインターはメッセージの冒頭を指し、そのリストは NULL で終わる。 配列の範"
16564 "囲は I<lastdnptr> で決められる。 I<dnptr> が NULL ならばドメイン名は圧縮され"
16565 "ない。 I<lastdnptr> が NULL ならば、そのラベルのリストはアップデートされな"
16566 "い。"
16567
16568 #. type: Plain text
16569 #: build/C/man3/resolver.3:172
16570 msgid ""
16571 "The B<dn_expand>()  function expands the compressed domain name I<comp_dn> "
16572 "to a full domain name, which is placed in the buffer I<exp_dn> of size "
16573 "I<length>.  The compressed name is contained in a query or reply message, "
16574 "and I<msg> points to the beginning of the message."
16575 msgstr ""
16576 "B<dn_expand>()  関数は、圧縮されたドメイン名 I<comp_dn> からサイズ が "
16577 "I<length> の I<exp_dn> バッファーに正式なドメイン名を展開する。 その圧縮され"
16578 "た名前は、問い合わせ、または応答メッセージに含まれていて、 I<msg> がメッセー"
16579 "ジの冒頭を指す。"
16580
16581 #. type: Plain text
16582 #: build/C/man3/resolver.3:180
16583 msgid ""
16584 "The resolver routines use global configuration and state information "
16585 "contained in the structure I<_res>, which is defined in I<E<lt>resolv."
16586 "hE<gt>>.  The only field that is normally manipulated by the user is I<_res."
16587 "options>.  This field can contain the bitwise \"OR\" of the following "
16588 "options:"
16589 msgstr ""
16590 "レゾルバ・ルーチンは、I<E<lt>resolv.hE<gt>> に定義された I<_res> 構造体に 含"
16591 "まれている全体的な設定と状態の情報を使用する。 通常ユーザーに操作できる項目"
16592 "は I<_res.options> だけである。 この項目は以下のオプションのビット単位の論理"
16593 "和にできる。"
16594
16595 #. type: TP
16596 #: build/C/man3/resolver.3:180
16597 #, no-wrap
16598 msgid "B<RES_INIT>"
16599 msgstr "B<RES_INIT>"
16600
16601 #. type: Plain text
16602 #: build/C/man3/resolver.3:185
16603 msgid "True if B<res_init>()  has been called."
16604 msgstr "B<res_init>()  が呼び出されていれば真。"
16605
16606 #. type: TP
16607 #: build/C/man3/resolver.3:185
16608 #, no-wrap
16609 msgid "B<RES_DEBUG>"
16610 msgstr "B<RES_DEBUG>"
16611
16612 #. type: Plain text
16613 #: build/C/man3/resolver.3:188
16614 msgid "Print debugging messages."
16615 msgstr "デバッグ・メッセージを出力する。"
16616
16617 #. type: TP
16618 #: build/C/man3/resolver.3:188
16619 #, no-wrap
16620 msgid "B<RES_AAONLY>"
16621 msgstr "B<RES_AAONLY>"
16622
16623 #. type: Plain text
16624 #: build/C/man3/resolver.3:195
16625 msgid ""
16626 "Accept authoritative answers only.  B<res_send>()  continues until it finds "
16627 "an authoritative answer or returns an error.  [Not currently implemented]."
16628 msgstr ""
16629 "権威付けされた (authoritative) 回答のみ受け入れる。 B<res_send>()  は、最終的"
16630 "に権威付けされた回答を得られるか、エラーが返される まで続行する。 [現在実装さ"
16631 "れていない]"
16632
16633 #. type: TP
16634 #: build/C/man3/resolver.3:195
16635 #, no-wrap
16636 msgid "B<RES_USEVC>"
16637 msgstr "B<RES_USEVC>"
16638
16639 #. type: Plain text
16640 #: build/C/man3/resolver.3:198
16641 msgid "Use TCP connections for queries rather than UDP datagrams."
16642 msgstr "問い合わせに UDP データグラムではなく TCP 接続を用いる。"
16643
16644 #. type: TP
16645 #: build/C/man3/resolver.3:198
16646 #, no-wrap
16647 msgid "B<RES_PRIMARY>"
16648 msgstr "B<RES_PRIMARY>"
16649
16650 #. type: Plain text
16651 #: build/C/man3/resolver.3:201
16652 msgid "Query primary domain name server only."
16653 msgstr "プライマリ・ドメインネームサーバーのみ問い合わせる。"
16654
16655 #. type: TP
16656 #: build/C/man3/resolver.3:201
16657 #, no-wrap
16658 msgid "B<RES_IGNTC>"
16659 msgstr "B<RES_IGNTC>"
16660
16661 #. type: Plain text
16662 #: build/C/man3/resolver.3:206
16663 msgid ""
16664 "Ignore truncation errors.  Don't retry with TCP.  [Not currently "
16665 "implemented]."
16666 msgstr ""
16667 "切り詰めエラー (truncation error) を無視する。TCP でリトライしない。 [現在実"
16668 "装されていない]"
16669
16670 #. type: TP
16671 #: build/C/man3/resolver.3:206
16672 #, no-wrap
16673 msgid "B<RES_RECURSE>"
16674 msgstr "B<RES_RECURSE>"
16675
16676 #. type: Plain text
16677 #: build/C/man3/resolver.3:213
16678 msgid ""
16679 "Set the recursion desired bit in queries.  Recursion is carried out by the "
16680 "domain name server, not by B<res_send>().  [Enabled by default]."
16681 msgstr ""
16682 "再帰要求 (recursion desired) ビットを問い合わせに設定する。 再帰は "
16683 "B<res_send>()  ではなくドメインネームサーバーによって行われる。 [デフォルトで"
16684 "有効]"
16685
16686 #. type: TP
16687 #: build/C/man3/resolver.3:213
16688 #, no-wrap
16689 msgid "B<RES_DEFNAMES>"
16690 msgstr "B<RES_DEFNAMES>"
16691
16692 #. type: Plain text
16693 #: build/C/man3/resolver.3:220
16694 msgid ""
16695 "If set, B<res_search>()  will append the default domain name to single "
16696 "component names, i.e., those that do not contain a dot.  [Enabled by "
16697 "default]."
16698 msgstr ""
16699 "設定されていれば、 B<res_search>()  はデフォルトのドメイン名を一部分 のみから"
16700 "なる名前、すなわちドットを含まない名前に付け加える。 [デフォルトで有効]"
16701
16702 #. type: TP
16703 #: build/C/man3/resolver.3:220
16704 #, no-wrap
16705 msgid "B<RES_STAYOPEN>"
16706 msgstr "B<RES_STAYOPEN>"
16707
16708 #. type: Plain text
16709 #: build/C/man3/resolver.3:225
16710 msgid "Used with B<RES_USEVC> to keep the TCP connection open between queries."
16711 msgstr "問い合わせ中に TCP 接続を保つため B<RES_USEVC> と共に用いられる。"
16712
16713 #. type: TP
16714 #: build/C/man3/resolver.3:225
16715 #, no-wrap
16716 msgid "B<RES_DNSRCH>"
16717 msgstr "B<RES_DNSRCH>"
16718
16719 #. type: Plain text
16720 #: build/C/man3/resolver.3:234
16721 msgid ""
16722 "If set, B<res_search>()  will search for hostnames in the current domain and "
16723 "in parent domains.  This option is used by B<gethostbyname>(3).  [Enabled by "
16724 "default]."
16725 msgstr ""
16726 "設定されていれば、 B<res_search>()  は現在のドメインおよび親ドメインの ホスト"
16727 "名を探す。このオプションは B<gethostbyname>(3)  で用いられる。 [デフォルトで"
16728 "有効]"
16729
16730 #. type: Plain text
16731 #: build/C/man3/resolver.3:237
16732 msgid ""
16733 "This list is not complete. You can find some other flags described in "
16734 "B<resolv.conf>(5)."
16735 msgstr ""
16736 "このリストは完全なものではない。\n"
16737 "B<resolv.conf>(5) には他にいくつかのフラグが記載されている。"
16738
16739 #. type: Plain text
16740 #: build/C/man3/resolver.3:242
16741 msgid ""
16742 "The B<res_init>()  function returns 0 on success, or -1 if an error occurs."
16743 msgstr "B<res_init>()  関数は成功すれば 0 を、エラーが発生すれば -1 を返す。"
16744
16745 #. type: Plain text
16746 #: build/C/man3/resolver.3:252
16747 msgid ""
16748 "The B<res_query>(), B<res_search>(), B<res_querydomain>(), B<res_mkquery>()  "
16749 "and B<res_send>()  functions return the length of the response, or -1 if an "
16750 "error occurs."
16751 msgstr ""
16752 "B<res_query>(), B<res_search>(), B<res_querydomain>(), B<res_mkquery>(), "
16753 "B<res_send>()  関数は応答の長さを返す。 また、エラーが発生すれば -1 を返す。"
16754
16755 #. type: Plain text
16756 #: build/C/man3/resolver.3:259
16757 msgid ""
16758 "The B<dn_comp>()  and B<dn_expand>()  functions return the length of the "
16759 "compressed name, or -1 if an error occurs."
16760 msgstr ""
16761 "B<dn_comp>()  と B<dn_expand>()  関数は圧縮されたドメイン名の長さを返す。 ま"
16762 "た、エラーが発生すれば -1 を返す。"
16763
16764 #. type: Plain text
16765 #: build/C/man3/resolver.3:263
16766 #, no-wrap
16767 msgid ""
16768 "/etc/resolv.conf          resolver configuration file\n"
16769 "/etc/host.conf            resolver configuration file\n"
16770 msgstr ""
16771 "/etc/resolv.conf          レゾルバ設定ファイル\n"
16772 "/etc/host.conf            レゾルバ設定ファイル\n"
16773
16774 #. type: Plain text
16775 #: build/C/man3/resolver.3:266
16776 msgid "4.3BSD."
16777 msgstr "4.3BSD."
16778
16779 #. type: Plain text
16780 #: build/C/man3/resolver.3:272
16781 msgid ""
16782 "B<gethostbyname>(3), B<resolv.conf>(5), B<resolver>(5), B<hostname>(7), "
16783 "B<named>(8)"
16784 msgstr ""
16785 "B<gethostbyname>(3), B<resolv.conf>(5), B<resolver>(5), B<hostname>(7), "
16786 "B<named>(8)"
16787
16788 #. type: TH
16789 #: build/C/man3/rexec.3:39
16790 #, no-wrap
16791 msgid "REXEC"
16792 msgstr "REXEC"
16793
16794 #. type: Plain text
16795 #: build/C/man3/rexec.3:42
16796 msgid "rexec, rfexec_af - return stream to a remote command"
16797 msgstr "rexec, rfexec_af - リモートコマンドへのストリームを返す"
16798
16799 #. type: Plain text
16800 #: build/C/man3/rexec.3:46
16801 #, no-wrap
16802 msgid ""
16803 "B<#define _BSD_SOURCE>             /* See feature_test_macros(7) */\n"
16804 "B<#include E<lt>netdb.hE<gt>>\n"
16805 msgstr ""
16806 "B<#define _BSD_SOURCE>             /* feature_test_macros(7) 参照 */\n"
16807 "B<#include E<lt>netdb.hE<gt>>\n"
16808
16809 #. type: Plain text
16810 #: build/C/man3/rexec.3:49
16811 #, no-wrap
16812 msgid ""
16813 "B<int rexec(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
16814 "B<          char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<);>\n"
16815 msgstr ""
16816 "B<int rexec(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
16817 "B<          char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<);>\n"
16818
16819 #. type: Plain text
16820 #: build/C/man3/rexec.3:53
16821 #, no-wrap
16822 msgid ""
16823 "B<int rexec_af(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
16824 "B<             char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<,>\n"
16825 "B<             sa_family_t >I<af>B<);>\n"
16826 msgstr ""
16827 "B<int rexec_af(char **>I<ahost>B<, int >I<inport>B<, char *>I<user>B<, >\n"
16828 "B<             char *>I<passwd>B<, char *>I<cmd>B<, int *>I<fd2p>B<,>\n"
16829 "B<             sa_family_t >I<af>B<);>\n"
16830
16831 #. type: Plain text
16832 #: build/C/man3/rexec.3:57
16833 msgid "This interface is obsoleted by B<rcmd>(3)."
16834 msgstr "このインタフェースは B<rcmd>(3)  によって置き換えられた。"
16835
16836 #. type: Plain text
16837 #: build/C/man3/rexec.3:76
16838 msgid ""
16839 "The B<rexec>()  function looks up the host I<*ahost> using B<gethostbyname>"
16840 "(3), returning -1 if the host does not exist.  Otherwise I<*ahost> is set to "
16841 "the standard name of the host.  If a username and password are both "
16842 "specified, then these are used to authenticate to the foreign host; "
16843 "otherwise the environment and then the user's I<.netrc> file in his home "
16844 "directory are searched for appropriate information.  If all this fails, the "
16845 "user is prompted for the information."
16846 msgstr ""
16847 "B<rexec>()  関数は B<gethostbyname>(3)  を使ってホスト I<*ahost> を探す。ホス"
16848 "トが存在しない場合は -1 を返し、それ以外の場合には I<*ahost> にそのホストの標"
16849 "準的な名前を設定する。 ユーザ名とパスワードの両方が指定された場合には、これら"
16850 "は 接続先のホストへの認証に利用される。そうでない場合には、 適切な情報を入手"
16851 "するために、環境変数と、そのユーザの ホームディレクトリの I<.netrc> ファイル"
16852 "が検索される。情報が見つからなかった時には、 ユーザに対して情報を入力するプロ"
16853 "ンプトが表示される。"
16854
16855 #. type: Plain text
16856 #: build/C/man3/rexec.3:87
16857 msgid ""
16858 "The port I<inport> specifies which well-known DARPA Internet port to use for "
16859 "the connection; the call I<getservbyname(\"exec\", \"tcp\")> (see "
16860 "B<getservent>(3))  will return a pointer to a structure that contains the "
16861 "necessary port.  The protocol for connection is described in detail in "
16862 "B<rexecd>(8)."
16863 msgstr ""
16864 "ポート I<inport> には、接続に使用する DARPA Internet の well-known ポートを指"
16865 "定する。 I<getservbyname(\"exec\", \"tcp\")> を呼び出すと構造体へのポインタが"
16866 "返され (B<getservent>(3)  参照)、この構造体には必要なポートが入っている。 接"
16867 "続に使用されるプロトコルについての詳細は B<rexecd>(8)  に書かれている (訳注: "
16868 "現在のところ存在しない)。"
16869
16870 #. type: Plain text
16871 #: build/C/man3/rexec.3:120
16872 msgid ""
16873 "If the connection succeeds, a socket in the Internet domain of type "
16874 "B<SOCK_STREAM> is returned to the caller, and given to the remote command as "
16875 "I<stdin> and I<stdout>.  If I<fd2p> is nonzero, then an auxiliary channel to "
16876 "a control process will be setup, and a descriptor for it will be placed in "
16877 "I<*fd2p>.  The control process will return diagnostic output from the "
16878 "command (unit 2) on this channel, and will also accept bytes on this channel "
16879 "as being UNIX signal numbers, to be forwarded to the process group of the "
16880 "command.  The diagnostic information returned does not include remote "
16881 "authorization failure, as the secondary connection is set up after "
16882 "authorization has been verified.  If I<fd2p> is 0, then the I<stderr> (unit "
16883 "2 of the remote command) will be made the same as the I<stdout> and no "
16884 "provision is made for sending arbitrary signals to the remote process, "
16885 "although you may be able to get its attention by using out-of-band data."
16886 msgstr ""
16887 "接続に成功すると、インターネットドメインの B<SOCK_STREAM> 型のソケットが返さ"
16888 "れ、そのソケットはリモートコマンドの 標準入力および標準出力となる。 I<fd2p> "
16889 "が 0 以外の場合、制御プロセスへの補助チャンネルがセットアップされ、 補助チャ"
16890 "ンネルのディスクリプタが I<*fd2p> に書かれる。 制御プロセスはコマンドからの診"
16891 "断メッセージ出力 (ファイルディスクリプタ 2)  をこのチャンネルで返す。また、こ"
16892 "のチャンネル経由で UNIX のシグナル番号を示すバイトを受信する。受信したシグナ"
16893 "ルは コマンドが属すプロセスグループに転送される。 診断情報にはリモートの認証"
16894 "失敗は含まれない。なぜなら、認証の確認が行われた 後で補助チャンネルの接続は"
16895 "セットアップされるからである。 I<fd2p> が 0 の場合、標準エラー (リモートコマ"
16896 "ンドのファイルディスクリプタ 2) は 標準出力と同様に扱われ、リモートプロセスに"
16897 "任意のシグナルを送るための 手段は提供されない。但し、リモートプロセスに対して"
16898 "トリガをかけるために、 帯域外データ (out-of-band data) を使うことはできる。"
16899
16900 #. type: SS
16901 #: build/C/man3/rexec.3:120
16902 #, no-wrap
16903 msgid "rexec_af()"
16904 msgstr "rexec_af()"
16905
16906 #. type: Plain text
16907 #: build/C/man3/rexec.3:136
16908 msgid ""
16909 "The B<rexec>()  function works over IPv4 (B<AF_INET>).  By contrast, the "
16910 "B<rexec_af>()  function provides an extra argument, I<af>, that allows the "
16911 "caller to select the protocol.  This argument can be specified as "
16912 "B<AF_INET>, B<AF_INET6>, or B<AF_UNSPEC> (to allow the implementation to "
16913 "select the protocol)."
16914 msgstr ""
16915 "B<rexec>() 関数は IPv4 (B<AF_INET>) 上で動作する。\n"
16916 "これに対して、 B<rexec_af>() 関数は追加の引き数 I<af> があり、\n"
16917 "この引き数で呼び出し側がプロトコルを選択できる。\n"
16918 "この引き数には B<AF_INET>, B<AF_INET6>, B<AF_UNSPEC> を指定できる\n"
16919 "(B<AF_UNSPEC> は実装側がプロトコルを選択することを意味する)。"
16920
16921 #. type: Plain text
16922 #: build/C/man3/rexec.3:140
16923 msgid "The B<rexec_af>()  function was added to glibc in version 2.2."
16924 msgstr "B<rexec_af>() 関数は glibc バージョン 2.9 で追加された。"
16925
16926 #. type: Plain text
16927 #: build/C/man3/rexec.3:149
16928 msgid ""
16929 "These functions are not in POSIX.1-2001.  The B<rexec>()  function first "
16930 "appeared in 4.2BSD, and is present on the BSDs, Solaris, and many other "
16931 "systems.  The B<rexec_af>()  function is more recent, nad less widespread."
16932 msgstr ""
16933 "これらの関数は POSIX.1-2001 にはない。B<rexec>() 関数は 4.2BSD で始めて\n"
16934 "登場し、BSD 系、Solaris や他の多くのシステムに存在する。B<rexec_af>()\n"
16935 "関数はもっと新しく、それほど広く使われているわけではない。"
16936
16937 #. type: Plain text
16938 #: build/C/man3/rexec.3:153
16939 msgid ""
16940 "The B<rexec>()  function sends the unencrypted password across the network."
16941 msgstr ""
16942 "B<rexec>()  関数はネットワークに暗号化されていないパスワードを送信する。"
16943
16944 #. type: Plain text
16945 #: build/C/man3/rexec.3:158
16946 msgid ""
16947 "The underlying service is considered a big security hole and therefore not "
16948 "enabled on many sites; see B<rexecd>(8)  for explanations."
16949 msgstr ""
16950 "基礎的なサービスにおいては大きなセキュリティホールと考えられるため、 \n"
16951 "多くのサイトで無効になっている。詳細は B<rexecd>(8) を参照。"
16952
16953 #. type: Plain text
16954 #: build/C/man3/rexec.3:161
16955 msgid "B<rcmd>(3), B<rexecd>(8)"
16956 msgstr "B<rcmd>(3), B<rexecd>(8)"
16957
16958 #. type: TH
16959 #: build/C/man5/services.5:34
16960 #, no-wrap
16961 msgid "SERVICES"
16962 msgstr "SERVICES"
16963
16964 #. type: TH
16965 #: build/C/man5/services.5:34
16966 #, no-wrap
16967 msgid "2010-05-22"
16968 msgstr "2010-05-22"
16969
16970 #. type: Plain text
16971 #: build/C/man5/services.5:37
16972 msgid "services - Internet network services list"
16973 msgstr "services - インターネット ネットワークサービス リスト"
16974
16975 #. type: Plain text
16976 #: build/C/man5/services.5:52
16977 msgid ""
16978 "B<services> is a plain ASCII file providing a mapping between human-friendly "
16979 "textual names for internet services, and their underlying assigned port "
16980 "numbers and protocol types.  Every networking program should look into this "
16981 "file to get the port number (and protocol) for its service.  The C library "
16982 "routines B<getservent>(3), B<getservbyname>(3), B<getservbyport>(3), "
16983 "B<setservent>(3), and B<endservent>(3)  support querying this file from "
16984 "programs."
16985 msgstr ""
16986 "B<services> は、人が分かりやすい形のインターネットサービスの名前と、 それらの"
16987 "サービスに割り当てられたポート番号や プロトコル種別の対応関係が書かれているテ"
16988 "キストファイルである。 ネットワーク上で動作するプログラムはすべて、 そのサー"
16989 "ビスに対応するポート番号 (とプロトコル) を得るために、 このファイルを調べる必"
16990 "要がある。 C ライブラリ関数である B<getservent>(3), B<getservbyname>(3), "
16991 "B<getservbyport>(3), B<setservent>(3), B<endservent>(3)  を利用することで、プ"
16992 "ログラムはこのファイルを調べることができる。"
16993
16994 #. type: Plain text
16995 #: build/C/man5/services.5:58
16996 msgid ""
16997 "Port numbers are assigned by the IANA (Internet Assigned Numbers Authority), "
16998 "and their current policy is to assign both TCP and UDP protocols when "
16999 "assigning a port number.  Therefore, most entries will have two entries, "
17000 "even for TCP-only services."
17001 msgstr ""
17002 "ポート番号は、IANA (Internet Assigned Numbers Authority) によって 割り当てら"
17003 "れており、現在はポート番号を割り当てる際に TCP と UDP の両方のプロトコルを割"
17004 "り当てることになっている。 そのため、ほとんどのサービスに対して、 たとえ TCP "
17005 "だけのサービスの場合であっても、対応する項目が二つあることになる。"
17006
17007 #. type: Plain text
17008 #: build/C/man5/services.5:70
17009 msgid ""
17010 "Port numbers below 1024 (so-called \"low numbered\" ports) can only be bound "
17011 "to by root (see B<bind>(2), B<tcp>(7), and B<udp>(7)).  This is so clients "
17012 "connecting to low numbered ports can trust that the service running on the "
17013 "port is the standard implementation, and not a rogue service run by a user "
17014 "of the machine.  Well-known port numbers specified by the IANA are normally "
17015 "located in this root-only space."
17016 msgstr ""
17017 "1024 より小さいポート番号 (いわゆる \"low numbered\" ポート) は 管理者 "
17018 "(root) 権限によってのみ使用することができる (B<bind>(2), B<tcp>(7), B<udp>"
17019 "(7)  参照)。 これは、これらのポートに接続するクライアントに対して、 そのポー"
17020 "トで動いているサービスが標準的な実装であり、 その計算機のユーザーが動かしてい"
17021 "る 不正なサービスではないことを保証するためである。 IANA に明記されているよく"
17022 "使用されるポート番号は、 通常このような管理者だけが使用できる範囲に配置され"
17023 "る。"
17024
17025 #. type: Plain text
17026 #: build/C/man5/services.5:85
17027 msgid ""
17028 "The presence of an entry for a service in the B<services> file does not "
17029 "necessarily mean that the service is currently running on the machine.  See "
17030 "B<inetd.conf>(5)  for the configuration of Internet services offered.  Note "
17031 "that not all networking services are started by B<inetd>(8), and so won't "
17032 "appear in B<inetd.conf>(5).  In particular, news (NNTP) and mail (SMTP) "
17033 "servers are often initialized from the system boot scripts."
17034 msgstr ""
17035 "B<services> ファイルにあるサービスに対する項目があっても、必ずしもそのサービ"
17036 "スが現 在その計算機で動いている訳ではない。利用可能なインターネットサービスの"
17037 "設定に ついては B<inetd.conf>(5)  に記述されている。ただし、すべてのサービス"
17038 "が B<inetd>(8)  によって起動されるわけではないので、 B<inetd.conf>(5)  には書"
17039 "かれていないサービスもあることに注意する必要がある。 特に、ネットニュース "
17040 "(NNTP) や メール (SMTP) のサーバーは、システム起動時の スクリプトから起動され"
17041 "ることが多い。"
17042
17043 #. type: Plain text
17044 #: build/C/man5/services.5:94
17045 msgid ""
17046 "The location of the B<services> file is defined by B<_PATH_SERVICES> in "
17047 "I<E<lt>netdb.hE<gt>>.  This is usually set to I</etc/services>."
17048 msgstr ""
17049 "B<services> ファイルの場所は、 I<E<lt>netdb.hE<gt>> 中の B<_PATH_SERVICES> に"
17050 "よって定義されている。 この値は通常 I</etc/services> に設定されている。"
17051
17052 #. type: Plain text
17053 #: build/C/man5/services.5:96
17054 msgid "Each line describes one service, and is of the form:"
17055 msgstr "1 行につき 1 サービスが記述されており、以下の形式である。"
17056
17057 #. type: Plain text
17058 #: build/C/man5/services.5:98
17059 msgid "I<service-name\\ \\ \\ port>B</>I<protocol\\ \\ \\ >[I<aliases ...>]"
17060 msgstr "I<service-name\\ \\ \\ port>B</>I<protocol\\ \\ \\ >[I<aliases ...>]"
17061
17062 #. type: TP
17063 #: build/C/man5/services.5:98
17064 #, no-wrap
17065 msgid "where:"
17066 msgstr "各項目は以下の通り。"
17067
17068 #. type: TP
17069 #: build/C/man5/services.5:100
17070 #, no-wrap
17071 msgid "I<service-name>"
17072 msgstr "I<service-name>"
17073
17074 #. type: Plain text
17075 #: build/C/man5/services.5:106
17076 msgid ""
17077 "is the friendly name the service is known by and looked up under.  It is "
17078 "case sensitive.  Often, the client program is named after the I<service-"
17079 "name>."
17080 msgstr ""
17081 "サービスを表す分かりやすい名前であり、検索の際にも使用される。 大文字と小文字"
17082 "は区別される。 クライアントプログラムは I<service-name> にちなんで名付けられ"
17083 "ることが多い。"
17084
17085 #. type: TP
17086 #: build/C/man5/services.5:106
17087 #, no-wrap
17088 msgid "I<port>"
17089 msgstr "I<port>"
17090
17091 #. type: Plain text
17092 #: build/C/man5/services.5:109
17093 msgid "is the port number (in decimal) to use for this service."
17094 msgstr "サービスに対して使用されるポート番号。10 進数で指定する。"
17095
17096 #. type: Plain text
17097 #: build/C/man5/services.5:120
17098 msgid ""
17099 "is the type of protocol to be used.  This field should match an entry in the "
17100 "B<protocols>(5)  file.  Typical values include B<tcp> and B<udp>."
17101 msgstr ""
17102 "使用されるプロトコルの種類。この欄は、 B<protocols>(5)  ファイルの中の項目と"
17103 "一致している必要がある。 通常使用される値は、 B<tcp> と B<udp> である。"
17104
17105 #. type: Plain text
17106 #: build/C/man5/services.5:126
17107 msgid ""
17108 "is an optional space or tab separated list of other names for this service.  "
17109 "Again, the names are case sensitive."
17110 msgstr ""
17111 "サービスに対する別名のリスト (区切はスペースまたはタブ) で、この欄は 必要にな"
17112 "らば書くことができる。 また、別名は大文字と小文字は区別される。"
17113
17114 #. type: Plain text
17115 #: build/C/man5/services.5:128
17116 msgid "Either spaces or tabs may be used to separate the fields."
17117 msgstr "それぞれの欄の区切りには、スペースまたはタブが使用される。"
17118
17119 #. type: Plain text
17120 #: build/C/man5/services.5:132
17121 msgid ""
17122 "Comments are started by the hash sign (#) and continue until the end of the "
17123 "line.  Blank lines are skipped."
17124 msgstr ""
17125 "コメントはシャープ (#) で始まり、その行の終わりまでがコメントとみなされる。 "
17126 "空行は飛ばされる。"
17127
17128 #. type: Plain text
17129 #: build/C/man5/services.5:143
17130 msgid ""
17131 "The I<service-name> should begin in the first column of the file, since "
17132 "leading spaces are not stripped.  I<service-names> can be any printable "
17133 "characters excluding space and tab.  However, a conservative choice of "
17134 "characters should be used to minimize compatibility problems.  E.g., a-z, "
17135 "0-9, and hyphen (-) would seem a sensible choice."
17136 msgstr ""
17137 "行の始めのスペースは無視されないので、 I<service-name> は、行頭から書かなけれ"
17138 "ばならない。 I<service-names> は、スペースとタブ以外の印字可能な文字なら何で"
17139 "もよいが、しかしながら 互換性の問題を少なくするような文字を選択すべきであ"
17140 "る。 例えば、a-z 、0-9 、ハイフォン (-) を使用するのが無難と思われる。"
17141
17142 #. type: Plain text
17143 #: build/C/man5/services.5:152
17144 msgid ""
17145 "Lines not matching this format should not be present in the file.  "
17146 "(Currently, they are silently skipped by B<getservent>(3), B<getservbyname>"
17147 "(3), and B<getservbyport>(3).  However, this behavior should not be relied "
17148 "on.)"
17149 msgstr ""
17150 "指定された形式に合わない行はあってはならない (現在は、そのような行は "
17151 "B<getservent>(3), B<getservbyname>(3), B<getservbyport>(3)  によって無視され"
17152 "る。しかし、その場合の挙動は信頼できない)。"
17153
17154 #. type: Plain text
17155 #: build/C/man5/services.5:169
17156 msgid "A sample B<services> file might look like this:"
17157 msgstr "B<services> ファイルの見本を以下に示す。"
17158
17159 #. type: ta
17160 #: build/C/man5/services.5:172
17161 #, no-wrap
17162 msgid "3i"
17163 msgstr "3i"
17164
17165 #. type: Plain text
17166 #: build/C/man5/services.5:182
17167 #, no-wrap
17168 msgid ""
17169 "netstat         15/tcp\n"
17170 "qotd            17/tcp          quote\n"
17171 "msp             18/tcp          # message send protocol\n"
17172 "msp             18/udp          # message send protocol\n"
17173 "chargen         19/tcp          ttytst source\n"
17174 "chargen         19/udp          ttytst source\n"
17175 "ftp             21/tcp\n"
17176 "# 22 - unassigned\n"
17177 "telnet          23/tcp\n"
17178 msgstr ""
17179 "netstat         15/tcp\n"
17180 "qotd            17/tcp          quote\n"
17181 "msp             18/tcp          # message send protocol\n"
17182 "msp             18/udp          # message send protocol\n"
17183 "chargen         19/tcp          ttytst source\n"
17184 "chargen         19/udp          ttytst source\n"
17185 "ftp             21/tcp\n"
17186 "# 22 - unassigned\n"
17187 "telnet          23/tcp\n"
17188
17189 #. type: Plain text
17190 #: build/C/man5/services.5:188
17191 msgid "The Internet network services list"
17192 msgstr "インターネット ネットワークサービスのリスト"
17193
17194 #. type: TP
17195 #: build/C/man5/services.5:188
17196 #, no-wrap
17197 msgid "I<E<lt>netdb.hE<gt>>"
17198 msgstr "I<E<lt>netdb.hE<gt>>"
17199
17200 #.  .SH BUGS
17201 #.  It's not clear when/if the following was ever true;
17202 #.  it isn't true for glibc 2.8:
17203 #.     There is a maximum of 35 aliases, due to the way the
17204 #.     .BR getservent (3)
17205 #.     code is written.
17206 #.  It's not clear when/if the following was ever true;
17207 #.  it isn't true for glibc 2.8:
17208 #.     Lines longer than
17209 #.     .B BUFSIZ
17210 #.     (currently 1024) characters will be ignored by
17211 #.     .BR getservent (3),
17212 #.     .BR getservbyname (3),
17213 #.     and
17214 #.     .BR getservbyport (3).
17215 #.     However, this will also cause the next line to be mis-parsed.
17216 #. type: Plain text
17217 #: build/C/man5/services.5:209
17218 msgid "Definition of B<_PATH_SERVICES>"
17219 msgstr "B<_PATH_SERVICES> の定義"
17220
17221 #. type: Plain text
17222 #: build/C/man5/services.5:219
17223 msgid ""
17224 "B<listen>(2), B<endservent>(3), B<getservbyname>(3), B<getservbyport>(3), "
17225 "B<getservent>(3), B<setservent>(3), B<inetd.conf>(5), B<protocols>(5), "
17226 "B<inetd>(8)"
17227 msgstr ""
17228 "B<listen>(2), B<endservent>(3), B<getservbyname>(3), B<getservbyport>(3), "
17229 "B<getservent>(3), B<setservent>(3), B<inetd.conf>(5), B<protocols>(5), "
17230 "B<inetd>(8)"
17231
17232 #. type: Plain text
17233 #: build/C/man5/services.5:221
17234 msgid "Assigned Numbers RFC, most recently RFC\\ 1700, (AKA STD0002)"
17235 msgstr ""
17236 "ポート番号の割り当てを定めている RFC (最新版は RFC\\ 1700、別名 STD0002)"
17237
17238 #. type: TH
17239 #: build/C/man3/setnetgrent.3:5
17240 #, no-wrap
17241 msgid "SETNETGRENT"
17242 msgstr "SETNETGRENT"
17243
17244 #. type: TH
17245 #: build/C/man3/setnetgrent.3:5
17246 #, no-wrap
17247 msgid "2007-07-26"
17248 msgstr "2007-07-26"
17249
17250 #. type: Plain text
17251 #: build/C/man3/setnetgrent.3:9
17252 msgid ""
17253 "setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr - handle "
17254 "network group entries"
17255 msgstr ""
17256 "setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr - ネットワー"
17257 "ク・グループのエントリを操作する"
17258
17259 #. type: Plain text
17260 #: build/C/man3/setnetgrent.3:14
17261 #, no-wrap
17262 msgid "B<int setnetgrent(const char *>I<netgroup>B<);>\n"
17263 msgstr "B<int setnetgrent(const char *>I<netgroup>B<);>\n"
17264
17265 #. type: Plain text
17266 #: build/C/man3/setnetgrent.3:16
17267 #, no-wrap
17268 msgid "B<void endnetgrent(void);>\n"
17269 msgstr "B<void endnetgrent(void);>\n"
17270
17271 #. type: Plain text
17272 #: build/C/man3/setnetgrent.3:18
17273 #, no-wrap
17274 msgid "B<int getnetgrent(char **>I<host>B<, char **>I<user>B<, char **>I<domain>B<);>\n"
17275 msgstr "B<int getnetgrent(char **>I<host>B<, char **>I<user>B<, char **>I<domain>B<);>\n"
17276
17277 #. type: Plain text
17278 #: build/C/man3/setnetgrent.3:21
17279 #, no-wrap
17280 msgid ""
17281 "B<int getnetgrent_r(char **>I<host>B<, char **>I<user>B<,>\n"
17282 "B<                  char **>I<domain>B<, char *>I<buf>B<, int >I<buflen>B<);>\n"
17283 msgstr ""
17284 "B<int getnetgrent_r(char **>I<host>B<, char **>I<user>B<,>\n"
17285 "B<                  char **>I<domain>B<, char *>I<buf>B<, int >I<buflen>B<);>\n"
17286
17287 #. type: Plain text
17288 #: build/C/man3/setnetgrent.3:24
17289 #, no-wrap
17290 msgid ""
17291 "B<int innetgr(const char *>I<netgroup>B<, const char *>I<host>B<,>\n"
17292 "B<            const char *>I<user>B<, const char *>I<domain>B<);>\n"
17293 msgstr ""
17294 "B<int innetgr(const char *>I<netgroup>B<, const char *>I<host>B<,>\n"
17295 "B<            const char *>I<user>B<, const char *>I<domain>B<);>\n"
17296
17297 #. type: Plain text
17298 #: build/C/man3/setnetgrent.3:38
17299 msgid ""
17300 "B<setnetgrent>(), B<endnetgrent>(), B<getnetgrent>(), B<getnetgrent_r>(), "
17301 "B<innetgr>(): _BSD_SOURCE || _SVID_SOURCE"
17302 msgstr ""
17303 "B<setnetgrent>(), B<endnetgrent>(), B<getnetgrent>(), B<getnetgrent_r>(), "
17304 "B<innetgr>(): _BSD_SOURCE || _SVID_SOURCE"
17305
17306 #. type: Plain text
17307 #: build/C/man3/setnetgrent.3:52
17308 msgid ""
17309 "The I<netgroup> is a SunOS invention.  A netgroup database is a list of "
17310 "string triples (I<hostname>, I<username>, I<domainname>)  or other netgroup "
17311 "names.  Any of the elements in a triple can be empty, which means that "
17312 "anything matches.  The functions described here allow access to the netgroup "
17313 "databases.  The file I</etc/nsswitch.conf> defines what database is searched."
17314 msgstr ""
17315 "I<netgroup> は SunOS で考案されたものである。ネットグループのデータベースの "
17316 "エントリは、 3 つの文字列のリスト (I<hostname>, I<username>, I<domainname>)  "
17317 "もしくはネットグループ名である。 前記のリストの各要素は空であってもよい。 空"
17318 "は何とでも一致することを意味する。 本ページで説明する関数を使うことで、ネット"
17319 "グループのデータベースに アクセスすることができる。どのデータベースが検索され"
17320 "るかは I</etc/nsswitch.conf> ファイルで定義されている。"
17321
17322 #. type: Plain text
17323 #: build/C/man3/setnetgrent.3:72
17324 msgid ""
17325 "The B<setnetgrent>()  call defines the netgroup that will be searched by "
17326 "subsequent B<getnetgrent>()  calls.  The B<getnetgrent>()  function "
17327 "retrieves the next netgroup entry, and returns pointers in I<host>, I<user>, "
17328 "I<domain>.  A NULL pointer means that the corresponding entry matches any "
17329 "string.  The pointers are valid only as long as there is no call to other "
17330 "netgroup-related functions.  To avoid this problem you can use the GNU "
17331 "function B<getnetgrent_r>()  that stores the strings in the supplied "
17332 "buffer.  To free all allocated buffers use B<endnetgrent>()."
17333 msgstr ""
17334 "B<setnetgrent>()  コールは、この後で呼ばれる B<getnetgrent>()  コールが検索す"
17335 "るネットグループを定める。 B<getnetgrent>()  関数はネットグループの次のエント"
17336 "リを取得し、 I<host>, I<user>, I<domain> にポインタを入れて返る。 NULL ポイン"
17337 "タは、対応するエントリがどんな文字列とも一致することを意味する。 得られたポイ"
17338 "ンタは、ネットグループ関係の関数のいずれかが呼ばれるまでの 間だけ有効である。"
17339 "この問題を避けるためには GNU 拡張の関数 B<getnetgrent_r>()  を使うとよい。こ"
17340 "の関数は呼び出し側が用意したバッファに 文字列を格納する。割り当て済のバッファ"
17341 "を全て解放するには B<endnetgrent>()  を使用する。"
17342
17343 #. type: Plain text
17344 #: build/C/man3/setnetgrent.3:81
17345 msgid ""
17346 "In most cases you only want to check if the triplet (I<hostname>, "
17347 "I<username>, I<domainname>)  is a member of a netgroup.  The function "
17348 "B<innetgr>()  can be used for this without calling the above three "
17349 "functions.  Again, a NULL pointer is a wildcard and matches any string.  The "
17350 "function is thread-safe."
17351 msgstr ""
17352 "ほとんどの場合、 (I<hostname>, I<username>, I<domainname>)  の3要素の組がネッ"
17353 "トグループのメンバーかどうかを確認したいだけであろう。 B<innetgr>()  関数を使"
17354 "うと、上記の3つの関数を呼び出さずにこの目的を達成できる。 もう一度書いておく"
17355 "が、NULL ポインタはワイルドカードであり、 あらゆる文字列と一致する。この関数"
17356 "はスレッドセーフである。"
17357
17358 #. type: Plain text
17359 #: build/C/man3/setnetgrent.3:83
17360 msgid "These functions return 1 on success and 0 for failure."
17361 msgstr "これらの関数は成功すると 1 を、失敗すると 0 を返す。"
17362
17363 #. type: Plain text
17364 #: build/C/man3/setnetgrent.3:85
17365 msgid "I</etc/netgroup>"
17366 msgstr "I</etc/netgroup>"
17367
17368 #.  getnetgrent_r() is on Solaris 8 and AIX 5.1, but not the BSDs.
17369 #. type: Plain text
17370 #: build/C/man3/setnetgrent.3:98
17371 msgid ""
17372 "These functions are not in POSIX.1-2001, but B<setnetgrent>(), B<endnetgrent>"
17373 "(), B<getnetgrent>(), and B<innetgr>()  are available on most UNIX systems.  "
17374 "B<getnetgrent_r>()  is not widely available on other systems."
17375 msgstr ""
17376 "これらの関数は POSIX.1-2001 にはないが、 setnetgrent (), endnetgrent (), "
17377 "getnetgrent (), innetgr ()  はほとんどの UNIX システムで利用可能である。 "
17378 "B<getnetgrent_r>()  は広く他のシステムで利用できるわけではない。"
17379
17380 #. type: Plain text
17381 #: build/C/man3/setnetgrent.3:102
17382 msgid "In the BSD implementation, B<setnetgrent>()  returns void."
17383 msgstr "BSD の実装では B<setnetgrent>()  は void を返す。"
17384
17385 #. type: Plain text
17386 #: build/C/man3/setnetgrent.3:106
17387 msgid "B<sethostent>(3), B<setprotoent>(3), B<setservent>(3)"
17388 msgstr "B<sethostent>(3), B<setprotoent>(3), B<setservent>(3)"
17389
17390 #. type: TH
17391 #: build/C/man2/shutdown.2:38
17392 #, no-wrap
17393 msgid "SHUTDOWN"
17394 msgstr "SHUTDOWN"
17395
17396 #. type: Plain text
17397 #: build/C/man2/shutdown.2:41
17398 msgid "shutdown - shut down part of a full-duplex connection"
17399 msgstr "shutdown - 全二重接続の一部を閉じる"
17400
17401 #. type: Plain text
17402 #: build/C/man2/shutdown.2:45
17403 msgid "B<int shutdown(int >I<sockfd>B<, int >I<how>B<);>"
17404 msgstr "B<int shutdown(int >I<sockfd>B<, int >I<how>B<);>"
17405
17406 #. type: Plain text
17407 #: build/C/man2/shutdown.2:67
17408 msgid ""
17409 "The B<shutdown>()  call causes all or part of a full-duplex connection on "
17410 "the socket associated with I<sockfd> to be shut down.  If I<how> is "
17411 "B<SHUT_RD>, further receptions will be disallowed.  If I<how> is B<SHUT_WR>, "
17412 "further transmissions will be disallowed.  If I<how> is B<SHUT_RDWR>, "
17413 "further receptions and transmissions will be disallowed."
17414 msgstr ""
17415 "B<shutdown>()  は、 I<sockfd> に関連づけられているソケットによる全二重接続 "
17416 "(full-duplex connection)  の一部または全てを閉じる。 I<how> が B<SHUT_RD> な"
17417 "らば、それ以降の受信を禁止する。 I<how> が B<SHUT_WR> ならば、それ以降の送信"
17418 "を禁止する。 I<how> が B<SHUT_RDWR> ならば、それ以降の送受信を禁止する。"
17419
17420 #. type: Plain text
17421 #: build/C/man2/shutdown.2:77
17422 msgid "I<sockfd> is not a valid descriptor."
17423 msgstr "I<sockfd> が有効なディスクリプターでない。"
17424
17425 #. type: Plain text
17426 #: build/C/man2/shutdown.2:80
17427 msgid "The specified socket is not connected."
17428 msgstr "指定されたソケットは接続されていない。"
17429
17430 #. type: Plain text
17431 #: build/C/man2/shutdown.2:84
17432 msgid "I<sockfd> is a file, not a socket."
17433 msgstr "I<sockfd> がソケットでなくファイルである。"
17434
17435 #. type: Plain text
17436 #: build/C/man2/shutdown.2:88
17437 msgid ""
17438 "POSIX.1-2001, 4.4BSD (the B<shutdown>()  function call first appeared in "
17439 "4.2BSD)."
17440 msgstr ""
17441 "POSIX.1-2001, 4.4BSD (B<shutdown>()  関数コールは 4.2BSD で初めて登場した)。"
17442
17443 #. type: Plain text
17444 #: build/C/man2/shutdown.2:97
17445 msgid ""
17446 "The constants B<SHUT_RD>, B<SHUT_WR>, B<SHUT_RDWR> have the value 0, 1, 2, "
17447 "respectively, and are defined in I<E<lt>sys/socket.hE<gt>> since "
17448 "glibc-2.1.91."
17449 msgstr ""
17450 "B<SHUT_RD>, B<SHUT_WR>, B<SHUT_RDWR> の各定数 (それぞれ 0, 1, 2 の値を持つ) "
17451 "は glibc-2.1.91 以降、 I<E<lt>sys/socket.hE<gt>> で定義されている。"
17452
17453 #. type: Plain text
17454 #: build/C/man2/shutdown.2:101
17455 msgid "B<connect>(2), B<socket>(2), B<socket>(7)"
17456 msgstr "B<connect>(2), B<socket>(2), B<socket>(7)"
17457
17458 #. type: TH
17459 #: build/C/man7/tcp.7:16
17460 #, no-wrap
17461 msgid "TCP"
17462 msgstr "TCP"
17463
17464 #. type: Plain text
17465 #: build/C/man7/tcp.7:19
17466 msgid "tcp - TCP protocol"
17467 msgstr "tcp - TCP プロトコル"
17468
17469 #. type: Plain text
17470 #: build/C/man7/tcp.7:25
17471 msgid "B<#include E<lt>netinet/tcp.hE<gt>>"
17472 msgstr "B<#include E<lt>netinet/tcp.hE<gt>>"
17473
17474 #. type: Plain text
17475 #: build/C/man7/tcp.7:27
17476 msgid "B<tcp_socket = socket(AF_INET, SOCK_STREAM, 0);>"
17477 msgstr "B<tcp_socket = socket(AF_INET, SOCK_STREAM, 0);>"
17478
17479 #. type: Plain text
17480 #: build/C/man7/tcp.7:40
17481 msgid ""
17482 "This is an implementation of the TCP protocol defined in RFC\\ 793, RFC\\ "
17483 "1122 and RFC\\ 2001 with the NewReno and SACK extensions.  It provides a "
17484 "reliable, stream-oriented, full-duplex connection between two sockets on top "
17485 "of B<ip>(7), for both v4 and v6 versions.  TCP guarantees that the data "
17486 "arrives in order and retransmits lost packets.  It generates and checks a "
17487 "per-packet checksum to catch transmission errors.  TCP does not preserve "
17488 "record boundaries."
17489 msgstr ""
17490 "これは RFC\\ 793, RFC\\ 1122, RFC\\ 2001 で定義されている TCP プロトコルを "
17491 "NewReno 拡張と SACK 拡張を含めて実装したものである。 TCP は、 B<ip>(7)  上の"
17492 "二つのソケット間に、信頼性の高い、ストリーム指向の全二重 (full-duplex) 通信を"
17493 "提供する。 v4 と v6 の両方のバージョンの B<ip>(7)  に対応している。 TCP は、"
17494 "データが順序を守って到着すること、途中で失われたパケットが 再送されることを保"
17495 "証する。また、パケット単位にチェックサムを 生成、検査することで、転送エラーを"
17496 "検知する。 TCP はレコード境界 (record boundary) を保存しない。"
17497
17498 #. type: Plain text
17499 #: build/C/man7/tcp.7:59
17500 msgid ""
17501 "A newly created TCP socket has no remote or local address and is not fully "
17502 "specified.  To create an outgoing TCP connection use B<connect>(2)  to "
17503 "establish a connection to another TCP socket.  To receive new incoming "
17504 "connections, first B<bind>(2)  the socket to a local address and port and "
17505 "then call B<listen>(2)  to put the socket into the listening state.  After "
17506 "that a new socket for each incoming connection can be accepted using "
17507 "B<accept>(2).  A socket which has had B<accept>(2)  or B<connect>(2)  "
17508 "successfully called on it is fully specified and may transmit data.  Data "
17509 "cannot be transmitted on listening or not yet connected sockets."
17510 msgstr ""
17511 "新しく生成されたばかりの TCP ソケットは、 リモートアドレスかローカルアドレス"
17512 "がなく、 したがって詳細が完全に指定された状態ではない。 外部への TCP 接続を生"
17513 "成するには、 B<connect>(2)  を用いてもう一方の TCP ソケットへの接続を確立す"
17514 "る。 外部からの新たな接続を受けるには、まず B<bind>(2)  でソケットをローカル"
17515 "なアドレスとポートに結びつけ、次に B<listen>(2)  を呼んでソケットを接続待ち受"
17516 "け状態にする。 その後、到着した接続要求に対して B<accept>(2)  を用い、ソケッ"
17517 "トを新しく生成する。 B<accept>(2)  または B<connect>(2)  のコールが成功したソ"
17518 "ケットは、詳細が完全に指定された状態となり、 データのやりとりが可能となる。接"
17519 "続待ち受け状態の (listening) ソケットや、 接続 (connect) されていないソケット"
17520 "を通してデータをやりとりすることはできない。"
17521
17522 #. type: Plain text
17523 #: build/C/man7/tcp.7:79
17524 msgid ""
17525 "Linux supports RFC\\ 1323 TCP high performance extensions.  These include "
17526 "Protection Against Wrapped Sequence Numbers (PAWS), Window Scaling and "
17527 "Timestamps.  Window scaling allows the use of large (E<gt> 64K) TCP windows "
17528 "in order to support links with high latency or bandwidth.  To make use of "
17529 "them, the send and receive buffer sizes must be increased.  They can be set "
17530 "globally with the I</proc/sys/net/ipv4/tcp_wmem> and I</proc/sys/net/ipv4/"
17531 "tcp_rmem> files, or on individual sockets by using the B<SO_SNDBUF> and "
17532 "B<SO_RCVBUF> socket options with the B<setsockopt>(2)  call."
17533 msgstr ""
17534 "Linux は RFC\\ 1323 の TCP high performance 拡張をサポートしている。 これに"
17535 "は、Protection Against Wrapped Sequence Numbers (PAWS)、 ウィンドウスケーリン"
17536 "グ、タイムスタンプなどが含まれている。 ウィンドウスケーリングを利用すると、遅"
17537 "延または帯域の大きな接続で、 (64K 以上の) 巨大な TCP ウィンドウを用いることが"
17538 "可能となる。 これを用いるには、送受信のバッファサイズを大きくしなければならな"
17539 "い。 システム全体に対するバッファサイズの変更は、ファイル I</proc/sys/net/"
17540 "ipv4/tcp_wmem> と I</proc/sys/net/ipv4/tcp_rmem> を用いて行うことができる。 "
17541 "また、個々のソケットのみを大きくしたい場合には、 B<SO_SNDBUF> や "
17542 "B<SO_RCVBUF> ソケットオプションを用いて B<setsockopt>(2)  コールを用いて設定"
17543 "すればよい。"
17544
17545 #. type: Plain text
17546 #: build/C/man7/tcp.7:110
17547 msgid ""
17548 "The maximum sizes for socket buffers declared via the B<SO_SNDBUF> and "
17549 "B<SO_RCVBUF> mechanisms are limited by the values in the I</proc/sys/net/"
17550 "core/rmem_max> and I</proc/sys/net/core/wmem_max> files.  Note that TCP "
17551 "actually allocates twice the size of the buffer requested in the "
17552 "B<setsockopt>(2)  call, and so a succeeding B<getsockopt>(2)  call will not "
17553 "return the same size of buffer as requested in the B<setsockopt>(2)  call.  "
17554 "TCP uses the extra space for administrative purposes and internal kernel "
17555 "structures, and the I</proc> file values reflect the larger sizes compared "
17556 "to the actual TCP windows.  On individual connections, the socket buffer "
17557 "size must be set prior to the B<listen>(2)  or B<connect>(2)  calls in order "
17558 "to have it take effect.  See B<socket>(7)  for more information."
17559 msgstr ""
17560 "B<SO_SNDBUF> や B<SO_RCVBUF> のメカニズムで宣言されるソケットバッファの最大サ"
17561 "イズは、ファイル I</proc/sys/net/core/rmem_max> や I</proc/sys/net/core/"
17562 "wmem_max> で指定されたシステムとしての制限値を超えることはできない。 TCP は実"
17563 "際には B<setsockopt>(2)  コールが要求したバッファサイズの二倍を割り当てる。 "
17564 "そのため、この後で B<getsockopt>(2)  コールを行うと、 B<setsockopt>(2)  で要"
17565 "求したバッファサイズとは異なる値が返る。 TCP はこの余分な空間を、管理目的や"
17566 "カーネル内部の構造体に用いている。 I</proc> ファイルの値は、これらを反映し、"
17567 "実際の TCP ウィンドウよりも大きな値となる。 各接続におけるソケットのバッファ"
17568 "サイズ変更を有効にするには、 B<listen>(2)  や B<connect>(2)  コールの前に設定"
17569 "しなければならない。 より詳しい情報は B<socket>(7)  を見よ。"
17570
17571 #. type: Plain text
17572 #: build/C/man7/tcp.7:142
17573 msgid ""
17574 "TCP supports urgent data.  Urgent data is used to signal the receiver that "
17575 "some important message is part of the data stream and that it should be "
17576 "processed as soon as possible.  To send urgent data specify the B<MSG_OOB> "
17577 "option to B<send>(2).  When urgent data is received, the kernel sends a "
17578 "B<SIGURG> signal to the process or process group that has been set as the "
17579 "socket \"owner\" using the B<SIOCSPGRP> or B<FIOSETOWN> ioctls (or the "
17580 "POSIX.1-2001-specified B<fcntl>(2)  B<F_SETOWN> operation).  When the "
17581 "B<SO_OOBINLINE> socket option is enabled, urgent data is put into the normal "
17582 "data stream (a program can test for its location using the B<SIOCATMARK> "
17583 "ioctl described below), otherwise it can be only received when the "
17584 "B<MSG_OOB> flag is set for B<recv>(2)  or B<recvmsg>(2)."
17585 msgstr ""
17586 "TCP は緊急データ (urgent data) をサポートしている。緊急データは 何らかの重要"
17587 "なメッセージがデータストリームに含まれていること、 そのデータをできるだけ早く"
17588 "処理すべきこと、を受信者に伝えるために用いられる。 緊急データを送るには、 "
17589 "B<send>(2)  に B<MSG_OOB> オプションを指定する。 緊急データを受信すると、カー"
17590 "ネルは B<SIGURG> シグナルを送信する。送信先は B<SIOCSPGRP> や B<FIOSETOWN> "
17591 "ioctl (や POSIX.1-2001 で規定されている B<fcntl>(2)  B<F_SETOWN> 操作) を用い"
17592 "てそのソケットの「所有者」として設定された プロセスかプロセスグループであ"
17593 "る。 B<SO_OOBINLINE> ソケットオプションが有効になっていると、緊急データは 通"
17594 "常のデータストリームの中に混ぜて送られる (プログラムは下記の B<SIOCATMARK> "
17595 "ioctl を使って緊急データの場所を調べることができる)。 無効になっている場合に"
17596 "は、 B<recv>(2)  や B<recvmsg>(2)  で B<MSG_OOB> フラグがセットされているとき"
17597 "にのみ、緊急データを受信できる。"
17598
17599 #. type: Plain text
17600 #: build/C/man7/tcp.7:150
17601 msgid ""
17602 "Linux 2.4 introduced a number of changes for improved throughput and "
17603 "scaling, as well as enhanced functionality.  Some of these features include "
17604 "support for zero-copy B<sendfile>(2), Explicit Congestion Notification, new "
17605 "management of TIME_WAIT sockets, keep-alive socket options and support for "
17606 "Duplicate SACK extensions."
17607 msgstr ""
17608 "Linux 2.4 では多くの変更がなされ、 スループットとスケーリングが向上し、機能も"
17609 "高まった。 これらの機能には、ゼロコピー B<sendfile>(2)、 Explicit Congestion "
17610 "Notification、 TIME_WAIT ソケットの新しい管理法、 keep-alive ソケットオプショ"
17611 "ン、 Duplicate SACK 拡張のサポートなどがある。"
17612
17613 #. type: SS
17614 #: build/C/man7/tcp.7:150
17615 #, no-wrap
17616 msgid "Address Formats"
17617 msgstr "アドレスのフォーマット"
17618
17619 #. type: Plain text
17620 #: build/C/man7/tcp.7:159
17621 msgid ""
17622 "TCP is built on top of IP (see B<ip>(7)).  The address formats defined by "
17623 "B<ip>(7)  apply to TCP.  TCP only supports point-to-point communication; "
17624 "broadcasting and multicasting are not supported."
17625 msgstr ""
17626 "TCP は IP の上層に構築されている (B<ip>(7)  を参照)。 B<ip>(7)  に定義されて"
17627 "いるアドレスフォーマットは TCP にも適用される。 TCP は point-to-point の通信"
17628 "だけをサポートする。 ブロードキャストやマルチキャストはサポートしない。"
17629
17630 #. type: Plain text
17631 #: build/C/man7/tcp.7:171
17632 msgid ""
17633 "System-wide TCP parameter settings can be accessed by files in the directory "
17634 "I</proc/sys/net/ipv4/>.  In addition, most IP I</proc> interfaces also apply "
17635 "to TCP; see B<ip>(7).  Variables described as I<Boolean> take an integer "
17636 "value, with a nonzero value (\"true\") meaning that the corresponding option "
17637 "is enabled, and a zero value (\"false\")  meaning that the option is "
17638 "disabled."
17639 msgstr ""
17640 "システム全体に対する TCP パラメータの設定には、 I</proc/sys/net/ipv4/> ディレ"
17641 "クトリ内のファイルによりアクセスできる。 さらに、IP に関連する I</proc> イン"
17642 "タフェースのほとんどは TCP についても適用される。 B<ip>(7)  を参照のこと。 "
17643 "I<Boolean> は整数値で、 0 以外の値 (\"true\") は対応するオプションが有効、 0 "
17644 "値 (\"false\") は無効、であることを意味する。"
17645
17646 #. type: TP
17647 #: build/C/man7/tcp.7:171
17648 #, no-wrap
17649 msgid "I<tcp_abc> (Integer; default: 0; since Linux 2.6.15)"
17650 msgstr "I<tcp_abc> (Integer; default: 0; Linux 2.6.15 以降)"
17651
17652 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
17653 #. type: Plain text
17654 #: build/C/man7/tcp.7:179
17655 msgid ""
17656 "Control the Appropriate Byte Count (ABC), defined in RFC 3465.  ABC is a way "
17657 "of increasing the congestion window (I<cwnd>)  more slowly in response to "
17658 "partial acknowledgments.  Possible values are:"
17659 msgstr ""
17660 "RFC 3465 で定義されている Appropriate Byte Count (ABC) を制御する。 ABC は、"
17661 "部分的な ACK に応じた輻輳ウィンドウ (I<cwnd>)  の増加をより緩やかにする方法で"
17662 "ある。 以下の値を指定できる。"
17663
17664 #. type: IP
17665 #: build/C/man7/tcp.7:180 build/C/man7/tcp.7:349 build/C/man7/tcp.7:370
17666 #: build/C/man7/tcp.7:514
17667 #, no-wrap
17668 msgid "0"
17669 msgstr "0"
17670
17671 #. type: Plain text
17672 #: build/C/man7/tcp.7:184
17673 msgid "increase I<cwnd> once per acknowledgment (no ABC)"
17674 msgstr "ACK を受信する毎に I<cwnd> を増やす (ABC なし)。"
17675
17676 #. type: IP
17677 #: build/C/man7/tcp.7:184 build/C/man7/tcp.7:351 build/C/man7/tcp.7:377
17678 #: build/C/man7/tcp.7:516
17679 #, no-wrap
17680 msgid "1"
17681 msgstr "1"
17682
17683 #. type: Plain text
17684 #: build/C/man7/tcp.7:188
17685 msgid "increase I<cwnd> once per acknowledgment of full sized segment"
17686 msgstr "フルサイズのセグメントの ACK を受信する毎に I<cwnd> を増やす。"
17687
17688 #. type: IP
17689 #: build/C/man7/tcp.7:188 build/C/man7/tcp.7:353 build/C/man7/tcp.7:384
17690 #: build/C/man7/tcp.7:518
17691 #, no-wrap
17692 msgid "2"
17693 msgstr "2"
17694
17695 #. type: Plain text
17696 #: build/C/man7/tcp.7:193
17697 msgid ""
17698 "allow increase I<cwnd> by two if acknowledgment is of two segments to "
17699 "compensate for delayed acknowledgments."
17700 msgstr ""
17701 "ACK が遅延 ACK (delayed acknowledgment) を相殺するための 2 セグメントに 対す"
17702 "る ACK の場合に、 I<cwnd> を 2 増やすことができる。"
17703
17704 #. type: TP
17705 #: build/C/man7/tcp.7:194
17706 #, no-wrap
17707 msgid "I<tcp_abort_on_overflow> (Boolean; default: disabled; since Linux 2.4)"
17708 msgstr "I<tcp_abort_on_overflow> (Boolean; default: disabled; Linux 2.4 以降)"
17709
17710 #.  Since 2.3.41
17711 #. type: Plain text
17712 #: build/C/man7/tcp.7:206
17713 msgid ""
17714 "Enable resetting connections if the listening service is too slow and unable "
17715 "to keep up and accept them.  It means that if overflow occurred due to a "
17716 "burst, the connection will recover.  Enable this option I<only> if you are "
17717 "really sure that the listening daemon cannot be tuned to accept connections "
17718 "faster.  Enabling this option can harm the clients of your server."
17719 msgstr ""
17720 "接続を待ち受けているサービスが遅すぎて、受信についていけない場合に、 接続をリ"
17721 "セットできるようにする。 これを用いると、バーストによってオーバーフローが起"
17722 "こったときに、 接続を回復できるようになる。このオプションを用いるのは、 受信"
17723 "デーモンを高速化できない場合に「限定する」こと。 このオプションを用いると、そ"
17724 "のサーバに接続しているクライアント にとっては害になることがある。"
17725
17726 #. type: TP
17727 #: build/C/man7/tcp.7:206
17728 #, no-wrap
17729 msgid "I<tcp_adv_win_scale> (integer; default: 2; since Linux 2.4)"
17730 msgstr "I<tcp_adv_win_scale> (integer; default: 2; Linux 2.4 以降)"
17731
17732 #.  Since 2.4.0-test7
17733 #. type: Plain text
17734 #: build/C/man7/tcp.7:218
17735 msgid ""
17736 "Count buffering overhead as I<bytes/2^tcp_adv_win_scale>, if "
17737 "I<tcp_adv_win_scale> is greater than 0; or I<bytes-bytes/2^(-"
17738 "tcp_adv_win_scale)>, if I<tcp_adv_win_scale> is less than or equal to zero."
17739 msgstr ""
17740 "バッファリングのオーバーヘッドの計算方法を、 I<tcp_adv_win_scale> が正の場合"
17741 "は I<bytes/2^tcp_adv_win_scale> に、 I<tcp_adv_win_scale> が負か 0 の場合は "
17742 "I<bytes-bytes/2^(-tcp_adv_win_scale)> とする。"
17743
17744 #. type: Plain text
17745 #: build/C/man7/tcp.7:231
17746 msgid ""
17747 "The socket receive buffer space is shared between the application and "
17748 "kernel.  TCP maintains part of the buffer as the TCP window, this is the "
17749 "size of the receive window advertised to the other end.  The rest of the "
17750 "space is used as the \"application\" buffer, used to isolate the network "
17751 "from scheduling and application latencies.  The I<tcp_adv_win_scale> default "
17752 "value of 2 implies that the space used for the application buffer is one "
17753 "fourth that of the total."
17754 msgstr ""
17755 "ソケットの受信バッファ空間はアプリケーションとカーネルで共有される。 TCP は"
17756 "バッファの一部を TCP ウィンドウとして管理し、 これを受信ウィンドウとして接続"
17757 "の他端に通知する。 空間の残りは「アプリケーション」バッファとして用いられ、 "
17758 "スケジューリングやアプリケーションの遅延からネットワークを隔離する。 "
17759 "I<tcp_adv_win_scale> のデフォルト値は 2 であり、 この場合アプリケーションバッ"
17760 "ファは全体の 1/4 になる。"
17761
17762 #. type: TP
17763 #: build/C/man7/tcp.7:231
17764 #, no-wrap
17765 msgid "I<tcp_allowed_congestion_control> (String; default: see text; since Linux 2.4.20)"
17766 msgstr "I<tcp_allowed_congestion_control> (String; default: see text; Linux 2.4.20 以降)"
17767
17768 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
17769 #.  FIXME How are the items in this delimited? Null bytes, spaces, commas?
17770 #. type: Plain text
17771 #: build/C/man7/tcp.7:243
17772 msgid ""
17773 "Show/set the congestion control algorithm choices available to unprivileged "
17774 "processes (see the description of the B<TCP_CONGESTION> socket option).  The "
17775 "list is a subset of those listed in I<tcp_available_congestion_control>.  "
17776 "The default value for this list is \"reno\" plus the default setting of "
17777 "I<tcp_congestion_control>."
17778 msgstr ""
17779 "非特権プロセスで利用できる輻輳制御アルゴリズムの選択肢を表示/設定する "
17780 "(B<TCP_CONGESTION> ソケットオプションの説明を参照のこと)。 このリストは "
17781 "I<tcp_available_congestion_control> で表示されるリストの部分集合となる。 この"
17782 "リストのデフォルト値は、\"reno\" と I<tcp_congestion_control> のデフォルト設"
17783 "定をあわせたものとなる。"
17784
17785 #. type: TP
17786 #: build/C/man7/tcp.7:243
17787 #, no-wrap
17788 msgid "I<tcp_available_congestion_control> (String; read-only; since Linux 2.4.20)"
17789 msgstr "I<tcp_available_congestion_control> (String; read-only; Linux 2.4.20 以降)"
17790
17791 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
17792 #.  FIXME How are the items in this delimited? Null bytes, spaces, commas?
17793 #. type: Plain text
17794 #: build/C/man7/tcp.7:253
17795 msgid ""
17796 "Show a list of the congestion-control algorithms that are registered.  This "
17797 "list is a limiting set for the list in I<tcp_allowed_congestion_control>.  "
17798 "More congestion-control algorithms may be available as modules, but not "
17799 "loaded."
17800 msgstr ""
17801 "登録されている輻輳制御アルゴリズムのリストを表示する。 このリストに載っている"
17802 "ものだけが、 I<tcp_allowed_congestion_control> に表示される。 他の輻輳制御ア"
17803 "ルゴリズムがモジュールとして利用可能だが、 モジュールがロードされていないこと"
17804 "もある。"
17805
17806 #. type: TP
17807 #: build/C/man7/tcp.7:253
17808 #, no-wrap
17809 msgid "I<tcp_app_win> (integer; default: 31; since Linux 2.4)"
17810 msgstr "I<tcp_app_win> (integer; default: 31; Linux 2.4 以降)"
17811
17812 #.  Since 2.4.0-test7
17813 #. type: Plain text
17814 #: build/C/man7/tcp.7:258
17815 msgid ""
17816 "This variable defines how many bytes of the TCP window are reserved for "
17817 "buffering overhead."
17818 msgstr ""
17819 "この変数は、TCP ウィンドウの何バイト分を バッファリングのオーバーヘッド用に予"
17820 "約するかを指定する。"
17821
17822 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
17823 #. type: Plain text
17824 #: build/C/man7/tcp.7:264
17825 msgid ""
17826 "A maximum of (I<window/2^tcp_app_win>, mss) bytes in the window are reserved "
17827 "for the application buffer.  A value of 0 implies that no amount is reserved."
17828 msgstr ""
17829 "そのウィンドウの I<window/2^tcp_app_win> と mss の大きいほう (バイト単位)  が"
17830 "アプリケーションバッファとして予約される。 0 を指定すると一切予約領域を取らな"
17831 "い。"
17832
17833 #. type: TP
17834 #: build/C/man7/tcp.7:264
17835 #, no-wrap
17836 msgid "I<tcp_base_mss> (Integer; default: 512; since Linux 2.6.17)"
17837 msgstr "I<tcp_base_mss> (Integer; default: 512; Linux 2.6.17 以降)"
17838
17839 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
17840 #. type: Plain text
17841 #: build/C/man7/tcp.7:273
17842 msgid ""
17843 "The initial value of I<search_low> to be used by the packetization layer "
17844 "Path MTU discovery (MTU probing).  If MTU probing is enabled, this is the "
17845 "initial MSS used by the connection."
17846 msgstr ""
17847 "パケット化レイヤの Path MTU discovery (MTU probing) で、 I<search_low> の初期"
17848 "値と使用される値。 MTU probing が有効な場合、この値はその接続の MSS の初期値"
17849 "となる。"
17850
17851 #. type: TP
17852 #: build/C/man7/tcp.7:273
17853 #, no-wrap
17854 msgid "I<tcp_bic> (Boolean; default: disabled; Linux 2.4.27/2.6.6 to 2.6.13)"
17855 msgstr "I<tcp_bic> (Boolean; default: disabled; Linux 2.4.27/2.6.6 から 2.6.13 まで)"
17856
17857 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
17858 #. type: Plain text
17859 #: build/C/man7/tcp.7:287
17860 msgid ""
17861 "Enable BIC TCP congestion control algorithm.  BIC-TCP is a sender-side only "
17862 "change that ensures a linear RTT fairness under large windows while offering "
17863 "both scalability and bounded TCP-friendliness.  The protocol combines two "
17864 "schemes called additive increase and binary search increase.  When the "
17865 "congestion window is large, additive increase with a large increment ensures "
17866 "linear RTT fairness as well as good scalability.  Under small congestion "
17867 "windows, binary search increase provides TCP friendliness."
17868 msgstr ""
17869 "BIC TCP 輻輳制御アルゴリズムを有効にする。 BIC-TCP は送信側のみの変更で、 ス"
17870 "ケーラビリティと TCP 親和性 (friendliness) の両方を提供しつつ、 大きなウィン"
17871 "ドウの下での線形な RTT 公平性を保証するものである。 このプロトコルでは "
17872 "additive increase (追加的な増加) と binary search increase (二分探索増加) と"
17873 "いわれる二つの仕組みを 組み合わせている。輻輳ウィンドウが大きいときは、増分の"
17874 "大きい additive increase により、スケーラビリティを確保しながら 線形な RTT 公"
17875 "平性を保証する。 輻輳ウィンドウが小さいときには binary search increase によ"
17876 "り TCP 親和性を達成している。"
17877
17878 #. type: TP
17879 #: build/C/man7/tcp.7:287
17880 #, no-wrap
17881 msgid "I<tcp_bic_low_window> (integer; default: 14; Linux 2.4.27/2.6.6 to 2.6.13)"
17882 msgstr "I<tcp_bic_low_window> (integer; default: 14; Linux 2.4.27/2.6.6 以降 2.6.13 まで)"
17883
17884 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
17885 #. type: Plain text
17886 #: build/C/man7/tcp.7:294
17887 msgid ""
17888 "Set the threshold window (in packets) where BIC TCP starts to adjust the "
17889 "congestion window.  Below this threshold BIC TCP behaves the same as the "
17890 "default TCP Reno."
17891 msgstr ""
17892 "BIC TCP が輻輳ウィンドウの調整を開始する閾値ウィンドウ (パケット単位)  を設定"
17893 "する。この閾値を下回る場合、BIC TCP はデフォルトの TCP Reno と 同じ動作をす"
17894 "る。"
17895
17896 #. type: TP
17897 #: build/C/man7/tcp.7:294
17898 #, no-wrap
17899 msgid "I<tcp_bic_fast_convergence> (Boolean; default: enabled; Linux 2.4.27/2.6.6 to 2.6.13)"
17900 msgstr "I<tcp_bic_fast_convergence> (Boolean; default: enabled; Linux 2.4.27/2.6.6 以降 2.6.13 まで)"
17901
17902 #. type: Plain text
17903 #: build/C/man7/tcp.7:298
17904 msgid ""
17905 "Force BIC TCP to more quickly respond to changes in congestion window.  "
17906 "Allows two flows sharing the same connection to converge more rapidly."
17907 msgstr ""
17908 "BIC TCP が輻輳ウィンドウの変化により速く反応するようにする。 同じコネクション"
17909 "を共有する二つのフローが一つにまとまるのを より速く行うようにする。"
17910
17911 #. type: TP
17912 #: build/C/man7/tcp.7:298
17913 #, no-wrap
17914 msgid "I<tcp_congestion_control> (String; default: see text; since Linux 2.4.13)"
17915 msgstr "I<tcp_congestion_control> (String; default: 説明参照; Linux 2.4.13 以降)"
17916
17917 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
17918 #. type: Plain text
17919 #: build/C/man7/tcp.7:305
17920 msgid ""
17921 "Set the default congestion-control algorithm to be used for new "
17922 "connections.  The algorithm \"reno\" is always available, but additional "
17923 "choices may be available depending on kernel configuration.  The default "
17924 "value for this file is set as part of kernel configuration."
17925 msgstr ""
17926 "新規の接続で使用されるデフォルトの輻輳制御アルゴリズムを設定する。 \"reno\" "
17927 "アルゴリズムは常に利用可能だが、 カーネル設定次第では別の選択肢が利用できるこ"
17928 "ともある。 このファイルのデフォルト値はカーネル設定の一つとして設定される。"
17929
17930 #. type: TP
17931 #: build/C/man7/tcp.7:305
17932 #, no-wrap
17933 msgid "I<tcp_dma_copybreak> (integer; default: 4096; since Linux 2.6.24)"
17934 msgstr "I<tcp_dma_copybreak> (integer; default: 4096; Linux 2.6.24 以降)"
17935
17936 #. type: Plain text
17937 #: build/C/man7/tcp.7:312
17938 msgid ""
17939 "Lower limit, in bytes, of the size of socket reads that will be offloaded to "
17940 "a DMA copy engine, if one is present in the system and the kernel was "
17941 "configured with the B<CONFIG_NET_DMA> option."
17942 msgstr ""
17943 "システムに DMA コピーエンジンが存在し、カーネルで B<CONFIG_NET_DMA> オプショ"
17944 "ンが有効になっている場合に、 DMA コピーエンジンにオフロードされるソケットの読"
17945 "み込みサイズの下限値 (バイト単位)。"
17946
17947 #. type: TP
17948 #: build/C/man7/tcp.7:312
17949 #, no-wrap
17950 msgid "I<tcp_dsack> (Boolean; default: enabled; since Linux 2.4)"
17951 msgstr "I<tcp_dsack> (Boolean; default: enabled; Linux 2.4 以降)"
17952
17953 #.  Since 2.4.0-test7
17954 #. type: Plain text
17955 #: build/C/man7/tcp.7:316
17956 msgid "Enable RFC\\ 2883 TCP Duplicate SACK support."
17957 msgstr "RFC\\ 2883 の TCP Duplicate SACK のサポートを有効にする。"
17958
17959 #. type: TP
17960 #: build/C/man7/tcp.7:316
17961 #, no-wrap
17962 msgid "I<tcp_ecn> (Boolean; default: disabled; since Linux 2.4)"
17963 msgstr "I<tcp_ecn> (Boolean; default: disabled; Linux 2.4 以降)"
17964
17965 #.  Since 2.4.0-test7
17966 #. type: Plain text
17967 #: build/C/man7/tcp.7:323
17968 msgid ""
17969 "Enable RFC\\ 2884 Explicit Congestion Notification.  When enabled, "
17970 "connectivity to some destinations could be affected due to older, "
17971 "misbehaving routers along the path causing connections to be dropped."
17972 msgstr ""
17973 "RFC\\ 2884 の Explicit Congestion Notification を有効にする。 これを有効にす"
17974 "ると、間違った振舞いをする古いルータが 経路の途中にあるような接続先に対して影"
17975 "響が生じ、 場合によっては接続が落ちるかもしれない。"
17976
17977 #. type: TP
17978 #: build/C/man7/tcp.7:323
17979 #, no-wrap
17980 msgid "I<tcp_fack> (Boolean; default: enabled; since Linux 2.2)"
17981 msgstr "I<tcp_fack> (Boolean; default: enabled; Linux 2.2 以降)"
17982
17983 #.  Since 2.1.92
17984 #. type: Plain text
17985 #: build/C/man7/tcp.7:327
17986 msgid "Enable TCP Forward Acknowledgement support."
17987 msgstr "TCP Forward Acknowledgement のサポートを有効にする。"
17988
17989 #. type: TP
17990 #: build/C/man7/tcp.7:327
17991 #, no-wrap
17992 msgid "I<tcp_fin_timeout> (integer; default: 60; since Linux 2.2)"
17993 msgstr "I<tcp_fin_timeout> (integer; default: 60; Linux 2.2 以降)"
17994
17995 #.  Since 2.1.53
17996 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
17997 #. type: Plain text
17998 #: build/C/man7/tcp.7:337
17999 msgid ""
18000 "This specifies how many seconds to wait for a final FIN packet before the "
18001 "socket is forcibly closed.  This is strictly a violation of the TCP "
18002 "specification, but required to prevent denial-of-service attacks.  In Linux "
18003 "2.2, the default value was 180."
18004 msgstr ""
18005 "ソケットを強制的にクローズする前に、 最後の FIN パケットを待つ時間を秒単位で"
18006 "指定する。 これは厳密には TCP の仕様を満たしていないが、 DoS 攻撃 (denial of "
18007 "service attack) から身を守るために必要である。 Linux 2.2 ではデフォルト値は "
18008 "180 であった。"
18009
18010 #. type: TP
18011 #: build/C/man7/tcp.7:337
18012 #, no-wrap
18013 msgid "I<tcp_frto> (integer; default: 0; since Linux 2.4.21/2.6)"
18014 msgstr "I<tcp_frto> (integer; default: 0; Linux 2.4.21/2.6 以降)"
18015
18016 #.  Since 2.4.21/2.5.43
18017 #. type: Plain text
18018 #: build/C/man7/tcp.7:346
18019 msgid ""
18020 "Enable F-RTO, an enhanced recovery algorithm for TCP retransmission timeouts "
18021 "(RTOs).  It is particularly beneficial in wireless environments where packet "
18022 "loss is typically due to random radio interference rather than intermediate "
18023 "router congestion.  See RFC 4138 for more details."
18024 msgstr ""
18025 "F-RTO を有効にする。F-RTO は TCP 再送タイムアウト (RTO) からの 復旧性能を向上"
18026 "させたアルゴリズムである。 この機能は無線環境で特に効果を発揮する。 無線環境"
18027 "では、通常は、中間ルータの輻輳ではなくランダムな無線の干渉 によりパケットロス"
18028 "が発生する。 詳細は RFC\\ 4138 を参照。"
18029
18030 #. type: Plain text
18031 #: build/C/man7/tcp.7:348
18032 msgid "This file can have one of the following values:"
18033 msgstr "このファイルは以下のいずれかの値を取ることができる。"
18034
18035 #. type: Plain text
18036 #: build/C/man7/tcp.7:351
18037 msgid "Disabled."
18038 msgstr "F-RTO を無効にする。"
18039
18040 #. type: Plain text
18041 #: build/C/man7/tcp.7:353
18042 msgid "The basic version F-RTO algorithm is enabled."
18043 msgstr "基本版の F-RTO アルゴリズムを有効にする。"
18044
18045 #. type: Plain text
18046 #: build/C/man7/tcp.7:358
18047 msgid ""
18048 "Enable SACK-enhanced F-RTO if flow uses SACK.  The basic version can be used "
18049 "also when SACK is in use though in that case scenario(s) exists where F-RTO "
18050 "interacts badly with the packet counting of the SACK-enabled TCP flow."
18051 msgstr ""
18052 "そのフローで SACK を使用する場合、SACK 拡張版の F-RTO を有効にする。 基本版"
18053 "の F-RTO も SACK が使用されている場合にも使用できるが、 基本版の場合には F-"
18054 "RTO が SACK が有効になった TCP フローでの パケット数計測と、相性が悪く相互干"
18055 "渉が起こる場面が存在する。"
18056
18057 #. type: Plain text
18058 #: build/C/man7/tcp.7:362
18059 msgid ""
18060 "Before Linux 2.6.22, this parameter was a Boolean value, supporting just "
18061 "values 0 and 1 above."
18062 msgstr ""
18063 "Linu 2.6.22 より前では、このパラメータはブール値であり、 上記の 0 と 1 のみを"
18064 "サポートしていた。"
18065
18066 #. type: TP
18067 #: build/C/man7/tcp.7:362
18068 #, no-wrap
18069 msgid "I<tcp_frto_response> (integer; default: 0; since Linux 2.6.22)"
18070 msgstr "I<tcp_frto_response> (integer; default: 0; Linux 2.6.22 以降)"
18071
18072 #. type: Plain text
18073 #: build/C/man7/tcp.7:369
18074 msgid ""
18075 "When F-RTO has detected that a TCP retransmission timeout was spurious (i.e, "
18076 "the timeout would have been avoided had TCP set a longer retransmission "
18077 "timeout), TCP has several options concerning what to do next.  Possible "
18078 "values are:"
18079 msgstr ""
18080 "F-RTO が TCP 再送タイムアウトが偽物だと検出した場合 (つまり、TCP がもっと長い"
18081 "再送タイムアウトを設定していれば タイムアウトが避けられた場合)、 次にどうする"
18082 "かに関して選択肢がいくつかある。 以下の値を選択できる。"
18083
18084 #. type: Plain text
18085 #: build/C/man7/tcp.7:377
18086 msgid ""
18087 "Rate halving based; a smooth and conservative response, results in halved "
18088 "congestion window (I<cwnd>)  and slow-start threshold (I<ssthresh>)  after "
18089 "one RTT."
18090 msgstr ""
18091 "レートを元の半分にする。 滑らかで、保守的な反応を行い、RTT 1回分の時間後に 輻"
18092 "輳ウィンドウ (I<cwnd>)  とスロースタートの閾値 (I<ssthresh>)  が半分になる。"
18093
18094 #. type: Plain text
18095 #: build/C/man7/tcp.7:384
18096 msgid ""
18097 "Very conservative response; not recommended because even though being valid, "
18098 "it interacts poorly with the rest of Linux TCP; halves I<cwnd> and "
18099 "I<ssthresh> immediately."
18100 msgstr ""
18101 "非常に保守的な反応。このオプションの使用は推奨されない。 反応が正しかった場合"
18102 "であっても、Linux TCP の他の部分と うまく連携できないからである。 I<cwnd> と "
18103 "I<ssthresh> は直ちに半分にされる。"
18104
18105 #. type: Plain text
18106 #: build/C/man7/tcp.7:393
18107 msgid ""
18108 "Aggressive response; undoes congestion-control measures that are now known "
18109 "to be unnecessary (ignoring the possibility of a lost retransmission that "
18110 "would require TCP to be more cautious); I<cwnd> and I<ssthresh> are restored "
18111 "to the values prior to timeout."
18112 msgstr ""
18113 "積極的な反応。 不要と判明した輻輳制御の測定情報を取り消す (TCP がもっと注意深"
18114 "く扱うべき再送が失われる可能性を無視する)。 。 I<cwnd> と I<ssthresh> はタイ"
18115 "ムアウト前の値に戻される。"
18116
18117 #. type: TP
18118 #: build/C/man7/tcp.7:394
18119 #, no-wrap
18120 msgid "I<tcp_keepalive_intvl> (integer; default: 75; since Linux 2.4)"
18121 msgstr "I<tcp_keepalive_intvl> (integer; default: 75; Linux 2.4 以降)"
18122
18123 #.  Since 2.3.18
18124 #. type: Plain text
18125 #: build/C/man7/tcp.7:398
18126 msgid "The number of seconds between TCP keep-alive probes."
18127 msgstr "TCP keep-alive のプローブを送る間隔 (秒単位)。"
18128
18129 #. type: TP
18130 #: build/C/man7/tcp.7:398
18131 #, no-wrap
18132 msgid "I<tcp_keepalive_probes> (integer; default: 9; since Linux 2.2)"
18133 msgstr "I<tcp_keepalive_probes> (integer; default: 9; Linux 2.2 以降)"
18134
18135 #.  Since 2.1.43
18136 #. type: Plain text
18137 #: build/C/man7/tcp.7:404
18138 msgid ""
18139 "The maximum number of TCP keep-alive probes to send before giving up and "
18140 "killing the connection if no response is obtained from the other end."
18141 msgstr ""
18142 "TCP keep-alive プローブの最大回数。 この回数だけ試しても接続先から反応が得ら"
18143 "れない場合は、 あきらめて接続を切断する。"
18144
18145 #. type: TP
18146 #: build/C/man7/tcp.7:404
18147 #, no-wrap
18148 msgid "I<tcp_keepalive_time> (integer; default: 7200; since Linux 2.2)"
18149 msgstr "I<tcp_keepalive_time> (integer; default: 7200; Linux 2.2 以降)"
18150
18151 #.  Since 2.1.43
18152 #. type: Plain text
18153 #: build/C/man7/tcp.7:416
18154 msgid ""
18155 "The number of seconds a connection needs to be idle before TCP begins "
18156 "sending out keep-alive probes.  Keep-alives are only sent when the "
18157 "B<SO_KEEPALIVE> socket option is enabled.  The default value is 7200 seconds "
18158 "(2 hours).  An idle connection is terminated after approximately an "
18159 "additional 11 minutes (9 probes an interval of 75 seconds apart) when keep-"
18160 "alive is enabled."
18161 msgstr ""
18162 "接続がアイドル状態になってから、keep-alive プローブを送信するまでの時間を秒単"
18163 "位で指定する。 B<SO_KEEPALIVE> ソケットオプションが有効になっていないと keep-"
18164 "alive は送られない。 デフォルト値は 7200 秒 (2 時間)。 keep-alive が有効に"
18165 "なっている場合、 さらにおよそ 11 分 (75 秒間隔の 9 プローブ分)  経過するとア"
18166 "イドル状態の接続は終了させられる。"
18167
18168 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
18169 #. type: Plain text
18170 #: build/C/man7/tcp.7:421
18171 msgid ""
18172 "Note that underlying connection tracking mechanisms and application timeouts "
18173 "may be much shorter."
18174 msgstr ""
18175 "下層にある接続追跡機構やアプリケーションでのタイムアウトは、 もっとずっと短い"
18176 "かもしれない。"
18177
18178 #. type: TP
18179 #: build/C/man7/tcp.7:421
18180 #, no-wrap
18181 msgid "I<tcp_low_latency> (Boolean; default: disabled; since Linux 2.4.21/2.6)"
18182 msgstr "I<tcp_low_latency> (Boolean; default: disabled; Linux 2.4.21/2.6 以降)"
18183
18184 #.  Since 2.4.21/2.5.60
18185 #. type: Plain text
18186 #: build/C/man7/tcp.7:429
18187 msgid ""
18188 "If enabled, the TCP stack makes decisions that prefer lower latency as "
18189 "opposed to higher throughput.  It this option is disabled, then higher "
18190 "throughput is preferred.  An example of an application where this default "
18191 "should be changed would be a Beowulf compute cluster."
18192 msgstr ""
18193 "有効にすると、TCP スタックはスループットを高くするよりも 遅延を少なくすること"
18194 "を優先して判断を行う。 このオプションを無効にすると、スループットを高くするこ"
18195 "とが優先される。 このデフォルト値を変更した方がよいアプリケーションの例として"
18196 "は Beowulf コンピュータクラスタが挙げられるだろう。"
18197
18198 #. type: TP
18199 #: build/C/man7/tcp.7:429
18200 #, no-wrap
18201 msgid "I<tcp_max_orphans> (integer; default: see below; since Linux 2.4)"
18202 msgstr "I<tcp_max_orphans> (integer; default: see below; Linux 2.4 以降)"
18203
18204 #.  Since 2.3.41
18205 #. type: Plain text
18206 #: build/C/man7/tcp.7:443
18207 msgid ""
18208 "The maximum number of orphaned (not attached to any user file handle) TCP "
18209 "sockets allowed in the system.  When this number is exceeded, the orphaned "
18210 "connection is reset and a warning is printed.  This limit exists only to "
18211 "prevent simple denial-of-service attacks.  Lowering this limit is not "
18212 "recommended.  Network conditions might require you to increase the number of "
18213 "orphans allowed, but note that each orphan can eat up to ~64K of unswappable "
18214 "memory.  The default initial value is set equal to the kernel parameter "
18215 "NR_FILE.  This initial default is adjusted depending on the memory in the "
18216 "system."
18217 msgstr ""
18218 "システムが許容する、 orphan な (どのユーザファイルハンドルにもアタッチされて"
18219 "いない)  TCP ソケットの最大数。 この数を越えると、orphan な接続はリセットさ"
18220 "れ、警告が表示される。 この制限が存在するのは、単純な使用不能 (denial-of-"
18221 "service) 攻撃を 防ぐために過ぎない。この値を小さくすることは推奨しない。 ネッ"
18222 "トワークの条件によっては、この数値を大きくしないといけないかもしれないが、 "
18223 "orphan なソケットひとつあたり 64K 程度のスワップ不可能なメモリを消費すること"
18224 "も注意せよ。 デフォルトの初期値はカーネルパラメータの NR_FILE と等しい。 この"
18225 "初期デフォルト値はシステムのメモリに応じて調整される。"
18226
18227 #. type: TP
18228 #: build/C/man7/tcp.7:443
18229 #, no-wrap
18230 msgid "I<tcp_max_syn_backlog> (integer; default: see below; since Linux 2.2)"
18231 msgstr "I<tcp_max_syn_backlog> (integer; default: 下記参照; Linux 2.2 以降)"
18232
18233 #.  Since 2.1.53
18234 #. type: Plain text
18235 #: build/C/man7/tcp.7:460
18236 msgid ""
18237 "The maximum number of queued connection requests which have still not "
18238 "received an acknowledgement from the connecting client.  If this number is "
18239 "exceeded, the kernel will begin dropping requests.  The default value of 256 "
18240 "is increased to 1024 when the memory present in the system is adequate or "
18241 "greater (E<gt>= 128Mb), and reduced to 128 for those systems with very low "
18242 "memory (E<lt>= 32Mb).  It is recommended that if this needs to be increased "
18243 "above 1024, TCP_SYNQ_HSIZE in I<include/net/tcp.h> be modified to keep "
18244 "TCP_SYNQ_HSIZE*16E<lt>=tcp_max_syn_backlog, and the kernel be recompiled."
18245 msgstr ""
18246 "接続してきているクライアントから ack を受信していない状態の接続リクエストを"
18247 "キューに置ける最大数。 この数値を越えると、カーネルはリクエストを捨て始め"
18248 "る。 デフォルトの値は 256 で、 システムに充分なメモリがある (128Mb 以上) 場合"
18249 "は 1024 になり、 メモリが非常に少ない場合 (32 Mb 以下) は 128 になる。 この数"
18250 "値を 1024 以上に増やしたい場合は、 I<include/net/tcp.h> の TCP_SYNQ_HSIZE を "
18251 "TCP_SYNQ_HSIZE*16E<lt>=tcp_max_syn_backlog のように修正し、 カーネルを再コン"
18252 "パイルすることを奨める。"
18253
18254 #. type: TP
18255 #: build/C/man7/tcp.7:460
18256 #, no-wrap
18257 msgid "I<tcp_max_tw_buckets> (integer; default: see below; since Linux 2.4)"
18258 msgstr "I<tcp_max_tw_buckets> (integer; default: 下記参照; Linux 2.4 以降)"
18259
18260 #.  Since 2.3.41
18261 #. type: Plain text
18262 #: build/C/man7/tcp.7:470
18263 msgid ""
18264 "The maximum number of sockets in TIME_WAIT state allowed in the system.  "
18265 "This limit exists only to prevent simple denial-of-service attacks.  The "
18266 "default value of NR_FILE*2 is adjusted depending on the memory in the "
18267 "system.  If this number is exceeded, the socket is closed and a warning is "
18268 "printed."
18269 msgstr ""
18270 "システムが許容する TIME_WAIT 状態にあるソケットの最大数。 この制限が存在する"
18271 "のは、 単純な使用不能 (denial-of-service) 攻撃を防ぐために過ぎない。 デフォル"
18272 "ト値は NR_FILE*2 で、システムのメモリに応じて調整される。 この数値を越える"
18273 "と、そのようなソケットはクローズされ、警告が表示される。"
18274
18275 #. type: TP
18276 #: build/C/man7/tcp.7:470
18277 #, no-wrap
18278 msgid "I<tcp_moderate_rcvbuf> (Boolean; default: enabled; since Linux 2.4.17/2.6.7)"
18279 msgstr "I<tcp_moderate_rcvbuf> (Boolean; default: enabled; Linux 2.4.17/2.6.7 以降)"
18280
18281 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
18282 #. type: Plain text
18283 #: build/C/man7/tcp.7:477
18284 msgid ""
18285 "If enabled, TCP performs receive buffer auto-tuning, attempting to "
18286 "automatically size the buffer (no greater than I<tcp_rmem[2]>)  to match the "
18287 "size required by the path for full throughput."
18288 msgstr ""
18289 "有効にすると、TCP は受信バッファの自動調整を行う。 具体的には、 (I<tcp_rmem"
18290 "[2]> を超えない範囲で) バッファの大きさを自動的に変化させ、 その経路で最大の"
18291 "スループットを達成するのに必要な大きさに合わせようとする。"
18292
18293 #. type: TP
18294 #: build/C/man7/tcp.7:477
18295 #, no-wrap
18296 msgid "I<tcp_mem> (since Linux 2.4)"
18297 msgstr "I<tcp_mem> (Linux 2.4 以降)"
18298
18299 #.  Since 2.4.0-test7
18300 #. type: Plain text
18301 #: build/C/man7/tcp.7:489
18302 msgid ""
18303 "This is a vector of 3 integers: [low, pressure, high].  These bounds, "
18304 "measured in units of the system page size, are used by TCP to track its "
18305 "memory usage.  The defaults are calculated at boot time from the amount of "
18306 "available memory.  (TCP can only use I<low memory> for this, which is "
18307 "limited to around 900 megabytes on 32-bit systems.  64-bit systems do not "
18308 "suffer this limitation.)"
18309 msgstr ""
18310 "これは 3 つの整数 [low, pressure, high] からなるベクトル値である。 これらは "
18311 "TCP がメモリ使用量を追跡するために用いられる (使用量はシステムのページサイズ"
18312 "単位で計測される)。 デフォルトはブート時に利用できるメモリの量から計算され"
18313 "る。 (実際には、TCP は I<low memory> のみを使用する。値は 32ビットシステムで"
18314 "は約 900 メガバイトに制限される。 64 ビットシステムではこの制限はない。)"
18315
18316 #. type: TP
18317 #: build/C/man7/tcp.7:490
18318 #, no-wrap
18319 msgid "I<low>"
18320 msgstr "I<low>"
18321
18322 #. type: Plain text
18323 #: build/C/man7/tcp.7:494
18324 msgid ""
18325 "TCP doesn't regulate its memory allocation when the number of pages it has "
18326 "allocated globally is below this number."
18327 msgstr ""
18328 "TCP は、グローバルにアロケートしたページがこの数値以下の場合は、 メモリアロ"
18329 "ケーションを調整しない。"
18330
18331 #. type: TP
18332 #: build/C/man7/tcp.7:494 build/C/man7/udp.7:145
18333 #, no-wrap
18334 msgid "I<pressure>"
18335 msgstr "I<pressure>"
18336
18337 #. type: Plain text
18338 #: build/C/man7/tcp.7:503
18339 msgid ""
18340 "When the amount of memory allocated by TCP exceeds this number of pages, TCP "
18341 "moderates its memory consumption.  This memory pressure state is exited once "
18342 "the number of pages allocated falls below the I<low> mark."
18343 msgstr ""
18344 "TCP がアロケートしたメモリがこの数値分のページ数を越えると、 TCP はメモリ消費"
18345 "を抑えるようになる。 アロケートしたページ数が I<low> 以下になると、このメモリ"
18346 "圧迫状態から脱する。"
18347
18348 #. type: TP
18349 #: build/C/man7/tcp.7:503
18350 #, no-wrap
18351 msgid "I<high>"
18352 msgstr "I<high>"
18353
18354 #. type: Plain text
18355 #: build/C/man7/tcp.7:507
18356 msgid ""
18357 "The maximum number of pages, globally, that TCP will allocate.  This value "
18358 "overrides any other limits imposed by the kernel."
18359 msgstr ""
18360 "TCP がグローバルに割り当てるページ数の最大値。 この値はカーネルによって課され"
18361 "るあらゆる制限よりも優先される。"
18362
18363 #. type: TP
18364 #: build/C/man7/tcp.7:508
18365 #, no-wrap
18366 msgid "I<tcp_mtu_probing> (integer; default: 0; since Linux 2.6.17)"
18367 msgstr "I<tcp_mtu_probing> (integer; default: 0; Linux 2.6.17 以降)"
18368
18369 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
18370 #. type: Plain text
18371 #: build/C/man7/tcp.7:513
18372 msgid ""
18373 "This parameter controls TCP Packetization-Layer Path MTU Discovery.  The "
18374 "following values may be assigned to the file:"
18375 msgstr ""
18376 "このパラメータは、TCP のパケット化レイヤの Path MTU discovery を制御する。 こ"
18377 "のファイルには以下の値を設定できる。"
18378
18379 #. type: Plain text
18380 #: build/C/man7/tcp.7:516
18381 msgid "Disabled"
18382 msgstr "無効にする。"
18383
18384 #. type: Plain text
18385 #: build/C/man7/tcp.7:518
18386 msgid "Disabled by default, enabled when an ICMP black hole detected"
18387 msgstr ""
18388 "デフォルトでは無効だが、ICMP ブラックホールが検出された場合は有効にする。"
18389
18390 #. type: Plain text
18391 #: build/C/man7/tcp.7:521
18392 msgid "Always enabled, use initial MSS of I<tcp_base_mss>."
18393 msgstr "常に有効にする。 MSS の初期値として I<tcp_base_mss> が使用される。"
18394
18395 #. type: TP
18396 #: build/C/man7/tcp.7:522
18397 #, no-wrap
18398 msgid "I<tcp_no_metrics_save> (Boolean; default: disabled; since Linux 2.6.6)"
18399 msgstr "I<tcp_no_metrics_save> (Boolean; default: disabled; Linux 2.6.6 以降)"
18400
18401 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
18402 #. type: Plain text
18403 #: build/C/man7/tcp.7:533
18404 msgid ""
18405 "By default, TCP saves various connection metrics in the route cache when the "
18406 "connection closes, so that connections established in the near future can "
18407 "use these to set initial conditions.  Usually, this increases overall "
18408 "performance, but it may sometimes cause performance degradation.  If "
18409 "I<tcp_no_metrics_save> is enabled, TCP will not cache metrics on closing "
18410 "connections."
18411 msgstr ""
18412 "デフォルトでは、TCP は接続クローズ時に各種の接続パラメータを ルートキャッ"
18413 "シュ (route cache) に保存し、近い将来に接続が確立された際に これらの情報を初"
18414 "期状態として使用できるようになっている。 通常は、これにより全体として性能が向"
18415 "上するが、 時として性能の劣化を引き起こすこともある。 I<tcp_no_metrics_save> "
18416 "を有効にすると、TCP は接続クローズ時に接続パラメータをキャッシュ しなくなる。"
18417
18418 #. type: TP
18419 #: build/C/man7/tcp.7:533
18420 #, no-wrap
18421 msgid "I<tcp_orphan_retries> (integer; default: 8; since Linux 2.4)"
18422 msgstr "I<tcp_orphan_retries> (integer; default: 8; Linux 2.4 以降)"
18423
18424 #.  Since 2.3.41
18425 #. type: Plain text
18426 #: build/C/man7/tcp.7:538
18427 msgid ""
18428 "The maximum number of attempts made to probe the other end of a connection "
18429 "which has been closed by our end."
18430 msgstr "こちらからクローズした接続について、 先方をプローブする最大試行数。"
18431
18432 #. type: TP
18433 #: build/C/man7/tcp.7:538
18434 #, no-wrap
18435 msgid "I<tcp_reordering> (integer; default: 3; since Linux 2.4)"
18436 msgstr "I<tcp_reordering> (integer; default: 3; Linux 2.4 以降)"
18437
18438 #.  Since 2.4.0-test7
18439 #. type: Plain text
18440 #: build/C/man7/tcp.7:547
18441 msgid ""
18442 "The maximum a packet can be reordered in a TCP packet stream without TCP "
18443 "assuming packet loss and going into slow start.  It is not advisable to "
18444 "change this number.  This is a packet reordering detection metric designed "
18445 "to minimize unnecessary back off and retransmits provoked by reordering of "
18446 "packets on a connection."
18447 msgstr ""
18448 "TCP パケットストリームでパケット順序の逆転が発生しただけであり、 パケットロス"
18449 "が起こったとはみなさない、パケット数の最大値。 この値を超えてパケットの順序逆"
18450 "転が起こると、パケットロスが生じたと みなし、slow start に入る。 この数値は変"
18451 "更しないほうが良い。 これは、接続中のパケットの並び替えによって生じる 不必要"
18452 "な速度低下や再送を最小化するように設計された、 パケット並び替え (packet "
18453 "reordering) の検知メトリックなのである。"
18454
18455 #. type: TP
18456 #: build/C/man7/tcp.7:547
18457 #, no-wrap
18458 msgid "I<tcp_retrans_collapse> (Boolean; default: enabled; since Linux 2.2)"
18459 msgstr "I<tcp_retrans_collapse> (Boolean; default: enabled; Linux 2.2 以降)"
18460
18461 #.  Since 2.1.96
18462 #. type: Plain text
18463 #: build/C/man7/tcp.7:551
18464 msgid "Try to send full-sized packets during retransmit."
18465 msgstr "再送の際にフルサイズのパケットを送ろうとする。"
18466
18467 #. type: TP
18468 #: build/C/man7/tcp.7:551
18469 #, no-wrap
18470 msgid "I<tcp_retries1> (integer; default: 3; since Linux 2.2)"
18471 msgstr "I<tcp_retries1> (integer; default: 3; Linux 2.2 以降)"
18472
18473 #.  Since 2.1.43
18474 #. type: Plain text
18475 #: build/C/man7/tcp.7:561
18476 msgid ""
18477 "The number of times TCP will attempt to retransmit a packet on an "
18478 "established connection normally, without the extra effort of getting the "
18479 "network layers involved.  Once we exceed this number of retransmits, we "
18480 "first have the network layer update the route if possible before each new "
18481 "retransmit.  The default is the RFC specified minimum of 3."
18482 msgstr ""
18483 "普通に確立されている接続上に、 TCP がネットワーク層を巻き込まずに再送を試みる"
18484 "回数。 再送がこの回数を越えると、まず最初に、 新しい再送を送る前に可能なら"
18485 "ネットワーク層に経路を更新させる。 デフォルトは RFC が指定している最少数であ"
18486 "る 3。"
18487
18488 #. type: TP
18489 #: build/C/man7/tcp.7:561
18490 #, no-wrap
18491 msgid "I<tcp_retries2> (integer; default: 15; since Linux 2.2)"
18492 msgstr "I<tcp_retries2> (integer; default: 15; Linux 2.2 以降)"
18493
18494 #.  Since 2.1.43
18495 #. type: Plain text
18496 #: build/C/man7/tcp.7:571
18497 msgid ""
18498 "The maximum number of times a TCP packet is retransmitted in established "
18499 "state before giving up.  The default value is 15, which corresponds to a "
18500 "duration of approximately between 13 to 30 minutes, depending on the "
18501 "retransmission timeout.  The RFC\\ 1122 specified minimum limit of 100 "
18502 "seconds is typically deemed too short."
18503 msgstr ""
18504 "確立状態の接続に、この回数 TCP パケットの再送信を 行なってもだめな場合はあき"
18505 "らめる。 デフォルト値は 15 で、これは (再送のタイムアウトに依存するが)  およ"
18506 "そ 13〜30 分程度の期間に対応する。 RFC\\ 1122 は最小の限界を 100 秒と置いてい"
18507 "るが、 これはたいていの場合には短すぎると思われる。"
18508
18509 #. type: TP
18510 #: build/C/man7/tcp.7:571
18511 #, no-wrap
18512 msgid "I<tcp_rfc1337> (Boolean; default: disabled; since Linux 2.2)"
18513 msgstr "I<tcp_rfc1337> (Boolean; default: disabled; Linux 2.2 以降)"
18514
18515 #.  Since 2.1.90
18516 #. type: Plain text
18517 #: build/C/man7/tcp.7:579
18518 msgid ""
18519 "Enable TCP behavior conformant with RFC\\ 1337.  When disabled, if a RST is "
18520 "received in TIME_WAIT state, we close the socket immediately without waiting "
18521 "for the end of the TIME_WAIT period."
18522 msgstr ""
18523 "TCP の動作を RFC\\ 1337 に準拠させる。 無効にすると、TIME_WAIT 状態のときに "
18524 "RST が受信された場合、 TIME_WAIT 期間の終了を待たずにそのソケットを直ちにク"
18525 "ローズする。"
18526
18527 #. type: TP
18528 #: build/C/man7/tcp.7:579
18529 #, no-wrap
18530 msgid "I<tcp_rmem> (since Linux 2.4)"
18531 msgstr "I<tcp_rmem> (Linux 2.4 以降)"
18532
18533 #.  Since 2.4.0-test7
18534 #. type: Plain text
18535 #: build/C/man7/tcp.7:587
18536 msgid ""
18537 "This is a vector of 3 integers: [min, default, max].  These parameters are "
18538 "used by TCP to regulate receive buffer sizes.  TCP dynamically adjusts the "
18539 "size of the receive buffer from the defaults listed below, in the range of "
18540 "these values, depending on memory available in the system."
18541 msgstr ""
18542 "これは 3 つの整数 [min, default, max] からなるベクトル値である。 これらは "
18543 "TCP が受信バッファサイズを調整するために用いられる。 TCP は、システムで利用で"
18544 "きるメモリに応じて、 受信バッファのサイズをこれらの変数の範囲で 以下に示すデ"
18545 "フォルトから動的に調整する。"
18546
18547 #. type: TP
18548 #: build/C/man7/tcp.7:588 build/C/man7/tcp.7:764 build/C/man7/udp.7:139
18549 #, no-wrap
18550 msgid "I<min>"
18551 msgstr "I<min>"
18552
18553 #. type: Plain text
18554 #: build/C/man7/tcp.7:603
18555 msgid ""
18556 "minimum size of the receive buffer used by each TCP socket.  The default "
18557 "value is the system page size.  (On Linux 2.4, the default value is 4K, "
18558 "lowered to B<PAGE_SIZE> bytes in low-memory systems.)  This value is used to "
18559 "ensure that in memory pressure mode, allocations below this size will still "
18560 "succeed.  This is not used to bound the size of the receive buffer declared "
18561 "using B<SO_RCVBUF> on a socket."
18562 msgstr ""
18563 "各 TCP ソケットが用いる受信バッファの最小サイズ。 デフォルト値はシステムの"
18564 "ページサイズである (Linux 2.4 では、デフォルト値は 4K バイトで、 メモリの少な"
18565 "いシステムでは B<PAGE_SIZE> バイトに減らされる)。 この値は、メモリ圧迫モード"
18566 "においても、 このサイズの割り当てが成功することを保証するために用いられる。 "
18567 "これは、 B<SO_RCVBUF> を用いてソケットの最低受信バッファサイズを宣言する際に"
18568 "は用いられない。"
18569
18570 #. type: TP
18571 #: build/C/man7/tcp.7:603 build/C/man7/tcp.7:774
18572 #, no-wrap
18573 msgid "I<default>"
18574 msgstr "I<default>"
18575
18576 #. type: Plain text
18577 #: build/C/man7/tcp.7:617
18578 msgid ""
18579 "the default size of the receive buffer for a TCP socket.  This value "
18580 "overwrites the initial default buffer size from the generic global I<net."
18581 "core.rmem_default> defined for all protocols.  The default value is 87380 "
18582 "bytes.  (On Linux 2.4, this will be lowered to 43689 in low-memory "
18583 "systems.)  If larger receive buffer sizes are desired, this value should be "
18584 "increased (to affect all sockets).  To employ large TCP windows, the I<net."
18585 "ipv4.tcp_window_scaling> must be enabled (default)."
18586 msgstr ""
18587 "TCP ソケットの受信バッファのデフォルトサイズ。 この値は、すべてのプロトコルに"
18588 "対して定義されている、 ジェネリックなグローバルのデフォルトバッファサイズ "
18589 "I<net.core.rmem_default> より優先される。 デフォルト値は 87380 バイトである "
18590 "(Linux 2.4 では、メモリの少ないシステムの場合 43689 まで減らされる)。 大きな"
18591 "受信バッファサイズが必要な場合は、 この値を増やすべきである (すべてのソケット"
18592 "に影響する)。 大きな TCP ウィンドウを用いるには、 I<net.ipv4."
18593 "tcp_window_scaling> を有効にしておかなければならない (デフォルトは有効)。"
18594
18595 #. type: TP
18596 #: build/C/man7/tcp.7:617 build/C/man7/tcp.7:788 build/C/man7/udp.7:151
18597 #, no-wrap
18598 msgid "I<max>"
18599 msgstr "I<max>"
18600
18601 #. type: Plain text
18602 #: build/C/man7/tcp.7:626
18603 msgid ""
18604 "the maximum size of the receive buffer used by each TCP socket.  This value "
18605 "does not override the global I<net.core.rmem_max>.  This is not used to "
18606 "limit the size of the receive buffer declared using B<SO_RCVBUF> on a "
18607 "socket.  The default value is calculated using the formula"
18608 msgstr ""
18609 "各 TCP ソケットで用いる受信バッファの最大サイズ。 この値よりもグローバルの "
18610 "I<net.core.rmem_max> が優先される。 これは、 B<SO_RCVBUF> を用いてソケットの"
18611 "受信バッファサイズ制限を宣言する際には用いられない。 デフォルト値は以下の式で"
18612 "計算される。"
18613
18614 #. type: Plain text
18615 #: build/C/man7/tcp.7:628
18616 #, no-wrap
18617 msgid "    max(87380, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
18618 msgstr "    max(87380, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
18619
18620 #. type: Plain text
18621 #: build/C/man7/tcp.7:631
18622 msgid ""
18623 "(On Linux 2.4, the default is 87380*2 bytes, lowered to 87380 in low-memory "
18624 "systems)."
18625 msgstr ""
18626 "(Linux 2.4 では、デフォルト値は 87380*2 バイトで、 メモリの少ないシステムで"
18627 "は 87380 まで減らされる。)"
18628
18629 #. type: TP
18630 #: build/C/man7/tcp.7:632
18631 #, no-wrap
18632 msgid "I<tcp_sack> (Boolean; default: enabled; since Linux 2.2)"
18633 msgstr "I<tcp_sack> (Boolean; default: enabled; Linux 2.2 以降)"
18634
18635 #.  Since 2.1.36
18636 #. type: Plain text
18637 #: build/C/man7/tcp.7:636
18638 msgid "Enable RFC\\ 2018 TCP Selective Acknowledgements."
18639 msgstr "RFC\\ 2018 の TCP Selective Acknowledgements を有効にする。"
18640
18641 #. type: TP
18642 #: build/C/man7/tcp.7:636
18643 #, no-wrap
18644 msgid "I<tcp_slow_start_after_idle> (Boolean; default: enabled; since Linux 2.6.18)"
18645 msgstr "I<tcp_slow_start_after_idle> (Boolean; default: enabled; Linux 2.6.18 以降)"
18646
18647 #.  The following is from 2.6.28-rc4: Documentation/networking/ip-sysctl.txt
18648 #. type: Plain text
18649 #: build/C/man7/tcp.7:644
18650 msgid ""
18651 "If enabled, provide RFC 2861 behavior and time out the congestion window "
18652 "after an idle period.  An idle period is defined as the current RTO "
18653 "(retransmission timeout).  If disabled, the congestion window will not be "
18654 "timed out after an idle period."
18655 msgstr ""
18656 "有効にすると、RFC 2861 の動作が行われ、 アイドル時間経過後に輻輳ウィンドウを"
18657 "タイムアウトさせる。 アイドル時間は現在の RTO (再送タイムアウト) で定義され"
18658 "る。 無効にすると、輻輳ウィンドウはアイドル時間経過後もタイムアウトされない。"
18659
18660 #. type: TP
18661 #: build/C/man7/tcp.7:644
18662 #, no-wrap
18663 msgid "I<tcp_stdurg> (Boolean; default: disabled; since Linux 2.2)"
18664 msgstr "I<tcp_stdurg> (Boolean; default: disabled; Linux 2.2 以降)"
18665
18666 #.  Since 2.1.44
18667 #.  RFC 793 was ambiguous in its specification of the meaning of the
18668 #.  urgent pointer.  RFC 1122 (and RFC 961) fixed on a particular
18669 #.  resolution of this ambiguity (unfortunately the "wrong" one).
18670 #. type: Plain text
18671 #: build/C/man7/tcp.7:658
18672 msgid ""
18673 "If this option is enabled, then use the RFC\\ 1122 interpretation of the TCP "
18674 "urgent-pointer field.  According to this interpretation, the urgent pointer "
18675 "points to the last byte of urgent data.  If this option is disabled, then "
18676 "use the BSD-compatible interpretation of the urgent pointer: the urgent "
18677 "pointer points to the first byte after the urgent data.  Enabling this "
18678 "option may lead to interoperability problems."
18679 msgstr ""
18680 "このオプションを有効にすると、 TCP 緊急ポインタ (urgent-pointer)  フィールド"
18681 "を RFC\\ 1122 に従った解釈を行う。 この解釈に従うと、緊急ポインタは緊急データ"
18682 "の最後のバイトを指す。 このオプションを無効にすると、緊急ポインタの解釈が "
18683 "BSD 互換の方法で 行われる: 緊急ポインタは緊急データの後の最初のバイトを指"
18684 "す。 このオプションを有効にすると、相互運用性に問題が生じるかもしれない。"
18685
18686 #. type: TP
18687 #: build/C/man7/tcp.7:658
18688 #, no-wrap
18689 msgid "I<tcp_syn_retries> (integer; default: 5; since Linux 2.2)"
18690 msgstr "I<tcp_syn_retries> (integer; default: 5; Linux 2.2 以降)"
18691
18692 #.  Since 2.1.38
18693 #. type: Plain text
18694 #: build/C/man7/tcp.7:665
18695 msgid ""
18696 "The maximum number of times initial SYNs for an active TCP connection "
18697 "attempt will be retransmitted.  This value should not be higher than 255.  "
18698 "The default value is 5, which corresponds to approximately 180 seconds."
18699 msgstr ""
18700 "アクティブな TCP 接続に初期 SYN の再送を試みる最大回数。 この数値は 255 より"
18701 "も大きくすべきではない。 デフォルトの値は 5 で、およそ 180 秒に対応する。"
18702
18703 #. type: TP
18704 #: build/C/man7/tcp.7:665
18705 #, no-wrap
18706 msgid "I<tcp_synack_retries> (integer; default: 5; since Linux 2.2)"
18707 msgstr "I<tcp_synack_retries> (integer; default: 5; Linux 2.2 以降)"
18708
18709 #.  Since 2.1.38
18710 #. type: Plain text
18711 #: build/C/man7/tcp.7:671
18712 msgid ""
18713 "The maximum number of times a SYN/ACK segment for a passive TCP connection "
18714 "will be retransmitted.  This number should not be higher than 255."
18715 msgstr ""
18716 "passive な TCP 接続の SYN/ACK セグメントで再送を試みる最大数。 この数値は "
18717 "255 よりも大きくすべきではない。"
18718
18719 #. type: TP
18720 #: build/C/man7/tcp.7:671
18721 #, no-wrap
18722 msgid "I<tcp_syncookies> (Boolean; since Linux 2.2)"
18723 msgstr "I<tcp_syncookies> (Boolean; Linux 2.2 以降)"
18724
18725 #.  Since 2.1.43
18726 #. type: Plain text
18727 #: build/C/man7/tcp.7:691
18728 msgid ""
18729 "Enable TCP syncookies.  The kernel must be compiled with "
18730 "B<CONFIG_SYN_COOKIES>.  Send out syncookies when the syn backlog queue of a "
18731 "socket overflows.  The syncookies feature attempts to protect a socket from "
18732 "a SYN flood attack.  This should be used as a last resort, if at all.  This "
18733 "is a violation of the TCP protocol, and conflicts with other areas of TCP "
18734 "such as TCP extensions.  It can cause problems for clients and relays.  It "
18735 "is not recommended as a tuning mechanism for heavily loaded servers to help "
18736 "with overloaded or misconfigured conditions.  For recommended alternatives "
18737 "see I<tcp_max_syn_backlog>, I<tcp_synack_retries>, and "
18738 "I<tcp_abort_on_overflow>."
18739 msgstr ""
18740 "TCP syncookies を有効にする。カーネルは B<CONFIG_SYNCOOKIES> をつけてコンパイ"
18741 "ルしておかなければならない。 ソケットのバックログキューがオーバーフローする"
18742 "と、 syncookies が送信される。 syncookies 機能は、SYN flood 攻撃からソケット"
18743 "を守ろうとする。 これはいずれにしても、最終手段として用いるべきである。 これ"
18744 "は TCP プロトコルに違反しており、 TCP 拡張のような、TCP の他の部分と衝突して"
18745 "しまう。 クライアントやリレーで問題が起こることもある。 過負荷や設定間違いに"
18746 "よって負荷の大きな状態にあるサーバを調整して救うための 機構とみなすべきではな"
18747 "い。 そのような用途には、代わりに I<tcp_max_syn_backlog>, "
18748 "I<tcp_synack_retries>, I<tcp_abort_on_overflow> などの使用を考えること。"
18749
18750 #. type: TP
18751 #: build/C/man7/tcp.7:691
18752 #, no-wrap
18753 msgid "I<tcp_timestamps> (Boolean; default: enabled; since Linux 2.2)"
18754 msgstr "I<tcp_timestamps> (Boolean; default: enabled; Linux 2.2 以降)"
18755
18756 #.  Since 2.1.36
18757 #. type: Plain text
18758 #: build/C/man7/tcp.7:695
18759 msgid "Enable RFC\\ 1323 TCP timestamps."
18760 msgstr "RFC\\ 1323 の TCP timestamps を有効にする。"
18761
18762 #. type: TP
18763 #: build/C/man7/tcp.7:695
18764 #, no-wrap
18765 msgid "I<tcp_tso_win_divisor> (integer; default: 3; since Linux 2.6.9)"
18766 msgstr "I<tcp_tso_win_divisor> (integer; default: 3; Linux 2.6.9 以降)"
18767
18768 #. type: Plain text
18769 #: build/C/man7/tcp.7:701
18770 msgid ""
18771 "This parameter controls what percentage of the congestion window can be "
18772 "consumed by a single TCP Segmentation Offload (TSO) frame.  The setting of "
18773 "this parameter is a tradeoff between burstiness and building larger TSO "
18774 "frames."
18775 msgstr ""
18776 "このパラメータは、一つの TCP Segmentation Offload (TSO) フレームで 消費できる"
18777 "輻輳ウィンドウの割合 (パーセント) を制御する。 バースト性と、どれだけ大きな "
18778 "TSO フレームを構築するかのはトレードオフであり、 このパラメータはその度合いを"
18779 "設定する。"
18780
18781 #. type: TP
18782 #: build/C/man7/tcp.7:701
18783 #, no-wrap
18784 msgid "I<tcp_tw_recycle> (Boolean; default: disabled; since Linux 2.4)"
18785 msgstr "I<tcp_tw_recycle> (Boolean; default: disabled; Linux 2.4 以降)"
18786
18787 #.  Since 2.3.15
18788 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
18789 #. type: Plain text
18790 #: build/C/man7/tcp.7:710
18791 msgid ""
18792 "Enable fast recycling of TIME_WAIT sockets.  Enabling this option is not "
18793 "recommended since this causes problems when working with NAT (Network "
18794 "Address Translation)."
18795 msgstr ""
18796 "TIME_WAIT ソケットの素早い再利用を有効にする。 このオプションを有効にする"
18797 "と、 NAT (ネットワークアドレス変換) を用いていると問題が生じるので、 あまり推"
18798 "奨しない。"
18799
18800 #. type: TP
18801 #: build/C/man7/tcp.7:710
18802 #, no-wrap
18803 msgid "I<tcp_tw_reuse> (Boolean; default: disabled; since Linux 2.4.19/2.6)"
18804 msgstr "I<tcp_tw_reuse> (Boolean; default: disabled; Linux 2.4.19/2.6 以降)"
18805
18806 #.  Since 2.4.19/2.5.43
18807 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
18808 #. type: Plain text
18809 #: build/C/man7/tcp.7:718
18810 msgid ""
18811 "Allow to reuse TIME_WAIT sockets for new connections when it is safe from "
18812 "protocol viewpoint.  It should not be changed without advice/request of "
18813 "technical experts."
18814 msgstr ""
18815 "プロトコルの面から見て問題ない場合に新規コネクションに TIME_WAIT 状態のソケッ"
18816 "トを再利用することを許可する。技術的に詳しい人の助言や 要請なしにこのオプショ"
18817 "ンを変更すべきではない。"
18818
18819 #. type: TP
18820 #: build/C/man7/tcp.7:718
18821 #, no-wrap
18822 msgid "I<tcp_vegas_cong_avoid> (Boolean; default: disabled; Linux 2.2 to 2.6.13)"
18823 msgstr "I<tcp_vegas_cong_avoid> (Boolean; default: disabled; Linux 2.2 から 2.6.13 まで)"
18824
18825 #.  Since 2.1.8; removed in 2.6.13
18826 #.  The following is from 2.6.12: Documentation/networking/ip-sysctl.txt
18827 #. type: Plain text
18828 #: build/C/man7/tcp.7:729
18829 msgid ""
18830 "Enable TCP Vegas congestion avoidance algorithm.  TCP Vegas is a sender-side "
18831 "only change to TCP that anticipates the onset of congestion by estimating "
18832 "the bandwidth.  TCP Vegas adjusts the sending rate by modifying the "
18833 "congestion window.  TCP Vegas should provide less packet loss, but it is not "
18834 "as aggressive as TCP Reno."
18835 msgstr ""
18836 "TCP Vegas 輻輳制御アルゴリズムを有効にする。 TCP Vegas は帯域を推測することで"
18837 "輻輳の起こり始めを予想するように TCP の送信側のみに変更を加えたものである。 "
18838 "TCP Vegas は輻輳ウィンドウを修正することで、送信レートを調整する。 TCP Vegas "
18839 "は TCP Reno と比べてパケットロスは少ないが、 TCP Reno ほど積極的な挙動はしな"
18840 "い。"
18841
18842 #. type: TP
18843 #: build/C/man7/tcp.7:729
18844 #, no-wrap
18845 msgid "I<tcp_westwood> (Boolean; default: disabled; Linux 2.4.26/2.6.3 to 2.6.13)"
18846 msgstr "I<tcp_westwood> (Boolean; default: disabled; Linux 2.4.26/2.6.3 から 2.6.13 まで)"
18847
18848 #. type: Plain text
18849 #: build/C/man7/tcp.7:741
18850 msgid ""
18851 "Enable TCP Westwood+ congestion control algorithm.  TCP Westwood+ is a "
18852 "sender-side only modification of the TCP Reno protocol stack that optimizes "
18853 "the performance of TCP congestion control.  It is based on end-to-end "
18854 "bandwidth estimation to set congestion window and slow start threshold after "
18855 "a congestion episode.  Using this estimation, TCP Westwood+ adaptively sets "
18856 "a slow start threshold and a congestion window which takes into account the "
18857 "bandwidth used at the time congestion is experienced.  TCP Westwood+ "
18858 "significantly increases fairness with respect to TCP Reno in wired networks "
18859 "and throughput over wireless links."
18860 msgstr ""
18861 "TCP Westwood+ 輻輳制御アルゴリズムを有効にする。 TCP Westwood+ は TCP 輻輳制"
18862 "御の性能を最適化するように TCP Reno の プロトコルスタックの送信側のみに修正を"
18863 "加えたものである。 輻輳が起こった後で、輻輳ウィンドウや slow start の閾値を "
18864 "通信両端間の帯域の推測に基づいて設定する。 この推測を使って、TCP Westwood+ は"
18865 "輻輳が発生した時に使っていた 帯域を考慮に入れた slow start の閾値と輻輳ウィン"
18866 "ドウを設定する。 TCP Westwood+ は、有線ネットワークにおける TCP Reno の公平"
18867 "性 (fairness) と、無線リンクでのスループットを大きく向上する。"
18868
18869 #. type: TP
18870 #: build/C/man7/tcp.7:741
18871 #, no-wrap
18872 msgid "I<tcp_window_scaling> (Boolean; default: enabled; since Linux 2.2)"
18873 msgstr "I<tcp_window_scaling> (Boolean; default: enabled; Linux 2.2 以降)"
18874
18875 #.  Since 2.1.36
18876 #. type: Plain text
18877 #: build/C/man7/tcp.7:755
18878 msgid ""
18879 "Enable RFC\\ 1323 TCP window scaling.  This feature allows the use of a "
18880 "large window (E<gt> 64K) on a TCP connection, should the other end support "
18881 "it.  Normally, the 16 bit window length field in the TCP header limits the "
18882 "window size to less than 64K bytes.  If larger windows are desired, "
18883 "applications can increase the size of their socket buffers and the window "
18884 "scaling option will be employed.  If I<tcp_window_scaling> is disabled, TCP "
18885 "will not negotiate the use of window scaling with the other end during "
18886 "connection setup."
18887 msgstr ""
18888 "RFC\\ 1323 の TCP ウィンドウスケーリングを有効にする。 この機能を用いると、接"
18889 "続先が対応していれば、 TCP 接続で大きな (64K 以上の) ウィンドウが使えるように"
18890 "なる。 通常は TCP ヘッダのウインドウ長フィールドは 16 ビットなので、 ウィンド"
18891 "ウサイズは 64K バイト以下に限られる。 もっと大きなウィンドウを使いたい場合"
18892 "は、 アプリケーションはソケットバッファのサイズを増やして、 ウィンドウスケー"
18893 "リングのオプションを利用すればよい。 I<tcp_window_scaling> を無効にしている"
18894 "と、 TCP は他端との接続設定の際に、 ウィンドウスケーリングのネゴシエーション"
18895 "を行なわない。"
18896
18897 #. type: TP
18898 #: build/C/man7/tcp.7:755
18899 #, no-wrap
18900 msgid "I<tcp_wmem> (since Linux 2.4)"
18901 msgstr "I<tcp_wmem> (Linux 2.4 以降)"
18902
18903 #.  Since 2.4.0-test7
18904 #. type: Plain text
18905 #: build/C/man7/tcp.7:763
18906 msgid ""
18907 "This is a vector of 3 integers: [min, default, max].  These parameters are "
18908 "used by TCP to regulate send buffer sizes.  TCP dynamically adjusts the size "
18909 "of the send buffer from the default values listed below, in the range of "
18910 "these values, depending on memory available."
18911 msgstr ""
18912 "これは 3 つの整数 [min, default, max] からなるベクトル値である。 これらは "
18913 "TCP が送信バッファサイズを調整するために用いられる。 TCP は、システムで利用で"
18914 "きるメモリに応じて、送信バッファのサイズを これらの変数の範囲で以下に示すデ"
18915 "フォルトから動的に調整する。"
18916
18917 #. type: Plain text
18918 #: build/C/man7/tcp.7:774
18919 msgid ""
18920 "Minimum size of the send buffer used by each TCP socket.  The default value "
18921 "is the system page size.  (On Linux 2.4, the default value is 4K bytes.)  "
18922 "This value is used to ensure that in memory pressure mode, allocations below "
18923 "this size will still succeed.  This is not used to bound the size of the "
18924 "send buffer declared using B<SO_SNDBUF> on a socket."
18925 msgstr ""
18926 "各 TCP ソケットが用いる送信バッファの最小サイズ。 デフォルト値はシステムの"
18927 "ページサイズである (Linux 2.4 では、デフォルト値は 4K である)。 この値は、メ"
18928 "モリ圧迫モードにおいても、 このサイズ以下の割り当てが成功することを保証するた"
18929 "めに用いられる。 これは、 B<SO_SNDBUF> を用いてソケットの最低送信バッファサイ"
18930 "ズを宣言する際には用いられない。"
18931
18932 #.  True in Linux 2.4 and 2.6
18933 #. type: Plain text
18934 #: build/C/man7/tcp.7:788
18935 msgid ""
18936 "The default size of the send buffer for a TCP socket.  This value overwrites "
18937 "the initial default buffer size from the generic global I</proc/sys/net/core/"
18938 "wmem_default> defined for all protocols.  The default value is 16K bytes.  "
18939 "If larger send buffer sizes are desired, this value should be increased (to "
18940 "affect all sockets).  To employ large TCP windows, the I</proc/sys/net/ipv4/"
18941 "tcp_window_scaling> must be set to a nonzero value (default)."
18942 msgstr ""
18943 "TCP ソケットの送信バッファのデフォルトサイズ。 この値は、すべてのプロトコルに"
18944 "対して定義されている、 ジェネリックなグローバルのデフォルトバッファサイズ I</"
18945 "proc/sys/net/core/wmem_default> より優先される。 デフォルト値は 16K バイトで"
18946 "ある。 大きな送信バッファサイズが必要な場合は、 この値を増やすべきである (す"
18947 "べてのソケットに影響する)。 大きな TCP ウィンドウを用いるには、 I</proc/sys/"
18948 "net/ipv4/tcp_window_scaling> を 0 以外の値 (デフォルト値) にしておかなければ"
18949 "ならない。"
18950
18951 #. type: Plain text
18952 #: build/C/man7/tcp.7:797
18953 msgid ""
18954 "The maximum size of the send buffer used by each TCP socket.  This value "
18955 "does not override the value in I</proc/sys/net/core/wmem_max>.  This is not "
18956 "used to limit the size of the send buffer declared using B<SO_SNDBUF> on a "
18957 "socket.  The default value is calculated using the formula"
18958 msgstr ""
18959 "各 TCP ソケットで用いる送信バッファの最大サイズ。 この値よりも I</proc/sys/"
18960 "net/core/wmem_max> が優先される。 これは B<SO_SNDBUF> を用いてソケットの送信"
18961 "バッファサイズ制限を宣言する際には用いられない。 デフォルト値は以下の式で計算"
18962 "される。"
18963
18964 #. type: Plain text
18965 #: build/C/man7/tcp.7:799
18966 #, no-wrap
18967 msgid "    max(65536, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
18968 msgstr "    max(65536, min(4MB, I<tcp_mem>[1]*PAGE_SIZE/128))\n"
18969
18970 #. type: Plain text
18971 #: build/C/man7/tcp.7:802
18972 msgid ""
18973 "(On Linux 2.4, the default value is 128K bytes, lowered 64K depending on low-"
18974 "memory systems.)"
18975 msgstr ""
18976 "(Linux 2.4 では、デフォルト値は 128K バイトで、 メモリの少ないシステムでは "
18977 "64K にまで減らされる。)"
18978
18979 #. type: TP
18980 #: build/C/man7/tcp.7:803
18981 #, no-wrap
18982 msgid "I<tcp_workaround_signed_windows> (Boolean; default: disabled; since Linux 2.6.26)"
18983 msgstr "I<tcp_workaround_signed_windows> (Boolean; default: disabled; Linux 2.6.26 以降)"
18984
18985 #. type: Plain text
18986 #: build/C/man7/tcp.7:809
18987 msgid ""
18988 "If enabled, assume that no receipt of a window-scaling option means that the "
18989 "remote TCP is broken and treats the window as a signed quantity.  If "
18990 "disabled, assume that the remote TCP is not broken even if we do not receive "
18991 "a window scaling option from it."
18992 msgstr ""
18993 "有効にすると、ウィンドウスケーリングオプションを受信しないのは、 接続相手の "
18994 "TCP が壊れていると考え、ウィンドウを符号付きの量とみなす。 無効にすると、接続"
18995 "相手からウィンドウスケーリングオプションを受信しなかった 場合であっても、接続"
18996 "相手の TCP が壊れているとはみなさない。"
18997
18998 #.  or SOL_TCP on Linux
18999 #.  FIXME Document TCP_CONGESTION (new in 2.6.13)
19000 #. type: Plain text
19001 #: build/C/man7/tcp.7:824
19002 msgid ""
19003 "To set or get a TCP socket option, call B<getsockopt>(2)  to read or "
19004 "B<setsockopt>(2)  to write the option with the option level argument set to "
19005 "B<IPPROTO_TCP>.  In addition, most B<IPPROTO_IP> socket options are valid on "
19006 "TCP sockets.  For more information see B<ip>(7)."
19007 msgstr ""
19008 "TCP ソケットのオプションは、 オプションレベル引数に I<IPPROTO_TCP> を指定し"
19009 "た B<setsockopt>(2)  で設定でき、 B<getsockopt>(2)  で取得できる。 さらに、ほ"
19010 "とんどの B<IPPROTO_IP> ソケットオプションも TCP ソケットに対して有効である。"
19011 "詳細は B<ip>(7)  を見よ。"
19012
19013 #. type: TP
19014 #: build/C/man7/tcp.7:824
19015 #, no-wrap
19016 msgid "B<TCP_CORK> (since Linux 2.2)"
19017 msgstr "B<TCP_CORK> (Linux 2.2 以降)"
19018
19019 #.  precisely: since 2.1.127
19020 #. type: Plain text
19021 #: build/C/man7/tcp.7:840
19022 msgid ""
19023 "If set, don't send out partial frames.  All queued partial frames are sent "
19024 "when the option is cleared again.  This is useful for prepending headers "
19025 "before calling B<sendfile>(2), or for throughput optimization.  As currently "
19026 "implemented, there is a 200 millisecond ceiling on the time for which output "
19027 "is corked by B<TCP_CORK>.  If this ceiling is reached, then queued data is "
19028 "automatically transmitted.  This option can be combined with B<TCP_NODELAY> "
19029 "only since Linux 2.5.71.  This option should not be used in code intended to "
19030 "be portable."
19031 msgstr ""
19032 "セットされると、 partial フレームを送信しない。 このオプションが解除される"
19033 "と、 キューイングされた partial フレームが送られる。これは B<sendfile>(2)  を"
19034 "呼ぶ前にヘッダを前置したり、 スループットを最適化したい場合に便利である。 現"
19035 "在の実装では、 B<TCP_CORK> で出力を抑えることができる時間の上限は 200 ミリ秒"
19036 "である。 この上限に達すると、キューイングされたデータは自動的に送信される。 "
19037 "Linux 2.5.71 以降においてのみ、このオプションを B<TCP_NODELAY> と同時に用いる"
19038 "ことができる。 移植性の必要なプログラムではこのオプションを用いるべきではな"
19039 "い。"
19040
19041 #. type: TP
19042 #: build/C/man7/tcp.7:840
19043 #, no-wrap
19044 msgid "B<TCP_DEFER_ACCEPT> (since Linux 2.4)"
19045 msgstr "B<TCP_DEFER_ACCEPT> (Linux 2.4 以降)"
19046
19047 #.  Precisely: since 2.3.38
19048 #. type: Plain text
19049 #: build/C/man7/tcp.7:848
19050 msgid ""
19051 "Allow a listener to be awakened only when data arrives on the socket.  Takes "
19052 "an integer value (seconds), this can bound the maximum number of attempts "
19053 "TCP will make to complete the connection.  This option should not be used in "
19054 "code intended to be portable."
19055 msgstr ""
19056 "これを用いると、リスナはデータがソケットに到着した時のみ目覚めるようになる。 "
19057 "整数値 (秒) をとり、 TCP が接続を完了しようと試みる回数を制限できる。 移植性"
19058 "の必要なプログラムではこのオプションを用いるべきではない。"
19059
19060 #. type: TP
19061 #: build/C/man7/tcp.7:848
19062 #, no-wrap
19063 msgid "B<TCP_INFO> (since Linux 2.4)"
19064 msgstr "B<TCP_INFO> (Linux 2.4 以降)"
19065
19066 #. type: Plain text
19067 #: build/C/man7/tcp.7:854
19068 msgid ""
19069 "Used to collect information about this socket.  The kernel returns a "
19070 "I<struct tcp_info> as defined in the file I</usr/include/linux/tcp.h>.  This "
19071 "option should not be used in code intended to be portable."
19072 msgstr ""
19073 "このソケットの情報を収集するのに用いる。 カーネルは I</usr/include/linux/tcp."
19074 "h> ファイルで定義されている I<struct tcp_info> を返す。 移植性の必要なプログ"
19075 "ラムではこのオプションを用いるべきではない。"
19076
19077 #. type: TP
19078 #: build/C/man7/tcp.7:854
19079 #, no-wrap
19080 msgid "B<TCP_KEEPCNT> (since Linux 2.4)"
19081 msgstr "B<TCP_KEEPCNT> (Linux 2.4 以降)"
19082
19083 #.  Precisely: since 2.3.18
19084 #. type: Plain text
19085 #: build/C/man7/tcp.7:861
19086 msgid ""
19087 "The maximum number of keepalive probes TCP should send before dropping the "
19088 "connection.  This option should not be used in code intended to be portable."
19089 msgstr ""
19090 "接続を落とす前に TCP が試みる keepalive プローブの最大回数。 移植性の必要なプ"
19091 "ログラムではこのオプションを用いるべきではない。"
19092
19093 #. type: TP
19094 #: build/C/man7/tcp.7:861
19095 #, no-wrap
19096 msgid "B<TCP_KEEPIDLE> (since Linux 2.4)"
19097 msgstr "B<TCP_KEEPIDLE> (Linux 2.4 以降)"
19098
19099 #.  Precisely: since 2.3.18
19100 #. type: Plain text
19101 #: build/C/man7/tcp.7:870
19102 msgid ""
19103 "The time (in seconds) the connection needs to remain idle before TCP starts "
19104 "sending keepalive probes, if the socket option B<SO_KEEPALIVE> has been set "
19105 "on this socket.  This option should not be used in code intended to be "
19106 "portable."
19107 msgstr ""
19108 "この時間 (秒単位) を越えて接続がアイドル状態に留まっていると、 このソケット"
19109 "に B<SO_KEEPALIVE> ソケットオプションが設定されている場合、 TCP は keepalive "
19110 "プローブを送りはじめる。 移植性の必要なプログラムではこのオプションを用いるべ"
19111 "きではない。"
19112
19113 #. type: TP
19114 #: build/C/man7/tcp.7:870
19115 #, no-wrap
19116 msgid "B<TCP_KEEPINTVL> (since Linux 2.4)"
19117 msgstr "B<TCP_KEEPINTVL> (Linux 2.4 以降)"
19118
19119 #.  Precisely: since 2.3.18
19120 #. type: Plain text
19121 #: build/C/man7/tcp.7:875
19122 msgid ""
19123 "The time (in seconds) between individual keepalive probes.  This option "
19124 "should not be used in code intended to be portable."
19125 msgstr ""
19126 "各 keepalive プローブの間隔 (秒単位)。 移植性の必要なプログラムではこのオプ"
19127 "ションを用いるべきではない。"
19128
19129 #. type: TP
19130 #: build/C/man7/tcp.7:875
19131 #, no-wrap
19132 msgid "B<TCP_LINGER2> (since Linux 2.4)"
19133 msgstr "B<TCP_LINGER2> (Linux 2.4 以降)"
19134
19135 #.  Precisely: since 2.3.41
19136 #. type: Plain text
19137 #: build/C/man7/tcp.7:887
19138 msgid ""
19139 "The lifetime of orphaned FIN_WAIT2 state sockets.  This option can be used "
19140 "to override the system-wide setting in the file I</proc/sys/net/ipv4/"
19141 "tcp_fin_timeout> for this socket.  This is not to be confused with the "
19142 "B<socket>(7)  level option B<SO_LINGER>.  This option should not be used in "
19143 "code intended to be portable."
19144 msgstr ""
19145 "orphan された FIN_WAIT2 状態のソケットの寿命。 このオプションを用いると、シス"
19146 "テム全体に適用されるファイル I</proc/sys/net/ipv4/tcp_fin_timeout> の値を、こ"
19147 "のソケットに対してのみ変更できる。 B<socket>(7)  レベルのオプション "
19148 "B<SO_LINGER> と混同しないこと。 移植性の必要なプログラムではこのオプションを"
19149 "用いるべきではない。"
19150
19151 #. type: TP
19152 #: build/C/man7/tcp.7:887
19153 #, no-wrap
19154 msgid "B<TCP_MAXSEG>"
19155 msgstr "B<TCP_MAXSEG>"
19156
19157 #.  Present in Linux 1.0
19158 #.  FIXME
19159 #.  Document TCP_MD5SIG, added in Linux 2.6.20,
19160 #.  Needs CONFIG_TCP_MD5SIG
19161 #.  From net/inet/Kconfig
19162 #.  bool "TCP: MD5 Signature Option support (RFC2385) (EXPERIMENTAL)"
19163 #.  RFC2385 specifies a method of giving MD5 protection to TCP sessions.
19164 #.  Its main (only?) use is to protect BGP sessions between core routers
19165 #.  on the Internet.
19166 #.  There is a TCP_MD5SIG option documented in FreeBSD's tcp(4),
19167 #.  but probably many details are different on Linux
19168 #.  Authors were yoshfuji@linux-ipv6.org and Dave Muller
19169 #.  http://thread.gmane.org/gmane.linux.network/47490
19170 #.  http://www.daemon-systems.org/man/tcp.4.html
19171 #.  http://article.gmane.org/gmane.os.netbsd.devel.network/3767/match=tcp_md5sig+freebsd
19172 #. type: Plain text
19173 #: build/C/man7/tcp.7:912
19174 msgid ""
19175 "The maximum segment size for outgoing TCP packets.  In Linux 2.2 and "
19176 "earlier, and in Linux 2.6.28 and later, if this option is set before "
19177 "connection establishment, it also changes the MSS value announced to the "
19178 "other end in the initial packet.  Values greater than the (eventual) "
19179 "interface MTU have no effect.  TCP will also impose its minimum and maximum "
19180 "bounds over the value provided."
19181 msgstr ""
19182 "送出 TCP パケットの最大セグメントサイズ。 Linux 2.2 以前と Linux\n"
19183 "2.6.28 以降では、このオプションを接続確立の前に設定すると、初期パケット\n"
19184 "で他端にアナウンスする MSS の値も変化する。インターフェースの MTU より\n"
19185 "も大きな (あるいは大きくなってしまった) 値は効果を持たない。 また TCP\n"
19186 "は、この値よりも最小・最大の制限の方を優先する。"
19187
19188 #. type: TP
19189 #: build/C/man7/tcp.7:912
19190 #, no-wrap
19191 msgid "B<TCP_NODELAY>"
19192 msgstr "B<TCP_NODELAY>"
19193
19194 #.  Present in Linux 1.0
19195 #. type: Plain text
19196 #: build/C/man7/tcp.7:929
19197 msgid ""
19198 "If set, disable the Nagle algorithm.  This means that segments are always "
19199 "sent as soon as possible, even if there is only a small amount of data.  "
19200 "When not set, data is buffered until there is a sufficient amount to send "
19201 "out, thereby avoiding the frequent sending of small packets, which results "
19202 "in poor utilization of the network.  This option is overridden by "
19203 "B<TCP_CORK>; however, setting this option forces an explicit flush of "
19204 "pending output, even if B<TCP_CORK> is currently set."
19205 msgstr ""
19206 "設定すると Nagle アルゴリズムを無効にする。 すなわち、データ量が少ない場合で"
19207 "も 各セグメントは可能な限り早く送信される。 設定されていないと、 送信する分だ"
19208 "け溜まるまでデータはバッファされ、 小さなパケットを頻繁に送らずにすみ、 ネッ"
19209 "トワークを有効に利用できる。 このオプションは B<TCP_CORK> により上書きされ"
19210 "る。しかしながら、 B<TCP_CORK> が設定されている場合であっても、このオプション"
19211 "を設定すると、 送信待ちの出力を明示的に掃き出す (flush) ことになる。"
19212
19213 #. type: TP
19214 #: build/C/man7/tcp.7:929
19215 #, no-wrap
19216 msgid "B<TCP_QUICKACK> (since Linux 2.4.4)"
19217 msgstr "B<TCP_QUICKACK> (Linux 2.4.4 以降)"
19218
19219 #.  FIXME Document TCP_USER_TIMEOUT (new in 2.6.37)
19220 #.  See commit dca43c75e7e545694a9dd6288553f55c53e2a3a3
19221 #. type: Plain text
19222 #: build/C/man7/tcp.7:946
19223 msgid ""
19224 "Enable quickack mode if set or disable quickack mode if cleared.  In "
19225 "quickack mode, acks are sent immediately, rather than delayed if needed in "
19226 "accordance to normal TCP operation.  This flag is not permanent, it only "
19227 "enables a switch to or from quickack mode.  Subsequent operation of the TCP "
19228 "protocol will once again enter/leave quickack mode depending on internal "
19229 "protocol processing and factors such as delayed ack timeouts occurring and "
19230 "data transfer.  This option should not be used in code intended to be "
19231 "portable."
19232 msgstr ""
19233 "設定されていると quickack モードを有効にし、クリアされると無効にする。 通常"
19234 "の TCP 動作では ack は必要に応じて遅延されるのに対し、 quickack モードでは "
19235 "ack はすぐに送信される。 このフラグは永続的なものではなく、 quickack モードか"
19236 "ら/モードへ切り替えるためのものである。 これ以降の TCP プロトコルの動作によっ"
19237 "ては、 内部のプロトコル処理や、遅延 ack タイムアウトの発生、 データ転送などの"
19238 "要因によって、 再び quickack から出たり入ったりする。 移植性の必要なプログラ"
19239 "ムではこのオプションを用いるべきではない。"
19240
19241 #. type: TP
19242 #: build/C/man7/tcp.7:946
19243 #, no-wrap
19244 msgid "B<TCP_SYNCNT> (since Linux 2.4)"
19245 msgstr "B<TCP_SYNCNT> (Linux 2.4 以降)"
19246
19247 #.  Precisely: since 2.3.18
19248 #. type: Plain text
19249 #: build/C/man7/tcp.7:953
19250 msgid ""
19251 "Set the number of SYN retransmits that TCP should send before aborting the "
19252 "attempt to connect.  It cannot exceed 255.  This option should not be used "
19253 "in code intended to be portable."
19254 msgstr ""
19255 "接続の試行を中止させる前に TCP が送る SYN 再送数を設定する。 これは 255 より"
19256 "大きくはできない。 移植性の必要なプログラムではこのオプションを用いるべきでは"
19257 "ない。"
19258
19259 #. type: TP
19260 #: build/C/man7/tcp.7:953
19261 #, no-wrap
19262 msgid "B<TCP_WINDOW_CLAMP> (since Linux 2.4)"
19263 msgstr "B<TCP_WINDOW_CLAMP> (Linux 2.4 以降)"
19264
19265 #.  Precisely: since 2.3.41
19266 #. type: Plain text
19267 #: build/C/man7/tcp.7:960
19268 msgid ""
19269 "Bound the size of the advertised window to this value.  The kernel imposes a "
19270 "minimum size of SOCK_MIN_RCVBUF/2.  This option should not be used in code "
19271 "intended to be portable."
19272 msgstr ""
19273 "広報するウィンドウのサイズをこの値に固定する。 カーネルによって最小サイズは "
19274 "SOCK_MIN_RCVBUF/2 に制限されている。 このオプションは移植性の必要なコードでは"
19275 "用いるべきでない。"
19276
19277 #. type: SS
19278 #: build/C/man7/tcp.7:960 build/C/man7/unix.7:173
19279 #, no-wrap
19280 msgid "Sockets API"
19281 msgstr "ソケット API"
19282
19283 #. type: Plain text
19284 #: build/C/man7/tcp.7:969
19285 msgid ""
19286 "TCP provides limited support for out-of-band data, in the form of (a single "
19287 "byte of) urgent data.  In Linux this means if the other end sends newer out-"
19288 "of-band data the older urgent data is inserted as normal data into the "
19289 "stream (even when B<SO_OOBINLINE> is not set).  This differs from BSD-based "
19290 "stacks."
19291 msgstr ""
19292 "TCP は帯域外データ (out-of-band data) を限定的にサポートしており、 (1 バイト"
19293 "の) 緊急データという形である。 つまり Linux においては、 接続先が (新しいやり"
19294 "方の) 帯域外データを送ってきた場合、 (古いやり方の)  緊急データは通常のデータ"
19295 "としてストリームに挿入されることになる (これは B<SO_OOBINLINE> がセットされて"
19296 "いる場合でも同様である)。 これは BSD ベースのスタックとは異なる。"
19297
19298 #. type: Plain text
19299 #: build/C/man7/tcp.7:976
19300 msgid ""
19301 "Linux uses the BSD compatible interpretation of the urgent pointer field by "
19302 "default.  This violates RFC\\ 1122, but is required for interoperability "
19303 "with other stacks.  It can be changed via I</proc/sys/net/ipv4/tcp_stdurg>."
19304 msgstr ""
19305 "Linux は、デフォルトでは urgent ポインタフィールドの解釈に BSD 互換の方法を用"
19306 "いる。これは RFC\\ 1122 に反しているが、 他のスタックと同時に動作させるにはや"
19307 "むを得ない。これは I</proc/sys/net/ipv4/tcp_stdurg> によって変更できる。"
19308
19309 #. type: Plain text
19310 #: build/C/man7/tcp.7:981
19311 msgid ""
19312 "It is possible to peek at out-of-band data using the I<recv>(2)  B<MSG_PEEK> "
19313 "flag."
19314 msgstr ""
19315 "B<recv>(2)  の B<MSG_PEEK> フラグを使うと、帯域外データを覗き見することができ"
19316 "る。"
19317
19318 #. type: Plain text
19319 #: build/C/man7/tcp.7:997
19320 msgid ""
19321 "Since version 2.4, Linux supports the use of B<MSG_TRUNC> in the I<flags> "
19322 "argument of B<recv>(2)  (and B<recvmsg>(2)).  This flag causes the received "
19323 "bytes of data to be discarded, rather than passed back in a caller-supplied "
19324 "buffer.  Since Linux 2.4.4, B<MSG_PEEK> also has this effect when used in "
19325 "conjunction with B<MSG_OOB> to receive out-of-band data."
19326 msgstr ""
19327 "Linux 2.4 以降では、 B<recv>(2)  (や B<recvmsg>(2))  の I<flags> 引き数に "
19328 "B<MSG_TRUNC> を使うことができる。 このフラグを指定すると、受信データは、呼び"
19329 "出し元から渡されたバッファ にコピーされて返されるのではなく、廃棄されるように"
19330 "なる。 Linux 2.4.4 以降では、 B<MSG_PEEK> を、帯域外データを受信するための "
19331 "B<MSG_OOB> と組み合わせて使った場合にも、これと同じ効果を持つようになってい"
19332 "る。"
19333
19334 #. type: Plain text
19335 #: build/C/man7/tcp.7:1003 build/C/man7/unix.7:286
19336 msgid ""
19337 "The following B<ioctl>(2)  calls return information in I<value>.  The "
19338 "correct syntax is:"
19339 msgstr ""
19340 "以下の B<ioctl>(2) 呼び出しは I<value> に情報を入れて返す。\n"
19341 "正しい書式は以下の通り。"
19342
19343 #. type: Plain text
19344 #: build/C/man7/tcp.7:1008
19345 #, no-wrap
19346 msgid ""
19347 "B<int>I< value>B<;>\n"
19348 "I<error>B< = ioctl(>I<tcp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
19349 msgstr ""
19350 "B<int>I< value>B<;>\n"
19351 "I<error>B< = ioctl(>I<tcp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
19352
19353 #. type: Plain text
19354 #: build/C/man7/tcp.7:1013
19355 msgid "I<ioctl_type> is one of the following:"
19356 msgstr "I<ioctl_type> は以下のいずれか一つである:"
19357
19358 #. type: TP
19359 #: build/C/man7/tcp.7:1013 build/C/man7/unix.7:296
19360 #, no-wrap
19361 msgid "B<SIOCINQ>"
19362 msgstr "B<SIOCINQ>"
19363
19364 #.  FIXME http://sources.redhat.com/bugzilla/show_bug.cgi?id=12002,
19365 #.  filed 2010-09-10, may cause SIOCINQ to be defined in glibc headers
19366 #.  SIOCOUTQ also has an effect for UNIX domain sockets, but not
19367 #.  quite what userland might expect. It seems to return the number
19368 #.  of bytes allocated for buffers containing pending output.
19369 #.  That number is normally larger than the number of bytes of pending
19370 #.  output. Since this info is, from userland's point of view, imprecise,
19371 #.  and it may well change, probably best not to document this now.
19372 #. type: Plain text
19373 #: build/C/man7/tcp.7:1029 build/C/man7/unix.7:318
19374 msgid ""
19375 "Returns the amount of queued unread data in the receive buffer.  The socket "
19376 "must not be in LISTEN state, otherwise an error (B<EINVAL>)  is returned.  "
19377 "B<SIOCINQ> is defined in I<E<lt>linux/sockios.hE<gt>>.  Alternatively, you "
19378 "can use the synonymous B<FIONREAD>, defined in I<E<lt>sys/ioctl.hE<gt>>."
19379 msgstr ""
19380 "受信バッファのキューにある、まだ読んでいないデータの量を返す。ソケットは\n"
19381 "LISTEN 状態にあってはならず、さもないとエラー (B<EINVAL>) が返る。\n"
19382 "B<SIOCINQ> は I<E<lt>linux/sockios.hE<gt>> で定義されている。\n"
19383 "代わりに、I<E<lt>sys/ioctl.hE<gt>> で定義されている、同義語の B<FIONREAD>\n"
19384 "を使うこともできる。"
19385
19386 #. type: TP
19387 #: build/C/man7/tcp.7:1029
19388 #, no-wrap
19389 msgid "B<SIOCATMARK>"
19390 msgstr "B<SIOCATMARK>"
19391
19392 #. type: Plain text
19393 #: build/C/man7/tcp.7:1034
19394 msgid ""
19395 "Returns true (i.e., I<value> is nonzero) if the inbound data stream is at "
19396 "the urgent mark."
19397 msgstr ""
19398 "受信データストリームが緊急マークの位置であれば、真を返す (つまり I<value> が "
19399 "0 以外)。"
19400
19401 #. type: Plain text
19402 #: build/C/man7/tcp.7:1050
19403 msgid ""
19404 "If the B<SO_OOBINLINE> socket option is set, and B<SIOCATMARK> returns true, "
19405 "then the next read from the socket will return the urgent data.  If the "
19406 "B<SO_OOBINLINE> socket option is not set, and B<SIOCATMARK> returns true, "
19407 "then the next read from the socket will return the bytes following the "
19408 "urgent data (to actually read the urgent data requires the B<recv(MSG_OOB)> "
19409 "flag)."
19410 msgstr ""
19411 "B<SO_OOBINLINE> ソケットオプションが設定されていて、 B<SIOCATMARK> が真を返し"
19412 "た場合、次のソケットからの読み込みでは緊急データが 返される。 "
19413 "B<SO_OOBINLINE> ソケットオプションが設定されておらず、 B<SIOCATMARK> が真を返"
19414 "した場合、次のソケットからの読み込みでは緊急データに 続くデータが返される (実"
19415 "際に緊急データを読み込むには B<recv(MSG_OOB)> とフラグをつける必要がある)。"
19416
19417 #. type: Plain text
19418 #: build/C/man7/tcp.7:1064
19419 msgid ""
19420 "Note that a read never reads across the urgent mark.  If an application is "
19421 "informed of the presence of urgent data via B<select>(2)  (using the "
19422 "I<exceptfds> argument) or through delivery of a B<SIGURG> signal, then it "
19423 "can advance up to the mark using a loop which repeatedly tests B<SIOCATMARK> "
19424 "and performs a read (requesting any number of bytes) as long as "
19425 "B<SIOCATMARK> returns false."
19426 msgstr ""
19427 "データの一回の読み込みでは緊急マークを跨がっての読み込みは行われない。 アプリ"
19428 "ケーションが緊急データの存在を (I<exceptfds> 引き数を使って)  B<select>(2)  "
19429 "経由または B<SIGURG> シグナルの配送を通じて知らされた場合、 B<SIOCATMARK> の"
19430 "チェックと読み込み (何バイト読み込み要求をしてもよい) を B<SIOCATMARK> が偽を"
19431 "返さなくなるまで繰り返し行うことで、緊急マークの位置まで 読み進めることができ"
19432 "る。"
19433
19434 #. type: TP
19435 #: build/C/man7/tcp.7:1064
19436 #, no-wrap
19437 msgid "B<SIOCOUTQ>"
19438 msgstr "B<SIOCOUTQ>"
19439
19440 #.  FIXME http://sources.redhat.com/bugzilla/show_bug.cgi?id=12002,
19441 #.  filed 2010-09-10, may cause SIOCOUTQ to be defined in glibc headers
19442 #. type: Plain text
19443 #: build/C/man7/tcp.7:1080
19444 msgid ""
19445 "Returns the amount of unsent data in the socket send queue.  The socket must "
19446 "not be in LISTEN state, otherwise an error (B<EINVAL>)  is returned.  "
19447 "B<SIOCOUTQ> is defined in I<E<lt>linux/sockios.hE<gt>>.  Alternatively, you "
19448 "can use the synonymous B<TIOCOUTQ>, defined in I<E<lt>sys/ioctl.hE<gt>>."
19449 msgstr ""
19450 "ソケットの送信キューに残っている未送信データの量を返す。ソケットは LISTEN "
19451 "状\n"
19452 "態にあってはならない。 LISTEN 状態の場合にはエラー (B<EINVAL>) となる。\n"
19453 "B<SIOCOUTQ> は I<E<lt>linux/sockios.hE<gt>> で定義されている。\n"
19454 "代わりに、I<E<lt>sys/ioctl.hE<gt>> で定義されている、同義語の B<TIOCOUTQ> "
19455 "を\n"
19456 "使うこともできる。"
19457
19458 #. type: Plain text
19459 #: build/C/man7/tcp.7:1085
19460 msgid ""
19461 "When a network error occurs, TCP tries to resend the packet.  If it doesn't "
19462 "succeed after some time, either B<ETIMEDOUT> or the last received error on "
19463 "this connection is reported."
19464 msgstr ""
19465 "ネットワークエラーが起こると、 TCP はパケットの再送を試みる。 何回かやっても"
19466 "成功しなければ、この接続に対して B<ETIMEOUT> エラーか最後に受信したエラーが返"
19467 "される。"
19468
19469 #. type: Plain text
19470 #: build/C/man7/tcp.7:1096
19471 msgid ""
19472 "Some applications require a quicker error notification.  This can be enabled "
19473 "with the B<IPPROTO_IP> level B<IP_RECVERR> socket option.  When this option "
19474 "is enabled, all incoming errors are immediately passed to the user program.  "
19475 "Use this option with care \\(em it makes TCP less tolerant to routing "
19476 "changes and other normal network conditions."
19477 msgstr ""
19478 "アプリケーションによっては、もっと早くエラーを知らせてほしい場合がある。 これ"
19479 "には B<IPPROTO_IP> レベルの B<IP_RECVERR> ソケットオプションを用いると良い。"
19480 "このオプションが有効になっていると、 到着したエラーはすべてただちにユーザープ"
19481 "ログラムに渡される。 このオプションは慎重に用いること \\(em ルーティングの変"
19482 "更など、 通常ありうるネットワーク状態に対して TCP をより脆弱にしてしまう。"
19483
19484 #. type: TP
19485 #: build/C/man7/tcp.7:1097
19486 #, no-wrap
19487 msgid "B<EAFNOTSUPPORT>"
19488 msgstr "B<EAFNOTSUPPORT>"
19489
19490 #. type: Plain text
19491 #: build/C/man7/tcp.7:1103
19492 msgid "Passed socket address type in I<sin_family> was not B<AF_INET>."
19493 msgstr ""
19494 "I<sin_family> に渡されたソケットアドレスのタイプが B<AF_INET> ではなかった。"
19495
19496 #. type: Plain text
19497 #: build/C/man7/tcp.7:1107
19498 msgid ""
19499 "The other end closed the socket unexpectedly or a read is executed on a shut "
19500 "down socket."
19501 msgstr ""
19502 "接続先が予期しなかったかたちでソケットをクローズした。 またはシャットダウンさ"
19503 "れたソケットに読み込みが実行された。"
19504
19505 #. type: TP
19506 #: build/C/man7/tcp.7:1107
19507 #, no-wrap
19508 msgid "B<ETIMEDOUT>"
19509 msgstr "B<ETIMEDOUT>"
19510
19511 #. type: Plain text
19512 #: build/C/man7/tcp.7:1110
19513 msgid "The other end didn't acknowledge retransmitted data after some time."
19514 msgstr "接続先が、何回かデータを再送しても反応しない。"
19515
19516 #. type: Plain text
19517 #: build/C/man7/tcp.7:1114
19518 msgid ""
19519 "Any errors defined for B<ip>(7)  or the generic socket layer may also be "
19520 "returned for TCP."
19521 msgstr ""
19522 "B<ip>(7)  で定義されているエラーや、ジェネリックなソケット層におけるエラーも "
19523 "TCP に返されることがある。"
19524
19525 #. type: Plain text
19526 #: build/C/man7/tcp.7:1121
19527 msgid ""
19528 "Support for Explicit Congestion Notification, zero-copy B<sendfile>(2), "
19529 "reordering support and some SACK extensions (DSACK) were introduced in 2.4.  "
19530 "Support for forward acknowledgement (FACK), TIME_WAIT recycling, and per-"
19531 "connection keepalive socket options were introduced in 2.3."
19532 msgstr ""
19533 "Explicit Congestion Notification、zero-copy の B<sendfile>(2)、 並び替えのサ"
19534 "ポート、SACK 拡張 (DSACK) などのサポートは 2.4 で導入された。 フォワード確認 "
19535 "(FACK)、TIME_WAIT リサイクル、接続ごとの keepalive に対するソケットオプション"
19536 "は 2.3 で導入された。"
19537
19538 #. type: Plain text
19539 #: build/C/man7/tcp.7:1123
19540 msgid "Not all errors are documented."
19541 msgstr "まだ説明されていないエラーがある。"
19542
19543 #.  Only a single Linux kernel version is described
19544 #.  Info for 2.2 was lost. Should be added again,
19545 #.  or put into a separate page.
19546 #.  .SH AUTHORS
19547 #.  This man page was originally written by Andi Kleen.
19548 #.  It was updated for 2.4 by Nivedita Singhvi with input from
19549 #.  Alexey Kuznetsov's Documentation/networking/ip-sysctl.txt
19550 #.  document.
19551 #. type: Plain text
19552 #: build/C/man7/tcp.7:1133
19553 msgid "IPv6 is not described."
19554 msgstr "IPv6 に関する記述がない。"
19555
19556 #. type: Plain text
19557 #: build/C/man7/tcp.7:1145
19558 msgid ""
19559 "B<accept>(2), B<bind>(2), B<connect>(2), B<getsockopt>(2), B<listen>(2), "
19560 "B<recvmsg>(2), B<sendfile>(2), B<sendmsg>(2), B<socket>(2), B<ip>(7), "
19561 "B<socket>(7)"
19562 msgstr ""
19563 "B<accept>(2), B<bind>(2), B<connect>(2), B<getsockopt>(2), B<listen>(2), "
19564 "B<recvmsg>(2), B<sendfile>(2), B<sendmsg>(2), B<socket>(2), B<ip>(7), "
19565 "B<socket>(7)"
19566
19567 #. type: Plain text
19568 #: build/C/man7/tcp.7:1147
19569 msgid "RFC\\ 793 for the TCP specification."
19570 msgstr "RFC\\ 793: TCP の仕様。"
19571
19572 #. type: Plain text
19573 #: build/C/man7/tcp.7:1149
19574 msgid ""
19575 "RFC\\ 1122 for the TCP requirements and a description of the Nagle algorithm."
19576 msgstr "RFC\\ 1122: TCP の要求事項と Nagle アルゴリズムの記述。"
19577
19578 #. type: Plain text
19579 #: build/C/man7/tcp.7:1151
19580 msgid "RFC\\ 1323 for TCP timestamp and window scaling options."
19581 msgstr "RFC\\ 1323: TCP のタイムスタンプ・ウィンドウスケーリング各オプション。"
19582
19583 #. type: Plain text
19584 #: build/C/man7/tcp.7:1153
19585 msgid "RFC\\ 1337 for a description of TIME_WAIT assassination hazards."
19586 msgstr "RFC\\ 1337: TIME_WAIT assassination hazard に関する説明。"
19587
19588 #. type: Plain text
19589 #: build/C/man7/tcp.7:1155
19590 msgid "RFC\\ 3168 for a description of Explicit Congestion Notification."
19591 msgstr "RFC\\ 3168: Explicit Congestion Notification に関する説明。"
19592
19593 #. type: Plain text
19594 #: build/C/man7/tcp.7:1157
19595 msgid "RFC\\ 2581 for TCP congestion control algorithms."
19596 msgstr "RFC\\ 2581: TCP 輻輳制御アルゴリズム。"
19597
19598 #. type: Plain text
19599 #: build/C/man7/tcp.7:1159
19600 msgid "RFC\\ 2018 and RFC\\ 2883 for SACK and extensions to SACK."
19601 msgstr "RFC\\ 2018 と RFC\\ 2883: SACK とその拡張。"
19602
19603 #. type: TH
19604 #: build/C/man7/udp.7:8
19605 #, no-wrap
19606 msgid "UDP"
19607 msgstr "UDP"
19608
19609 #. type: TH
19610 #: build/C/man7/udp.7:8
19611 #, no-wrap
19612 msgid "2010-06-13"
19613 msgstr "2010-06-13"
19614
19615 #. type: Plain text
19616 #: build/C/man7/udp.7:11
19617 msgid "udp - User Datagram Protocol for IPv4"
19618 msgstr "udp - IPv4 の ユーザーデータグラムプロトコル"
19619
19620 #. type: Plain text
19621 #: build/C/man7/udp.7:17
19622 msgid "B<udp_socket = socket(AF_INET, SOCK_DGRAM, 0);>"
19623 msgstr "B<udp_socket = socket(AF_INET, SOCK_DGRAM, 0);>"
19624
19625 #. type: Plain text
19626 #: build/C/man7/udp.7:23
19627 msgid ""
19628 "This is an implementation of the User Datagram Protocol described in RFC\\ "
19629 "768.  It implements a connectionless, unreliable datagram packet service.  "
19630 "Packets may be reordered or duplicated before they arrive.  UDP generates "
19631 "and checks checksums to catch transmission errors."
19632 msgstr ""
19633 "これは RFC\\ 768 で記述されている User Datagram Protocol の実装である。 UDP "
19634 "はコネクションレスの、信頼性の低いデータパケットサービスである。 パケットは到"
19635 "着前に並び替えられたり複製されたりする。 UDP は転送エラーを検出するために"
19636 "チェックサムを生成・チェックする。"
19637
19638 #. type: Plain text
19639 #: build/C/man7/udp.7:52
19640 msgid ""
19641 "When a UDP socket is created, its local and remote addresses are "
19642 "unspecified.  Datagrams can be sent immediately using B<sendto>(2)  or "
19643 "B<sendmsg>(2)  with a valid destination address as an argument.  When "
19644 "B<connect>(2)  is called on the socket, the default destination address is "
19645 "set and datagrams can now be sent using B<send>(2)  or B<write>(2)  without "
19646 "specifying a destination address.  It is still possible to send to other "
19647 "destinations by passing an address to B<sendto>(2)  or B<sendmsg>(2).  In "
19648 "order to receive packets, the socket can be bound to a local address first "
19649 "by using B<bind>(2).  Otherwise the socket layer will automatically assign a "
19650 "free local port out of the range defined by I</proc/sys/net/ipv4/"
19651 "ip_local_port_range> and bind the socket to B<INADDR_ANY>."
19652 msgstr ""
19653 "UDP ソケットが生成されるとき、 ローカルアドレスやリモートアドレスは指定されな"
19654 "い。 正しい行き先アドレスを引数として B<sendto>(2)  や B<sendmsg>(2)  を呼べ"
19655 "ば、データグラムはただちに送信される。 ソケットに対して B<connect>(2)  を呼ぶ"
19656 "と、デフォルトの行き先アドレスが設定され、 B<send>(2)  や B<write>(2)  を使っ"
19657 "て、行き先アドレスの指定なしにデータグラムを送信できるようになる。 この場合で"
19658 "も、行き先アドレスを B<sendto>(2)  や B<sendmsg>(2)  に渡せば、デフォルト以外"
19659 "のアドレスに送信可能である。 パケットを受信するために、まずソケットを B<bind>"
19660 "(2)  を用いてローカルなアドレスにバインドさせることもできる。 そうでない場合"
19661 "は、ソケット層は自動的に I</proc/sys/net/ipv4/ip_local_port_range> で定義され"
19662 "ている範囲の外で空いているローカルなポートを割り当て、 ソケットを "
19663 "B<INADDR_ANY> にバインドする。"
19664
19665 #. type: Plain text
19666 #: build/C/man7/udp.7:60
19667 msgid ""
19668 "All receive operations return only one packet.  When the packet is smaller "
19669 "than the passed buffer, only that much data is returned; when it is bigger, "
19670 "the packet is truncated and the B<MSG_TRUNC> flag is set.  B<MSG_WAITALL> is "
19671 "not supported."
19672 msgstr ""
19673 "受信動作はパケットを一つだけ返す。渡したバッファよりもパケットが 小さければ、"
19674 "そのパケットの大きさのデータだけが返される。 逆にバッファよりも大きい場合はパ"
19675 "ケットは丸められ、 B<MSG_TRUNC> フラグがセットされる。 B<MSG_WAITALL> はサ"
19676 "ポートしていない。"
19677
19678 #. type: Plain text
19679 #: build/C/man7/udp.7:69
19680 msgid ""
19681 "IP options may be sent or received using the socket options described in "
19682 "B<ip>(7).  They are only processed by the kernel when the appropriate I</"
19683 "proc> parameter is enabled (but still passed to the user even when it is "
19684 "turned off).  See B<ip>(7)."
19685 msgstr ""
19686 "IP オプションは、 B<ip>(7)  に記述されているソケットオプションを用いて読み書"
19687 "きできる。 これらは適切な I</proc> パラメータが有効な場合に限ってカーネルに"
19688 "よって処理される (しかし無効になっている場合でもユーザーには渡される)。 B<ip>"
19689 "(7)  を参照のこと。"
19690
19691 #. type: Plain text
19692 #: build/C/man7/udp.7:74
19693 msgid ""
19694 "When the B<MSG_DONTROUTE> flag is set on sending, the destination address "
19695 "must refer to a local interface address and the packet is only sent to that "
19696 "interface."
19697 msgstr ""
19698 "B<MSG_DONTROUTE> フラグが送信時にセットされている場合には、 行き先アドレスは"
19699 "ローカルなインターフェースアドレスから 参照できなければならない。パケットはそ"
19700 "のインターフェースにしか送られない。"
19701
19702 #. type: Plain text
19703 #: build/C/man7/udp.7:92
19704 msgid ""
19705 "By default, Linux UDP does path MTU (Maximum Transmission Unit) discovery.  "
19706 "This means the kernel will keep track of the MTU to a specific target IP "
19707 "address and return B<EMSGSIZE> when a UDP packet write exceeds it.  When "
19708 "this happens, the application should decrease the packet size.  Path MTU "
19709 "discovery can be also turned off using the B<IP_MTU_DISCOVER> socket option "
19710 "or the I</proc/sys/net/ipv4/ip_no_pmtu_disc> file; see B<ip>(7)  for "
19711 "details.  When turned off, UDP will fragment outgoing UDP packets that "
19712 "exceed the interface MTU.  However, disabling it is not recommended for "
19713 "performance and reliability reasons."
19714 msgstr ""
19715 "デフォルトでは、Linux の UDP は Path MTU Discovery を行う。 つまり、カーネル"
19716 "は特定の宛先 IP アドレスの MTU (Maximum Transmission Unit; 最大転送単位) を記"
19717 "録し、UDP パケットの書き込みが MTU を超えた場合 B<EMSGSIZE> を返す。 "
19718 "B<EMSGSIZE> を返された場合、アプリケーションはパケットサイズを小さくすべきで"
19719 "ある。 ソケットオプション B<IP_MTU_DISCOVER> または I</proc/sys/net/ipv4/"
19720 "ip_no_pmtu_disc> ファイルを使って Path MTU Discovery を無効にすることもでき"
19721 "る (詳細は B<ip>(7)  を参照)。 Path MTU Discovery を無効にした場合は、パケッ"
19722 "トサイズが インタフェースの MTU よりも大きいと UDP はそのパケットを フラグメ"
19723 "ント化して送出する。 しかしながら、性能と信頼性の理由から Path MTU Discovery "
19724 "を 無効にするのは推奨できない。"
19725
19726 #. type: Plain text
19727 #: build/C/man7/udp.7:97
19728 msgid "UDP uses the IPv4 I<sockaddr_in> address format described in B<ip>(7)."
19729 msgstr ""
19730 "UDP は IPv4 の I<sockaddr_in> アドレスフォーマットを用いる。これは B<ip>(7)  "
19731 "に記述されている。"
19732
19733 #. type: Plain text
19734 #: build/C/man7/udp.7:108
19735 msgid ""
19736 "All fatal errors will be passed to the user as an error return even when the "
19737 "socket is not connected.  This includes asynchronous errors received from "
19738 "the network.  You may get an error for an earlier packet that was sent on "
19739 "the same socket.  This behavior differs from many other BSD socket "
19740 "implementations which don't pass any errors unless the socket is connected.  "
19741 "Linux's behavior is mandated by B<RFC\\ 1122>."
19742 msgstr ""
19743 "致命的なエラーは、たとえソケットが接続されていなくても、 すべてエラー戻り値と"
19744 "してユーザーに渡される。 これにはネットワークから受け取る非同期エラーも含まれ"
19745 "る。 同じソケットを使って送信した昔のパケットに関するエラーを受け取るかもしれ"
19746 "ない。 この振る舞いは他の BSD ソケットの実装の多くとは異なる。 これらではソ"
19747 "ケットが接続されていない場合はエラーを全く返さない。 Linux の振る舞いは B<RFC"
19748 "\\ 1122> での指定に従ったものである。"
19749
19750 #. type: Plain text
19751 #: build/C/man7/udp.7:122
19752 msgid ""
19753 "For compatibility with legacy code, in Linux 2.0 and 2.2 it was possible to "
19754 "set the B<SO_BSDCOMPAT> B<SOL_SOCKET> option to receive remote errors only "
19755 "when the socket has been connected (except for B<EPROTO> and B<EMSGSIZE>).  "
19756 "Locally generated errors are always passed.  Support for this socket option "
19757 "was removed in later kernels; see B<socket>(7)  for further information."
19758 msgstr ""
19759 "Linux 2.0 と 2.2 では、古いコードとの互換性のために、 B<SO_BSDCOMPAT> "
19760 "B<SOL_SOCKET> オプションを設定すれば、ソケットが接続されている 場合に限ってリ"
19761 "モートのエラーを受信するようにできた (B<EPROTO> と B<EMSGSIZE> を除く)。 ロー"
19762 "カルで生成されたエラーは常に渡される。 このソケットオプションのサポートはそれ"
19763 "以降のバージョンの Linux で 削除された。詳細は B<socket>(7)  を参照。"
19764
19765 #. type: Plain text
19766 #: build/C/man7/udp.7:131
19767 msgid ""
19768 "When the B<IP_RECVERR> option is enabled, all errors are stored in the "
19769 "socket error queue, and can be received by B<recvmsg>(2)  with the "
19770 "B<MSG_ERRQUEUE> flag set."
19771 msgstr ""
19772 "B<IP_RECVERR> オプションが有効になっていると、 すべてのエラーはソケットのエ"
19773 "ラーキューに保存される。 これは B<MSG_ERRQUEUE> フラグをセットして B<recvmsg>"
19774 "(2)  を呼べば受信できる。"
19775
19776 #. type: Plain text
19777 #: build/C/man7/udp.7:134
19778 msgid ""
19779 "System-wide UDP parameter settings can be accessed by files in the directory "
19780 "I</proc/sys/net/ipv4/>."
19781 msgstr ""
19782 "システム全体の UDP パラメータ設定には、 I</proc/sys/net/ipv4/> ディレクトリ内"
19783 "のファイルの読み書きでアクセスできる。"
19784
19785 #. type: TP
19786 #: build/C/man7/udp.7:134
19787 #, no-wrap
19788 msgid "I<udp_mem> (since Linux 2.6.25)"
19789 msgstr "I<udp_mem> (Linux 2.6.25 以降)"
19790
19791 #. type: Plain text
19792 #: build/C/man7/udp.7:138
19793 msgid ""
19794 "This is a vector of three integers governing the number of pages allowed for "
19795 "queueing by all UDP sockets."
19796 msgstr ""
19797 "これは 3 つの整数からなるベクトル値で、 UDP の全ソケットのキューで利用可能な"
19798 "ページ数を制御する。"
19799
19800 #. type: Plain text
19801 #: build/C/man7/udp.7:145
19802 msgid ""
19803 "Below this number of pages, UDP is not bothered about its memory appetite.  "
19804 "When the amount of memory allocated by UDP exceeds this number, UDP starts "
19805 "to moderate memory usage."
19806 msgstr ""
19807 "このページ数より少なければ、UDP はそのメモリ使用に関して 干渉されない。 UDP "
19808 "に割り当てられたメモリ総量がこの値を超過すると、 UDP はメモリ使用量を調整し始"
19809 "める。"
19810
19811 #. type: Plain text
19812 #: build/C/man7/udp.7:151
19813 msgid ""
19814 "This value was introduced to follow the format of I<tcp_mem> (see B<tcp>(7))."
19815 msgstr ""
19816 "この値は I<tcp_mem> の形式 (B<tcp>(7)  参照) と合わせるために導入された"
19817
19818 #. type: Plain text
19819 #: build/C/man7/udp.7:154
19820 msgid "Number of pages allowed for queueing by all UDP sockets."
19821 msgstr "UDP の全ソケットのキューで利用可能なページ数。"
19822
19823 #. type: Plain text
19824 #: build/C/man7/udp.7:158
19825 msgid ""
19826 "Defaults values for these three items are calculated at boot time from the "
19827 "amount of available memory."
19828 msgstr ""
19829 "これらの 3 つの値のデフォルト値は、 ブート時に利用可能なメモリ総量から計算さ"
19830 "れる。"
19831
19832 #. type: TP
19833 #: build/C/man7/udp.7:158
19834 #, no-wrap
19835 msgid "I<udp_rmem_min> (integer; default value: PAGE_SIZE; since Linux 2.6.25)"
19836 msgstr "I<udp_rmem_min> (integer; デフォルト値: PAGE_SIZE; Linux 2.6.25 以降)"
19837
19838 #. type: Plain text
19839 #: build/C/man7/udp.7:165
19840 msgid ""
19841 "Minimal size, in bytes, of receive buffers used by UDP sockets in "
19842 "moderation.  Each UDP socket is able to use the size for receiving data, "
19843 "even if total pages of UDP sockets exceed I<udp_mem> pressure."
19844 msgstr ""
19845 "メモリ使用量の調整中に、UDP ソケットが使用できる受信バッファの最小値 (バイト"
19846 "単位)。 UDP の全ソケットのページ使用量の合計が I<udp_mem> pressure を超過して"
19847 "いる場合であっても、 各 UDP ソケットはデータの受信にこのサイズ分だけは使用す"
19848 "ることができる。"
19849
19850 #. type: TP
19851 #: build/C/man7/udp.7:165
19852 #, no-wrap
19853 msgid "I<udp_wmem_min> (integer; default value: PAGE_SIZE; since Linux 2.6.25)"
19854 msgstr "I<udp_wmem_min> (integer; デフォルト値: PAGE_SIZE; Linux 2.6.25 以降)"
19855
19856 #. type: Plain text
19857 #: build/C/man7/udp.7:172
19858 msgid ""
19859 "Minimal size, in bytes, of send buffer used by UDP sockets in moderation.  "
19860 "Each UDP socket is able to use the size for sending data, even if total "
19861 "pages of UDP sockets exceed I<udp_mem> pressure."
19862 msgstr ""
19863 "メモリ使用量の調整中に、UDP ソケットが使用できる送信バッファの最小値 (バイト"
19864 "単位)。 UDP の全ソケットのページ使用量の合計が I<udp_mem> pressure を超過して"
19865 "いる場合であっても、 各 UDP ソケットはデータの送信にこのサイズ分だけは使用す"
19866 "ることができる。"
19867
19868 #. type: Plain text
19869 #: build/C/man7/udp.7:179
19870 msgid ""
19871 "To set or get a UDP socket option, call B<getsockopt>(2)  to read or "
19872 "B<setsockopt>(2)  to write the option with the option level argument set to "
19873 "B<IPPROTO_UDP>."
19874 msgstr ""
19875 "UDP ソケットオプションを設定または取得するには、 取得には B<getsockopt>(2)  "
19876 "を、設定には B<setsockopt>(2)  をオプションレベル引数に B<IPPROTO_UDP> を指定"
19877 "して呼び出す。"
19878
19879 #. type: TP
19880 #: build/C/man7/udp.7:179
19881 #, no-wrap
19882 msgid "B<UDP_CORK> (since Linux 2.5.44)"
19883 msgstr "B<UDP_CORK> (Linux 2.5.44 以降)"
19884
19885 #.  FIXME document UDP_ENCAP (new in kernel 2.5.67)
19886 #.  From include/linux/udp.h:
19887 #.  /* UDP encapsulation types */
19888 #.  #define UDP_ENCAP_ESPINUDP_NON_IKE      1 /* draft-ietf-ipsec-nat-t-ike-00/01 */
19889 #.  #define UDP_ENCAP_ESPINUDP      2 /* draft-ietf-ipsec-udp-encaps-06 */
19890 #.  #define UDP_ENCAP_L2TPINUDP     3 /* rfc2661 */
19891 #. type: Plain text
19892 #: build/C/man7/udp.7:192
19893 msgid ""
19894 "If this option is enabled, then all data output on this socket is "
19895 "accumulated into a single datagram that is transmitted when the option is "
19896 "disabled.  This option should not be used in code intended to be portable."
19897 msgstr ""
19898 "このオプションが指定されると、このソケットの全てのデータ出力は 一つのデータグ"
19899 "ラムに蓄積され、このオプションが無効化された時に 送信される。 このオプション"
19900 "は移植性を考慮したコードでは用いるべきではない。"
19901
19902 #. type: Plain text
19903 #: build/C/man7/udp.7:196
19904 msgid "These ioctls can be accessed using B<ioctl>(2).  The correct syntax is:"
19905 msgstr ""
19906 "以下に示す ioctl は B<ioctl>(2)  を使ってアクセスできる。 正しい文法は以下の"
19907 "通り。"
19908
19909 #. type: Plain text
19910 #: build/C/man7/udp.7:201
19911 #, no-wrap
19912 msgid ""
19913 "B<int>I< value>B<;>\n"
19914 "I<error>B< = ioctl(>I<udp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
19915 msgstr ""
19916 "B<int>I< value>B<;>\n"
19917 "I<error>B< = ioctl(>I<udp_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
19918
19919 #. type: TP
19920 #: build/C/man7/udp.7:203
19921 #, no-wrap
19922 msgid "B<FIONREAD> (B<SIOCINQ>)"
19923 msgstr "B<FIONREAD> (B<SIOCINQ>)"
19924
19925 #.  See http://www.securiteam.com/unixfocus/5KP0I15IKO.html
19926 #.  "GNUnet DoS (UDP Socket Unreachable)", 14 May 2006
19927 #. type: Plain text
19928 #: build/C/man7/udp.7:221
19929 msgid ""
19930 "Gets a pointer to an integer as argument.  Returns the size of the next "
19931 "pending datagram in the integer in bytes, or 0 when no datagram is pending.  "
19932 "B<Warning:> Using B<FIONREAD>, it is impossible to distinguish the case "
19933 "where no datagram is pending from the case where the next pending datagram "
19934 "contains zero bytes of data.  It is safer to use B<select>(2), B<poll>(2), "
19935 "or B<epoll>(7)  to distinguish these cases."
19936 msgstr ""
19937 "整数へのポインタを引き数に取り、そのポインタに、次の処理待ちのデータグラム"
19938 "の\n"
19939 "サイズをバイト単位で返す。処理待ちのデータグラムがない場合は 0 を返す。\n"
19940 "B<警告>: B<FIONREAD> を使った場合、処理待ちのデータグラムがない場合と、\n"
19941 "次の処理待ちデータグラムが 0 バイトのデータの場合を区別することができない。\n"
19942 "この両者を区別したい場合は、B<select>(2), B<poll>(2), B<epoll>(7) \n"
19943 "を使う方が安全である。"
19944
19945 #. type: TP
19946 #: build/C/man7/udp.7:221
19947 #, no-wrap
19948 msgid "B<TIOCOUTQ> (B<SIOCOUTQ>)"
19949 msgstr "B<TIOCOUTQ> (B<SIOCOUTQ>)"
19950
19951 #. type: Plain text
19952 #: build/C/man7/udp.7:225
19953 msgid ""
19954 "Returns the number of data bytes in the local send queue.  Only supported "
19955 "with Linux 2.4 and above."
19956 msgstr ""
19957 "ローカル送信キューにあるデータサイズをバイト単位で返す。 Linux 2.4 以上でのみ"
19958 "対応している。"
19959
19960 #. type: Plain text
19961 #: build/C/man7/udp.7:231
19962 msgid ""
19963 "In addition all ioctls documented in B<ip>(7)  and B<socket>(7)  are "
19964 "supported."
19965 msgstr ""
19966 "さらに、 B<ip>(7)  と B<socket>(7)  で述べられている全ての ioctl も対応してい"
19967 "る。"
19968
19969 #. type: Plain text
19970 #: build/C/man7/udp.7:237
19971 msgid ""
19972 "All errors documented for B<socket>(7)  or B<ip>(7)  may be returned by a "
19973 "send or receive on a UDP socket."
19974 msgstr ""
19975 "B<socket>(7)  や B<ip>(7)  に記述されている全てのエラーが、 UDP ソケットの送"
19976 "受信で返される可能性がある。"
19977
19978 #. type: TP
19979 #: build/C/man7/udp.7:237 build/C/man7/unix.7:323
19980 #, no-wrap
19981 msgid "B<ECONNREFUSED>"
19982 msgstr "B<ECONNREFUSED>"
19983
19984 #. type: Plain text
19985 #: build/C/man7/udp.7:241
19986 msgid ""
19987 "No receiver was associated with the destination address.  This might be "
19988 "caused by a previous packet sent over the socket."
19989 msgstr ""
19990 "行き先アドレスに関連づけられている受信者がいない。 これは以前のパケットがその"
19991 "パケットを 上書き送信してしまっているからであることが多い。"
19992
19993 #.  .SH CREDITS
19994 #.  This man page was written by Andi Kleen.
19995 #. type: Plain text
19996 #: build/C/man7/udp.7:246
19997 msgid "B<IP_RECVERR> is a new feature in Linux 2.2."
19998 msgstr "B<IP_RECVERR> は Linux 2.2 の新しい機能である。"
19999
20000 #. type: Plain text
20001 #: build/C/man7/udp.7:251
20002 msgid "B<ip>(7), B<raw>(7), B<socket>(7), B<udplite>(7)"
20003 msgstr "B<ip>(7), B<raw>(7), B<socket>(7), B<udplite>(7)"
20004
20005 #. type: Plain text
20006 #: build/C/man7/udp.7:253
20007 msgid "RFC\\ 768 for the User Datagram Protocol."
20008 msgstr "RFC\\ 768 : User Datagram Protocol"
20009
20010 #. type: Plain text
20011 #: build/C/man7/udp.7:255
20012 msgid "RFC\\ 1122 for the host requirements."
20013 msgstr "RFC\\ 1122 : ホストの必要条件"
20014
20015 #. type: Plain text
20016 #: build/C/man7/udp.7:257
20017 msgid "RFC\\ 1191 for a description of path MTU discovery."
20018 msgstr "RFC\\ 1191 : path MTU discovery の記述"
20019
20020 #. type: TH
20021 #: build/C/man7/udplite.7:25
20022 #, no-wrap
20023 msgid "UDPLITE"
20024 msgstr "UDPLITE"
20025
20026 #. type: Plain text
20027 #: build/C/man7/udplite.7:28
20028 msgid "udplite - Lightweight User Datagram Protocol"
20029 msgstr "udplite - 軽量なユーザーデータグラムプロトコル"
20030
20031 #. type: Plain text
20032 #: build/C/man7/udplite.7:36
20033 msgid "B<sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);>"
20034 msgstr "B<sockfd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDPLITE);>"
20035
20036 #. type: Plain text
20037 #: build/C/man7/udplite.7:39
20038 msgid ""
20039 "This is an implementation of the Lightweight User Datagram Protocol (UDP-"
20040 "Lite), as described in RFC\\ 3828."
20041 msgstr ""
20042 "これは RFC\\ 3828 に書かれている軽量なユーザーデータグラムプロトコル "
20043 "(Lightweight User Datagram Protocol; UDP-Lite) の実装である。"
20044
20045 #. type: Plain text
20046 #: build/C/man7/udplite.7:45
20047 msgid ""
20048 "UDP-Lite is an extension of UDP (RFC\\ 768) to support variable-length "
20049 "checksums.  This has advantages for some types of multimedia transport that "
20050 "may be able to make use of slightly damaged datagrams, rather than having "
20051 "them discarded by lower-layer protocols."
20052 msgstr ""
20053 "UDP-Lite は UDP (RFC\\ 768) の拡張で、可変長のチェックサムをサポートしてい"
20054 "る。 このプロトコルが効果を発揮するのは、少しだけ壊れたデータグラムがあった場"
20055 "合に、 そのデータグラムを下位レイヤーのプロトコルに廃棄させるのではなく、 そ"
20056 "れを利用することができるような、ある種のマルチメディア転送においてである。"
20057
20058 #. type: Plain text
20059 #: build/C/man7/udplite.7:51
20060 msgid ""
20061 "The variable-length checksum coverage is set via a B<setsockopt>(2)  "
20062 "option.  If this option is not set, the only difference to UDP is in using a "
20063 "different IP protocol identifier (IANA number 136)."
20064 msgstr ""
20065 "可変長のチェックサムの対象範囲は B<setsockopt>(2)  オプション経由で設定され"
20066 "る。 このオプションが設定されていない場合、UDP と異なるのは 違う IP プロトコ"
20067 "ル識別子 (IANA 番号 136) を使用する点だけである。"
20068
20069 #. type: Plain text
20070 #: build/C/man7/udplite.7:56
20071 msgid ""
20072 "The UDP-Lite implementation is a full extension of B<udp>(7), i.e., it "
20073 "shares the same API and API behaviour, and in addition offers two socket "
20074 "options to control the checksum coverage."
20075 msgstr ""
20076 "UDP-Lite の実装は B<udp>(7)  の完全な拡張、すなわち API と API の動作は同じで"
20077 "ある。 これに加えて、2 つのソケットオプションがチェックサムの対象範囲を 制御"
20078 "するために提供されている。"
20079
20080 #. type: Plain text
20081 #: build/C/man7/udplite.7:65
20082 msgid ""
20083 "UDP-Litev4 uses the I<sockaddr_in> address format described in B<ip>(7).  "
20084 "UDP-Litev6 uses the I<sockaddr_in6> address format described in B<ipv6>(7)."
20085 msgstr ""
20086 "UDP-Litev4 は B<ip>(7)  で説明されている I<sockaddr_in> アドレスを使用する。 "
20087 "UDP-Litev6 は B<ipv6>(7)  で説明されている I<sockaddr_in6> アドレスを使用す"
20088 "る。"
20089
20090 #. type: Plain text
20091 #: build/C/man7/udplite.7:78
20092 msgid ""
20093 "To set or get a UDP-Lite socket option, call B<getsockopt>(2)  to read or "
20094 "B<setsockopt>(2)  to write the option with the option level argument set to "
20095 "B<IPPROTO_UDPLITE>.  In addition, all B<IPPROTO_UDP> socket options are "
20096 "valid on a UDP-Lite socket.  See B<udp>(7)  for more information."
20097 msgstr ""
20098 "UDP-Lite のソケットオプションを設定/取得するには、 オプションレベル引き数に "
20099 "B<IPPROTO_UDPLITE> を指定して、取得時には B<getsockopt>(2)  を、設定時には "
20100 "B<setsockopt>(2)  を呼び出す。さらに、全ての B<IPPROTO_UDP> のソケットオプ"
20101 "ションが UDP-Lite ソケットでも使用できる。 詳細は B<udp>(7)  を参照のこと。"
20102
20103 #. type: Plain text
20104 #: build/C/man7/udplite.7:80
20105 msgid "The following two options are specific to UDP-Lite."
20106 msgstr "以下の 2 つが UDP-Lite に固有のオプションである。"
20107
20108 #. type: TP
20109 #: build/C/man7/udplite.7:80
20110 #, no-wrap
20111 msgid "B<UDPLITE_SEND_CSCOV>"
20112 msgstr "B<UDPLITE_SEND_CSCOV>"
20113
20114 #. type: Plain text
20115 #: build/C/man7/udplite.7:85
20116 msgid ""
20117 "This option sets the sender checksum coverage and takes an I<int> as "
20118 "argument, with a checksum coverage value in the range 0..2^16-1."
20119 msgstr ""
20120 "このオプションは送信側のチェックサムの対象範囲を設定する。 I<int> 型を引き数"
20121 "として取り、設定可能な値の範囲は 0 から 2^16-1 までである。"
20122
20123 #. type: Plain text
20124 #: build/C/man7/udplite.7:89
20125 msgid ""
20126 "A value of 0 means that the entire datagram is always covered.  Values from "
20127 "1-7 are illegal (RFC\\ 3828, 3.1) and are rounded up to the minimum coverage "
20128 "of 8."
20129 msgstr ""
20130 "値 0 はデータグラム全体が常にチェックサムの対象となることを意味する。 値 1〜"
20131 "7 は不正であり (RFC\\ 3828 の 3.1 章)、範囲の設定として最小値である 8 に切り"
20132 "上げられる。"
20133
20134 #. type: Plain text
20135 #: build/C/man7/udplite.7:95
20136 msgid ""
20137 "With regard to IPv6 jumbograms (RFC\\ 2675), the UDP-Litev6 checksum "
20138 "coverage is limited to the first 2^16-1 octets, as per RFC\\ 3828, 3.5.  "
20139 "Higher values are therefore silently truncated to 2^16-1.  If in doubt, the "
20140 "current coverage value can always be queried using B<getsockopt>(2)."
20141 msgstr ""
20142 "IPv6 の jumbograms (巨大なデータグラム; RFC\\ 2675) の場合には、 UDP-Litev6 "
20143 "のチェックサムの対象範囲は、RFC\\ 3828 の 3.5 章にあるように、 先頭から "
20144 "2^16-1 オクテットまでに限定される。 そのため、それより大きな値は 2^16-1 に"
20145 "黙って切り詰められる。 現在の対象範囲の値を知りたければ、いつでも "
20146 "B<getsockopt>(2)  を使って値を問い合わせることができる。"
20147
20148 #. type: TP
20149 #: build/C/man7/udplite.7:95
20150 #, no-wrap
20151 msgid "B<UDPLITE_RECV_CSCOV>"
20152 msgstr "B<UDPLITE_RECV_CSCOV>"
20153
20154 #. type: Plain text
20155 #: build/C/man7/udplite.7:106
20156 msgid ""
20157 "This is the receiver-side analogue and uses the same argument format and "
20158 "value range as B<UDPLITE_SEND_CSCOV>.  This option is not required to enable "
20159 "traffic with partial checksum coverage.  Its function is that of a traffic "
20160 "filter: when enabled, it instructs the kernel to drop all packets which have "
20161 "a coverage I<less> than the specified coverage value."
20162 msgstr ""
20163 "これは受信側のチェックサムの対象範囲を設定するもので、 使用される引き数形式と"
20164 "値の範囲は B<UDPLITE_SEND_CSCOV> と同じである。 このオプションは、部分的な"
20165 "チェックサム対象範囲を持つトラフィックを 有効にするのに必要なわけではなく、ト"
20166 "ラフィックフィルターとして機能する。 このオプションが有効にすると、カーネルは"
20167 "指定されたチェックサム対象範囲 よりも「短かい」対象範囲を持つパケットを全て廃"
20168 "棄するようになる。"
20169
20170 #.  SO_NO_CHECK exists and is supported by UDPv4, but is
20171 #.  commented out in socket(7), hence also commented out here
20172 #. .PP
20173 #. Since UDP-Lite mandates checksums, checksumming can not be disabled
20174 #. via the
20175 #. .B SO_NO_CHECK
20176 #. option from
20177 #. .BR socket (7).
20178 #. type: Plain text
20179 #: build/C/man7/udplite.7:119
20180 msgid ""
20181 "When the value of B<UDPLITE_RECV_CSCOV> exceeds the actual packet coverage, "
20182 "incoming packets are silently dropped, but may generate a warning message in "
20183 "the system log."
20184 msgstr ""
20185 "B<UDPLITE_RECV_CSCOV> の値が実際のパケットのチェックサム対象範囲よりも大きい"
20186 "場合、 受信したパケットは黙って廃棄される。 ただし、システムログに対して警告"
20187 "メッセージが生成されるかもしれない。"
20188
20189 #. type: Plain text
20190 #: build/C/man7/udplite.7:124
20191 msgid ""
20192 "All errors documented for B<udp>(7)  may be returned.  UDP-Lite does not add "
20193 "further errors."
20194 msgstr ""
20195 "B<udp>(7)  について書かれている全てのエラーは返る可能性がある。 UDP-Lite 自体"
20196 "は新たなエラーは追加していない。"
20197
20198 #.  FIXME . remove this section once glibc supports UDP-Lite
20199 #. type: Plain text
20200 #: build/C/man7/udplite.7:127
20201 msgid "Where glibc support is missing, the following definitions are needed:"
20202 msgstr "glibc によるサポートがない場合は、以下の定義を行う必要がある。"
20203
20204 #.  The following two are defined in the kernel in linux/net/udplite.h
20205 #. type: Plain text
20206 #: build/C/man7/udplite.7:134
20207 #, no-wrap
20208 msgid ""
20209 "#define IPPROTO_UDPLITE     136\n"
20210 "#define UDPLITE_SEND_CSCOV  10\n"
20211 "#define UDPLITE_RECV_CSCOV  11\n"
20212 msgstr ""
20213 "#define IPPROTO_UDPLITE     136\n"
20214 "#define UDPLITE_SEND_CSCOV  10\n"
20215 "#define UDPLITE_RECV_CSCOV  11\n"
20216
20217 #. type: Plain text
20218 #: build/C/man7/udplite.7:139
20219 msgid "I</proc/net/snmp> - basic UDP-Litev4 statistics counters."
20220 msgstr "I</proc/net/snmp> - UDP-Litev4 の基本的な統計情報カウンター。"
20221
20222 #. type: Plain text
20223 #: build/C/man7/udplite.7:142
20224 msgid "I</proc/net/snmp6> - basic UDP-Litev6 statistics counters."
20225 msgstr "I</proc/net/snmp6> - UDP-Litev6 の基本的な統計情報カウンター。"
20226
20227 #. type: Plain text
20228 #: build/C/man7/udplite.7:144
20229 msgid "UDP-Litev4/v6 first appeared in Linux 2.6.20."
20230 msgstr "UDP-Litev4/v6 は Linux 2.6.20 で初めて登場した。"
20231
20232 #. type: Plain text
20233 #: build/C/man7/udplite.7:149
20234 msgid "B<ip>(7), B<ipv6>(7), B<socket>(7), B<udp>(7)"
20235 msgstr "B<ip>(7), B<ipv6>(7), B<socket>(7), B<udp>(7)"
20236
20237 #. type: Plain text
20238 #: build/C/man7/udplite.7:151
20239 msgid "RFC\\ 3828 for the Lightweight User Datagram Protocol (UDP-Lite)"
20240 msgstr "RFC\\ 3828 for the Lightweight User Datagram Protocol (UDP-Lite)"
20241
20242 #. type: Plain text
20243 #: build/C/man7/udplite.7:153
20244 msgid "I<Documentation/networking/udplite.txt>"
20245 msgstr "I<Documentation/networking/udplite.txt>"
20246
20247 #. type: TH
20248 #: build/C/man7/unix.7:15
20249 #, no-wrap
20250 msgid "UNIX"
20251 msgstr "UNIX"
20252
20253 #. type: TH
20254 #: build/C/man7/unix.7:15
20255 #, no-wrap
20256 msgid "2102-04-16"
20257 msgstr "2102-04-16"
20258
20259 #. type: Plain text
20260 #: build/C/man7/unix.7:19
20261 msgid "unix, AF_UNIX, AF_LOCAL - Sockets for local interprocess communication"
20262 msgstr "unix, AF_UNIX, AF_LOCAL - ローカルな プロセス間通信用のソケット"
20263
20264 #. type: Plain text
20265 #: build/C/man7/unix.7:23
20266 msgid "B<#include E<lt>sys/un.hE<gt>>"
20267 msgstr "B<#include E<lt>sys/un.hE<gt>>"
20268
20269 #. type: Plain text
20270 #: build/C/man7/unix.7:25
20271 msgid "I<unix_socket>B< = socket(AF_UNIX, type, 0);>"
20272 msgstr "I<unix_socket>B< = socket(AF_UNIX, type, 0);>"
20273
20274 #. type: Plain text
20275 #: build/C/man7/unix.7:27
20276 msgid "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>"
20277 msgstr "I<error>B< = socketpair(AF_UNIX, type, 0, int *>I<sv>B<);>"
20278
20279 #. type: Plain text
20280 #: build/C/man7/unix.7:38
20281 msgid ""
20282 "The B<AF_UNIX> (also known as B<AF_LOCAL>)  socket family is used to "
20283 "communicate between processes on the same machine efficiently.  "
20284 "Traditionally, UNIX domain sockets can be either unnamed, or bound to a file "
20285 "system pathname (marked as being of type socket).  Linux also supports an "
20286 "abstract namespace which is independent of the file system."
20287 msgstr ""
20288 "B<AF_UNIX> (B<AF_LOCAL> とも言われる) ソケットファミリーは、同じマシン上で\n"
20289 "プロセス同士が 効率的に通信するために用いられる。伝統的に、UNIX ドメイン\n"
20290 "ソケットは、名前なしにもできるし、 (ソケット型であると印のついた) ファイル\n"
20291 "システムのパス名に 結び付けることもできる。さらに Linux では、ファイル\n"
20292 "システムに依存しない抽象名前空間 (abstract namespace) もサポートしている。"
20293
20294 #. type: Plain text
20295 #: build/C/man7/unix.7:50
20296 msgid ""
20297 "Valid types are: B<SOCK_STREAM>, for a stream-oriented socket and "
20298 "B<SOCK_DGRAM>, for a datagram-oriented socket that preserves message "
20299 "boundaries (as on most UNIX implementations, UNIX domain datagram sockets "
20300 "are always reliable and don't reorder datagrams); and (since Linux 2.6.4)  "
20301 "B<SOCK_SEQPACKET>, for a connection-oriented socket that preserves message "
20302 "boundaries and delivers messages in the order that they were sent."
20303 msgstr ""
20304 "有効なタイプを以下に示す。 B<SOCK_STREAM> はストリーム指向のソケットであ"
20305 "る。\n"
20306 "B<SOCK_DGRAM> はメッセージ境界を保存するデータグラム指向のソケットである\n"
20307 "(ほとんどの UNIX の実装では、UNIX ドメイン・データグラム・ソケットは 常に\n"
20308 "信頼でき、データグラムの並び替えは行わない)。 \n"
20309 "B<SOCK_SEQPACKET> はメッセージ境界を保存し、送信された順序でメッセージを\n"
20310 "届ける接続指向ソケット である (Linux 2.6.4 以降で利用できる)。"
20311
20312 #. type: Plain text
20313 #: build/C/man7/unix.7:53
20314 msgid ""
20315 "UNIX domain sockets support passing file descriptors or process credentials "
20316 "to other processes using ancillary data."
20317 msgstr ""
20318 "UNIX ドメインソケットでは、補助データを使って ファイルディスクリプタや\n"
20319 "プロセスの信任状 (credential) を 送受信することもできる。"
20320
20321 #. type: Plain text
20322 #: build/C/man7/unix.7:55
20323 msgid "A UNIX domain socket address is represented in the following structure:"
20324 msgstr "UNIX ドメインソケットのアドレスは以下の構造体で表現される。"
20325
20326 #. type: Plain text
20327 #: build/C/man7/unix.7:59
20328 #, no-wrap
20329 msgid "#define UNIX_PATH_MAX    108\n"
20330 msgstr "#define UNIX_PATH_MAX    108\n"
20331
20332 #. type: Plain text
20333 #: build/C/man7/unix.7:64
20334 #, no-wrap
20335 msgid ""
20336 "struct sockaddr_un {\n"
20337 "    sa_family_t sun_family;               /* AF_UNIX */\n"
20338 "    char        sun_path[UNIX_PATH_MAX];  /* pathname */\n"
20339 "};\n"
20340 msgstr ""
20341 "struct sockaddr_un {\n"
20342 "    sa_family_t sun_family;               /* AF_UNIX */\n"
20343 "    char        sun_path[UNIX_PATH_MAX];  /* pathname */\n"
20344 "};\n"
20345
20346 #. type: Plain text
20347 #: build/C/man7/unix.7:70
20348 msgid "I<sun_family> always contains B<AF_UNIX>."
20349 msgstr "I<sun_family> には必ず B<AF_UNIX> が入っている。"
20350
20351 #. type: Plain text
20352 #: build/C/man7/unix.7:72
20353 msgid "Three types of address are distinguished in this structure:"
20354 msgstr "この構造体では 3 種類のアドレスが区別される。"
20355
20356 #. type: Plain text
20357 #: build/C/man7/unix.7:87
20358 msgid ""
20359 "I<pathname>: a UNIX domain socket can be bound to a null-terminated file "
20360 "system pathname using B<bind>(2).  When the address of the socket is "
20361 "returned by B<getsockname>(2), B<getpeername>(2), and B<accept>(2), its "
20362 "length is I<offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1>, "
20363 "and I<sun_path> contains the null-terminated pathname."
20364 msgstr ""
20365 "I<pathname (パス名)>: B<bind>(2) を使って、UNIX ドメインソケットを NULL 終"
20366 "端\n"
20367 "されたファイルシステム上の パス名に結び付けることができる。\n"
20368 "B<getsockname>(2), B<getpeername>(2), B<accept>(2) がソケットのアドレスを\n"
20369 "返す際には、その長さは \n"
20370 "I<offsetof(struct sockaddr_un, sun_path) + strlen(sun_path) + 1>\n"
20371 "であり、 I<sun_path> に NULL 終端されたパス名が格納される。"
20372
20373 #.  There is quite some variation across implementations: FreeBSD
20374 #.  says the length is 16 bytes, HP-UX 11 says it's zero bytes.
20375 #. type: Plain text
20376 #: build/C/man7/unix.7:107
20377 msgid ""
20378 "I<unnamed>: A stream socket that has not been bound to a pathname using "
20379 "B<bind>(2)  has no name.  Likewise, the two sockets created by B<socketpair>"
20380 "(2)  are unnamed.  When the address of an unnamed socket is returned by "
20381 "B<getsockname>(2), B<getpeername>(2), and B<accept>(2), its length is "
20382 "I<sizeof(sa_family_t)>, and I<sun_path> should not be inspected."
20383 msgstr ""
20384 "I<unnamed (名前なし)>: B<bind>(2)  を使ってパス名に結び付けることができないス"
20385 "トリーム型のソケットは 名前を持たない。同様に、 B<socketpair>(2)  で作成され"
20386 "る 2 つのソケットも名前を持たない。 B<getsockname>(2), B<getpeername>(2), "
20387 "B<accept>(2)  が名前なしのソケットのアドレスを返す際には、 その長さは "
20388 "I<sizeof(sa_family_t)> であり、 I<sun_path> は検査すべきではない。"
20389
20390 #. type: Plain text
20391 #: build/C/man7/unix.7:133
20392 msgid ""
20393 "I<abstract>: an abstract socket address is distinguished by the fact that "
20394 "I<sun_path[0]> is a null byte (\\(aq\\e0\\(aq).  The socket's address in "
20395 "this namespace is given by the additional bytes in I<sun_path> that are "
20396 "covered by the specified length of the address structure.  (Null bytes in "
20397 "the name have no special significance.)  The name has no connection with "
20398 "file system pathnames.  When the address of an abstract socket is returned "
20399 "by B<getsockname>(2), B<getpeername>(2), and B<accept>(2), the returned "
20400 "I<addrlen> is greater than I<sizeof(sa_family_t)> (i.e., greater than 2), "
20401 "and the name of the socket is contained in the first I<(addrlen - sizeof"
20402 "(sa_family_t))> bytes of I<sun_path>.  The abstract socket namespace is a "
20403 "nonportable Linux extension."
20404 msgstr ""
20405 "I<abstract (抽象)>: 抽象ソケットアドレスは、 I<sun_path[0]> が NULL バイト\n"
20406 "(\\(aq\\e0\\(aq) であることで区別される。この名前空間におけるソケットのアドレ"
20407 "ス\n"
20408 "は、 I<sun_path> の残りのバイトの、アドレス構造体の指定された長さの範囲で表"
20409 "さ\n"
20410 "れる (名前中の NULL バイトには特別な意味はない)。この名前はファイルシステム"
20411 "の\n"
20412 "パス名とは何の関係もない。 B<getsockname>(2), B<getpeername>(2),\n"
20413 "B<accept>(2) が抽象ソケットのアドレスを返す際には、返される I<addrlen> は\n"
20414 "I<sizeof(sa_family_t)> より大きく (つまり 2 より大きく)、ソケットの名前は\n"
20415 "I<sun_path> の最初の I<(addrlen - sizeof(sa_family_t))> バイトに格納され"
20416 "る。\n"
20417 "ソケットの抽象名前空間は Linux による拡張であり、移植性はない。"
20418
20419 #. type: Plain text
20420 #: build/C/man7/unix.7:146
20421 msgid ""
20422 "For historical reasons these socket options are specified with a "
20423 "B<SOL_SOCKET> type even though they are B<AF_UNIX> specific.  They can be "
20424 "set with B<setsockopt>(2)  and read with B<getsockopt>(2)  by specifying "
20425 "B<SOL_SOCKET> as the socket family."
20426 msgstr ""
20427 "歴史的な理由により、これらのオプションは たとえ B<AF_UNIX> 固有のオプションで"
20428 "あっても B<SOL_SOCKET> 型で指定する。 ソケットファミリーとして B<SOL_SOCKET> "
20429 "を指定すると、 B<setsockopt>(2)  でオプションが設定でき、 B<getsockopt>(2)  "
20430 "で取得ができる。"
20431
20432 #. type: TP
20433 #: build/C/man7/unix.7:146
20434 #, no-wrap
20435 msgid "B<SO_PASSCRED>"
20436 msgstr "B<SO_PASSCRED>"
20437
20438 #. type: Plain text
20439 #: build/C/man7/unix.7:153
20440 msgid ""
20441 "Enables the receiving of the credentials of the sending process in an "
20442 "ancillary message.  When this option is set and the socket is not yet "
20443 "connected a unique name in the abstract namespace will be generated "
20444 "automatically.  Expects an integer boolean flag."
20445 msgstr ""
20446 "送信プロセスの補助メッセージで信任状を受信できるようにする。このオプション"
20447 "が\n"
20448 "セットされていて、まだソケットが接続されていないと、抽象名前空間に他と重な"
20449 "ら\n"
20450 "ない名前が自動的に生成される。ブール整数値のフラグを取る。"
20451
20452 #. type: SS
20453 #: build/C/man7/unix.7:153
20454 #, no-wrap
20455 msgid "Autobind Feature"
20456 msgstr "自動バインド (autobind) 機能"
20457
20458 #.  i.e. sizeof(short)
20459 #. type: Plain text
20460 #: build/C/man7/unix.7:173
20461 msgid ""
20462 "If a B<bind>(2)  call specifies I<addrlen> as I<sizeof(sa_family_t)>, or the "
20463 "B<SO_PASSCRED> socket option was specified for a socket that was not "
20464 "explicitly bound to an address, then the socket is autobound to an abstract "
20465 "address.  The address consists of a null byte followed by 5 bytes in the "
20466 "character set I<[0-9a-f]>.  Thus, there is a limit of 2^20 autobind "
20467 "addresses.  (From Linux 2.1.15, when the autobind feature was added, 8 bytes "
20468 "were used, and the limit was thus 2^32 autobind addresses.  The change to 5 "
20469 "bytes came in Linux 2.3.15.)"
20470 msgstr ""
20471 "B<bind>(2) 呼び出しで I<sizeof(sa_family_t)> として I<addrlen> を指定する"
20472 "か、\n"
20473 "アドレスに明示的にバインドされていないソケットに対して\n"
20474 "B<SO_PASSCRED> ソケットオプションが指定されていた場合、\n"
20475 "そのソケットは抽象アドレスに自動的にバインドされる。\n"
20476 "このアドレスは、1 個の NULL バイトの後に、文字集合 I<[0-9a-f]> のバイトが\n"
20477 "5 個続く形式である。したがって、自動的にバインドされるアドレス数には\n"
20478 "2^20 個という上限が存在する。\n"
20479 "(Linux 2.1.15 以降で、自動バインド機能が追加されたときには、\n"
20480 "8 バイトが使われており、自動バインドアドレス数の上限は 2^32 であった。\n"
20481 "Linux 2.3.15 で 5 バイトに変更された。)"
20482
20483 #. type: Plain text
20484 #: build/C/man7/unix.7:176
20485 msgid ""
20486 "The following paragraphs describe domain-specific details and unsupported "
20487 "features of the sockets API for UNIX domain sockets on Linux."
20488 msgstr ""
20489 "この節では、Linux の UNIX ドメインソケットでの、ドメイン固有の詳細仕様と\n"
20490 "ソケット API でサポートされていない機能について説明する。"
20491
20492 #. type: Plain text
20493 #: build/C/man7/unix.7:184
20494 msgid ""
20495 "UNIX domain sockets do not support the transmission of out-of-band data (the "
20496 "B<MSG_OOB> flag for B<send>(2)  and B<recv>(2))."
20497 msgstr ""
20498 "UNIX ドメインソケットでは、帯域外データ (out-of-band data) の 送信\n"
20499 "(B<send>(2) と B<recv>(2) の B<MSG_OOB> フラグ) はサポートされていない。"
20500
20501 #. type: Plain text
20502 #: build/C/man7/unix.7:189
20503 msgid ""
20504 "The B<send>(2)  B<MSG_MORE> flag is not supported by UNIX domain sockets."
20505 msgstr ""
20506 "B<send>(2) B<MSG_MORE> フラグは UNIX ドメインソケットではサポートされていな"
20507 "い。"
20508
20509 #. type: Plain text
20510 #: build/C/man7/unix.7:197
20511 msgid ""
20512 "The use of B<MSG_TRUNC> in the I<flags> argument of B<recv>(2)  is not "
20513 "supported by UNIX domain sockets."
20514 msgstr ""
20515 "B<recv>(2) の I<flags> 引き数での B<MSG_TRUNC> の使用は UNIX ドメイン\n"
20516 "ソケットではサポートされていない。"
20517
20518 #. type: Plain text
20519 #: build/C/man7/unix.7:209
20520 msgid ""
20521 "The B<SO_SNDBUF> socket option does have an effect for UNIX domain sockets, "
20522 "but the B<SO_RCVBUF> option does not.  For datagram sockets, the "
20523 "B<SO_SNDBUF> value imposes an upper limit on the size of outgoing "
20524 "datagrams.  This limit is calculated as the doubled (see B<socket>(7))  "
20525 "option value less 32 bytes used for overhead."
20526 msgstr ""
20527 "B<SO_SNDBUF> ソケットオプションは UNIX ドメインソケットで効果を持つが、\n"
20528 "B<SO_RCVBUF> は効果がない。 データグラム・ソケットでは、 B<SO_SNDBUF> の値"
20529 "が\n"
20530 "出力データグラムの上限サイズとなる。 実際の上限値は、 B<SO_SNDBUF> オプショ"
20531 "ン\n"
20532 "として設定された値の 2倍 (B<socket>(7) 参照) からオーバヘッドとして使用され"
20533 "る\n"
20534 "32 バイトを引いた値となる。"
20535
20536 #. type: SS
20537 #: build/C/man7/unix.7:209
20538 #, no-wrap
20539 msgid "Ancillary Messages"
20540 msgstr "補助メッセージ"
20541
20542 #. type: Plain text
20543 #: build/C/man7/unix.7:231
20544 msgid ""
20545 "Ancillary data is sent and received using B<sendmsg>(2)  and B<recvmsg>(2).  "
20546 "For historical reasons the ancillary message types listed below are "
20547 "specified with a B<SOL_SOCKET> type even though they are B<AF_UNIX> "
20548 "specific.  To send them set the I<cmsg_level> field of the struct I<cmsghdr> "
20549 "to B<SOL_SOCKET> and the I<cmsg_type> field to the type.  For more "
20550 "information see B<cmsg>(3)."
20551 msgstr ""
20552 "補助データを送受するには、 B<sendmsg>(2)  や B<recvmsg>(2)  を使用する。 歴史"
20553 "的な理由により、以下に示す補助メッセージの型は たとえ B<AF_UNIX> 固有のもので"
20554 "あっても B<SOL_SOCKET> 型で指定する。 これらを送るには、構造体 I<cmsghdr> の "
20555 "I<cmsg_level> フィールドに B<SOL_SOCKET> をセットし、 I<cmsg_type> フィールド"
20556 "にタイプをセットする。 詳細は B<cmsg>(3)  を見よ。"
20557
20558 #. type: TP
20559 #: build/C/man7/unix.7:231
20560 #, no-wrap
20561 msgid "B<SCM_RIGHTS>"
20562 msgstr "B<SCM_RIGHTS>"
20563
20564 #. type: Plain text
20565 #: build/C/man7/unix.7:237
20566 msgid ""
20567 "Send or receive a set of open file descriptors from another process.  The "
20568 "data portion contains an integer array of the file descriptors.  The passed "
20569 "file descriptors behave as though they have been created with B<dup>(2)."
20570 msgstr ""
20571 "他のプロセスでオープンされたファイルディスクリプタのセットを送受信する。 デー"
20572 "タ部分にファイルディスクリプタの整数配列が入っている。 渡されたファイルディス"
20573 "クリプタは、あたかも B<dup>(2)  で生成されたかのように振る舞う。"
20574
20575 #. type: TP
20576 #: build/C/man7/unix.7:237
20577 #, no-wrap
20578 msgid "B<SCM_CREDENTIALS>"
20579 msgstr "B<SCM_CREDENTIALS>"
20580
20581 #. type: Plain text
20582 #: build/C/man7/unix.7:247
20583 msgid ""
20584 "Send or receive UNIX credentials.  This can be used for authentication.  The "
20585 "credentials are passed as a I<struct ucred> ancillary message.  Thus "
20586 "structure is defined in I<E<lt>sys/socket.hE<gt>> as follows:"
20587 msgstr ""
20588 "UNIX 信任状を送受信する。これは認証に用いることができる。\n"
20589 "信任状は I<struct ucred> の補助メッセージとして渡される。\n"
20590 "この構造体は I<E<lt>sys/socket.hE<gt>> で以下のように定義されている。"
20591
20592 #. type: Plain text
20593 #: build/C/man7/unix.7:255
20594 #, no-wrap
20595 msgid ""
20596 "struct ucred {\n"
20597 "    pid_t pid;    /* process ID of the sending process */\n"
20598 "    uid_t uid;    /* user ID of the sending process */\n"
20599 "    gid_t gid;    /* group ID of the sending process */\n"
20600 "};\n"
20601 msgstr ""
20602 "struct ucred {\n"
20603 "    pid_t pid;    /* process ID of the sending process */\n"
20604 "    uid_t uid;    /* user ID of the sending process */\n"
20605 "    gid_t gid;    /* group ID of the sending process */\n"
20606 "};\n"
20607
20608 #. type: Plain text
20609 #: build/C/man7/unix.7:264
20610 msgid ""
20611 "Since glibc 2.8, the B<_GNU_SOURCE> feature test macro must be defined "
20612 "(before including I<any> header files) in order to obtain the definition of "
20613 "this structure."
20614 msgstr ""
20615 "glibc 2.8 以降では、この構造体の定義を得るためには\n"
20616 "(I<どの>ヘッダファイルをインクルードするよりも前に)\n"
20617 "機能検査マクロ B<_GNU_SOURCE> を定義しなければならない。"
20618
20619 #. type: Plain text
20620 #: build/C/man7/unix.7:280
20621 msgid ""
20622 "The credentials which the sender specifies are checked by the kernel.  A "
20623 "process with effective user ID 0 is allowed to specify values that do not "
20624 "match its own.  The sender must specify its own process ID (unless it has "
20625 "the capability B<CAP_SYS_ADMIN>), its user ID, effective user ID, or saved "
20626 "set-user-ID (unless it has B<CAP_SETUID>), and its group ID, effective group "
20627 "ID, or saved set-group-ID (unless it has B<CAP_SETGID>).  To receive a "
20628 "I<struct ucred> message the B<SO_PASSCRED> option must be enabled on the "
20629 "socket."
20630 msgstr ""
20631 "送信側が指定した信任状は、カーネルがチェックする。 実効ユーザー ID が 0 のプ"
20632 "ロセスには、 自分自身以外の値を指定する事が許される。 送信側は以下の 3 つを指"
20633 "定しなければならない。 1) 自分自身のプロセス ID (B<CAP_SYS_ADMIN> 権限を持っ"
20634 "ていない場合)、 2) 自分自身のユーザー ID あるいは実効ユーザー ID か保存 set-"
20635 "user-ID (B<CAP_SETUID> 権限を持っていない場合)、 3) 自分自身のグループ ID あ"
20636 "るいは実行グループ ID か保存 set-group-ID (B<CAP_SETGID> を持っていない場"
20637 "合)。 I<struct ucred> メッセージを受信するためには、ソケットに対し "
20638 "B<SO_PASSCRED> オプションを有効にしなくてはならない。"
20639
20640 #. type: Plain text
20641 #: build/C/man7/unix.7:291
20642 #, no-wrap
20643 msgid ""
20644 "B<int>I< value>B<;>\n"
20645 "I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
20646 msgstr ""
20647 "B<int>I< value>B<;>\n"
20648 "I<error>B< = ioctl(>I<unix_socket>B<, >I<ioctl_type>B<, &>I<value>B<);>\n"
20649
20650 #. type: Plain text
20651 #: build/C/man7/unix.7:296
20652 msgid "I<ioctl_type> can be:"
20653 msgstr "I<ioctl_type> には以下を指定できる:"
20654
20655 #. type: Plain text
20656 #: build/C/man7/unix.7:323
20657 msgid ""
20658 "The specified local address is already in use or the file system socket "
20659 "object already exists."
20660 msgstr ""
20661 "指定したローカルアドレスが既に使用されているか、ファイルシステムの\n"
20662 "ソケットオブジェクトが既に存在している。"
20663
20664 #. type: Plain text
20665 #: build/C/man7/unix.7:329
20666 msgid ""
20667 "The remote address specified by B<connect>(2)  was not a listening socket.  "
20668 "This error can also occur if the target filename is not a socket."
20669 msgstr ""
20670 "B<connect>(2) により指定されたリモートアドレスが接続待ちソケットではなかっ"
20671 "た。\n"
20672 "ターゲットアドレスがソケットではない場合にもこのエラーが発生する。"
20673
20674 #. type: TP
20675 #: build/C/man7/unix.7:329
20676 #, no-wrap
20677 msgid "B<ECONNRESET>"
20678 msgstr "B<ECONNRESET>"
20679
20680 #. type: Plain text
20681 #: build/C/man7/unix.7:332
20682 msgid "Remote socket was unexpectedly closed."
20683 msgstr "リモートソケットが予期しないかたちでクローズされた。"
20684
20685 #. type: Plain text
20686 #: build/C/man7/unix.7:335
20687 msgid "User memory address was not valid."
20688 msgstr "ユーザーメモリアドレスが不正。"
20689
20690 #. type: Plain text
20691 #: build/C/man7/unix.7:344
20692 msgid ""
20693 "Invalid argument passed.  A common cause is that the value B<AF_UNIX> was "
20694 "not specified in the I<sun_type> field of passed addresses, or the socket "
20695 "was in an invalid state for the applied operation."
20696 msgstr ""
20697 "渡した引数が不正。よくある原因としては、渡したアドレスの I<sun_type> フィー"
20698 "ル\n"
20699 "ドに B<AF_UNIX> が指定されていなかった、行おうとした操作に対してソケットが"
20700 "有\n"
20701 "効な状態ではなかった、など。"
20702
20703 #. type: Plain text
20704 #: build/C/man7/unix.7:349
20705 msgid ""
20706 "B<connect>(2)  called on an already connected socket or a target address was "
20707 "specified on a connected socket."
20708 msgstr ""
20709 "既に接続されているソケットに対して B<connect>(2)  が呼ばれた。または、指定し"
20710 "たターゲットアドレスが 既に接続済みのソケットだった。"
20711
20712 #. type: Plain text
20713 #: build/C/man7/unix.7:354
20714 msgid ""
20715 "The pathname in the remote address specified to B<connect>(2)  did not exist."
20716 msgstr "B<connect>(2) に指定されたリモートアドレスのパス名が存在しなかった。"
20717
20718 #. type: TP
20719 #: build/C/man7/unix.7:354
20720 #, no-wrap
20721 msgid "B<ENOMEM>"
20722 msgstr "B<ENOMEM>"
20723
20724 #. type: Plain text
20725 #: build/C/man7/unix.7:360
20726 msgid ""
20727 "Socket operation needs a target address, but the socket is not connected."
20728 msgstr ""
20729 "ソケット操作にターゲットアドレスが必要だが、 このソケットは接続されていない。"
20730
20731 #. type: Plain text
20732 #: build/C/man7/unix.7:364
20733 msgid ""
20734 "Stream operation called on non-stream oriented socket or tried to use the "
20735 "out-of-band data option."
20736 msgstr ""
20737 "ストリーム指向でないソケットに対してストリーム操作が呼び出された。 または帯域"
20738 "外データオプションを用いようとした。"
20739
20740 #. type: Plain text
20741 #: build/C/man7/unix.7:368
20742 msgid "The sender passed invalid credentials in the I<struct ucred>."
20743 msgstr "送信者が I<struct ucred> に不正な信任状を渡した。"
20744
20745 #. type: Plain text
20746 #: build/C/man7/unix.7:380
20747 msgid ""
20748 "Remote socket was closed on a stream socket.  If enabled, a B<SIGPIPE> is "
20749 "sent as well.  This can be avoided by passing the B<MSG_NOSIGNAL> flag to "
20750 "B<sendmsg>(2)  or B<recvmsg>(2)."
20751 msgstr ""
20752 "リモートソケットがストリームソケット上でクローズされた。 可能な場合は "
20753 "B<SIGPIPE> も同時に送られる。これを避けるには B<MSG_NOSIGNAL> フラグを "
20754 "B<sendmsg>(2)  や B<recvmsg>(2)  に渡す。"
20755
20756 #. type: TP
20757 #: build/C/man7/unix.7:380
20758 #, no-wrap
20759 msgid "B<EPROTONOSUPPORT>"
20760 msgstr "B<EPROTONOSUPPORT>"
20761
20762 #. type: Plain text
20763 #: build/C/man7/unix.7:384
20764 msgid "Passed protocol is not B<AF_UNIX>."
20765 msgstr "渡されたプロトコルが B<AF_UNIX> でない。"
20766
20767 #. type: TP
20768 #: build/C/man7/unix.7:384
20769 #, no-wrap
20770 msgid "B<EPROTOTYPE>"
20771 msgstr "B<EPROTOTYPE>"
20772
20773 #. type: Plain text
20774 #: build/C/man7/unix.7:390
20775 msgid ""
20776 "Remote socket does not match the local socket type (B<SOCK_DGRAM> versus "
20777 "B<SOCK_STREAM>)"
20778 msgstr ""
20779 "リモートソケットとローカルソケットのタイプが一致していなかった "
20780 "(B<SOCK_DGRAM> と B<SOCK_STREAM>)。"
20781
20782 #. type: Plain text
20783 #: build/C/man7/unix.7:393
20784 msgid "Unknown socket type."
20785 msgstr "未知のソケットタイプ。"
20786
20787 #. type: Plain text
20788 #: build/C/man7/unix.7:397
20789 msgid ""
20790 "Other errors can be generated by the generic socket layer or by the file "
20791 "system while generating a file system socket object.  See the appropriate "
20792 "manual pages for more information."
20793 msgstr ""
20794 "他にも汎用のソケット層でエラーが起こったり、 ファイルシステム上にソケットオブ"
20795 "ジェクトを作ろうとした場合に ファイルシステムのエラーが起こることがある。 そ"
20796 "れぞれの詳細は適切な man ページを参照すること。"
20797
20798 #. type: Plain text
20799 #: build/C/man7/unix.7:403
20800 msgid ""
20801 "B<SCM_CREDENTIALS> and the abstract namespace were introduced with Linux 2.2 "
20802 "and should not be used in portable programs.  (Some BSD-derived systems also "
20803 "support credential passing, but the implementation details differ.)"
20804 msgstr ""
20805 "B<SCM_CREDENTIALS> と抽象名前空間は、Linux 2.2 で導入された。 移植性が必要な"
20806 "プログラムでは使うべきではない。 (BSD 由来のシステムの中にも信任状の送受信を"
20807 "サポートしているものがあるが、 その実装の詳細はシステムによって異なる)"
20808
20809 #. type: Plain text
20810 #: build/C/man7/unix.7:414
20811 msgid ""
20812 "In the Linux implementation, sockets which are visible in the file system "
20813 "honor the permissions of the directory they are in.  Their owner, group and "
20814 "their permissions can be changed.  Creation of a new socket will fail if the "
20815 "process does not have write and search (execute) permission on the directory "
20816 "the socket is created in.  Connecting to the socket object requires read/"
20817 "write permission.  This behavior differs from many BSD-derived systems which "
20818 "ignore permissions for UNIX domain sockets.  Portable programs should not "
20819 "rely on this feature for security."
20820 msgstr ""
20821 "Linux の実装では、ファイルシステム上から見えるソケットは、それらが置かれて"
20822 "い\n"
20823 "るディレクトリのパーミッションに従う。ソケットの所有者、グループ、パーミッ"
20824 "ショ\n"
20825 "ンは変更できる。新しいソケットを作るとき、作ろうとするディレクトリに対して "
20826 "プ\n"
20827 "ロセスが書き込みと検索 (実行) 権限を持っていなければ、作成に失敗する。ソ"
20828 "ケッ\n"
20829 "トオブジェクトに接続するには、 read/write 権限が必要である。この動作は、多"
20830 "く\n"
20831 "の BSD 由来のシステムとは異なっている (BSD では UNIX ドメインソケットに対し"
20832 "て\n"
20833 "はパーミッションを無視する)。 移植性の必要なプログラムでは、セキュリティを"
20834 "こ\n"
20835 "の仕様に依存してはならない。"
20836
20837 #. type: Plain text
20838 #: build/C/man7/unix.7:422
20839 msgid ""
20840 "Binding to a socket with a filename creates a socket in the file system that "
20841 "must be deleted by the caller when it is no longer needed (using B<unlink>"
20842 "(2)).  The usual UNIX close-behind semantics apply; the socket can be "
20843 "unlinked at any time and will be finally removed from the file system when "
20844 "the last reference to it is closed."
20845 msgstr ""
20846 "ファイル名を指定してソケットにバインドすると、ファイルシステムにソケットが\n"
20847 "生成される。これは必要なくなったときに呼びだしたユーザーが削除しなければ\n"
20848 "ならない (B<unlink>(2) を用いる)。 UNIX で通常使われる「背後で閉じる方式」\n"
20849 "が適用される。ソケットはいつでも unlink することができ、最後の参照が\n"
20850 "クローズされたときにファイルシステムから削除される。"
20851
20852 #. type: Plain text
20853 #: build/C/man7/unix.7:431
20854 msgid ""
20855 "To pass file descriptors or credentials over a B<SOCK_STREAM>, you need to "
20856 "send or receive at least one byte of nonancillary data in the same B<sendmsg>"
20857 "(2)  or B<recvmsg>(2)  call."
20858 msgstr ""
20859 "B<SOCK_STREAM> 上でファイルディスクリプタや信任状を渡すためには、同じ "
20860 "B<sendmsg>(2)  や B<recvmsg>(2)  コールで補助データ以外のデータを少なくとも "
20861 "1 バイト送信/受信する必要がある。"
20862
20863 #. type: Plain text
20864 #: build/C/man7/unix.7:433
20865 msgid ""
20866 "UNIX domain stream sockets do not support the notion of out-of-band data."
20867 msgstr ""
20868 "UNIX ドメインのストリーム・ソケットでは、 帯域外データの概念はサポートされな"
20869 "い。"
20870
20871 #. type: Plain text
20872 #: build/C/man7/unix.7:436
20873 msgid "See B<bind>(2)."
20874 msgstr "B<bind>(2)  参照。"
20875
20876 #. type: Plain text
20877 #: build/C/man7/unix.7:441
20878 msgid "For an example of the use of B<SCM_RIGHTS> see B<cmsg>(3)."
20879 msgstr "B<SCM_RIGHTS> の使用例については B<cmsg>(3) を参照。"
20880
20881 #. type: Plain text
20882 #: build/C/man7/unix.7:450
20883 msgid ""
20884 "B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), "
20885 "B<capabilities>(7), B<credentials>(7), B<socket>(7)"
20886 msgstr ""
20887 "B<recvmsg>(2), B<sendmsg>(2), B<socket>(2), B<socketpair>(2), B<cmsg>(3), "
20888 "B<capabilities>(7), B<credentials>(7), B<socket>(7)"
20889
20890 #. type: TH
20891 #: build/C/man7/x25.7:7
20892 #, no-wrap
20893 msgid "X25"
20894 msgstr "X25"
20895
20896 #. type: TH
20897 #: build/C/man7/x25.7:7
20898 #, no-wrap
20899 msgid "2008-08-08"
20900 msgstr "2008-08-08"
20901
20902 #. type: Plain text
20903 #: build/C/man7/x25.7:10
20904 msgid "x25, AF_X25 - ITU-T X.25 / ISO-8208 protocol interface."
20905 msgstr "x25, AF_X25 - ITU-T X.25 / ISO-8208 プロトコルインターフェース"
20906
20907 #. type: Plain text
20908 #: build/C/man7/x25.7:14
20909 msgid "B<#include E<lt>linux/x25.hE<gt>>"
20910 msgstr "B<#include E<lt>linux/x25.hE<gt>>"
20911
20912 #. type: Plain text
20913 #: build/C/man7/x25.7:16
20914 msgid "B<x25_socket = socket(AF_X25, SOCK_SEQPACKET, 0);>"
20915 msgstr "B<x25_socket = socket(AF_X25, SOCK_SEQPACKET, 0);>"
20916
20917 #. type: Plain text
20918 #: build/C/man7/x25.7:25
20919 msgid ""
20920 "X25 sockets provide an interface to the X.25 packet layer protocol.  This "
20921 "allows applications to communicate over a public X.25 data network as "
20922 "standardized by International Telecommunication Union's recommendation X.25 "
20923 "(X.25 DTE-DCE mode).  X25 sockets can also be used for communication without "
20924 "an intermediate X.25 network (X.25 DTE-DTE mode) as described in ISO-8208."
20925 msgstr ""
20926 "X25 ソケットは X.25 パケット層プロトコルに対するインターフェースを提供する。 "
20927 "これにより、アプリケーションはパブリックな X.25 データネットワークで 通信する"
20928 "ことができるようになる。 X.25 は International Telecommunication Union's "
20929 "recommendation X.25 (X.25 DTE-DCE mode) で標準化されている。 X25 ソケットは、"
20930 "中間層のない X.25 ネットワーク (X.25 DTE-DTE mode)  での通信にも用いることが"
20931 "できる。 DTE-DTE モードは ISO-8208 に記述されている。"
20932
20933 #. type: Plain text
20934 #: build/C/man7/x25.7:42
20935 msgid ""
20936 "Message boundaries are preserved \\(em a B<read>(2)  from a socket will "
20937 "retrieve the same chunk of data as output with the corresponding B<write>"
20938 "(2)  to the peer socket.  When necessary, the kernel takes care of "
20939 "segmenting and reassembling long messages by means of the X.25 M-bit.  There "
20940 "is no hard-coded upper limit for the message size.  However, reassembling of "
20941 "a long message might fail if there is a temporary lack of system resources "
20942 "or when other constraints (such as socket memory or buffer size limits) "
20943 "become effective.  If that occurs, the X.25 connection will be reset."
20944 msgstr ""
20945 "メッセージ境界は保存される。ソケットからの B<read>(2)  は、反対側のソケットか"
20946 "らの対応する B<write>(2)  と同じ大きさのデータを受け取り、出力する。 必要があ"
20947 "る場合は、カーネルが長いメッセージの 分割 (segmenting) と再構成 "
20948 "(reassembling) を行う。 これには X.25 の M ビットが用いられる。 メッセージサ"
20949 "イズには、ハードコーディングされた上限はない。 しかし、一時的にシステムリソー"
20950 "スが足りなかったり、 他の制約 (ソケットメモリバッファのサイズ制限など) が 効"
20951 "いてしまうと、長いメッセージの再構成には失敗するかもしれない。 この場合、そ"
20952 "の X.25 接続はリセットされることになる。"
20953
20954 #. type: SS
20955 #: build/C/man7/x25.7:42
20956 #, no-wrap
20957 msgid "Socket Addresses"
20958 msgstr "ソケットアドレス"
20959
20960 #. type: Plain text
20961 #: build/C/man7/x25.7:49
20962 msgid ""
20963 "The B<AF_X25> socket address family uses the I<struct sockaddr_x25> for "
20964 "representing network addresses as defined in ITU-T recommendation X.121."
20965 msgstr ""
20966 "B<AF_X25> ソケットアドレスファミリーは、ネットワークアドレスを表すために "
20967 "I<struct sockaddr_x25> を用いる。これは ITU-T recommendation X.121 で定義され"
20968 "ている。"
20969
20970 #. type: Plain text
20971 #: build/C/man7/x25.7:56
20972 #, no-wrap
20973 msgid ""
20974 "struct sockaddr_x25 {\n"
20975 "    sa_family_t sx25_family;    /* must be AF_X25 */\n"
20976 "    x25_address sx25_addr;      /* X.121 Address */\n"
20977 "};\n"
20978 msgstr ""
20979 "struct sockaddr_x25 {\n"
20980 "    sa_family_t sx25_family;    /* must be AF_X25 */\n"
20981 "    x25_address sx25_addr;      /* X.121 Address */\n"
20982 "};\n"
20983
20984 #. type: Plain text
20985 #: build/C/man7/x25.7:67
20986 msgid ""
20987 "I<sx25_addr> contains a char array I<x25_addr[]> to be interpreted as a null-"
20988 "terminated string.  I<sx25_addr.x25_addr[]> consists of up to 15 (not "
20989 "counting the terminating 0) ASCII characters forming the X.121 address.  "
20990 "Only the decimal digit characters from \\(aq0\\(aq to \\(aq9\\(aq are "
20991 "allowed."
20992 msgstr ""
20993 "I<sx25_addr> には char 配列 I<x25_addr[]> を含まれる。これは 0 で終端する文字"
20994 "列として解釈される。 I<sx25_addr.x25_addr[]> は 15 個までの ASCII 文字を含む"
20995 "ことができ (終端の 0 は含まない)、 これが X.121 アドレスをなす。 10 進の数文"
20996 "字、\\(aq0\\(aq から \\(aq9\\(aq までだけが許される。"
20997
20998 #. type: Plain text
20999 #: build/C/man7/x25.7:76
21000 msgid ""
21001 "The following X.25-specific socket options can be set by using B<setsockopt>"
21002 "(2)  and read with B<getsockopt>(2)  with the I<level> argument set to "
21003 "B<SOL_X25>."
21004 msgstr ""
21005 "以下の X.25 特有のソケットオプションは、 B<setsockopt>(2)  で設定でき、 "
21006 "B<getsockopt>(2)  で取得できる。このとき I<level> 引き数には B<SOL_X25> を指"
21007 "定する。"
21008
21009 #. type: TP
21010 #: build/C/man7/x25.7:76
21011 #, no-wrap
21012 msgid "B<X25_QBITINCL>"
21013 msgstr "B<X25_QBITINCL>"
21014
21015 #. type: Plain text
21016 #: build/C/man7/x25.7:95
21017 msgid ""
21018 "Controls whether the X.25 Q-bit (Qualified Data Bit) is accessible by the "
21019 "user.  It expects an integer argument.  If set to 0 (default), the Q-bit is "
21020 "never set for outgoing packets and the Q-bit of incoming packets is "
21021 "ignored.  If set to 1, an additional first byte is prepended to each message "
21022 "read from or written to the socket.  For data read from the socket, a 0 "
21023 "first byte indicates that the Q-bits of the corresponding incoming data "
21024 "packets were not set.  A first byte with value 1 indicates that the Q-bit of "
21025 "the corresponding incoming data packets was set.  If the first byte of the "
21026 "data written to the socket is 1 the Q-bit of the corresponding outgoing data "
21027 "packets will be set.  If the first byte is 0 the Q-bit will not be set."
21028 msgstr ""
21029 "X.25 の Q ビット (Qualified データビット) にユーザーがアクセス できるかどうか"
21030 "をコントロールする。整数の引数を取る。 0 にセットすると、 Q ビットは発信パ"
21031 "ケットには決してセットされず、 受信パケットでは無視される (デフォルト)。 1 に"
21032 "セットすると、ソケットから読む、あるいはソケットに送る メッセージそれぞれに先"
21033 "頭バイトが前置される。 ソケットから読んだデータでは、先頭バイトが 0 だと、 こ"
21034 "の到着データパケットに対応する Q ビットはセットされていなかったことになる。 "
21035 "先頭バイトが 1 だと、到着データパケットの Q ビットがセットされていたことにな"
21036 "る。 ソケットに書き込むデータの先頭バイトが 1 だと、 その発信パケットの Q "
21037 "ビットをセットする。 0 だと、 Q ビットをセットしない。"
21038
21039 #. type: Plain text
21040 #: build/C/man7/x25.7:97
21041 msgid "The AF_X25 protocol family is a new feature of Linux 2.2."
21042 msgstr "AF_X25 プロトコルファミリは Linux 2.2 の新機能である。"
21043
21044 #. type: Plain text
21045 #: build/C/man7/x25.7:100
21046 msgid "Plenty, as the X.25 PLP implementation is B<CONFIG_EXPERIMENTAL>."
21047 msgstr "X.25 PLP 実装は B<CONFIG_EXPERIMENTAL> なので、たくさんあるだろう。"
21048
21049 #. type: Plain text
21050 #: build/C/man7/x25.7:102
21051 msgid "This man page is incomplete."
21052 msgstr "この man ページは完成していない。"
21053
21054 #. type: Plain text
21055 #: build/C/man7/x25.7:109
21056 msgid ""
21057 "There is no dedicated application programmer's header file yet; you need to "
21058 "include the kernel header file I<E<lt>linux/x25.hE<gt>>.  "
21059 "B<CONFIG_EXPERIMENTAL> might also imply that future versions of the "
21060 "interface are not binary compatible."
21061 msgstr ""
21062 "まだアプリケーションプログラマー用のヘッダファイルがない。 カーネルのヘッダ"
21063 "ファイル I<E<lt>linux/x25.hE<gt>> をインクルードしなければならない。 "
21064 "B<CONFIG_EXPERIMENTAL> なので、将来のバージョンのインターフェースでは バイナ"
21065 "リ互換性が失われるかもしれない。"
21066
21067 #. type: Plain text
21068 #: build/C/man7/x25.7:113
21069 msgid ""
21070 "X.25 N-Reset events are not propagated to the user process yet.  Thus, if a "
21071 "reset occurred, data might be lost without notice."
21072 msgstr ""
21073 "X.25 N-Reset イベントは、まだユーザープロセスに伝播しない。 したがってリセッ"
21074 "トが起こると、データは通知無しに失われる。"
21075
21076 #. type: Plain text
21077 #: build/C/man7/x25.7:116
21078 msgid "B<socket>(2), B<socket>(7)"
21079 msgstr "B<socket>(2), B<socket>(7)"
21080
21081 #. type: Plain text
21082 #: build/C/man7/x25.7:120
21083 msgid ""
21084 "Jonathan Simon Naylor: \\(lqThe Re-Analysis and Re-Implementation of X.25."
21085 "\\(rq The URL is"
21086 msgstr "Jonathan Simon Naylor: \\(lqX.25 の再分析と再実装\\(rq"
21087
21088 #. type: Plain text
21089 #: build/C/man7/x25.7:122
21090 msgid "I<ftp://ftp.pspt.fi/pub/ham/linux/ax25/x25doc.tgz>"
21091 msgstr "URL は I<ftp://ftp.pspt.fi/pub/ham/linux/ax25/x25doc.tgz>"
21092
21093 #~ msgid "2009-01-14"
21094 #~ msgstr "2009-01-14"
21095
21096 #~ msgid "2012-03-29"
21097 #~ msgstr "2012-03-29"
21098
21099 #~ msgid "B<rcmd>(), B<rresvport>(), B<ruserok>(): _BSD_SOURCE"
21100 #~ msgstr "B<rcmd>(), B<rresvport>(), B<ruserok>(): _BSD_SOURCE"
21101
21102 #~ msgid "2012-02-08"
21103 #~ msgstr "2012-02-08"
21104
21105 #~ msgid "2010-06-17"
21106 #~ msgstr "2010-06-17"
21107
21108 #~ msgid "2012-03-20"
21109 #~ msgstr "2012-03-20"
21110
21111 #~ msgid ""
21112 #~ "Various functions in the C Library need to be configured to work "
21113 #~ "correctly in the local environment.  Traditionally, this was done by "
21114 #~ "using files (e.g., I</etc/passwd>), but other nameservices (like the "
21115 #~ "Network Information Service (NIS) and the Domain Name Service (DNS))  "
21116 #~ "became popular, and were hacked into the C library, usually with a fixed "
21117 #~ "search order."
21118 #~ msgstr ""
21119 #~ "C ライブラリの機能の中には、ローカルな環境で正しく動作させるには設定が 必"
21120 #~ "要なものが多数存在する。伝統的にこれはファイル (例えば I</etc/passwd>) を "
21121 #~ "用いることで実現されてきた。しかし他のネームサービス (Network Information "
21122 #~ "Service (NIS) や Domain Name Service (DNS)) が一般的になり、 これらが C ラ"
21123 #~ "イブラリに取り込まれるようになっていった。ただし通常、検 索の順序は固定さ"
21124 #~ "れていた。"
21125
21126 #~ msgid ""
21127 #~ "The Linux libc5 with NYS support and the GNU C Library 2.x (libc.so.6)  "
21128 #~ "contain a cleaner solution of this problem.  It is designed after a "
21129 #~ "method used by Sun Microsystems in the C library of Solaris 2.  We follow "
21130 #~ "their name and call this scheme \"Name Service Switch\" (NSS).  The "
21131 #~ "sources for the \"databases\" and their lookup order are specified in the "
21132 #~ "I</etc/nsswitch.conf> file."
21133 #~ msgstr ""
21134 #~ "NYS をサポートした Linux libc5 や GNU C Linrary 2.x (libc.so.6) では、 こ"
21135 #~ "の問題はより見通し良く解決できるようになっている。これらは Sun "
21136 #~ "Microsystems が Solaris 2 の C ライブラリで用いた方法にならっている。 以下"
21137 #~ "ではこの仕組みを \"Name Service Switch\" (NSS) と呼ぶ。データベース の情報"
21138 #~ "源と、それらを閲覧する順序を指定したのが I</etc/nsswitch.conf> ファイルで"
21139 #~ "ある。"
21140
21141 #~ msgid "Mail aliases, used by B<sendmail>(8).  Presently ignored."
21142 #~ msgstr "B<sendmail>(8)  で用いられるメールエイリアス。 現在は無視される。"
21143
21144 #~ msgid ""
21145 #~ "An example I</etc/nsswitch.conf> (namely, the default used when I</etc/"
21146 #~ "nsswitch.conf> is missing):"
21147 #~ msgstr ""
21148 #~ "I</etc/nsswitch.conf> ファイルの一例を以下に示す (ここに示す内容は I</etc/"
21149 #~ "nsswitch.conf> ファイルがない場合のデフォルトと同じである)。"
21150
21151 #~ msgid ""
21152 #~ "The first column is the database.  The rest of the line specifies how the "
21153 #~ "lookup process works.  You can specify the way it works for each database "
21154 #~ "individually."
21155 #~ msgstr ""
21156 #~ "最初のカラムはデータベース名である。 行の残りでは閲覧プロセスの動作を指定"
21157 #~ "している。 それぞれのデータベースに対して、閲覧方法は独立に設定できる。"
21158
21159 #~ msgid ""
21160 #~ "The configuration specification for each database can contain two "
21161 #~ "different items:"
21162 #~ msgstr ""
21163 #~ "各々のデータベースの設定には以下の 2 種類の内容を指定することができる。"
21164
21165 #~ msgid "* The service specification like `files', `db', or `nis'."
21166 #~ msgstr "* サービスの指定。 `files', `db', `nis' など。"
21167
21168 #~ msgid "* The reaction on lookup result like `[NOTFOUND=return]'."
21169 #~ msgstr "* 閲覧結果に対するリアクション。 `[NOTFOUND=return]' など。"
21170
21171 #~ msgid ""
21172 #~ "For libc5 with NYS, the allowed service specifications are `files', "
21173 #~ "`nis', and `nisplus'.  For hosts, you could specify `dns' as extra "
21174 #~ "service, for passwd and group `compat', but not for shadow."
21175 #~ msgstr ""
21176 #~ "NYS 機能を組み込んだ libc5 では、指定できるサービスは `files'、 `nis'、 "
21177 #~ "`nisplus' のいずれかである。 hosts に対しては `dns' も指定できる。また "
21178 #~ "passwd と group に対しては `compat' も指定できる。 shadow には `compat' の"
21179 #~ "指定はできない。"
21180
21181 #~ msgid ""
21182 #~ "For glibc, you must have a file called B</lib/libnss_SERVICE.so.>I<X> for "
21183 #~ "every SERVICE you are using.  On a standard installation, you could use "
21184 #~ "`files', `db', `nis', and `nisplus'.  For hosts, you could specify `dns' "
21185 #~ "as extra service, for passwd, group, and shadow `compat'.  These services "
21186 #~ "will not be used by libc5 with NYS.  The version number I<X> is 1 for "
21187 #~ "glibc 2.0 and 2 for glibc 2.1."
21188 #~ msgstr ""
21189 #~ "glibc では、利用しようとするサービス SERVICE それぞれに対し て B</lib/"
21190 #~ "libnss_SERVICE.so.>I<X> というファイルが必要になる。標準的なインストールで"
21191 #~ "は `files'、 `db'、 `nis'、 `nisplus' が利用できるようになっていることが多"
21192 #~ "い。 hosts に対 しては `dns' も指定でき、 passwd、 group、 shadow に対して"
21193 #~ "は `compat' も指定できる。 これらのサービスは libc5+NYS の環境では利用でき"
21194 #~ "ない。 バージョン番号 I<X> は、 glibc 2.0 用なら 1、 glibc 2.1 用なら 2 で"
21195 #~ "ある。"
21196
21197 #~ msgid ""
21198 #~ "The second item in the specification gives the user much finer control on "
21199 #~ "the lookup process.  Action items are placed between two service names "
21200 #~ "and are written within brackets.  The general form is"
21201 #~ msgstr ""
21202 #~ "二つめの指定方法は閲覧プロセスをより詳細に制御するためのものである。ア ク"
21203 #~ "ション指定 (action item) はサービス名の間に、角かっこ [] で括られて 記述さ"
21204 #~ "れる。一般的な書式は以下の通り。"
21205
21206 #~ msgid "`[' ( `!'? STATUS `=' ACTION )+ `]'"
21207 #~ msgstr "`[' ( `!'? STATUS `=' ACTION )+ `]'"
21208
21209 #~ msgid ""
21210 #~ "The case of the keywords is insignificant.  The STATUS values are the "
21211 #~ "results of a call to a lookup function of a specific service.  They mean:"
21212 #~ msgstr ""
21213 #~ "キーワードの大文字小文字は区別されない。 STATUS の値は特定の機能に対し て"
21214 #~ "閲覧を行った結果である。それぞれの意味は以下の通り。"
21215
21216 #~ msgid "Interaction with +/- syntax (compat mode)"
21217 #~ msgstr "+/- 書式との関係 (compat モード)"
21218
21219 #~ msgid ""
21220 #~ "Linux libc5 without NYS does not have the name service switch but does "
21221 #~ "allow the user some policy control.  In I</etc/passwd> you could have "
21222 #~ "entries of the form +user or +@netgroup (include the specified user from "
21223 #~ "the NIS passwd map), -user or -@netgroup (exclude the specified user), "
21224 #~ "and + (include every user, except the excluded ones, from the NIS passwd "
21225 #~ "map).  Since most people only put a + at the end of I</etc/passwd> to "
21226 #~ "include everything from NIS, the switch provides a faster alternative for "
21227 #~ "this case (`passwd: files nis') which doesn't require the single + entry "
21228 #~ "in I</etc/passwd>, I</etc/group>, and I</etc/shadow>.  If this is not "
21229 #~ "sufficient, the NSS `compat' service provides full +/- semantics.  By "
21230 #~ "default, the source is `nis', but this may be overridden by specifying "
21231 #~ "`nisplus' as source for the pseudo-databases B<passwd_compat>, "
21232 #~ "B<group_compat> and B<shadow_compat>.  These pseudo-databases are only "
21233 #~ "available in GNU C Library."
21234 #~ msgstr ""
21235 #~ "NYS 機能を組み込んでいない libc5 は、ネームサービススイッチの機能を持っ て"
21236 #~ "いない。しかしある程度のポリシー制御は行うことができる。 I</etc/passwd> で"
21237 #~ "は +user や +@netgroup (NIS の passwd マップから指定したユーザを取り込 "
21238 #~ "む)、 -user や -@netgroup (指定したユーザを除外する)、 + (NIS の passwd "
21239 #~ "マップから、除外されたユーザ以外の全てのエントリを取り込む) な どを指定す"
21240 #~ "ることができる。 ほとんどの場合は I</etc/passwd> の最後に + を付けて NIS "
21241 #~ "のすべてを取り込んでいるだけなので、 ネームサービススイッチを用いて "
21242 #~ "(`passwd: files nis') のようにすればより高速な動作が期待でき、 また I</"
21243 #~ "etc/passwd>, I</etc/group>, I</etc/shadow> に + だけのエントリを書かなくて"
21244 #~ "すむ。 より細かな制御を行いたい場合は、 NSS の `compat' サービスを用いれ"
21245 #~ "ば +/- 書式をフルに用いることができる。デフォルトではソースは `nis' に"
21246 #~ "なっ ているが、これは擬似データベース B<passwd_compat>,B<group_compat>,"
21247 #~ "B<shadow_compat> などに `nisplus' を指定することで上書きできる。 これらの"
21248 #~ "擬似データベースは GNU C ライブラリでしか利用できない。"
21249
21250 #~ msgid ""
21251 #~ "With Solaris, it isn't possible to link programs using the NSS Service "
21252 #~ "statically.  With Linux, this is no problem."
21253 #~ msgstr ""
21254 #~ "Solaris では NSS サービスを用いたプログラムをスタティックにリンクする こと"
21255 #~ "はできない。 Linux では問題なくスタティックリンクできる。"
21256
21257 #~ msgid ""
21258 #~ "Gets a pointer to an integer as argument.  Returns the size of the next "
21259 #~ "pending datagram in the integer in bytes, or 0 when no datagram is "
21260 #~ "pending."
21261 #~ msgstr ""
21262 #~ "integer のポインタを引数として取る。 次に待機しているデータグラムのサイズ"
21263 #~ "をバイト単位の整数で返す。 待機しているデータグラムがない場合は 0 を返す。"
21264
21265 #~ msgid ""
21266 #~ "B<connect>(2)  called with a socket object that isn't listening.  This "
21267 #~ "can happen when the remote socket does not exist or the filename is not a "
21268 #~ "socket."
21269 #~ msgstr ""
21270 #~ "listen 状態にないソケットオブジェクトに対して B<connect>(2)  が呼ばれた。"
21271 #~ "リモートソケットが存在していなかった、 ファイル名がソケットではなかった、"
21272 #~ "などのときに起こる。"