X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=po4a%2Fsocket%2Fpo%2Fja.po;h=115d5d3f905c5087016197bc4c4709b46839b815;hb=8a7f723a0530d2fb90ab139c03452e84d1e19905;hp=b8645b4ab671687aea8ceaaea48fa079917e92f1;hpb=8a4ae38d0fd0b1c77831e2dbff70908247b7c757;p=linuxjm%2FLDP_man-pages.git diff --git a/po4a/socket/po/ja.po b/po4a/socket/po/ja.po index b8645b4a..115d5d3f 100644 --- a/po4a/socket/po/ja.po +++ b/po4a/socket/po/ja.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-05-01 04:22+0900\n" -"PO-Revision-Date: 2012-05-01 05:17+0900\n" +"POT-Creation-Date: 2013-03-22 01:06+0900\n" +"PO-Revision-Date: 2012-05-29 21:31+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -16,79 +16,84 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #. type: TH -#: build/C/man2/accept.2:39 +#: build/C/man2/accept.2:41 #, no-wrap msgid "ACCEPT" msgstr "ACCEPT" #. type: TH -#: build/C/man2/accept.2:39 +#: build/C/man2/accept.2:41 #, no-wrap msgid "2010-09-10" msgstr "2010-09-10" #. type: TH -#: build/C/man2/accept.2:39 build/C/man2/bind.2:66 build/C/man2/connect.2:65 -#: build/C/man2/getsockname.2:38 build/C/man2/getsockopt.2:42 -#: build/C/man2/listen.2:43 build/C/man2/recv.2:39 build/C/man2/recvmmsg.2:26 -#: build/C/man2/select.2:38 build/C/man2/select_tut.2:30 -#: build/C/man2/send.2:38 build/C/man2/sendmmsg.2:28 -#: build/C/man3/sockatmark.3:23 build/C/man2/socket.2:41 -#: build/C/man7/socket.7:26 build/C/man2/socketcall.2:26 -#: build/C/man2/socketpair.2:40 +#: build/C/man2/accept.2:41 build/C/man2/bind.2:68 build/C/man2/connect.2:67 +#: build/C/man2/getsockname.2:40 build/C/man2/getsockopt.2:44 +#: build/C/man2/listen.2:45 build/C/man2/recv.2:41 build/C/man2/recvmmsg.2:31 +#: build/C/man2/select.2:38 build/C/man2/select_tut.2:32 +#: build/C/man2/send.2:40 build/C/man2/sendmmsg.2:28 +#: build/C/man3/sockatmark.3:25 build/C/man2/socket.2:43 +#: build/C/man7/socket.7:48 build/C/man2/socketcall.2:25 +#: build/C/man2/socketpair.2:42 #, no-wrap msgid "Linux" msgstr "Linux" #. type: TH -#: build/C/man2/accept.2:39 build/C/man2/bind.2:66 -#: build/C/man3/bindresvport.3:27 build/C/man2/connect.2:65 -#: build/C/man3/getifaddrs.3:33 build/C/man2/getsockname.2:38 -#: build/C/man2/getsockopt.2:42 build/C/man2/listen.2:43 -#: build/C/man2/recv.2:39 build/C/man2/recvmmsg.2:26 build/C/man2/select.2:38 -#: build/C/man2/select_tut.2:30 build/C/man2/send.2:38 -#: build/C/man2/sendmmsg.2:28 build/C/man3/sockatmark.3:23 -#: build/C/man2/socket.2:41 build/C/man7/socket.7:26 -#: build/C/man2/socketcall.2:26 build/C/man2/socketpair.2:40 +#: build/C/man2/accept.2:41 build/C/man2/bind.2:68 +#: build/C/man3/bindresvport.3:30 build/C/man2/connect.2:67 +#: build/C/man3/getifaddrs.3:36 build/C/man2/getsockname.2:40 +#: build/C/man2/getsockopt.2:44 build/C/man3/if_nameindex.3:26 +#: build/C/man3/if_nametoindex.3:25 build/C/man2/listen.2:45 +#: build/C/man2/recv.2:41 build/C/man2/recvmmsg.2:31 build/C/man2/select.2:38 +#: build/C/man2/select_tut.2:32 build/C/man2/send.2:40 +#: build/C/man2/sendmmsg.2:28 build/C/man3/sockatmark.3:25 +#: build/C/man2/socket.2:43 build/C/man7/socket.7:48 +#: build/C/man2/socketcall.2:25 build/C/man2/socketpair.2:42 #, no-wrap msgid "Linux Programmer's Manual" msgstr "Linux Programmer's Manual" #. type: SH -#: build/C/man2/accept.2:40 build/C/man2/bind.2:67 -#: build/C/man3/bindresvport.3:28 build/C/man2/connect.2:66 -#: build/C/man3/getifaddrs.3:34 build/C/man2/getsockname.2:39 -#: build/C/man2/getsockopt.2:43 build/C/man2/listen.2:44 -#: build/C/man2/recv.2:40 build/C/man2/recvmmsg.2:27 build/C/man2/select.2:39 -#: build/C/man2/select_tut.2:31 build/C/man2/send.2:39 -#: build/C/man2/sendmmsg.2:29 build/C/man3/sockatmark.3:24 -#: build/C/man2/socket.2:42 build/C/man7/socket.7:27 -#: build/C/man2/socketcall.2:27 build/C/man2/socketpair.2:41 +#: build/C/man2/accept.2:42 build/C/man2/bind.2:69 +#: build/C/man3/bindresvport.3:31 build/C/man2/connect.2:68 +#: build/C/man3/getifaddrs.3:37 build/C/man2/getsockname.2:41 +#: build/C/man2/getsockopt.2:45 build/C/man3/if_nameindex.3:27 +#: build/C/man3/if_nametoindex.3:26 build/C/man2/listen.2:46 +#: build/C/man2/recv.2:42 build/C/man2/recvmmsg.2:32 build/C/man2/select.2:39 +#: build/C/man2/select_tut.2:33 build/C/man2/send.2:41 +#: build/C/man2/sendmmsg.2:29 build/C/man3/sockatmark.3:26 +#: build/C/man2/socket.2:44 build/C/man7/socket.7:49 +#: build/C/man2/socketcall.2:26 build/C/man2/socketpair.2:43 #, no-wrap msgid "NAME" msgstr "名前" #. type: Plain text -#: build/C/man2/accept.2:42 -msgid "accept - accept a connection on a socket" +#: build/C/man2/accept.2:44 +#, fuzzy +#| msgid "accept - accept a connection on a socket" +msgid "accept, accept4 - accept a connection on a socket" msgstr "accept - ソケットへの接続を受ける" #. type: SH -#: build/C/man2/accept.2:42 build/C/man2/bind.2:69 -#: build/C/man3/bindresvport.3:30 build/C/man2/connect.2:68 -#: build/C/man3/getifaddrs.3:36 build/C/man2/getsockname.2:41 -#: build/C/man2/getsockopt.2:45 build/C/man2/listen.2:46 -#: build/C/man2/recv.2:42 build/C/man2/recvmmsg.2:29 build/C/man2/select.2:42 -#: build/C/man2/select_tut.2:34 build/C/man2/send.2:41 -#: build/C/man2/sendmmsg.2:31 build/C/man3/sockatmark.3:26 -#: build/C/man2/socket.2:44 build/C/man7/socket.7:29 -#: build/C/man2/socketcall.2:29 build/C/man2/socketpair.2:43 +#: build/C/man2/accept.2:44 build/C/man2/bind.2:71 +#: build/C/man3/bindresvport.3:33 build/C/man2/connect.2:70 +#: build/C/man3/getifaddrs.3:39 build/C/man2/getsockname.2:43 +#: build/C/man2/getsockopt.2:47 build/C/man3/if_nameindex.3:29 +#: build/C/man3/if_nametoindex.3:29 build/C/man2/listen.2:48 +#: build/C/man2/recv.2:44 build/C/man2/recvmmsg.2:34 build/C/man2/select.2:42 +#: build/C/man2/select_tut.2:36 build/C/man2/send.2:43 +#: build/C/man2/sendmmsg.2:31 build/C/man3/sockatmark.3:28 +#: build/C/man2/socket.2:46 build/C/man7/socket.7:51 +#: build/C/man2/socketcall.2:28 build/C/man2/socketpair.2:45 #, no-wrap msgid "SYNOPSIS" msgstr "書式" #. type: Plain text -#: build/C/man2/accept.2:46 build/C/man2/bind.2:73 +#: build/C/man2/accept.2:48 build/C/man2/bind.2:75 #, no-wrap msgid "" "B<#include Esys/types.hE> /* See NOTES */\n" @@ -98,13 +103,13 @@ msgstr "" "B<#include Esys/socket.hE>\n" #. type: Plain text -#: build/C/man2/accept.2:48 +#: build/C/man2/accept.2:50 #, no-wrap msgid "BIB<, struct sockaddr *>IB<, socklen_t *>IB<);>\n" msgstr "BIB<, struct sockaddr *>IB<, socklen_t *>IB<);>\n" #. type: Plain text -#: build/C/man2/accept.2:51 +#: build/C/man2/accept.2:53 #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" @@ -114,7 +119,7 @@ msgstr "" "B<#include Esys/socket.hE>\n" #. type: Plain text -#: build/C/man2/accept.2:54 +#: build/C/man2/accept.2:56 #, no-wrap msgid "" "BIB<, struct sockaddr *>IB<,>\n" @@ -124,21 +129,22 @@ msgstr "" "B< socklen_t *>IB<, int >IB<);>\n" #. type: SH -#: build/C/man2/accept.2:55 build/C/man2/bind.2:77 -#: build/C/man3/bindresvport.3:37 build/C/man2/connect.2:77 -#: build/C/man3/getifaddrs.3:45 build/C/man2/getsockname.2:48 -#: build/C/man2/getsockopt.2:56 build/C/man2/listen.2:54 -#: build/C/man2/recv.2:57 build/C/man2/recvmmsg.2:39 build/C/man2/select.2:81 -#: build/C/man2/select_tut.2:73 build/C/man2/send.2:56 -#: build/C/man2/sendmmsg.2:40 build/C/man3/sockatmark.3:40 -#: build/C/man2/socket.2:50 build/C/man7/socket.7:33 -#: build/C/man2/socketcall.2:31 build/C/man2/socketpair.2:50 +#: build/C/man2/accept.2:57 build/C/man2/bind.2:79 +#: build/C/man3/bindresvport.3:40 build/C/man2/connect.2:79 +#: build/C/man3/getifaddrs.3:48 build/C/man2/getsockname.2:50 +#: build/C/man2/getsockopt.2:58 build/C/man3/if_nameindex.3:36 +#: build/C/man3/if_nametoindex.3:37 build/C/man2/listen.2:56 +#: build/C/man2/recv.2:59 build/C/man2/recvmmsg.2:44 build/C/man2/select.2:81 +#: build/C/man2/select_tut.2:75 build/C/man2/send.2:58 +#: build/C/man2/sendmmsg.2:40 build/C/man3/sockatmark.3:42 +#: build/C/man2/socket.2:52 build/C/man7/socket.7:55 +#: build/C/man2/socketcall.2:30 build/C/man2/socketpair.2:52 #, no-wrap msgid "DESCRIPTION" msgstr "説明" #. type: Plain text -#: build/C/man2/accept.2:70 +#: build/C/man2/accept.2:72 msgid "" "The B() system call is used with connection-based socket types " "(B, B). It extracts the first connection " @@ -155,7 +161,7 @@ msgstr "" "もとのソケット I はこの呼び出しによって影響を受けない。" #. type: Plain text -#: build/C/man2/accept.2:79 +#: build/C/man2/accept.2:81 msgid "" "The argument I is a socket that has been created with B(2), " "bound to a local address with B(2), and is listening for connections " @@ -166,7 +172,7 @@ msgstr "" "である。" #. type: Plain text -#: build/C/man2/accept.2:97 +#: build/C/man2/accept.2:99 msgid "" "The argument I is a pointer to a I structure. This " "structure is filled in with the address of the peer socket, as known to the " @@ -183,7 +189,7 @@ msgstr "" "おくべきである。" #. type: Plain text -#: build/C/man2/accept.2:105 +#: build/C/man2/accept.2:107 msgid "" "The I argument is a value-result argument: the caller must " "initialize it to contain the size (in bytes) of the structure pointed to by " @@ -194,7 +200,7 @@ msgstr "" "返ってくる時には、接続相手のアドレスの実際の大きさが格納される。" #. type: Plain text -#: build/C/man2/accept.2:110 build/C/man2/getsockname.2:65 +#: build/C/man2/accept.2:112 build/C/man2/getsockname.2:67 msgid "" "The returned address is truncated if the buffer provided is too small; in " "this case, I will return a value greater than was supplied to the " @@ -206,7 +212,7 @@ msgstr "" "される。" #. type: Plain text -#: build/C/man2/accept.2:123 +#: build/C/man2/accept.2:125 msgid "" "If no pending connections are present on the queue, and the socket is not " "marked as nonblocking, B() blocks the caller until a connection is " @@ -220,7 +226,7 @@ msgstr "" "B() はエラー B か B で失敗する。" #. type: Plain text -#: build/C/man2/accept.2:137 +#: build/C/man2/accept.2:139 msgid "" "In order to be notified of incoming connections on a socket, you can use " "B(2) or B(2) return a readability event because the " @@ -691,13 +701,13 @@ msgstr "" "見よ)。" #. type: SS -#: build/C/man2/accept.2:349 +#: build/C/man2/accept.2:351 #, no-wrap msgid "The socklen_t type" msgstr "socklen_t 型" #. type: Plain text -#: build/C/man2/accept.2:359 +#: build/C/man2/accept.2:361 msgid "" "The third argument of B() was originally declared as an I " "(and is that under libc4 and libc5 and on many other systems like 4.x BSD, " @@ -715,7 +725,7 @@ msgstr "" #. .I fails: only italicizes a single line #. type: Plain text -#: build/C/man2/accept.2:376 +#: build/C/man2/accept.2:378 msgid "" "\"_Any_ sane library _must_ have \"socklen_t\" be the same size as int. " "Anything else breaks any BSD socket layer stuff. POSIX initially I " @@ -745,37 +755,40 @@ msgstr "" "う)。」" #. type: SH -#: build/C/man2/accept.2:376 build/C/man2/bind.2:252 -#: build/C/man2/connect.2:256 build/C/man3/getifaddrs.3:198 -#: build/C/man2/listen.2:164 build/C/man2/recv.2:488 build/C/man2/select.2:484 -#: build/C/man2/select_tut.2:527 build/C/man2/send.2:417 -#: build/C/man3/sockatmark.3:95 build/C/man2/socket.2:382 +#: build/C/man2/accept.2:378 build/C/man2/bind.2:254 +#: build/C/man2/connect.2:258 build/C/man3/getifaddrs.3:207 +#: build/C/man3/if_nameindex.3:108 build/C/man2/listen.2:166 +#: build/C/man2/recv.2:490 build/C/man2/recvmmsg.2:173 +#: build/C/man2/select.2:537 build/C/man2/select_tut.2:529 +#: build/C/man2/send.2:419 build/C/man2/sendmmsg.2:168 +#: build/C/man3/sockatmark.3:97 build/C/man2/socket.2:385 #, no-wrap msgid "EXAMPLE" msgstr "例" #. type: Plain text -#: build/C/man2/accept.2:379 build/C/man2/listen.2:167 +#: build/C/man2/accept.2:381 build/C/man2/listen.2:169 msgid "See B(2)." msgstr "B(2) 参照。" #. type: SH -#: build/C/man2/accept.2:379 build/C/man2/bind.2:317 -#: build/C/man3/bindresvport.3:98 build/C/man2/connect.2:261 -#: build/C/man3/getifaddrs.3:281 build/C/man2/getsockname.2:110 -#: build/C/man2/getsockopt.2:200 build/C/man2/listen.2:167 -#: build/C/man2/recv.2:493 build/C/man2/recvmmsg.2:165 -#: build/C/man2/select.2:521 build/C/man2/select_tut.2:817 -#: build/C/man2/send.2:422 build/C/man2/sendmmsg.2:168 -#: build/C/man3/sockatmark.3:130 build/C/man2/socket.2:387 -#: build/C/man7/socket.7:741 build/C/man2/socketcall.2:54 -#: build/C/man2/socketpair.2:122 +#: build/C/man2/accept.2:381 build/C/man2/bind.2:319 +#: build/C/man3/bindresvport.3:101 build/C/man2/connect.2:263 +#: build/C/man3/getifaddrs.3:290 build/C/man2/getsockname.2:112 +#: build/C/man2/getsockopt.2:202 build/C/man3/if_nameindex.3:146 +#: build/C/man3/if_nametoindex.3:89 build/C/man2/listen.2:169 +#: build/C/man2/recv.2:495 build/C/man2/recvmmsg.2:268 +#: build/C/man2/select.2:574 build/C/man2/select_tut.2:819 +#: build/C/man2/send.2:424 build/C/man2/sendmmsg.2:236 +#: build/C/man3/sockatmark.3:132 build/C/man2/socket.2:390 +#: build/C/man7/socket.7:847 build/C/man2/socketcall.2:53 +#: build/C/man2/socketpair.2:124 #, no-wrap msgid "SEE ALSO" msgstr "関連項目" #. type: Plain text -#: build/C/man2/accept.2:386 +#: build/C/man2/accept.2:388 msgid "" "B(2), B(2), B(2), B(2) or B(2) for completion " @@ -1665,7 +1685,7 @@ msgstr "" #. For TCP, the connection will complete asynchronously. #. See http://lkml.org/lkml/2005/7/12/254 #. type: Plain text -#: build/C/man2/connect.2:207 +#: build/C/man2/connect.2:209 msgid "" "The system call was interrupted by a signal that was caught; see B" "(7)." @@ -1673,40 +1693,40 @@ msgstr "" "捕捉されたシグナルによりシステムコールが中断された。 B(7) 参照。" #. type: TP -#: build/C/man2/connect.2:207 build/C/man2/send.2:321 +#: build/C/man2/connect.2:209 build/C/man2/send.2:323 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/connect.2:210 +#: build/C/man2/connect.2:212 msgid "The socket is already connected." msgstr "ソケットは既に接続 (connect) されている。" #. type: TP -#: build/C/man2/connect.2:210 +#: build/C/man2/connect.2:212 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/connect.2:213 +#: build/C/man2/connect.2:215 msgid "Network is unreachable." msgstr "到達できないネットワークである。" #. type: Plain text -#: build/C/man2/connect.2:216 +#: build/C/man2/connect.2:218 msgid "The file descriptor is not associated with a socket." msgstr "ファイルディスクリプターがソケットと関連付けられていない。" #. type: TP -#: build/C/man2/connect.2:216 +#: build/C/man2/connect.2:218 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/connect.2:223 +#: build/C/man2/connect.2:225 msgid "" "Timeout while attempting connection. The server may be too busy to accept " "new connections. Note that for IP sockets the timeout may be very long when " @@ -1730,7 +1750,7 @@ msgstr "" #. It also #. documents many additional error conditions not described here. #. type: Plain text -#: build/C/man2/connect.2:239 +#: build/C/man2/connect.2:241 msgid "" "SVr4, 4.4BSD, (the B() function first appeared in 4.2BSD), " "POSIX.1-2001." @@ -1738,7 +1758,7 @@ msgstr "" "SVr4, 4.4BSD, (B() 関数は 4.2BSD で最初に登場した), POSIX.1-2001." #. type: Plain text -#: build/C/man2/connect.2:256 +#: build/C/man2/connect.2:258 msgid "" "The third argument of B() is in reality an I (and this is " "what 4.x BSD and libc4 and libc5 have). Some POSIX confusion resulted in " @@ -1749,12 +1769,12 @@ msgstr "" "glibc でも I を使っている。 B(2) も参照のこと。" #. type: Plain text -#: build/C/man2/connect.2:261 +#: build/C/man2/connect.2:263 msgid "An example of the use of B() is shown in B(3)." msgstr "B() の利用例が B(3) に記載されている。" #. type: Plain text -#: build/C/man2/connect.2:268 +#: build/C/man2/connect.2:270 msgid "" "B(2), B(2), B(2), B(2), B(2), " "B(7)" @@ -1763,30 +1783,32 @@ msgstr "" "B(7)" #. type: TH -#: build/C/man3/getifaddrs.3:33 +#: build/C/man3/getifaddrs.3:36 #, no-wrap msgid "GETIFADDRS" msgstr "GETIFADDRS" #. type: TH -#: build/C/man3/getifaddrs.3:33 -#, no-wrap -msgid "2010-10-06" -msgstr "2010-10-06" +#: build/C/man3/getifaddrs.3:36 +#, fuzzy, no-wrap +#| msgid "2011-10-01" +msgid "2012-11-11" +msgstr "2011-10-01" #. type: TH -#: build/C/man3/getifaddrs.3:33 +#: build/C/man3/getifaddrs.3:36 build/C/man3/if_nameindex.3:26 +#: build/C/man3/if_nametoindex.3:25 #, no-wrap msgid "GNU" msgstr "GNU" #. type: Plain text -#: build/C/man3/getifaddrs.3:36 +#: build/C/man3/getifaddrs.3:39 msgid "getifaddrs, freeifaddrs - get interface addresses" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:40 +#: build/C/man3/getifaddrs.3:43 #, no-wrap msgid "" "B<#include Esys/types.hE>\n" @@ -1796,19 +1818,19 @@ msgstr "" "B<#include Eifaddrs.hE>\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:42 +#: build/C/man3/getifaddrs.3:45 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:44 +#: build/C/man3/getifaddrs.3:47 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:55 +#: build/C/man3/getifaddrs.3:58 msgid "" "The B() function creates a linked list of structures describing " "the network interfaces of the local system, and stores the address of the " @@ -1817,7 +1839,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:74 +#: build/C/man3/getifaddrs.3:77 #, no-wrap msgid "" "struct ifaddrs {\n" @@ -1855,7 +1877,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:81 +#: build/C/man3/getifaddrs.3:84 msgid "" "The I field contains a pointer to the next structure on the list, " "or NULL if this is the last item of the list." @@ -1865,12 +1887,12 @@ msgstr "" #. .B IF NAMESIZE #. indicates the maximum length of this field. #. type: Plain text -#: build/C/man3/getifaddrs.3:88 +#: build/C/man3/getifaddrs.3:91 msgid "The I points to the null-terminated interface name." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:97 +#: build/C/man3/getifaddrs.3:100 msgid "" "The I field contains the interface flags, as returned by the " "B B(2) operation (see B(7) for a list of " @@ -1878,22 +1900,23 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:105 +#: build/C/man3/getifaddrs.3:109 msgid "" "The I field points to a structure containing the interface " "address. (The I subfield should be consulted to determine the " -"format of the address structure.)" +"format of the address structure.) This field may contain a NULL pointer." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:111 +#: build/C/man3/getifaddrs.3:116 msgid "" "The I field points to a structure containing the netmask " -"associated with I, if applicable for the address family." +"associated with I, if applicable for the address family. This " +"field may contain a NULL pointer." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:126 +#: build/C/man3/getifaddrs.3:131 msgid "" "Depending on whether the bit B or B is set " "in I (only one can be set at a time), either I " @@ -1903,28 +1926,28 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:131 +#: build/C/man3/getifaddrs.3:136 msgid "" "The I field points to a buffer containing address-family-specific " "data; this field may be NULL if there is no such data for this interface." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:137 +#: build/C/man3/getifaddrs.3:142 msgid "" "The data returned by B() is dynamically allocated and should be " "freed using B() when no longer needed." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:144 +#: build/C/man3/getifaddrs.3:149 msgid "" "On success, B() returns zero; on error, -1 is returned, and " "I is set appropriately." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:157 +#: build/C/man3/getifaddrs.3:162 msgid "" "B() may fail and set I for any of the errors specified " "for B(2), B(2), B(2), B(2), B" @@ -1932,7 +1955,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:165 +#: build/C/man3/getifaddrs.3:170 msgid "" "The B() function first appeared in glibc 2.3, but before glibc " "2.3.3, the implementation only supported IPv4 addresses; IPv6 support was " @@ -1945,7 +1968,7 @@ msgstr "" #. i.e., commonly it still says one of them will be NULL, even if #. the ifa_ifu union is already present #. type: Plain text -#: build/C/man3/getifaddrs.3:185 +#: build/C/man3/getifaddrs.3:190 msgid "" "Not in POSIX.1-2001. This function first appeared in BSDi and is present on " "the BSD systems, but with slightly different semantics documented" @@ -1957,18 +1980,19 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:198 +#: build/C/man3/getifaddrs.3:207 msgid "" "The addresses returned on Linux will usually be the IPv4 and IPv6 addresses " "assigned to the interface, but also one B address per interface " "containing lower-level details about the interface and its physical layer. " "In this case, the I field may contain a pointer to a I, defined in Ilinux/netdevice.hE>, which contains " -"various interface attributes and statistics." +"rtnl_link_stats>, defined in Ilinux/if_link.hE> (in Linux 2.4 and " +"earlier, I, defined in Ilinux/netdevice." +"hE>), which contains various interface attributes and statistics." msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:205 +#: build/C/man3/getifaddrs.3:214 msgid "" "The program below demonstrates the use of B(), B(), " "and B(3). Here is what we see when running this program on one " @@ -1976,7 +2000,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:219 +#: build/C/man3/getifaddrs.3:228 #, no-wrap msgid "" "$ B<./a.out>\n" @@ -2004,13 +2028,14 @@ msgstr "" " address: Efe80::2d0:59ff:feda:eb51%eth0E\n" #. type: SS -#: build/C/man3/getifaddrs.3:221 +#: build/C/man3/getifaddrs.3:230 build/C/man3/if_nameindex.3:120 +#: build/C/man2/recvmmsg.2:206 #, no-wrap msgid "Program source" msgstr "" #. type: Plain text -#: build/C/man3/getifaddrs.3:231 +#: build/C/man3/getifaddrs.3:240 #, no-wrap msgid "" "#include Earpa/inet.hE\n" @@ -2030,7 +2055,7 @@ msgstr "" "#include Eunistd.hE\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:238 +#: build/C/man3/getifaddrs.3:247 #, no-wrap msgid "" "int\n" @@ -2048,7 +2073,7 @@ msgstr "" " char host[NI_MAXHOST];\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:243 +#: build/C/man3/getifaddrs.3:252 #, no-wrap msgid "" " if (getifaddrs(&ifaddr) == -1) {\n" @@ -2062,7 +2087,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:246 +#: build/C/man3/getifaddrs.3:255 #, no-wrap msgid "" " /* Walk through linked list, maintaining head pointer so we\n" @@ -2072,7 +2097,7 @@ msgstr "" " can free list later */\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:250 +#: build/C/man3/getifaddrs.3:259 #, no-wrap msgid "" " for (ifa = ifaddr; ifa != NULL; ifa = ifa-Eifa_next) {\n" @@ -2084,13 +2109,13 @@ msgstr "" " continue;\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:252 +#: build/C/man3/getifaddrs.3:261 #, no-wrap msgid " family = ifa-Eifa_addr-Esa_family;\n" msgstr " family = ifa-Eifa_addr-Esa_family;\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:255 +#: build/C/man3/getifaddrs.3:264 #, no-wrap msgid "" " /* Display interface name and family (including symbolic\n" @@ -2100,7 +2125,7 @@ msgstr "" " form of the latter for the common families) */\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:261 +#: build/C/man3/getifaddrs.3:270 #, no-wrap msgid "" " printf(\"%s\\t address family: %d%s\\en\",\n" @@ -2116,13 +2141,13 @@ msgstr "" " (family == AF_INET6) ? \" (AF_INET6)\" : \"\");\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:263 +#: build/C/man3/getifaddrs.3:272 #, no-wrap msgid " /* For an AF_INET* interface address, display the address */\n" msgstr " /* For an AF_INET* interface address, display the address */\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:276 +#: build/C/man3/getifaddrs.3:285 #, no-wrap msgid "" " if (family == AF_INET || family == AF_INET6) {\n" @@ -2152,7 +2177,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:280 +#: build/C/man3/getifaddrs.3:289 #, no-wrap msgid "" " freeifaddrs(ifaddr);\n" @@ -2164,31 +2189,31 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/getifaddrs.3:287 +#: build/C/man3/getifaddrs.3:296 msgid "" "B(2), B(2), B(2), B(7), B(8)" msgstr "" "B(2), B(2), B(2), B(7), B(8)" #. type: TH -#: build/C/man2/getsockname.2:38 +#: build/C/man2/getsockname.2:40 #, no-wrap msgid "GETSOCKNAME" msgstr "GETSOCKNAME" #. type: Plain text -#: build/C/man2/getsockname.2:41 +#: build/C/man2/getsockname.2:43 msgid "getsockname - get socket name" msgstr "getsockname - ソケットの名前を取得する" #. type: Plain text -#: build/C/man2/getsockname.2:47 +#: build/C/man2/getsockname.2:49 #, no-wrap msgid "BIB<, struct sockaddr *>IB<, socklen_t *>IB<);>\n" msgstr "BIB<, struct sockaddr *>IB<, socklen_t *>IB<);>\n" #. type: Plain text -#: build/C/man2/getsockname.2:60 +#: build/C/man2/getsockname.2:62 msgid "" "B() returns the current address to which the socket I " "is bound, in the buffer pointed to by I. The I argument " @@ -2202,13 +2227,13 @@ msgstr "" "納される。" #. type: Plain text -#: build/C/man2/getsockname.2:76 build/C/man2/getsockopt.2:140 -#: build/C/man2/listen.2:94 +#: build/C/man2/getsockname.2:78 build/C/man2/getsockopt.2:142 +#: build/C/man2/listen.2:96 msgid "The argument I is not a valid descriptor." msgstr "引き数 I は有効なディスクリプターでない。" #. type: Plain text -#: build/C/man2/getsockname.2:82 +#: build/C/man2/getsockname.2:84 msgid "" "The I argument points to memory not in a valid part of the process " "address space." @@ -2217,31 +2242,32 @@ msgstr "" "い。" #. type: Plain text -#: build/C/man2/getsockname.2:86 +#: build/C/man2/getsockname.2:88 msgid "I is invalid (e.g., is negative)." msgstr "I が不正である (例えば、負で場合など)。" #. type: TP -#: build/C/man2/getsockname.2:86 build/C/man2/send.2:333 +#: build/C/man2/getsockname.2:88 build/C/man3/if_nameindex.3:83 +#: build/C/man2/send.2:335 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/getsockname.2:90 +#: build/C/man2/getsockname.2:92 msgid "" "Insufficient resources were available in the system to perform the operation." msgstr "処理をするだけの十分なリソースがシステムに無い。" #. type: Plain text -#: build/C/man2/getsockname.2:95 build/C/man2/getsockopt.2:169 +#: build/C/man2/getsockname.2:97 build/C/man2/getsockopt.2:171 msgid "The argument I is a file, not a socket." msgstr "引き数 I がソケットではなくファイルである。" #. SVr4 documents additional ENOMEM #. and ENOSR error codes. #. type: Plain text -#: build/C/man2/getsockname.2:101 +#: build/C/man2/getsockname.2:103 msgid "" "SVr4, 4.4BSD (the B() function call appeared in 4.2BSD), " "POSIX.1-2001." @@ -2249,7 +2275,7 @@ msgstr "" "SVr4, 4.4BSD (B() 関数は 4.2BSD で追加された), POSIX.1-2001." #. type: Plain text -#: build/C/man2/getsockname.2:110 +#: build/C/man2/getsockname.2:112 msgid "" "The third argument of B() is in reality an I (and this " "is what 4.x BSD and libc4 and libc5 have). Some POSIX confusion resulted in " @@ -2260,7 +2286,7 @@ msgstr "" "POSIX には少し混乱がある。 詳しくは B(2) を参照のこと。" #. type: Plain text -#: build/C/man2/getsockname.2:117 +#: build/C/man2/getsockname.2:119 msgid "" "B(2), B(2), B(3), B(7), B(7), B" "(7)" @@ -2269,18 +2295,18 @@ msgstr "" "(7)" #. type: TH -#: build/C/man2/getsockopt.2:42 +#: build/C/man2/getsockopt.2:44 #, no-wrap msgid "GETSOCKOPT" msgstr "GETSOCKOPT" #. type: Plain text -#: build/C/man2/getsockopt.2:45 +#: build/C/man2/getsockopt.2:47 msgid "getsockopt, setsockopt - get and set options on sockets" msgstr "getsockopt, setsockopt - ソケットのオプションの設定と取得を行なう" #. type: Plain text -#: build/C/man2/getsockopt.2:55 +#: build/C/man2/getsockopt.2:57 #, no-wrap msgid "" "BIB<, int >IB<, int >IB<,>\n" @@ -2294,7 +2320,7 @@ msgstr "" "B< const void *>IB<, socklen_t >IB<);>\n" #. type: Plain text -#: build/C/man2/getsockopt.2:65 +#: build/C/man2/getsockopt.2:67 msgid "" "B() and B() manipulate options for the socket " "referred to by the file descriptor I. Options may exist at multiple " @@ -2306,7 +2332,7 @@ msgstr "" "定される。" #. type: Plain text -#: build/C/man2/getsockopt.2:84 +#: build/C/man2/getsockopt.2:86 msgid "" "When manipulating socket options, the level at which the option resides and " "the name of the option must be specified. To manipulate options at the " @@ -2325,7 +2351,7 @@ msgstr "" "B(3) を参照すること。" #. type: Plain text -#: build/C/man2/getsockopt.2:106 +#: build/C/man2/getsockopt.2:108 msgid "" "The arguments I and I are used to access option values for " "B(). For B() they identify a buffer in which the " @@ -2343,7 +2369,7 @@ msgstr "" "I は NULL でも良い。" #. type: Plain text -#: build/C/man2/getsockopt.2:116 +#: build/C/man2/getsockopt.2:118 msgid "" "I and any specified options are passed uninterpreted to the " "appropriate protocol module for interpretation. The include file Isys/" @@ -2358,7 +2384,7 @@ msgstr "" "ること。" #. type: Plain text -#: build/C/man2/getsockopt.2:125 +#: build/C/man2/getsockopt.2:127 msgid "" "Most socket-level options utilize an I argument for I. For " "B(), the argument should be nonzero to enable a boolean option, " @@ -2369,7 +2395,7 @@ msgstr "" "を指定し、 無効(disable)にするにはゼロを指定する。" #. type: Plain text -#: build/C/man2/getsockopt.2:129 +#: build/C/man2/getsockopt.2:131 msgid "" "For a description of the available socket options see B(7) and the " "appropriate protocol man pages." @@ -2378,7 +2404,7 @@ msgstr "" "ルの man ページを参照のこと。" #. type: Plain text -#: build/C/man2/getsockopt.2:150 +#: build/C/man2/getsockopt.2:152 msgid "" "The address pointed to by I is not in a valid part of the process " "address space. For B(), this error may also be returned if " @@ -2389,7 +2415,7 @@ msgstr "" "い場合にもこのエラーが返される。" #. type: Plain text -#: build/C/man2/getsockopt.2:161 +#: build/C/man2/getsockopt.2:163 msgid "" "I invalid in B(). In some cases this error can also " "occur for an invalid value in I (e.g., for the B " @@ -2400,13 +2426,13 @@ msgstr "" "B オプションなど)。" #. type: TP -#: build/C/man2/getsockopt.2:161 +#: build/C/man2/getsockopt.2:163 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/getsockopt.2:164 +#: build/C/man2/getsockopt.2:166 msgid "The option is unknown at the level indicated." msgstr "指定された層(level)にはこのオプションは存在しない。" @@ -2415,7 +2441,7 @@ msgstr "指定された層(level)にはこのオプションは存在しない #. .BR SO_SNDLOWAT ", " SO_RCVLOWAT ", " SO_SNDTIMEO ", " SO_RCVTIMEO #. options #. type: Plain text -#: build/C/man2/getsockopt.2:176 +#: build/C/man2/getsockopt.2:178 msgid "" "SVr4, 4.4BSD (these system calls first appeared in 4.2BSD), POSIX.1-2001." msgstr "" @@ -2423,7 +2449,7 @@ msgstr "" "POSIX.1-2001." #. type: Plain text -#: build/C/man2/getsockopt.2:197 +#: build/C/man2/getsockopt.2:199 msgid "" "The I argument of B() and B() is in " "reality an I (and this is what 4.x BSD and libc4 and libc5 have). " @@ -2436,7 +2462,7 @@ msgstr "" "る。 B(2) も参照のこと。" #. type: Plain text -#: build/C/man2/getsockopt.2:200 +#: build/C/man2/getsockopt.2:202 msgid "" "Several of the socket options should be handled at lower levels of the " "system." @@ -2444,7 +2470,7 @@ msgstr "" "ソケットのオプションのいくつかはシステムのより低い層で 処理されるべきである。" #. type: Plain text -#: build/C/man2/getsockopt.2:208 +#: build/C/man2/getsockopt.2:210 msgid "" "B(2), B(2), B(3), B(5), B(7), " "B(7), B(7)" @@ -2453,30 +2479,374 @@ msgstr "" "B(7), B(7)" #. type: TH -#: build/C/man2/listen.2:43 +#: build/C/man3/if_nameindex.3:26 +#, no-wrap +msgid "IF_NAMEINDEX" +msgstr "" + +#. type: TH +#: build/C/man3/if_nameindex.3:26 +#, fuzzy, no-wrap +#| msgid "2008-11-20" +msgid "2012-11-21" +msgstr "2008-11-20" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:29 +msgid "" +"if_nameindex, if_freenameindex - get network interface names and indexes" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:32 build/C/man3/if_nametoindex.3:32 +#, fuzzy, no-wrap +#| msgid "B<#include Eunistd.hE>\n" +msgid "B<#include Enet/if.hE>\n" +msgstr "B<#include Eunistd.hE>\n" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:35 +#, no-wrap +msgid "" +"B\n" +"BIB<);>\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:46 +msgid "" +"The B() function returns an array of I " +"structures, each containing information about one of the network interfaces " +"on the local system. The I structure contains at least the " +"following entries:" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:51 +#, no-wrap +msgid "" +" unsigned int if_index; /* Index of interface (1, 2, ...) */\n" +" char *if_name; /* Null-terminated name (\"eth0\", etc.) */\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:65 +msgid "" +"The I field contains the interface index. The I field " +"points to the null-terminated interface name. The end of the array is " +"indicated by entry with I set to zero and I set to NULL." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:71 +msgid "" +"The data structure returned by B() is dynamically allocated " +"and should be freed using B() when no longer needed." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:78 +#, fuzzy +#| msgid "" +#| "On success, zero is returned. On error, -1 is returned, and I is " +#| "set appropriately." +msgid "" +"On success, B() returns pointer to the array; on error, a " +"NULL pointer is returned, and I is set appropriately." +msgstr "" +"成功した場合にはゼロが返される。エラー時には -1 が返され、 I が適切に" +"設定される。" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:83 +msgid "B() may fail and set I if:" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:86 +#, fuzzy +#| msgid "Insufficient kernel memory was available." +msgid "Insufficient resources available." +msgstr "カーネルに、利用可能なメモリーが十分にない。" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:97 +msgid "" +"B() may also fail for any of the errors specified for " +"B(2), B(2), B(2), B(2), B(2), " +"B(2), or B(3)." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:104 +msgid "" +"The B() function first appeared in glibc 2.1, but before " +"glibc 2.3.4, the implementation only supported interfaces with IPv4 " +"addresses. Support of interfaces that don't have IPv4 addresses is only " +"available on kernels that support netlink." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:106 build/C/man3/if_nametoindex.3:87 +#, fuzzy +#| msgid "4.4BSD, POSIX.1-2001." +msgid "RFC\\ 3493, POSIX.1-2001." +msgstr "4.4BSD, POSIX.1-2001." + +#. type: Plain text +#: build/C/man3/if_nameindex.3:108 build/C/man3/if_nametoindex.3:89 +#, fuzzy +#| msgid "" +#| "4.4BSD (these function calls first appeared in 4.2BSD), POSIX.1-2001." +msgid "This function first appeared in BSDi." +msgstr "4.4BSD (これらの関数は 4.2BSD で現われた), POSIX.1-2001。" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:112 +msgid "" +"The program below demonstrates the use of the functions described on this " +"page. An example of the output this program might produce is the following:" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:118 +#, no-wrap +msgid "" +"$ B<./a.out>I<\n" +"1: lo\n" +"2: wlan0\n" +"3: em1>\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:126 +#, fuzzy, no-wrap +#| msgid "" +#| "#include Estdio.hE\n" +#| "#include Estdlib.hE\n" +#| "#include Esys/time.hE\n" +#| "#include Esys/types.hE\n" +#| "#include Eunistd.hE\n" +msgid "" +"#include Enet/if.hE\n" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Eunistd.hE\n" +msgstr "" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Esys/time.hE\n" +"#include Esys/types.hE\n" +"#include Eunistd.hE\n" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:131 +#, fuzzy, no-wrap +#| msgid "" +#| "int\n" +#| "main(int argc, char *argv[])\n" +#| "{\n" +#| " struct ifaddrs *ifaddr, *ifa;\n" +#| " int family, s;\n" +#| " char host[NI_MAXHOST];\n" +msgid "" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" struct if_nameindex *if_ni, *i;\n" +msgstr "" +"int\n" +"main(int argc, char *argv[])\n" +"{\n" +" struct ifaddrs *ifaddr, *ifa;\n" +" int family, s;\n" +" char host[NI_MAXHOST];\n" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:137 +#, fuzzy, no-wrap +#| msgid "" +#| " if (getifaddrs(&ifaddr) == -1) {\n" +#| " perror(\"getifaddrs\");\n" +#| " exit(EXIT_FAILURE);\n" +#| " }\n" +msgid "" +" if_ni = if_nameindex();\n" +" if (if_ni == NULL) {\n" +" perror(\"if_nameindex\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" +" if (getifaddrs(&ifaddr) == -1) {\n" +" perror(\"getifaddrs\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:140 +#, no-wrap +msgid "" +" for (i = if_ni; ! (i-Eif_index == 0 && i-Eif_name == NULL); i++)\n" +" printf(\"%u: %s\\en\", i-Eif_index, i-Eif_name);\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:142 +#, no-wrap +msgid " if_freenameindex(if_ni);\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:145 build/C/man2/select.2:573 +#, no-wrap +msgid "" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" +" exit(EXIT_SUCCESS);\n" +"}\n" + +#. type: Plain text +#: build/C/man3/if_nameindex.3:153 +#, fuzzy +#| msgid "" +#| "B(2), B(2), B(3), B(7), B(7), " +#| "B(7)" +msgid "" +"B(2), B(2), B(3), B(3), " +"B(3), B(8)" +msgstr "" +"B(2), B(2), B(3), B(7), B(7), B" +"(7)" + +#. type: TH +#: build/C/man3/if_nametoindex.3:25 +#, no-wrap +msgid "IF_NAMETOINDEX" +msgstr "" + +#. type: TH +#: build/C/man3/if_nametoindex.3:25 +#, fuzzy, no-wrap +#| msgid "2012-02-27" +msgid "2012-12-14" +msgstr "2012-02-27" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:29 +msgid "" +"if_nametoindex, if_indextoname - mappings between network interface names " +"and indexes" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:34 +#, no-wrap +msgid "BIB<);>\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:36 +#, no-wrap +msgid "BIB<);>\n" +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:43 +msgid "" +"The B() function returns the index of the network interface " +"corresponding to the name I." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:54 +msgid "" +"The B() function returns the name of the network interface " +"corresponding to the interface index I. The name is placed in the " +"buffer pointed to by I. The buffer must allow for the storage of at " +"least B bytes." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:61 +#, fuzzy +#| msgid "" +#| "On success, these calls return the number of characters sent. On error, " +#| "-1 is returned, and I is set appropriately." +msgid "" +"On success, B() returns the index number of the network " +"interface; on error, 0 is returned and I is set appropriately." +msgstr "" +"成功した場合、これらのシステムコールは送信されたバイト数を返す。 エラーの場" +"合、 -1 を返し、 I を適切に設定にする。" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:69 +#, fuzzy +#| msgid "" +#| "On success, zero is returned. On error, -1 is returned, and I is " +#| "set appropriately." +msgid "" +"On success, B() returns I; on error, NULL is " +"returned and I is set appropriately." +msgstr "" +"成功した場合にはゼロが返される。エラー時には -1 が返され、 I が適切に" +"設定される。" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:74 +msgid "B() may fail and set I if:" +msgstr "" + +#. type: TP +#: build/C/man3/if_nametoindex.3:74 +#, fuzzy, no-wrap +#| msgid "B" +msgid "B" +msgstr "B" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:77 +msgid "No interface found for the index." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:85 +msgid "" +"B() and B() may also fail for any of the " +"errors specified for B(2) or B(2)." +msgstr "" + +#. type: Plain text +#: build/C/man3/if_nametoindex.3:93 +msgid "B(3), B(3), B(8)" +msgstr "" + +#. type: TH +#: build/C/man2/listen.2:45 #, no-wrap msgid "LISTEN" msgstr "LISTEN" #. type: TH -#: build/C/man2/listen.2:43 +#: build/C/man2/listen.2:45 #, no-wrap msgid "2008-11-20" msgstr "2008-11-20" #. type: Plain text -#: build/C/man2/listen.2:46 +#: build/C/man2/listen.2:48 msgid "listen - listen for connections on a socket" msgstr "listen - ソケット(socket)上の接続を待つ" #. type: Plain text -#: build/C/man2/listen.2:53 +#: build/C/man2/listen.2:55 #, no-wrap msgid "BIB<, int >IB<);>\n" msgstr "BIB<, int >IB<);>\n" #. type: Plain text -#: build/C/man2/listen.2:61 +#: build/C/man2/listen.2:63 msgid "" "B() marks the socket referred to by I as a passive socket, " "that is, as a socket that will be used to accept incoming connection " @@ -2487,7 +2857,7 @@ msgstr "" "した接続要求を受け付けるのに使用されるソケットである。" #. type: Plain text -#: build/C/man2/listen.2:68 +#: build/C/man2/listen.2:70 msgid "" "The I argument is a file descriptor that refers to a socket of type " "B or B." @@ -2496,7 +2866,7 @@ msgstr "" "するファイルディスクリプタである。" #. type: Plain text -#: build/C/man2/listen.2:80 +#: build/C/man2/listen.2:82 msgid "" "The I argument defines the maximum length to which the queue of " "pending connections for I may grow. If a connection request arrives " @@ -2511,51 +2881,51 @@ msgstr "" "い。" #. type: Plain text -#: build/C/man2/listen.2:89 +#: build/C/man2/listen.2:91 msgid "Another socket is already listening on the same port." msgstr "別のソケットが既に同じポートを listen している。" #. type: Plain text -#: build/C/man2/listen.2:99 build/C/man2/send.2:352 +#: build/C/man2/listen.2:101 build/C/man2/send.2:354 msgid "The argument I is not a socket." msgstr "引き数 I はソケットではない。" #. type: Plain text -#: build/C/man2/listen.2:104 +#: build/C/man2/listen.2:106 msgid "The socket is not of a type that supports the B() operation." msgstr "ソケットは B() がサポートしている型ではない。" #. type: Plain text -#: build/C/man2/listen.2:109 +#: build/C/man2/listen.2:111 msgid "" "4.4BSD, POSIX.1-2001. The B() function call first appeared in " "4.2BSD." msgstr "4.4BSD, POSIX.1-2001. B() 関数は 4.2BSDで初めて実装された。" #. type: Plain text -#: build/C/man2/listen.2:111 +#: build/C/man2/listen.2:113 msgid "To accept connections, the following steps are performed:" msgstr "接続を受け付けるには、以下の処理が実行される。" #. type: TP -#: build/C/man2/listen.2:112 build/C/man2/select_tut.2:345 +#: build/C/man2/listen.2:114 build/C/man2/select_tut.2:347 #, no-wrap msgid "1." msgstr "1." #. type: Plain text -#: build/C/man2/listen.2:115 +#: build/C/man2/listen.2:117 msgid "A socket is created with B(2)." msgstr "B(2) でソケットを作成する。" #. type: TP -#: build/C/man2/listen.2:115 build/C/man2/select_tut.2:354 +#: build/C/man2/listen.2:117 build/C/man2/select_tut.2:356 #, no-wrap msgid "2." msgstr "2." #. type: Plain text -#: build/C/man2/listen.2:121 +#: build/C/man2/listen.2:123 msgid "" "The socket is bound to a local address using B(2), so that other " "sockets may be B(2)ed to it." @@ -2564,13 +2934,13 @@ msgstr "" "のソケットに B(2) できるようにする。" #. type: TP -#: build/C/man2/listen.2:121 build/C/man2/select_tut.2:358 +#: build/C/man2/listen.2:123 build/C/man2/select_tut.2:360 #, no-wrap msgid "3." msgstr "3." #. type: Plain text -#: build/C/man2/listen.2:125 +#: build/C/man2/listen.2:127 msgid "" "A willingness to accept incoming connections and a queue limit for incoming " "connections are specified with B()." @@ -2579,18 +2949,18 @@ msgstr "" "定する。" #. type: TP -#: build/C/man2/listen.2:125 build/C/man2/select_tut.2:365 +#: build/C/man2/listen.2:127 build/C/man2/select_tut.2:367 #, no-wrap msgid "4." msgstr "4." #. type: Plain text -#: build/C/man2/listen.2:128 +#: build/C/man2/listen.2:130 msgid "Connections are accepted with B(2)." msgstr "B(2) を使って接続を受け付ける。" #. type: Plain text -#: build/C/man2/listen.2:151 +#: build/C/man2/listen.2:153 msgid "" "The behavior of the I argument on TCP sockets changed with Linux " "2.2. Now it specifies the queue length for I established " @@ -2611,7 +2981,7 @@ msgstr "" #. Don't rely on this value in portable applications since BSD #. (and some BSD-derived systems) limit the backlog to 5. #. type: Plain text -#: build/C/man2/listen.2:164 +#: build/C/man2/listen.2:166 msgid "" "If the I argument is greater than the value in I, then it is silently truncated to that value; the default value " @@ -2624,42 +2994,43 @@ msgstr "" "埋め込みの固定値 B であり、その値は 128 であった。" #. type: Plain text -#: build/C/man2/listen.2:173 +#: build/C/man2/listen.2:175 msgid "B(2), B(2), B(2), B(2), B(7)" msgstr "B(2), B(2), B(2), B(2), B(7)" #. type: TH -#: build/C/man2/recv.2:39 +#: build/C/man2/recv.2:41 #, no-wrap msgid "RECV" msgstr "RECV" #. type: TH -#: build/C/man2/recv.2:39 -#, no-wrap -msgid "2011-09-16" -msgstr "2011-09-16" +#: build/C/man2/recv.2:41 +#, fuzzy, no-wrap +#| msgid "2012-02-27" +msgid "2012-12-21" +msgstr "2012-02-27" #. type: Plain text -#: build/C/man2/recv.2:42 +#: build/C/man2/recv.2:44 msgid "recv, recvfrom, recvmsg - receive a message from a socket" msgstr "recv, recvfrom, recvmsg - ソケットからメッセージを受け取る" #. type: Plain text -#: build/C/man2/recv.2:47 build/C/man2/select.2:53 -#: build/C/man2/select_tut.2:45 +#: build/C/man2/recv.2:49 build/C/man2/select.2:53 +#: build/C/man2/select_tut.2:47 #, no-wrap msgid "B<#include Esys/types.hE>\n" msgstr "B<#include Esys/types.hE>\n" #. type: Plain text -#: build/C/man2/recv.2:51 +#: build/C/man2/recv.2:53 #, no-wrap msgid "BIB<, void *>IB<, size_t >IB<, int >IB<);>\n" msgstr "BIB<, void *>IB<, size_t >IB<, int >IB<);>\n" #. type: Plain text -#: build/C/man2/recv.2:54 +#: build/C/man2/recv.2:56 #, no-wrap msgid "" "BIB<, void *>IB<, size_t >IB<, int >IB<,>\n" @@ -2669,13 +3040,13 @@ msgstr "" "B< struct sockaddr *>IB<, socklen_t *>IB<);>\n" #. type: Plain text -#: build/C/man2/recv.2:56 +#: build/C/man2/recv.2:58 #, no-wrap msgid "BIB<, struct msghdr *>IB<, int >IB<);>\n" msgstr "BIB<, struct msghdr *>IB<, int >IB<);>\n" #. type: Plain text -#: build/C/man2/recv.2:64 +#: build/C/man2/recv.2:66 msgid "" "The B() and B() calls are used to receive messages from " "a socket, and may be used to receive data on a socket whether or not it is " @@ -2694,7 +3065,7 @@ msgstr "" #. [The above notes on AF_UNIX and AF_INET sockets apply as at #. Kernel 2.4.18. (MTK, 22 Jul 02)] #. type: Plain text -#: build/C/man2/recv.2:93 +#: build/C/man2/recv.2:95 msgid "" "If I is not NULL, and the underlying protocol provides the source " "address, this source address is filled in. When I is NULL, " @@ -2717,7 +3088,7 @@ msgstr "" "な値が返される。" #. type: Plain text -#: build/C/man2/recv.2:105 +#: build/C/man2/recv.2:107 msgid "" "The B() call is normally used only on a I socket (see " "B(2)) and is identical to B() with a NULL I " @@ -2728,7 +3099,7 @@ msgstr "" "() と等価である。" #. type: Plain text -#: build/C/man2/recv.2:111 +#: build/C/man2/recv.2:113 msgid "" "All three routines return the length of the message on successful " "completion. If a message is too long to fit in the supplied buffer, excess " @@ -2740,7 +3111,7 @@ msgstr "" "を受信したソケットの種類によっては余分のバイトが捨てられる かもしれない。" #. type: Plain text -#: build/C/man2/recv.2:121 +#: build/C/man2/recv.2:123 msgid "" "If no messages are available at the socket, the receive calls wait for a " "message to arrive, unless the socket is nonblocking (see B(2)), in " @@ -2757,7 +3128,7 @@ msgstr "" "る (受信されるデータの最大サイズは要求したサイズである)。" #. type: Plain text -#: build/C/man2/recv.2:127 +#: build/C/man2/recv.2:129 msgid "" "The B(2), " "B(2), B(2), B(3), B(3), B(7)" @@ -3360,24 +3742,25 @@ msgstr "" "B(2), B(2), B(3), B(3), B(7)" #. type: TH -#: build/C/man2/recvmmsg.2:26 +#: build/C/man2/recvmmsg.2:31 #, no-wrap msgid "RECVMMSG" msgstr "RECVMMSG" #. type: TH -#: build/C/man2/recvmmsg.2:26 -#, no-wrap -msgid "2011-10-04" -msgstr "2011-10-04" +#: build/C/man2/recvmmsg.2:31 +#, fuzzy, no-wrap +#| msgid "2012-02-27" +msgid "2012-12-24" +msgstr "2012-02-27" #. type: Plain text -#: build/C/man2/recvmmsg.2:29 +#: build/C/man2/recvmmsg.2:34 msgid "recvmmsg - receive multiple messages on a socket" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:33 build/C/man2/sendmmsg.2:35 +#: build/C/man2/recvmmsg.2:38 build/C/man2/sendmmsg.2:35 #, no-wrap msgid "" "B<#define _GNU_SOURCE>\n" @@ -3387,19 +3770,19 @@ msgstr "" "B<#include Esys/socket.hE>\n" #. type: Plain text -#: build/C/man2/recvmmsg.2:36 +#: build/C/man2/recvmmsg.2:41 #, no-wrap msgid "BIB<, struct mmsghdr *>IB<, unsigned int >IB<,>\n" msgstr "BIB<, struct mmsghdr *>IB<, unsigned int >IB<,>\n" #. type: Plain text -#: build/C/man2/recvmmsg.2:38 +#: build/C/man2/recvmmsg.2:43 #, no-wrap msgid "B< unsigned int >IB<, struct timespec *>IB<);>\n" msgstr "B< unsigned int >IB<, struct timespec *>IB<);>\n" #. type: Plain text -#: build/C/man2/recvmmsg.2:50 +#: build/C/man2/recvmmsg.2:55 msgid "" "The B() system call is an extension of B(2) that allows " "the caller to receive multiple messages from a socket using a single system " @@ -3409,26 +3792,26 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:54 +#: build/C/man2/recvmmsg.2:59 msgid "" "The I argument is the file descriptor of the socket to receive data " "from." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:62 build/C/man2/sendmmsg.2:62 +#: build/C/man2/recvmmsg.2:67 build/C/man2/sendmmsg.2:62 msgid "" "The I argument is a pointer to an array of I structures. " "The size of this array is specified in I." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:68 build/C/man2/sendmmsg.2:68 +#: build/C/man2/recvmmsg.2:73 build/C/man2/sendmmsg.2:68 msgid "The I structure is defined in Isys/socket.hE> as:" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:75 +#: build/C/man2/recvmmsg.2:80 #, no-wrap msgid "" "struct mmsghdr {\n" @@ -3442,7 +3825,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/recvmmsg.2:90 +#: build/C/man2/recvmmsg.2:95 msgid "" "The I field is a I structure, as described in B" "(2). The I field is the number of bytes returned for the message " @@ -3451,33 +3834,37 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:97 +#: build/C/man2/recvmmsg.2:102 msgid "" "The I argument contains flags ORed together. The flags are the same " "as documented for B(2), with the following addition:" msgstr "" #. type: TP -#: build/C/man2/recvmmsg.2:97 -#, no-wrap -msgid "B" -msgstr "B" +#: build/C/man2/recvmmsg.2:102 +#, fuzzy, no-wrap +#| msgid "B (Since Linux 2.4.4)" +msgid "B (since Linux 2.6.34)" +msgstr "B (Linux 2.4.4 以降)" #. type: Plain text -#: build/C/man2/recvmmsg.2:102 +#: build/C/man2/recvmmsg.2:107 msgid "Turns on B after the first message has been received." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:115 +#: build/C/man2/recvmmsg.2:123 msgid "" "The I argument points to a I (see B" "(2)) defining a timeout (seconds plus nanoseconds) for the receive " -"operation. If I is I then the operation blocks indefinitely." +"operation. (This interval will be rounded up to the system clock " +"granularity, and kernel scheduling delays mean that the blocking interval " +"may overrun by a small amount.) If I is I then the operation " +"blocks indefinitely." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:126 +#: build/C/man2/recvmmsg.2:134 msgid "" "A blocking B() call blocks until I messages have been " "received or until the timeout expires. A nonblocking call reads as many " @@ -3486,7 +3873,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:141 +#: build/C/man2/recvmmsg.2:149 msgid "" "On return from B(), successive elements of I are updated " "to contain information about each received message: I contains the " @@ -3496,7 +3883,7 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:149 +#: build/C/man2/recvmmsg.2:157 msgid "" "On success, B() returns the number of messages received in " "I; on error, -1 is returned, and I is set to indicate the " @@ -3504,30 +3891,227 @@ msgid "" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:153 +#: build/C/man2/recvmmsg.2:161 msgid "" "Errors are as for B(2). In addition, the following error can occur:" msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:157 +#: build/C/man2/recvmmsg.2:165 msgid "I is invalid." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:162 +#: build/C/man2/recvmmsg.2:170 +#, fuzzy +#| msgid "" +#| "The B() system call is available starting with Linux 2.6.28; " +#| "support in glibc is available starting with version 2.10." msgid "" -"The B() system call was added in Linux 2.6.32. Support in glibc " +"The B() system call was added in Linux 2.6.33. Support in glibc " "was added in version 2.12." msgstr "" +"B() システムコールは Linux 2.6.28 以降で利用可能である。 glibc での" +"サポートはバージョン 2.10 以降で利用可能である。" #. type: Plain text -#: build/C/man2/recvmmsg.2:165 +#: build/C/man2/recvmmsg.2:173 msgid "B() is Linux-specific." msgstr "" #. type: Plain text -#: build/C/man2/recvmmsg.2:172 +#: build/C/man2/recvmmsg.2:181 +msgid "" +"The following program uses B() to receive multiple messages on a " +"socket and stores them in multiple buffers. The call returns if all buffers " +"are filled or if the timeout specified has expired." +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:184 +msgid "" +"The following snippet periodically generates UDP datagrams containing a " +"random number:" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:189 +#, no-wrap +msgid "" +"$B< while true; do echo $RANDOM E /dev/udp/127.0.0.1/1234; >\n" +"B\n" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:194 +msgid "" +"These datagrams are read by the example application, which can give the " +"following output:" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:204 +#, no-wrap +msgid "" +"$B< ./a.out>\n" +"5 messages received\n" +"1 11782\n" +"2 11345\n" +"3 304\n" +"4 13514\n" +"5 28421\n" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:215 +#, fuzzy, no-wrap +#| msgid "" +#| "#include Esys/socket.hE\n" +#| "#include Esys/un.hE\n" +#| "#include Estdlib.hE\n" +#| "#include Estdio.hE\n" +#| "#include Estring.hE\n" +msgid "" +"#define _GNU_SOURCE\n" +"#include Enetinet/ip.hE\n" +"#include Estdio.hE\n" +"#include Estdlib.hE\n" +"#include Estring.hE\n" +"#include Esys/socket.hE\n" +msgstr "" +"#include Esys/socket.hE\n" +"#include Esys/un.hE\n" +"#include Estdlib.hE\n" +"#include Estdio.hE\n" +"#include Estring.hE\n" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:228 +#, no-wrap +msgid "" +"int\n" +"main(void)\n" +"{\n" +"#define VLEN 10\n" +"#define BUFSIZE 200\n" +"#define TIMEOUT 1\n" +" int sockfd, retval, i;\n" +" struct sockaddr_in sa;\n" +" struct mmsghdr msgs[VLEN];\n" +" struct iovec iovecs[VLEN];\n" +" char bufs[VLEN][BUFSIZE+1];\n" +" struct timespec timeout;\n" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:234 build/C/man2/sendmmsg.2:201 +#, fuzzy, no-wrap +#| msgid "" +#| " sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n" +#| " if (sfd == -1)\n" +#| " handle_error(\"socket\");\n" +msgid "" +" sockfd = socket(AF_INET, SOCK_DGRAM, 0);\n" +" if (sockfd == -1) {\n" +" perror(\"socket()\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" +" sfd = socket(AF_UNIX, SOCK_STREAM, 0);\n" +" if (sfd == -1)\n" +" handle_error(\"socket\");\n" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:242 +#, fuzzy, no-wrap +#| msgid "" +#| " sa.sa_flags = 0;\n" +#| " sa.sa_handler = child_sig_handler;\n" +#| " sigemptyset(&sa.sa_mask);\n" +#| " if (sigaction(SIGCHLD, &sa, NULL) == -1) {\n" +#| " perror(\"sigaction\");\n" +#| " exit(EXIT_FAILURE);\n" +#| " }\n" +msgid "" +" sa.sin_family = AF_INET;\n" +" sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);\n" +" sa.sin_port = htons(1234);\n" +" if (bind(sockfd, (struct sockaddr *) &sa, sizeof(sa)) == -1) {\n" +" perror(\"bind()\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" +" sa.sa_flags = 0;\n" +" sa.sa_handler = child_sig_handler;\n" +" sigemptyset(&sa.sa_mask);\n" +" if (sigaction(SIGCHLD, &sa, NULL) == -1) {\n" +" perror(\"sigaction\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:250 +#, no-wrap +msgid "" +" memset(msgs, 0, sizeof(msgs));\n" +" for (i = 0; i E VLEN; i++) {\n" +" iovecs[i].iov_base = bufs[i];\n" +" iovecs[i].iov_len = BUFSIZE;\n" +" msgs[i].msg_hdr.msg_iov = &iovecs[i];\n" +" msgs[i].msg_hdr.msg_iovlen = 1;\n" +" }\n" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:253 +#, fuzzy, no-wrap +#| msgid "" +#| " /* Wait up to five seconds. */\n" +#| " tv.tv_sec = 5;\n" +#| " tv.tv_usec = 0;\n" +msgid "" +" timeout.tv_sec = TIMEOUT;\n" +" timeout.tv_nsec = 0;\n" +msgstr "" +" /* 5 秒間監視する。*/\n" +" tv.tv_sec = 5;\n" +" tv.tv_usec = 0;\n" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:259 +#, fuzzy, no-wrap +#| msgid "" +#| " if (r == -1) {\n" +#| " perror(\"select()\");\n" +#| " exit(EXIT_FAILURE);\n" +#| " }\n" +msgid "" +" retval = recvmmsg(sockfd, msgs, VLEN, 0, &timeout);\n" +" if (retval == -1) {\n" +" perror(\"recvmmsg()\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" +msgstr "" +" if (r == -1) {\n" +" perror(\"select()\");\n" +" exit(EXIT_FAILURE);\n" +" }\n" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:267 +#, no-wrap +msgid "" +" printf(\"%d messages received\\en\", retval);\n" +" for (i = 0; i E retval; i++) {\n" +" bufs[i][msgs[i].msg_len] = 0;\n" +" printf(\"%d %s\", i+1, bufs[i]);\n" +" }\n" +" exit(EXIT_SUCCESS);\n" +"}\n" +msgstr "" + +#. type: Plain text +#: build/C/man2/recvmmsg.2:275 msgid "" "B(2), B(2), B(2), B(2), B" "(2), B(7)" @@ -3543,44 +4127,45 @@ msgstr "SELECT" #. type: TH #: build/C/man2/select.2:38 -#, no-wrap -msgid "2010-08-31" -msgstr "2010-08-31" +#, fuzzy, no-wrap +#| msgid "2012-02-27" +msgid "2012-08-17" +msgstr "2012-02-27" #. type: Plain text -#: build/C/man2/select.2:42 build/C/man2/select_tut.2:34 +#: build/C/man2/select.2:42 build/C/man2/select_tut.2:36 msgid "" "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - synchronous I/O " "multiplexing" msgstr "select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO - 同期 I/O の多重化" #. type: Plain text -#: build/C/man2/select.2:45 build/C/man2/select_tut.2:37 +#: build/C/man2/select.2:45 build/C/man2/select_tut.2:39 #, no-wrap msgid "/* According to POSIX.1-2001 */\n" msgstr "/* POSIX.1-2001 に従う場合 */\n" #. type: Plain text #: build/C/man2/select.2:47 build/C/man2/select.2:68 -#: build/C/man2/select_tut.2:39 build/C/man2/select_tut.2:60 +#: build/C/man2/select_tut.2:41 build/C/man2/select_tut.2:62 #, no-wrap msgid "B<#include Esys/select.hE>\n" msgstr "B<#include Esys/select.hE>\n" #. type: Plain text -#: build/C/man2/select.2:49 build/C/man2/select_tut.2:41 +#: build/C/man2/select.2:49 build/C/man2/select_tut.2:43 #, no-wrap msgid "/* According to earlier standards */\n" msgstr "/* 以前の規格に従う場合 */\n" #. type: Plain text -#: build/C/man2/select.2:51 build/C/man2/select_tut.2:43 +#: build/C/man2/select.2:51 build/C/man2/select_tut.2:45 #, no-wrap msgid "B<#include Esys/time.hE>\n" msgstr "B<#include Esys/time.hE>\n" #. type: Plain text -#: build/C/man2/select.2:55 build/C/man2/select_tut.2:47 +#: build/C/man2/select.2:55 build/C/man2/select_tut.2:49 #, no-wrap msgid "B<#include Eunistd.hE>\n" msgstr "B<#include Eunistd.hE>\n" @@ -3596,25 +4181,25 @@ msgstr "" "B< fd_set *>IB<, struct timeval *>IB<);>\n" #. type: Plain text -#: build/C/man2/select.2:60 build/C/man2/select_tut.2:52 +#: build/C/man2/select.2:60 build/C/man2/select_tut.2:54 #, no-wrap msgid "BIB<, fd_set *>IB<);>\n" msgstr "BIB<, fd_set *>IB<);>\n" #. type: Plain text -#: build/C/man2/select.2:62 build/C/man2/select_tut.2:54 +#: build/C/man2/select.2:62 build/C/man2/select_tut.2:56 #, no-wrap msgid "BIB<, fd_set *>IB<);>\n" msgstr "BIB<, fd_set *>IB<);>\n" #. type: Plain text -#: build/C/man2/select.2:64 build/C/man2/select_tut.2:56 +#: build/C/man2/select.2:64 build/C/man2/select_tut.2:58 #, no-wrap msgid "BIB<, fd_set *>IB<);>\n" msgstr "BIB<, fd_set *>IB<);>\n" #. type: Plain text -#: build/C/man2/select.2:66 build/C/man2/select_tut.2:58 +#: build/C/man2/select.2:66 build/C/man2/select_tut.2:60 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" @@ -3632,14 +4217,14 @@ msgstr "" "B< const sigset_t *>IB<);>\n" #. type: Plain text -#: build/C/man2/select.2:77 build/C/man2/select_tut.2:69 -#: build/C/man3/sockatmark.3:34 +#: build/C/man2/select.2:77 build/C/man2/select_tut.2:71 +#: build/C/man3/sockatmark.3:36 msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "glibc 向けの機能検査マクロの要件 (B(7) 参照):" #. type: Plain text -#: build/C/man2/select.2:81 build/C/man2/select_tut.2:73 +#: build/C/man2/select.2:81 build/C/man2/select_tut.2:75 msgid "" "B(): _POSIX_C_SOURCE\\ E=\\ 200112L || _XOPEN_SOURCE\\ E=\\ " "600" @@ -3665,9 +4250,13 @@ msgstr "" #. type: Plain text #: build/C/man2/select.2:98 +#, fuzzy +#| msgid "" +#| "The operation of B() and B() is identical, with three " -"differences:" +"The operation of B() と B() の動作は同じであるが、以下の 3 点が異なる:" @@ -3766,20 +4355,27 @@ msgstr "" "のである。" #. type: Plain text -#: build/C/man2/select.2:175 +#: build/C/man2/select.2:179 msgid "" -"I is an upper bound on the amount of time elapsed before B() returns immediately. (This is useful for polling.) If " -"I is NULL (no timeout), B() " +"should block waiting for a file descriptor to become ready. (This interval " +"will be rounded up to the system clock granularity, and kernel scheduling " +"delays mean that the blocking interval may overrun by a small amount.) If " +"both fields of the I structure are zero, then B() can block indefinitely." msgstr "" -"I は B() はすぐに復帰する (この機能" -"はポーリング (polling) を行うのに便利である)。 I に NULL (タイムアウ" -"トなし) が指定されると、 B() が停止する最小の停止時間を指定する\n" +"(この停止時間はシステムクロックの粒度に切り上げられ、\n" +"カーネルのスケジューリング遅延により少しだけ長くなる可能性がある)。\n" +"I 構造体の両方のフィールドが 0 の場合、 B() は無\n" +"期限に停止 (block) する。" #. type: Plain text -#: build/C/man2/select.2:185 +#: build/C/man2/select.2:189 msgid "" "I is a pointer to a signal mask (see B(2)); if it is " "not NULL, then B() first replaces the current signal mask by the " @@ -3792,7 +4388,7 @@ msgstr "" "し、 終了後にシグナルマスクを元のシグナルマスクに戻す。" #. type: Plain text -#: build/C/man2/select.2:191 +#: build/C/man2/select.2:195 msgid "" "Other than the difference in the precision of the I argument, the " "following B() call:" @@ -3800,7 +4396,7 @@ msgstr "" "I 引き数の精度の違いを除くと、以下の B() の呼び出しは、" #. type: Plain text -#: build/C/man2/select.2:195 +#: build/C/man2/select.2:199 #, no-wrap msgid "" " ready = pselect(nfds, &readfds, &writefds, &exceptfds,\n" @@ -3810,30 +4406,34 @@ msgstr "" " timeout, &sigmask);\n" #. type: Plain text -#: build/C/man2/select.2:200 +#: build/C/man2/select.2:204 msgid "is equivalent to I executing the following calls:" msgstr "次のコールを I に実行するのと等価である。" #. type: Plain text -#: build/C/man2/select.2:203 +#: build/C/man2/select.2:207 #, no-wrap msgid " sigset_t origmask;\n" msgstr " sigset_t origmask;\n" #. type: Plain text -#: build/C/man2/select.2:207 -#, no-wrap +#: build/C/man2/select.2:211 +#, fuzzy, no-wrap +#| msgid "" +#| " sigprocmask(SIG_SETMASK, &sigmask, &origmask);\n" +#| " ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" +#| " sigprocmask(SIG_SETMASK, &origmask, NULL);\n" msgid "" -" sigprocmask(SIG_SETMASK, &sigmask, &origmask);\n" +" pthread_sigmask(SIG_SETMASK, &sigmask, &origmask);\n" " ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" -" sigprocmask(SIG_SETMASK, &origmask, NULL);\n" +" pthread_sigmask(SIG_SETMASK, &origmask, NULL);\n" msgstr "" " sigprocmask(SIG_SETMASK, &sigmask, &origmask);\n" " ready = select(nfds, &readfds, &writefds, &exceptfds, timeout);\n" " sigprocmask(SIG_SETMASK, &origmask, NULL);\n" #. type: Plain text -#: build/C/man2/select.2:228 +#: build/C/man2/select.2:232 msgid "" "The reason that B() is needed is that if one wants to wait for " "either a signal or for a file descriptor to become ready, then an atomic " @@ -3854,13 +4454,13 @@ msgstr "" "で、前記の競合を避けることができる。)" #. type: SS -#: build/C/man2/select.2:228 +#: build/C/man2/select.2:232 #, no-wrap msgid "The timeout" msgstr "タイムアウト" #. type: Plain text -#: build/C/man2/select.2:232 +#: build/C/man2/select.2:236 msgid "" "The time structures involved are defined in Isys/time.hE> and look " "like" @@ -3868,7 +4468,7 @@ msgstr "" "これらの関数で使用される時間関連の構造体は、 Isys/time.hE> で" #. type: Plain text -#: build/C/man2/select.2:239 +#: build/C/man2/select.2:243 #, no-wrap msgid "" "struct timeval {\n" @@ -3882,12 +4482,12 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/select.2:243 +#: build/C/man2/select.2:247 msgid "and" msgstr "や" #. type: Plain text -#: build/C/man2/select.2:250 +#: build/C/man2/select.2:254 #, no-wrap msgid "" "struct timespec {\n" @@ -3901,14 +4501,14 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/select.2:254 +#: build/C/man2/select.2:258 msgid "(However, see below on the POSIX.1-2001 versions.)" msgstr "" "のように定義されている。 (POSIX.1-2001 での定義については下記の「注意」を参" "照)" #. type: Plain text -#: build/C/man2/select.2:262 +#: build/C/man2/select.2:266 msgid "" "Some code calls B() modifies I to reflect the amount of time not " "slept; most other implementations do not do this. (POSIX.1-2001 permits " @@ -3943,7 +4543,7 @@ msgstr "" "ある。" #. type: Plain text -#: build/C/man2/select.2:302 +#: build/C/man2/select.2:306 msgid "" "On success, B() conforms to POSIX.1-2001 and 4.4BSD (B(). The POSIX.1-2001 situation is that one " @@ -4076,7 +4676,7 @@ msgstr "" "インクルードすればよい。" #. type: Plain text -#: build/C/man2/select.2:410 +#: build/C/man2/select.2:414 msgid "" "Libc4 and libc5 do not have a Isys/select.hE> header; under glibc " "2.0 and later this header exists. Under glibc 2.0 it unconditionally gives " @@ -4091,30 +4691,108 @@ msgstr "" "使用するには、「書式」に記載された要件を満たす必要がある。" #. type: SS -#: build/C/man2/select.2:410 +#: build/C/man2/select.2:414 #, no-wrap -msgid "Linux Notes" +msgid "Multithreaded applications" +msgstr "" + +#. type: Plain text +#: build/C/man2/select.2:430 +msgid "" +"If a file descriptor being monitored by B() " +"unblocks and returns, with an indication that the file descriptor is ready " +"(a subsequent I/O operation will likely fail with an error, unless another " +"the file descriptor reopened between the time B(). In " +"summary, any application that relies on a particular behavior in this " +"scenario must be considered buggy." +msgstr "" + +#. type: SS +#: build/C/man2/select.2:430 +#, fuzzy, no-wrap +#| msgid "Linux Notes" +msgid "Linux notes" msgstr "Linux での注意" #. type: Plain text -#: build/C/man2/select.2:425 +#: build/C/man2/select.2:438 +#, fuzzy +#| msgid "" +#| "The B() interface described in this page is implemented by " +#| "glibc. The underlying Linux system call is named B(). This " +#| "system call has somewhat different behavior from the gibc wrapper " +#| "function." msgid "" -"The Linux B() system call modifies its I argument. " +"The B() interface described in this page is implemented by glibc. " +"The underlying Linux system call is named B(). This system call " +"has somewhat different behavior from the glibc wrapper function." +msgstr "" +"このページで説明している B() のインターフェースは、glibc に\n" +"実装されているものである。内部で呼び出される Linux のシステムコールは\n" +"B() という名前である。このシステムコールは glibc のラッパー\n" +"関数とは少し違った動作をする。" + +#. type: Plain text +#: build/C/man2/select.2:453 +msgid "" +"The Linux B() system call modifies its I argument. " "However, the glibc wrapper function hides this behavior by using a local " "variable for the timeout argument that is passed to the system call. Thus, " "the glibc B() function does not modify its I argument; " "this is the behavior required by POSIX.1-2001." msgstr "" -"Linux の B() システムコールは I 引き数を変更する。 しか" -"し、\n" -"glibc のラッパー関数は、システムコールに渡す timeout 引き数 としてローカル変" -"数\n" -"を使うことでこの動作を隠蔽している。 このため、glibc の B() 関数は\n" -"I 引き数を変更しない。 これが POSIX.1-2001 が要求している動作であ" -"る。" +"Linux の B() システムコールは I 引き数を変更する。\n" +"しかし、glibc のラッパー関数は、システムコールに渡す timeout 引き数と\n" +"してローカル変数を使うことでこの動作を隠蔽している。このため、glibc の\n" +"B() 関数は I 引き数を変更しない。\n" +"これが POSIX.1-2001 が要求している動作である。" + +#. type: Plain text +#: build/C/man2/select.2:459 +#, fuzzy +#| msgid "" +#| "The final argument of the B system call is not a I pointer, but is instead a structure of the form:" +msgid "" +"The final argument of the B() system call is not a I pointer, but is instead a structure of the form:" +msgstr "" +"B() システムコールの最後の引き数はI 型の\n" +"ポインタではなく、以下に示す構造体である。" + +#. type: Plain text +#: build/C/man2/select.2:467 +#, no-wrap +msgid "" +"struct {\n" +" const sigset_t *ss; /* Pointer to signal set */\n" +" size_t ss_len; /* Size (in bytes) of object pointed\n" +" to by 'ss' */\n" +"};\n" +msgstr "" +"struct {\n" +" const sigset_t *ss; /* シグナル集合へのポインタ */\n" +" size_t ss_len; /* 'ss' が指すオブジェクトのサイズ\n" +" (バイト数) */\n" +"};\n" + +#. type: Plain text +#: build/C/man2/select.2:474 +msgid "" +"This allows the system call to obtain both a pointer to the signal set and " +"its size, while allowing for the fact that most architectures support a " +"maximum of 6 arguments to a system call." +msgstr "" +"このようにすることで、ほとんどのアーキテクチャがサポートしている\n" +"システムコールの引き数が最大で 6 個という事実を満たしつつ、\n" +"B() システムコールがシグナル集合へのポインタとシグナル集合\n" +"のサイズの両方を取得することができるのである。" #. type: Plain text -#: build/C/man2/select.2:431 +#: build/C/man2/select.2:480 msgid "" "Glibc 2.0 provided a version of B() that did not take a I " "argument." @@ -4123,7 +4801,7 @@ msgstr "" "されていた。" #. type: Plain text -#: build/C/man2/select.2:444 +#: build/C/man2/select.2:493 msgid "" "Starting with version 2.1, glibc provided an emulation of B() that " "was implemented using B(2) and B() in the " -"main program.)" -msgstr "" -"B() がないシステムにおいて、 シグナルの捕捉を信頼性があり (移植性も" -"高い) 方法で行うには、 自己パイプ (self-pipe) という技を使うとよい (シグナル" -"ハンドラはパイプへ 1 バイトのデータを書き込み、同じパイプのもう一端をメインプ" -"ログラムの B() in the main program. (To avoid possibly blocking when writing " +"to a pipe that may be full or reading from a pipe that may be empty, " +"nonblocking I/O is used when reading from and writing to the pipe.)" +msgstr "" +"B() がないシステムにおいて、シグナルの捕捉を信頼性があり (移植\n" +"性も高い) 方法で行うには、 自己パイプ (self-pipe) という技を使うとよい。\n" +"この方法では、シグナルハンドラはパイプへ 1 バイトのデータを書き込み、\n" +"同じパイプのもう一端をメインプログラムの B() may report a socket file descriptor as \"ready for " "reading\", while nevertheless a subsequent read blocks. This could for " @@ -4172,7 +4855,7 @@ msgstr "" "ないソケットに対しては B を使うとより安全であろう。" #. type: Plain text -#: build/C/man2/select.2:484 +#: build/C/man2/select.2:537 msgid "" "On Linux, B() (or B()) is used to efficiently monitor multiple file " "descriptors, to see if any of them is, or becomes, \"ready\"; that is, to " @@ -4352,7 +5030,7 @@ msgstr "" "る。" #. type: Plain text -#: build/C/man2/select_tut.2:106 +#: build/C/man2/select_tut.2:108 msgid "" "Its principal arguments are three \"sets\" of file descriptors: I, " "I, and I. Each set is declared as type I, and " @@ -4377,19 +5055,19 @@ msgstr "" "のファイルディスクリプタの削除を行う。" #. type: SS -#: build/C/man2/select_tut.2:106 +#: build/C/man2/select_tut.2:108 #, no-wrap msgid "Arguments" msgstr "引き数" #. type: TP -#: build/C/man2/select_tut.2:107 +#: build/C/man2/select_tut.2:109 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man2/select_tut.2:116 +#: build/C/man2/select_tut.2:118 msgid "" "This set is watched to see if data is available for reading from any of its " "file descriptors. After B() has returned, I will be " @@ -4419,13 +5097,13 @@ msgstr "" "直ちに書き込み可能なファイルディスクリプタ以外は 集合から削除される。" #. type: TP -#: build/C/man2/select_tut.2:125 +#: build/C/man2/select_tut.2:127 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man2/select_tut.2:147 +#: build/C/man2/select_tut.2:149 msgid "" "This set is watched for \"exceptional conditions\". In practice, only one " "such exceptional condition is common: the availability of I " @@ -4446,13 +5124,13 @@ msgstr "" "状態が発生したディスクリプタ以外は集合から削除される。" #. type: TP -#: build/C/man2/select_tut.2:147 +#: build/C/man2/select_tut.2:149 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man2/select_tut.2:154 +#: build/C/man2/select_tut.2:156 msgid "" "This is an integer one more than the maximum of any file descriptor in any " "of the sets. In other words, while adding file descriptors to each of the " @@ -4465,13 +5143,13 @@ msgstr "" "I として渡さないといけない、ということだ。" #. type: TP -#: build/C/man2/select_tut.2:154 +#: build/C/man2/select_tut.2:156 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man2/select_tut.2:167 +#: build/C/man2/select_tut.2:169 msgid "" "This is the longest time B()? Can't I just read and write to my " "descriptors whenever I want? The point of B() を使うとこの状況に効果的に対処できる。" #. type: SS -#: build/C/man2/select_tut.2:332 -#, no-wrap -msgid "Select Law" +#: build/C/man2/select_tut.2:334 +#, fuzzy, no-wrap +#| msgid "Select Law" +msgid "Select law" msgstr "SELECT の掟" #. type: Plain text -#: build/C/man2/select_tut.2:345 +#: build/C/man2/select_tut.2:347 msgid "" "Many people who try to use B() without a timeout. Your program " "should have nothing to do if there is no data available. Code that depends " @@ -4815,7 +5495,7 @@ msgstr "" "ウトに依存したコードは通常移植性がなく、 デバッグも難しくなる。" #. type: Plain text -#: build/C/man2/select_tut.2:358 +#: build/C/man2/select_tut.2:360 msgid "" "The value I must be properly calculated for efficiency as explained " "above." @@ -4824,7 +5504,7 @@ msgstr "" "えなければならない。" #. type: Plain text -#: build/C/man2/select_tut.2:365 +#: build/C/man2/select_tut.2:367 msgid "" "No file descriptor must be added to any set if you do not intend to check " "its result after the B() returns, all file descriptors in all sets should be " "checked to see if they are ready." @@ -4843,13 +5523,13 @@ msgstr "" "て 読み書き可能な状態になっているかをチェックすべきである。" #. type: TP -#: build/C/man2/select_tut.2:371 +#: build/C/man2/select_tut.2:373 #, no-wrap msgid "5." msgstr "5." #. type: Plain text -#: build/C/man2/select_tut.2:386 +#: build/C/man2/select_tut.2:388 msgid "" "The functions B(2), B(2), B(2), and B(2) do I " "necessarily read/write the full amount of data that you have requested. If " @@ -4865,13 +5545,13 @@ msgstr "" "うな場合も 考慮に入れてやらなければならない。" #. type: TP -#: build/C/man2/select_tut.2:386 +#: build/C/man2/select_tut.2:388 #, no-wrap msgid "6." msgstr "6." #. type: Plain text -#: build/C/man2/select_tut.2:394 +#: build/C/man2/select_tut.2:396 msgid "" "Never read/write only in single bytes at a time unless you are really sure " "that you have a small amount of data to process. It is extremely " @@ -4885,14 +5565,14 @@ msgstr "" "バイトにしているが、 このサイズを大きくするのは簡単だろう。" #. type: TP -#: build/C/man2/select_tut.2:394 +#: build/C/man2/select_tut.2:396 #, no-wrap msgid "7." msgstr "7." #. Nonetheless, you should still cope with these errors for completeness. #. type: Plain text -#: build/C/man2/select_tut.2:416 +#: build/C/man2/select_tut.2:418 msgid "" "The functions B(2), B(2), B(2), and B(2) as well " "as the B(), " "since some operating systems modify the structure. B() however " @@ -4963,7 +5643,7 @@ msgstr "" "分の timeout 構造体を変更することはない。" #. type: TP -#: build/C/man2/select_tut.2:448 +#: build/C/man2/select_tut.2:450 #, no-wrap msgid "11." msgstr "11." @@ -4981,7 +5661,7 @@ msgstr "11." #. way to sleep the process with subsecond precision by using the timeout. #. (See further on.) #. type: Plain text -#: build/C/man2/select_tut.2:467 +#: build/C/man2/select_tut.2:469 msgid "" "Since B" "() with a finite timeout and no file descriptors as follows:" @@ -5007,7 +5688,7 @@ msgstr "" "できる。 以下のようにする。" #. type: Plain text -#: build/C/man2/select_tut.2:480 +#: build/C/man2/select_tut.2:482 #, no-wrap msgid "" " struct timeval tv;\n" @@ -5021,12 +5702,12 @@ msgstr "" " select(0, NULL, NULL, NULL, &tv);\n" #. type: Plain text -#: build/C/man2/select_tut.2:483 +#: build/C/man2/select_tut.2:485 msgid "This is only guaranteed to work on UNIX systems, however." msgstr "但し、これが動くと保証されているのは UNIX システムに限られる。" #. type: Plain text -#: build/C/man2/select_tut.2:488 +#: build/C/man2/select_tut.2:490 msgid "" "On success, B() timed out, then the return value will be zero. The file " "descriptors set should be all empty (but may not be on some systems)." @@ -5044,7 +5725,7 @@ msgstr "" "クリプタ集合はすべて空である (しかしそうならないシステムもある)。" #. type: Plain text -#: build/C/man2/select_tut.2:501 +#: build/C/man2/select_tut.2:503 msgid "" "A return value of -1 indicates an error, with I being set " "appropriately. In the case of an error, the contents of the returned sets " @@ -5057,7 +5738,7 @@ msgstr "" "変更しない。" #. type: Plain text -#: build/C/man2/select_tut.2:510 +#: build/C/man2/select_tut.2:512 msgid "" "Generally speaking, all operating systems that support sockets also support " "B() can be used to solve many problems in a portable " @@ -5070,7 +5751,7 @@ msgstr "" "しようとする多くの問題が、 移植性がありかつ効率的な方法で解決できる。" #. type: Plain text -#: build/C/man2/select_tut.2:519 +#: build/C/man2/select_tut.2:521 msgid "" "The B(2) system call has the same functionality as B() より移植性の面で劣っていた。" #. type: Plain text -#: build/C/man2/select_tut.2:527 +#: build/C/man2/select_tut.2:529 msgid "" "The Linux-specific B(7) API provides an interface that is more " "efficient than B(2) や B(2) よりも効率的なインタフェースを提供している。" #. type: Plain text -#: build/C/man2/select_tut.2:532 +#: build/C/man2/select_tut.2:534 msgid "" "Here is an example that better demonstrates the true utility of B(2), B(2), B(2), B(2), B" @@ -5795,24 +6500,24 @@ msgstr "" "(3), B(7)" #. type: TH -#: build/C/man2/send.2:38 +#: build/C/man2/send.2:40 #, no-wrap msgid "SEND" msgstr "SEND" #. type: TH -#: build/C/man2/send.2:38 build/C/man7/socket.7:26 +#: build/C/man2/send.2:40 #, no-wrap msgid "2012-04-23" msgstr "2012-04-23" #. type: Plain text -#: build/C/man2/send.2:41 +#: build/C/man2/send.2:43 msgid "send, sendto, sendmsg - send a message on a socket" msgstr "send, sendto, sendmsg - ソケットへメッセージを送る" #. type: Plain text -#: build/C/man2/send.2:45 +#: build/C/man2/send.2:47 #, no-wrap msgid "" "B<#include Esys/types.hE>\n" @@ -5822,13 +6527,13 @@ msgstr "" "B<#include Esys/socket.hE>\n" #. type: Plain text -#: build/C/man2/send.2:48 +#: build/C/man2/send.2:50 #, no-wrap msgid "BIB<, const void *>IB<, size_t >IB<, int >IB<);>\n" msgstr "BIB<, const void *>IB<, size_t >IB<, int >IB<);>\n" #. type: Plain text -#: build/C/man2/send.2:52 +#: build/C/man2/send.2:54 #, no-wrap msgid "" "BIB<, const void *>IB<, size_t >IB<, int >IB<,>\n" @@ -5838,13 +6543,13 @@ msgstr "" "B< const struct sockaddr *>IB<, socklen_t >IB<);>\n" #. type: Plain text -#: build/C/man2/send.2:55 +#: build/C/man2/send.2:57 #, no-wrap msgid "BIB<, const struct msghdr *>IB<, int >IB<);>\n" msgstr "BIB<, const struct msghdr *>IB<, int >IB<);>\n" #. type: Plain text -#: build/C/man2/send.2:63 +#: build/C/man2/send.2:65 msgid "" "The system calls B(), B(), and B() are used to " "transmit a message to another socket." @@ -5853,7 +6558,7 @@ msgstr "" "メッセージを転送するのに使用される。" #. type: Plain text -#: build/C/man2/send.2:82 +#: build/C/man2/send.2:84 msgid "" "The B() call may be used only when the socket is in a I " "state (so that the intended recipient is known). The only difference " @@ -5867,31 +6572,31 @@ msgstr "" "にフラグが指定されない場合、 B() は B(2) と等価である。 また、" #. type: Plain text -#: build/C/man2/send.2:84 +#: build/C/man2/send.2:86 #, no-wrap msgid " send(sockfd, buf, len, flags);\n" msgstr " send(sockfd, buf, len, flags);\n" #. type: Plain text -#: build/C/man2/send.2:86 +#: build/C/man2/send.2:88 msgid "is equivalent to" msgstr "は以下と等価である。" #. type: Plain text -#: build/C/man2/send.2:88 +#: build/C/man2/send.2:90 #, no-wrap msgid " sendto(sockfd, buf, len, flags, NULL, 0);\n" msgstr " sendto(sockfd, buf, len, flags, NULL, 0);\n" #. type: Plain text -#: build/C/man2/send.2:92 +#: build/C/man2/send.2:94 msgid "The argument I is the file descriptor of the sending socket." msgstr "" "引き数 I は、データを送信するパケットのファイル・ディスクリプタであ" "る。" #. type: Plain text -#: build/C/man2/send.2:120 +#: build/C/man2/send.2:122 msgid "" "If B() is used on a connection-mode (B, " "B) socket, the arguments I and I are " @@ -5912,7 +6617,7 @@ msgstr "" "msg_namelen> で指定される。" #. type: Plain text -#: build/C/man2/send.2:136 +#: build/C/man2/send.2:138 msgid "" "For B() and B(), the message is found in I and has " "length I. For B(), the message is pointed to by the elements " @@ -5925,7 +6630,7 @@ msgstr "" "(制御情報とも呼ばれる) を送信することもできる。" #. type: Plain text -#: build/C/man2/send.2:141 +#: build/C/man2/send.2:143 msgid "" "If the message is too long to pass atomically through the underlying " "protocol, the error B is returned, and the message is not " @@ -5936,7 +6641,7 @@ msgstr "" "ラーが返され、そのメッセージは転送されない。" #. type: Plain text -#: build/C/man2/send.2:145 +#: build/C/man2/send.2:147 msgid "" "No indication of failure to deliver is implicit in a B(). Locally " "detected errors are indicated by a return value of -1." @@ -5945,7 +6650,7 @@ msgstr "" "出された場合は、返り値 -1 として通知される。" #. type: Plain text -#: build/C/man2/send.2:158 +#: build/C/man2/send.2:160 msgid "" "When the message does not fit into the send buffer of the socket, B() " "normally blocks, unless the socket has been placed in nonblocking I/O mode. " @@ -5961,7 +6666,7 @@ msgstr "" #. FIXME ? document MSG_PROXY (which went away in 2.3.15) #. type: Plain text -#: build/C/man2/send.2:164 +#: build/C/man2/send.2:166 msgid "" "The I argument is the bitwise OR of zero or more of the following " "flags." @@ -5970,13 +6675,13 @@ msgstr "" "のを指定する。" #. type: TP -#: build/C/man2/send.2:164 +#: build/C/man2/send.2:166 #, no-wrap msgid "B (Since Linux 2.3.15)" msgstr "B (Linux 2.3.15 以降)" #. type: Plain text -#: build/C/man2/send.2:178 +#: build/C/man2/send.2:180 msgid "" "Tell the link layer that forward progress happened: you got a successful " "reply from the other side. If the link layer doesn't get this it will " @@ -5991,13 +6696,13 @@ msgstr "" "されている。 詳しくは B(7) 参照のこと。" #. type: TP -#: build/C/man2/send.2:178 +#: build/C/man2/send.2:180 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/send.2:186 +#: build/C/man2/send.2:188 msgid "" "Don't use a gateway to send out the packet, only send to hosts on directly " "connected networks. This is usually used only by diagnostic or routing " @@ -6010,7 +6715,7 @@ msgstr "" "ファミリー に対してのみ定義されている。パケットソケットには定義されていない。" #. type: Plain text -#: build/C/man2/send.2:197 +#: build/C/man2/send.2:199 msgid "" "Enables nonblocking operation; if the operation would block, B or " "B is returned (this can also be enabled using the B " @@ -6021,13 +6726,13 @@ msgstr "" "B フラグを指定することによっても有効にできる)。" #. type: TP -#: build/C/man2/send.2:197 +#: build/C/man2/send.2:199 #, no-wrap msgid "B (since Linux 2.2)" msgstr "B (Linux 2.2 以降)" #. type: Plain text -#: build/C/man2/send.2:201 +#: build/C/man2/send.2:203 msgid "" "Terminates a record (when this notion is supported, as for sockets of type " "B)." @@ -6036,13 +6741,13 @@ msgstr "" "ケット種別のときに有効)。" #. type: TP -#: build/C/man2/send.2:201 +#: build/C/man2/send.2:203 #, no-wrap msgid "B (Since Linux 2.4.4)" msgstr "B (Linux 2.4.4 以降)" #. type: Plain text -#: build/C/man2/send.2:210 +#: build/C/man2/send.2:212 msgid "" "The caller has more data to send. This flag is used with TCP sockets to " "obtain the same effect as the B socket option (see B(7)), " @@ -6054,7 +6759,7 @@ msgstr "" "機能を有効にできる点である。" #. type: Plain text -#: build/C/man2/send.2:219 +#: build/C/man2/send.2:221 msgid "" "Since Linux 2.6, this flag is also supported for UDP sockets, and informs " "the kernel to package all of the data sent in calls with this flag set into " @@ -6069,13 +6774,13 @@ msgstr "" "ソケットオプション B も参照)。" #. type: TP -#: build/C/man2/send.2:219 +#: build/C/man2/send.2:221 #, no-wrap msgid "B (since Linux 2.2)" msgstr "B (Linux 2.2 以降)" #. type: Plain text -#: build/C/man2/send.2:228 +#: build/C/man2/send.2:230 msgid "" "Requests not to send B on errors on stream oriented sockets when " "the other end breaks the connection. The B error is still returned." @@ -6084,7 +6789,7 @@ msgstr "" "B を送信しないように要求する。この場合でも B は返される。" #. type: Plain text -#: build/C/man2/send.2:237 +#: build/C/man2/send.2:239 msgid "" "Sends I data on sockets that support this notion (e.g., of type " "B); the underlying protocol must also support I " @@ -6095,7 +6800,7 @@ msgstr "" "をサポートしている必要がある。" #. type: Plain text -#: build/C/man2/send.2:244 +#: build/C/man2/send.2:246 msgid "" "The definition of the I structure follows. See B(2) and " "below for an exact description of its fields." @@ -6108,7 +6813,7 @@ msgstr "" #. msg_control* fields. #. The flags returned in msg_flags. #. type: Plain text -#: build/C/man2/send.2:273 +#: build/C/man2/send.2:275 msgid "" "You may send control information using the I and " "I members. The maximum control buffer length the kernel can " @@ -6120,7 +6825,7 @@ msgstr "" "proc/sys/net/core/optmem_max> の値に制限されている。 B(7) を参照。" #. type: Plain text -#: build/C/man2/send.2:278 +#: build/C/man2/send.2:280 msgid "" "On success, these calls return the number of characters sent. On error, -1 " "is returned, and I is set appropriately." @@ -6129,7 +6834,7 @@ msgstr "" "合、 -1 を返し、 I を適切に設定にする。" #. type: Plain text -#: build/C/man2/send.2:283 +#: build/C/man2/send.2:285 msgid "" "These are some standard errors generated by the socket layer. Additional " "errors may be generated and returned from the underlying protocol modules; " @@ -6140,27 +6845,31 @@ msgstr "" "れぞれのマニュアルを参照すること。" #. type: Plain text -#: build/C/man2/send.2:291 +#: build/C/man2/send.2:293 msgid "" "(For UNIX domain sockets, which are identified by pathname) Write " "permission is denied on the destination socket file, or search permission is " "denied for one of the directories the path prefix. (See B" "(7).)" msgstr "" -"(UNIX ドメインソケットはパス名で識別される。) ソケット・ファイルへの書き込み" -"許可がなかったか、パス名へ 到達するまでのディレクトリのいずれかに対する検索許" -"可がなかった。 (B(7) も参照のこと)" +"(UNIX ドメインソケットの場合; パス名で識別される。)\n" +"\n" +"ソケット・ファイルへの書き込み許可がなかったか、パス名へ到達するまでの\n" +"ディレクトリのいずれかに対する検索許可がなかった。\n" +"(B(7) も参照のこと)" #. type: Plain text -#: build/C/man2/send.2:294 +#: build/C/man2/send.2:296 msgid "" "(For UDP sockets) An attempt was made to send to a network/broadcast address " "as though it was a unicast address." msgstr "" +"(UDP ソケットの場合) ユニキャストアドレスであるかのように、\n" +"ネットワークアドレスやブロードキャストアドレスへの送信が試みられた。" #. Actually EAGAIN on Linux #. type: Plain text -#: build/C/man2/send.2:302 +#: build/C/man2/send.2:304 msgid "" "The socket is marked nonblocking and the requested operation would block. " "POSIX.1-2001 allows either error to be returned for this case, and does not " @@ -6173,46 +6882,46 @@ msgstr "" "両方の可能性を 確認すべきである。" #. type: Plain text -#: build/C/man2/send.2:305 +#: build/C/man2/send.2:307 msgid "An invalid descriptor was specified." msgstr "無効なディスクリプターが指定された。" #. type: TP -#: build/C/man2/send.2:305 +#: build/C/man2/send.2:307 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/send.2:308 +#: build/C/man2/send.2:310 msgid "Connection reset by peer." msgstr "接続が接続相手によりリセットされた。" #. type: TP -#: build/C/man2/send.2:308 +#: build/C/man2/send.2:310 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/send.2:311 +#: build/C/man2/send.2:313 msgid "The socket is not connection-mode, and no peer address is set." msgstr "" "ソケットが接続型 (connection-mode) ではなく、 かつ送信先のアドレスが設定され" "ていない。" #. type: Plain text -#: build/C/man2/send.2:314 +#: build/C/man2/send.2:316 msgid "An invalid user space address was specified for an argument." msgstr "ユーザー空間として不正なアドレスがパラメーターとして指定された。" #. type: Plain text -#: build/C/man2/send.2:318 +#: build/C/man2/send.2:320 msgid "A signal occurred before any data was transmitted; see B(7)." msgstr "データが送信される前に、シグナルが発生した。 B(7) 参照。" #. type: Plain text -#: build/C/man2/send.2:327 +#: build/C/man2/send.2:329 msgid "" "The connection-mode socket was connected already but a recipient was " "specified. (Now either this error is returned, or the recipient " @@ -6223,14 +6932,14 @@ msgstr "" "いずれかとなる)" #. type: TP -#: build/C/man2/send.2:327 +#: build/C/man2/send.2:329 #, no-wrap msgid "B" msgstr "B" #. (e.g., SOCK_DGRAM ) #. type: Plain text -#: build/C/man2/send.2:333 +#: build/C/man2/send.2:335 msgid "" "The socket type requires that message be sent atomically, and the size of " "the message to be sent made this impossible." @@ -6239,7 +6948,7 @@ msgstr "" "るが、 メッセージが大き過ぎるため送信することができない。" #. type: Plain text -#: build/C/man2/send.2:341 +#: build/C/man2/send.2:343 msgid "" "The output queue for a network interface was full. This generally indicates " "that the interface has stopped sending, but may be caused by transient " @@ -6252,30 +6961,30 @@ msgstr "" "フローした場合にはパケットは黙って捨てられる)" #. type: Plain text -#: build/C/man2/send.2:344 +#: build/C/man2/send.2:346 msgid "No memory available." msgstr "メモリが足りない。" #. type: Plain text -#: build/C/man2/send.2:347 +#: build/C/man2/send.2:349 msgid "The socket is not connected, and no target has been given." msgstr "ソケットが接続されておらず、接続先も指定されていない。" #. type: Plain text -#: build/C/man2/send.2:357 +#: build/C/man2/send.2:359 msgid "Some bit in the I argument is inappropriate for the socket type." msgstr "" "引き数 I のいくつかのビットが、そのソケット種別では不適切なものであ" "る。" #. type: TP -#: build/C/man2/send.2:357 +#: build/C/man2/send.2:359 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/send.2:366 +#: build/C/man2/send.2:368 msgid "" "The local end has been shut down on a connection oriented socket. In this " "case the process will also receive a B unless B is " @@ -6285,13 +6994,13 @@ msgstr "" "が設定されていなければ、プロセスには B も同時に送られる。" #. type: Plain text -#: build/C/man2/send.2:369 +#: build/C/man2/send.2:371 msgid "4.4BSD, SVr4, POSIX.1-2001. These function calls appeared in 4.2BSD." msgstr "" "4.4BSD, SVr4, POSIX.1-2001. (これらの関数コールは 4.2BSD で最初に登場した)。" #. type: Plain text -#: build/C/man2/send.2:380 +#: build/C/man2/send.2:382 msgid "" "POSIX.1-2001 only describes the B and B flags. " "POSIX.1-2008 adds a specification of B. The B " @@ -6302,7 +7011,7 @@ msgstr "" "ラグは Linux での拡張である。" #. type: Plain text -#: build/C/man2/send.2:393 +#: build/C/man2/send.2:395 msgid "" "The prototypes given above follow the Single UNIX Specification, as glibc2 " "also does; the I argument was I in 4.x BSD, but I " @@ -6317,9 +7026,13 @@ msgstr "" "libc5 では I である。 B(2) も参照すること。" #. type: Plain text -#: build/C/man2/send.2:412 +#: build/C/man2/send.2:414 +#, fuzzy +#| msgid "" +#| "See B for information about a Linux-specific system call " +#| "that can be used to transmit multiple datagrams in a single call." msgid "" -"See B for information about a Linux-specific system call that " +"See B(2) for information about a Linux-specific system call that " "can be used to transmit multiple datagrams in a single call." msgstr "" "B(2) には、一度の呼び出しでの複数のデータグラムの送信に使用でき" @@ -6327,17 +7040,17 @@ msgstr "" "Linux 固有の システムコールに関する情報が書かれている。" #. type: Plain text -#: build/C/man2/send.2:417 +#: build/C/man2/send.2:419 msgid "Linux may return B instead of B." msgstr "Linux は B を返す状況で B を返すことがある。" #. type: Plain text -#: build/C/man2/send.2:422 +#: build/C/man2/send.2:424 msgid "An example of the use of B() is shown in B(3)." msgstr "B() の利用例が B(3) に記載されている。" #. type: Plain text -#: build/C/man2/send.2:437 +#: build/C/man2/send.2:439 msgid "" "B(2), B(2), B(2), B(2) を使って待つことができる。" #. type: tbl table -#: build/C/man7/socket.7:137 +#: build/C/man7/socket.7:159 #, no-wrap msgid "I/O events\n" msgstr "I/O イベント\n" #. type: tbl table -#: build/C/man7/socket.7:138 +#: build/C/man7/socket.7:160 #, no-wrap msgid "Event:Poll flag:Occurrence\n" msgstr "イベント:poll フラグ:内容\n" #. type: tbl table -#: build/C/man7/socket.7:139 build/C/man7/socket.7:142 +#: build/C/man7/socket.7:161 build/C/man7/socket.7:164 #, no-wrap msgid "Read:POLLIN:T{\n" msgstr "Read:POLLIN:T{\n" #. type: tbl table -#: build/C/man7/socket.7:140 +#: build/C/man7/socket.7:162 #, no-wrap msgid "New data arrived.\n" msgstr "新しいデータが到着した。\n" #. type: tbl table -#: build/C/man7/socket.7:143 +#: build/C/man7/socket.7:165 #, no-wrap msgid "A connection setup has been completed\n" msgstr "(接続志向のソケットで)\n" #. type: tbl table -#: build/C/man7/socket.7:144 +#: build/C/man7/socket.7:166 #, no-wrap msgid "(for connection-oriented sockets)\n" msgstr "接続の設定が終了した。\n" #. type: tbl table -#: build/C/man7/socket.7:146 build/C/man7/socket.7:149 +#: build/C/man7/socket.7:168 build/C/man7/socket.7:171 #, no-wrap msgid "Read:POLLHUP:T{\n" msgstr "Read:POLLHUP:T{\n" #. type: tbl table -#: build/C/man7/socket.7:147 +#: build/C/man7/socket.7:169 #, no-wrap msgid "A disconnection request has been initiated by the other end.\n" msgstr "接続先で切断要求が生成された。\n" #. type: tbl table -#: build/C/man7/socket.7:150 +#: build/C/man7/socket.7:172 #, no-wrap msgid "A connection is broken (only for connection-oriented protocols).\n" msgstr "接続が壊れた (接続志向のプロトコルのみ)。\n" #. type: tbl table -#: build/C/man7/socket.7:151 +#: build/C/man7/socket.7:173 #, no-wrap msgid "When the socket is written\n" msgstr "この場合、ソケットに書き込みが行われると\n" #. type: tbl table -#: build/C/man7/socket.7:152 +#: build/C/man7/socket.7:174 #, no-wrap msgid "B\n" msgstr "B\n" #. type: tbl table -#: build/C/man7/socket.7:153 +#: build/C/man7/socket.7:175 #, no-wrap msgid "is also sent.\n" msgstr "も送信される。\n" #. type: tbl table -#: build/C/man7/socket.7:155 +#: build/C/man7/socket.7:177 #, no-wrap msgid "Write:POLLOUT:T{\n" msgstr "Write:POLLOUT:T{\n" #. type: tbl table -#: build/C/man7/socket.7:156 +#: build/C/man7/socket.7:178 #, no-wrap msgid "Socket has enough send buffer space for writing new data.\n" msgstr "ソケットには新しいデータを書き込むのに充分なバッファ領域がある。\n" #. type: tbl table -#: build/C/man7/socket.7:158 +#: build/C/man7/socket.7:180 #, no-wrap msgid "Read/Write:T{\n" msgstr "Read/Write:T{\n" #. type: tbl table -#: build/C/man7/socket.7:159 +#: build/C/man7/socket.7:181 #, no-wrap msgid "POLLIN|\n" msgstr "POLLIN|\n" #. type: tbl table -#: build/C/man7/socket.7:160 +#: build/C/man7/socket.7:182 #, no-wrap msgid ".br\n" msgstr ".br\n" #. type: tbl table -#: build/C/man7/socket.7:161 +#: build/C/man7/socket.7:183 #, no-wrap msgid "POLLOUT\n" msgstr "POLLOUT\n" #. type: tbl table -#: build/C/man7/socket.7:163 +#: build/C/man7/socket.7:185 #, no-wrap msgid "An outgoing\n" msgstr "外部向けの\n" #. type: tbl table -#: build/C/man7/socket.7:164 +#: build/C/man7/socket.7:186 #, no-wrap msgid "B(2)\n" msgstr "B(2)\n" #. type: tbl table -#: build/C/man7/socket.7:165 +#: build/C/man7/socket.7:187 #, no-wrap msgid "finished.\n" msgstr "が終了した。\n" #. type: tbl table -#: build/C/man7/socket.7:167 +#: build/C/man7/socket.7:189 #, no-wrap msgid "Read/Write:POLLERR:An asynchronous error occurred.\n" msgstr "Read/Write:POLLERR:非同期的 (asynchronous) なエラーが起こった。\n" #. type: tbl table -#: build/C/man7/socket.7:168 +#: build/C/man7/socket.7:190 #, no-wrap msgid "Read/Write:POLLHUP:The other end has shut down one direction.\n" msgstr "Read/Write:POLLHUP:接続先が片方向を切断した。\n" #. type: tbl table -#: build/C/man7/socket.7:169 +#: build/C/man7/socket.7:191 #, no-wrap msgid "Exception:POLLPRI:T{\n" msgstr "Exception:POLLPRI:T{\n" #. type: tbl table -#: build/C/man7/socket.7:170 +#: build/C/man7/socket.7:192 #, no-wrap msgid "Urgent data arrived.\n" msgstr "緊急データ (urgent data) が到着した。この場合は\n" #. type: tbl table -#: build/C/man7/socket.7:171 +#: build/C/man7/socket.7:193 #, no-wrap msgid "B\n" msgstr "B\n" #. type: tbl table -#: build/C/man7/socket.7:172 +#: build/C/man7/socket.7:194 #, no-wrap msgid "is sent then.\n" msgstr "が送信される。\n" #. type: Plain text -#: build/C/man7/socket.7:202 +#: build/C/man7/socket.7:223 msgid "" "An alternative to B(2) and B(2), B(2), B(2), and so on." msgid "" "Specify the receiving or sending timeouts until reporting an error. The " "argument is a I. If an input or output function blocks for " "this period of time, and data has been sent or received, the return value of " "that function will be the amount of data transferred; if no data has been " "transferred and the timeout has been reached then -1 is returned with " -"I set to B or B just as if the socket was " -"specified to be nonblocking. If the timeout is set to zero (the default) " -"then the operation will never timeout. Timeouts only have effect for system " -"calls that perform socket I/O (e.g., B(2), B(2), B(2), " -"B(2)); timeouts have no effect for B(2), B(2), B(2), and so on." msgstr "" "送信・受信のタイムアウトを指定する。これを越えるとエラーを報告する。 引き数" "は I である。 入出力関数がタイムアウト時間の間ブロックされ、" @@ -8104,13 +9094,13 @@ msgstr "" "(2), B(2) などにはタイムアウトは影響を及ぼさない。" #. type: TP -#: build/C/man7/socket.7:465 +#: build/C/man7/socket.7:570 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:480 +#: build/C/man7/socket.7:585 msgid "" "Indicates that the rules used in validating addresses supplied in a B" "(2) call should allow reuse of local addresses. For B sockets " @@ -8127,14 +9117,15 @@ msgstr "" "ドできない。 引き数はブール整数のフラグである。" #. type: TP -#: build/C/man7/socket.7:480 +#: build/C/man7/socket.7:585 #, no-wrap msgid "B" msgstr "B" #. Most (all?) other implementations do not do this -- MTK, Dec 05 +#. See also the comment to SO_RCVBUF (17 Jul 2012 LKML mail) #. type: Plain text -#: build/C/man7/socket.7:495 +#: build/C/man7/socket.7:601 msgid "" "Sets or gets the maximum socket send buffer in bytes. The kernel doubles " "this value (to allow space for bookkeeping overhead) when it is set using " @@ -8151,13 +9142,13 @@ msgstr "" "る。 このオプションの最小値は (2倍した値で) 2048 である。" #. type: TP -#: build/C/man7/socket.7:495 +#: build/C/man7/socket.7:601 #, no-wrap msgid "B (since Linux 2.6.14)" msgstr "B (Linux 2.6.14 以降)" #. type: Plain text -#: build/C/man7/socket.7:504 +#: build/C/man7/socket.7:610 msgid "" "Using this socket option, a privileged (B) process can " "perform the same task as B, but the I limit can be " @@ -8168,13 +9159,13 @@ msgstr "" "きすることができる。" #. type: TP -#: build/C/man7/socket.7:504 +#: build/C/man7/socket.7:610 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:520 +#: build/C/man7/socket.7:626 msgid "" "Enable or disable the receiving of the B control message. The " "timestamp control message is sent with level B and the " @@ -8188,13 +9179,13 @@ msgstr "" "timeval> である。 制御メッセージの詳細については B(3) を参照。" #. type: TP -#: build/C/man7/socket.7:520 +#: build/C/man7/socket.7:626 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:525 +#: build/C/man7/socket.7:631 msgid "" "Gets the socket type as an integer (e.g., B). This socket " "option is read-only." @@ -8203,13 +9194,13 @@ msgstr "" "このソケットオプションは読み出し専用である。" #. type: SS -#: build/C/man7/socket.7:525 +#: build/C/man7/socket.7:631 #, no-wrap msgid "Signals" msgstr "シグナル" #. type: Plain text -#: build/C/man7/socket.7:536 +#: build/C/man7/socket.7:642 msgid "" "When writing onto a connection-oriented socket that has been shut down (by " "the local or the remote end) B is sent to the writing process and " @@ -8222,7 +9213,7 @@ msgstr "" "していた場合はシグナルは送られない。" #. type: Plain text -#: build/C/man7/socket.7:561 +#: build/C/man7/socket.7:667 msgid "" "When requested with the B B(2) or B B" "(2), B is sent when an I/O event occurs. It is possible to use " @@ -8241,9 +9232,9 @@ msgstr "" "ルドにファイルディスクリプタが入った状態で呼び出される。 詳細は B(2) " "を参照のこと。" -#. .SS Ancillary Messages +#. .SS Ancillary messages #. type: Plain text -#: build/C/man7/socket.7:569 +#: build/C/man7/socket.7:675 msgid "" "Under some circumstances (e.g., multiple processes accessing a single " "socket), the condition that caused the B may have already disappeared " @@ -8256,13 +9247,13 @@ msgstr "" "すべきである。 Linux は同じシグナルを後で再送するからである。" #. type: SS -#: build/C/man7/socket.7:569 +#: build/C/man7/socket.7:675 #, no-wrap msgid "/proc interfaces" msgstr "/proc インタフェース" #. type: Plain text -#: build/C/man7/socket.7:573 +#: build/C/man7/socket.7:679 msgid "" "The core socket networking parameters can be accessed via files in the " "directory I." @@ -8271,24 +9262,24 @@ msgstr "" "レクトリ内のファイルを通してアクセスできる。" #. type: TP -#: build/C/man7/socket.7:573 +#: build/C/man7/socket.7:679 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man7/socket.7:576 +#: build/C/man7/socket.7:682 msgid "contains the default setting in bytes of the socket receive buffer." msgstr "ソケットの受信バッファサイズのデフォルト値 (バイト単位)。" #. type: TP -#: build/C/man7/socket.7:576 +#: build/C/man7/socket.7:682 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man7/socket.7:582 +#: build/C/man7/socket.7:688 msgid "" "contains the maximum socket receive buffer size in bytes which a user may " "set by using the B socket option." @@ -8297,24 +9288,24 @@ msgstr "" "ファサイズの最大値 (バイト単位)。" #. type: TP -#: build/C/man7/socket.7:582 +#: build/C/man7/socket.7:688 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man7/socket.7:585 +#: build/C/man7/socket.7:691 msgid "contains the default setting in bytes of the socket send buffer." msgstr "ソケットの送信バッファサイズのデフォルト値 (バイト単位)。" #. type: TP -#: build/C/man7/socket.7:585 +#: build/C/man7/socket.7:691 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man7/socket.7:591 +#: build/C/man7/socket.7:697 msgid "" "contains the maximum socket send buffer size in bytes which a user may set " "by using the B socket option." @@ -8323,13 +9314,13 @@ msgstr "" "ファサイズの最大値 (バイト単位)。" #. type: TP -#: build/C/man7/socket.7:591 +#: build/C/man7/socket.7:697 #, no-wrap msgid "I and I" msgstr "I と I" #. type: Plain text -#: build/C/man7/socket.7:595 +#: build/C/man7/socket.7:701 msgid "" "configure the token bucket filter used to load limit warning messages caused " "by external network events." @@ -8338,25 +9329,25 @@ msgstr "" "よって引き起こされた 負荷限界の警告メッセージに用いられる。" #. type: TP -#: build/C/man7/socket.7:595 +#: build/C/man7/socket.7:701 #, no-wrap msgid "I" msgstr "I" #. type: Plain text -#: build/C/man7/socket.7:598 +#: build/C/man7/socket.7:704 msgid "Maximum number of packets in the global input queue." msgstr "グローバルな入力キューにおける最大のパケット数。" #. type: TP -#: build/C/man7/socket.7:598 +#: build/C/man7/socket.7:704 #, no-wrap msgid "I" msgstr "I" #. netdev_fastroute is not documented because it is experimental #. type: Plain text -#: build/C/man7/socket.7:603 +#: build/C/man7/socket.7:709 msgid "" "Maximum length of ancillary data and user control data like the iovecs per " "socket." @@ -8365,30 +9356,30 @@ msgstr "" "うなもの) との和の最大長。" #. type: SS -#: build/C/man7/socket.7:603 +#: build/C/man7/socket.7:709 #, no-wrap msgid "Ioctls" msgstr "ioctl" #. type: Plain text -#: build/C/man7/socket.7:606 +#: build/C/man7/socket.7:712 msgid "These operations can be accessed using B(2):" msgstr "以下に示す操作には B(2) を用いてアクセスできる。" #. type: Plain text -#: build/C/man7/socket.7:610 +#: build/C/man7/socket.7:716 #, no-wrap msgid "IB< = ioctl(>IB<, >IB<, >I<&value_result>B<);>\n" msgstr "IB< = ioctl(>IB<, >IB<, >I<&value_result>B<);>\n" #. type: TP -#: build/C/man7/socket.7:612 +#: build/C/man7/socket.7:718 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:636 +#: build/C/man7/socket.7:742 msgid "" "Return a I with the receive timestamp of the last packet " "passed to the user. This is useful for accurate round trip time " @@ -8409,13 +9400,13 @@ msgstr "" "セットする)。" #. type: TP -#: build/C/man7/socket.7:636 +#: build/C/man7/socket.7:742 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:655 +#: build/C/man7/socket.7:761 msgid "" "Set the process or process group to send B or B signals to " "when an asynchronous I/O operation has finished or urgent data is " @@ -8435,13 +9426,13 @@ msgstr "" "の場合は この限りではない。" #. type: TP -#: build/C/man7/socket.7:655 +#: build/C/man7/socket.7:761 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:665 +#: build/C/man7/socket.7:771 msgid "" "Change the B flag to enable or disable asynchronous I/O mode of the " "socket. Asynchronous I/O mode means that the B signal or the signal " @@ -8452,7 +9443,7 @@ msgstr "" "B シグナルや B で設定されたシグナル・セットが発行される。" #. type: Plain text -#: build/C/man7/socket.7:673 +#: build/C/man7/socket.7:779 msgid "" "Argument is an integer boolean flag. (This operation is synonymous with the " "use of B(2) to set the B flag.)" @@ -8461,13 +9452,13 @@ msgstr "" "B フラグをセットするのと同じ意味である。)" #. type: TP -#: build/C/man7/socket.7:673 +#: build/C/man7/socket.7:779 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:682 +#: build/C/man7/socket.7:788 msgid "" "Get the current process or process group that receives B or B " "signals, or 0 when none is set." @@ -8476,34 +9467,34 @@ msgstr "" "る。 ない場合は 0 が返る。" #. type: Plain text -#: build/C/man7/socket.7:686 +#: build/C/man7/socket.7:792 msgid "Valid B(2) operations:" msgstr "有効な B(2) 操作:" #. type: TP -#: build/C/man7/socket.7:686 +#: build/C/man7/socket.7:792 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:691 +#: build/C/man7/socket.7:797 msgid "The same as the B B(2)." msgstr "B B(2) と同じ。" #. type: TP -#: build/C/man7/socket.7:691 +#: build/C/man7/socket.7:797 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/socket.7:696 +#: build/C/man7/socket.7:802 msgid "The same as the B B(2)." msgstr "B B(2) と同じ。" #. type: Plain text -#: build/C/man7/socket.7:710 +#: build/C/man7/socket.7:816 msgid "" "B was introduced in Linux 2.0.30. B is new in " "Linux 2.2. The I interfaces was introduced in Linux 2.2. " @@ -8518,7 +9509,7 @@ msgstr "" "はできなかった。" #. type: Plain text -#: build/C/man7/socket.7:715 +#: build/C/man7/socket.7:821 msgid "" "Linux assumes that half of the send/receive buffer is used for internal " "kernel structures; thus the values in the corresponding I files are " @@ -8529,7 +9520,7 @@ msgstr "" "なる。" #. type: Plain text -#: build/C/man7/socket.7:728 +#: build/C/man7/socket.7:834 msgid "" "Linux will only allow port reuse with the B option when this " "option was set both in the previous program that performed a B(2) to " @@ -8550,7 +9541,7 @@ msgstr "" #. .SH AUTHORS #. This man page was written by Andi Kleen. #. type: Plain text -#: build/C/man7/socket.7:741 +#: build/C/man7/socket.7:847 msgid "" "The B socket options B and " "B are not documented. The suggested interface to use them " @@ -8561,38 +9552,44 @@ msgstr "" "して 用いる方が良い。" #. type: Plain text -#: build/C/man7/socket.7:752 +#: build/C/man7/socket.7:859 +#, fuzzy +#| msgid "" +#| "B(2), B(2), B(2), B(7), " +#| "B(7), B(7), B(7), B(7), B(7), B(7)" msgid "" -"B(2), B(2), B(2), B(7), B" -"(7), B(7), B(7), B(7), B(7), B(7)" +"B(2), B(2), B(2), B(2), " +"B(7), B(7), B(7), B(7), B(7), B(7), " +"B(7)" msgstr "" "B(2), B(2), B(2), B(7), B" "(7), B(7), B(7), B(7), B(7), B(7)" #. type: TH -#: build/C/man2/socketcall.2:26 +#: build/C/man2/socketcall.2:25 #, no-wrap msgid "SOCKETCALL" msgstr "SOCKETCALL" #. type: TH -#: build/C/man2/socketcall.2:26 -#, no-wrap -msgid "2007-06-28" -msgstr "2007-06-28" +#: build/C/man2/socketcall.2:25 +#, fuzzy, no-wrap +#| msgid "2010-10-06" +msgid "2012-10-16" +msgstr "2010-10-06" #. type: Plain text -#: build/C/man2/socketcall.2:29 +#: build/C/man2/socketcall.2:28 msgid "socketcall - socket system calls" msgstr "socketcall - ソケット・システムコール" #. type: Plain text -#: build/C/man2/socketcall.2:31 +#: build/C/man2/socketcall.2:30 msgid "BIB<, unsigned long *>IB<);>" msgstr "BIB<, unsigned long *>IB<);>" #. type: Plain text -#: build/C/man2/socketcall.2:39 +#: build/C/man2/socketcall.2:38 msgid "" "B() is a common kernel entry point for the socket system " "calls. I determines which socket function to invoke. I points " @@ -8605,7 +9602,7 @@ msgstr "" "ロックを指す。" #. type: Plain text -#: build/C/man2/socketcall.2:43 +#: build/C/man2/socketcall.2:42 msgid "" "User programs should call the appropriate functions by their usual names. " "Only standard library implementors and kernel hackers need to know about " @@ -8616,7 +9613,7 @@ msgstr "" "必要がある。" #. type: Plain text -#: build/C/man2/socketcall.2:46 +#: build/C/man2/socketcall.2:45 msgid "" "This call is specific to Linux, and should not be used in programs intended " "to be portable." @@ -8625,18 +9622,23 @@ msgstr "" "い。" #. type: Plain text -#: build/C/man2/socketcall.2:54 +#: build/C/man2/socketcall.2:53 +#, fuzzy +#| msgid "" +#| "On a few architectures, for example ia64, there is no B() " +#| "system call; instead B(2), B(2), B(2), and so on " +#| "really are implemented as separate system calls." msgid "" -"On a few architectures, for example ia64, there is no B() " -"system call; instead B(2), B(2), B(2), and so on " -"really are implemented as separate system calls." +"On a some architectures\\(emfor example, x86-64 and ARM\\(emthere is no " +"B() system call; instead B(2), B(2), B" +"(2), and so on really are implemented as separate system calls." msgstr "" "ia64 などのいくつかのアーキテクチャでは、システムコール B() が存" "在しない。実際には、その代わりに B(2), B(2), B(2) など" "が独立したシステムコールとして実装されている。" #. type: Plain text -#: build/C/man2/socketcall.2:72 +#: build/C/man2/socketcall.2:71 msgid "" "B(2), B(2), B(2), B(2), B" "(2), B(2), B(2), B(2), B(2), B" @@ -8649,24 +9651,24 @@ msgstr "" "(2), B(2), B(2)" #. type: TH -#: build/C/man2/socketpair.2:40 +#: build/C/man2/socketpair.2:42 #, no-wrap msgid "SOCKETPAIR" msgstr "SOCKETPAIR" #. type: TH -#: build/C/man2/socketpair.2:40 +#: build/C/man2/socketpair.2:42 #, no-wrap msgid "2008-10-11" msgstr "2008-10-11" #. type: Plain text -#: build/C/man2/socketpair.2:43 +#: build/C/man2/socketpair.2:45 msgid "socketpair - create a pair of connected sockets" msgstr "socketpair - 接続されたソケットのペアを作成する" #. type: Plain text -#: build/C/man2/socketpair.2:50 +#: build/C/man2/socketpair.2:52 msgid "" "BIB<, int >IB<, int >IB<, int " ">IB<[2]);>" @@ -8675,7 +9677,7 @@ msgstr "" ">IB<[2]);>" #. type: Plain text -#: build/C/man2/socketpair.2:61 +#: build/C/man2/socketpair.2:63 msgid "" "The B() call creates an unnamed pair of connected sockets in " "the specified I, of the specified I, and using the optionally " @@ -8687,7 +9689,7 @@ msgstr "" "のプロトコルを用いる。 これらの引き数の詳細は B(2) を参照のこと。" #. type: Plain text -#: build/C/man2/socketpair.2:67 +#: build/C/man2/socketpair.2:69 msgid "" "The descriptors used in referencing the new sockets are returned in I[0] " "and I[1]. The two sockets are indistinguishable." @@ -8696,33 +9698,33 @@ msgstr "" "I[1] に返される。 二つのソケットは全く同じである。" #. type: Plain text -#: build/C/man2/socketpair.2:76 +#: build/C/man2/socketpair.2:78 msgid "The specified address family is not supported on this machine." msgstr "このマシンでは指定されたアドレス・ファミリがサポートされていない。" #. type: Plain text -#: build/C/man2/socketpair.2:81 +#: build/C/man2/socketpair.2:83 msgid "" "The address I does not specify a valid part of the process address space." msgstr "アドレス I がこのプロセスで使えるアドレス空間を指定していない。" #. type: Plain text -#: build/C/man2/socketpair.2:84 +#: build/C/man2/socketpair.2:86 msgid "Too many descriptors are in use by this process." msgstr "このプロセスが使用しているディスクリプタの数が多すぎる。" #. type: Plain text -#: build/C/man2/socketpair.2:90 +#: build/C/man2/socketpair.2:92 msgid "The specified protocol does not support creation of socket pairs." msgstr "指定されたプロトコルではソケットのペアの作成がサポートされていない。" #. type: Plain text -#: build/C/man2/socketpair.2:93 +#: build/C/man2/socketpair.2:95 msgid "The specified protocol is not supported on this machine." msgstr "このマシンでは指定されたプロトコルがサポートされていない。" #. type: Plain text -#: build/C/man2/socketpair.2:101 +#: build/C/man2/socketpair.2:103 msgid "" "4.4BSD, POSIX.1-2001. The B() function call appeared in " "4.2BSD. It is generally portable to/from non-BSD systems supporting clones " @@ -8733,7 +9735,7 @@ msgstr "" "BSD 以外のシステムと、 互いに移植性がある。" #. type: Plain text -#: build/C/man2/socketpair.2:107 +#: build/C/man2/socketpair.2:109 msgid "" "On Linux, the only supported domain for this call is B (or " "synonymously, B). (Most implementations have the same " @@ -8743,7 +9745,7 @@ msgstr "" "ある B) だけである。 (ほとんどの実装で同じ制限がある)" #. type: Plain text -#: build/C/man2/socketpair.2:116 +#: build/C/man2/socketpair.2:118 msgid "" "Since Linux 2.6.27, B() supports the B and " "B flags described in B(2)." @@ -8752,17 +9754,39 @@ msgstr "" "B に対応している。フラグの説明は B(2) を参照のこと。" #. type: Plain text -#: build/C/man2/socketpair.2:129 +#: build/C/man2/socketpair.2:131 msgid "" "B(2), B(2), B(2), B(2), B(7), B(7)" msgstr "" "B(2), B(2), B(2), B(2), B(7), B(7)" +#~ msgid "2011-09-16" +#~ msgstr "2011-09-16" + +#~ msgid "B" +#~ msgstr "B" + +#~ msgid "2010-06-10" +#~ msgstr "2010-06-10" + +#~ msgid "" +#~ "\\(lqBSD Interprocess Communication Tutorial\\(rq is reprinted in I" +#~ msgstr "" +#~ "\\(lqBSD Interprocess Communication Tutorial\\(rq は I として再版された。" + +#~ msgid "2007-06-28" +#~ msgstr "2007-06-28" + +#~ msgid "2011-10-04" +#~ msgstr "2011-10-04" + +#~ msgid "2010-08-31" +#~ msgstr "2010-08-31" + #~ msgid "2010-06-13" #~ msgstr "2010-06-13" #~ msgid "RETURN VALUES" #~ msgstr "RETURN VALUES" - -#~ msgid "2011-10-01" -#~ msgstr "2011-10-01"