X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=po4a%2Fepoll%2Fpo%2Fja.po;h=3577751496881bc1be3e9a117d83719094f96f94;hb=1e4180088d00386dcdebf39cc1882357e9cce486;hp=0eb013bcfc9f895eb46d17c70245f376e2152ad5;hpb=8c738bbd1759948b56e63c65ad7432308045cf8c;p=linuxjm%2FLDP_man-pages.git diff --git a/po4a/epoll/po/ja.po b/po4a/epoll/po/ja.po index 0eb013bc..35777514 100644 --- a/po4a/epoll/po/ja.po +++ b/po4a/epoll/po/ja.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-03-22 04:25+0900\n" -"PO-Revision-Date: 2012-03-23 04:42+0900\n" +"POT-Creation-Date: 2013-08-15 19:31+0900\n" +"PO-Revision-Date: 2013-08-16 11:13+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -24,28 +24,28 @@ msgstr "EPOLL" #. type: TH #: build/C/man7/epoll.7:21 #, no-wrap -msgid "2009-02-01" -msgstr "2009-02-01" +msgid "2012-04-17" +msgstr "2012-04-17" #. type: TH -#: build/C/man7/epoll.7:21 build/C/man2/epoll_create.2:25 -#: build/C/man2/epoll_ctl.2:21 build/C/man2/epoll_wait.2:23 +#: build/C/man7/epoll.7:21 build/C/man2/epoll_create.2:24 +#: build/C/man2/epoll_ctl.2:20 build/C/man2/epoll_wait.2:22 #: build/C/man2/poll.2:31 #, no-wrap msgid "Linux" msgstr "Linux" #. type: TH -#: build/C/man7/epoll.7:21 build/C/man2/epoll_create.2:25 -#: build/C/man2/epoll_ctl.2:21 build/C/man2/epoll_wait.2:23 +#: build/C/man7/epoll.7:21 build/C/man2/epoll_create.2:24 +#: build/C/man2/epoll_ctl.2:20 build/C/man2/epoll_wait.2:22 #: build/C/man2/poll.2:31 #, no-wrap msgid "Linux Programmer's Manual" msgstr "Linux Programmer's Manual" #. type: SH -#: build/C/man7/epoll.7:22 build/C/man2/epoll_create.2:26 -#: build/C/man2/epoll_ctl.2:22 build/C/man2/epoll_wait.2:24 +#: build/C/man7/epoll.7:22 build/C/man2/epoll_create.2:25 +#: build/C/man2/epoll_ctl.2:21 build/C/man2/epoll_wait.2:23 #: build/C/man2/poll.2:32 #, no-wrap msgid "NAME" @@ -57,59 +57,63 @@ msgid "epoll - I/O event notification facility" msgstr "epoll - I/O イベント通知機能" #. type: SH -#: build/C/man7/epoll.7:24 build/C/man2/epoll_create.2:28 -#: build/C/man2/epoll_ctl.2:24 build/C/man2/epoll_wait.2:26 +#: build/C/man7/epoll.7:24 build/C/man2/epoll_create.2:27 +#: build/C/man2/epoll_ctl.2:23 build/C/man2/epoll_wait.2:25 #: build/C/man2/poll.2:34 #, no-wrap msgid "SYNOPSIS" msgstr "書式" #. type: Plain text -#: build/C/man7/epoll.7:26 build/C/man2/epoll_ctl.2:26 +#: build/C/man7/epoll.7:26 build/C/man2/epoll_ctl.2:25 msgid "B<#include Esys/epoll.hE>" msgstr "B<#include Esys/epoll.hE>" #. type: SH -#: build/C/man7/epoll.7:26 build/C/man2/epoll_create.2:35 -#: build/C/man2/epoll_ctl.2:29 build/C/man2/epoll_wait.2:36 +#: build/C/man7/epoll.7:26 build/C/man2/epoll_create.2:34 +#: build/C/man2/epoll_ctl.2:28 build/C/man2/epoll_wait.2:35 #: build/C/man2/poll.2:46 #, no-wrap msgid "DESCRIPTION" msgstr "説明" #. type: Plain text -#: build/C/man7/epoll.7:36 +#: build/C/man7/epoll.7:40 msgid "" -"B is a variant of B(2) that can be used either as an edge-" -"triggered or a level-triggered interface and scales well to large numbers of " -"watched file descriptors. The following system calls are provided to create " -"and manage an B instance:" +"The B API performs a similar task to B(2): monitoring multiple " +"file descriptors to see if I/O is possible on any of them. The B API " +"can be used either as an edge-triggered or a level-triggered interface and " +"scales well to large numbers of watched file descriptors. The following " +"system calls are provided to create and manage an B instance:" msgstr "" -"B は B(2) の一種であり、エッジトリガインタフェースと レベルトリ" -"ガインタフェースのどちらとしても使用することができ、 監視するファイルディスク" -"リプタの数が多い場合にも使用できる。 B インスタンスの作成や管理を行う" -"ために 以下のシステムコールが提供されている:" +"B API は B(2) と同様の処理を行う、つまり、複数のファイルディス" +"ク\n" +"リプタを監視し、その中のいずれかが入出力可能な状態であるかを確認する。\n" +"B API は、エッジトリガインタフェースとレベルトリガインタフェースの\n" +"いずれとしても使用することができ、監視するファイルディスクリプタの数が多い\n" +"場合にも使用できる。 B インスタンスの作成や管理を行うために\n" +"以下のシステムコールが提供されている:" #. type: IP -#: build/C/man7/epoll.7:36 build/C/man7/epoll.7:46 build/C/man7/epoll.7:54 +#: build/C/man7/epoll.7:40 build/C/man7/epoll.7:49 build/C/man7/epoll.7:57 #, no-wrap msgid "*" msgstr "*" #. type: Plain text -#: build/C/man7/epoll.7:46 +#: build/C/man7/epoll.7:49 msgid "" -"An B instance created by B(2), which returns a file " -"descriptor referring to the epoll instance. (The more recent " -"B(2) extends the functionality of B(2).)" +"B(2) creates an B instance and returns a file " +"descriptor referring to that instance. (The more recent B" +"(2) extends the functionality of B(2).)" msgstr "" -"B インスタンスは B(2) で作成される。 B" -"(2) は作成した epoll インスタンスを参照するファイルディスクリプタを返す。 " -"(もっと新しい B(2) では、 B(2) の機能が拡張さ" -"れている)。" +"B(2) は B インスタンスを作成し、そのインスタンスを参照す" +"る\n" +"ファイルディスクリプタを返す。(もっと新しい B(2) では、\n" +"B(2) の機能が拡張されている)。" #. type: Plain text -#: build/C/man7/epoll.7:54 +#: build/C/man7/epoll.7:57 msgid "" "Interest in particular file descriptors is then registered via B" "(2). The set of file descriptors currently registered on an B " @@ -120,18 +124,22 @@ msgstr "" "I 集合と呼ばれることもある。" #. type: Plain text -#: build/C/man7/epoll.7:57 -msgid "Finally, the actual wait is started by B(2)." -msgstr "最後に B(2) で実際のイベント待ちを開始する。" +#: build/C/man7/epoll.7:61 +msgid "" +"B(2) waits for I/O events, blocking the calling thread if no " +"events are currently available." +msgstr "" +"B(2) は I/O イベントを待つ。\n" +"現在利用可能な状態のイベントがなければ、呼び出したスレッドを停止する。" #. type: SS -#: build/C/man7/epoll.7:57 +#: build/C/man7/epoll.7:61 #, no-wrap -msgid "Level-Triggered and Edge-Triggered" +msgid "Level-triggered and edge-triggered" msgstr "レベルトリガとエッジトリガ" #. type: Plain text -#: build/C/man7/epoll.7:66 +#: build/C/man7/epoll.7:70 msgid "" "The B event distribution interface is able to behave both as edge-" "triggered (ET) and as level-triggered (LT). The difference between the two " @@ -142,13 +150,13 @@ msgstr "" "は、次のように説明できる。 このようなシナリオが起こったとしよう:" #. type: IP -#: build/C/man7/epoll.7:66 +#: build/C/man7/epoll.7:70 #, no-wrap msgid "1." msgstr "1." #. type: Plain text -#: build/C/man7/epoll.7:72 +#: build/C/man7/epoll.7:76 msgid "" "The file descriptor that represents the read side of a pipe (I) is " "registered on the B instance." @@ -157,25 +165,25 @@ msgstr "" "ンスに登録される。" #. type: IP -#: build/C/man7/epoll.7:72 +#: build/C/man7/epoll.7:76 #, no-wrap msgid "2." msgstr "2." #. type: Plain text -#: build/C/man7/epoll.7:74 +#: build/C/man7/epoll.7:78 msgid "A pipe writer writes 2 kB of data on the write side of the pipe." msgstr "" "パイプへ書き込むプログラムが 2 kB のデータをパイプの書き込み側へ書き込む。" #. type: IP -#: build/C/man7/epoll.7:74 +#: build/C/man7/epoll.7:78 #, no-wrap msgid "3." msgstr "3." #. type: Plain text -#: build/C/man7/epoll.7:80 +#: build/C/man7/epoll.7:84 msgid "" "A call to B(2) is done that will return I as a ready file " "descriptor." @@ -184,36 +192,36 @@ msgstr "" "として I が返る。" #. type: IP -#: build/C/man7/epoll.7:80 +#: build/C/man7/epoll.7:84 #, no-wrap msgid "4." msgstr "4." #. type: Plain text -#: build/C/man7/epoll.7:83 +#: build/C/man7/epoll.7:87 msgid "The pipe reader reads 1 kB of data from I." msgstr "パイプから読み出すプログラムが、1 kB のデータを I から読み出す。" #. type: IP -#: build/C/man7/epoll.7:83 +#: build/C/man7/epoll.7:87 #, no-wrap msgid "5." msgstr "5." #. type: Plain text -#: build/C/man7/epoll.7:87 +#: build/C/man7/epoll.7:91 msgid "A call to B(2) is done." msgstr "B(2) の呼び出しが行われる。" #. type: Plain text -#: build/C/man7/epoll.7:122 +#: build/C/man7/epoll.7:126 msgid "" "If the I file descriptor has been added to the B interface using " "the B (edge-triggered) flag, the call to B(2) done in " "step B<5> will probably hang despite the available data still present in the " "file input buffer; meanwhile the remote peer might be expecting a response " "based on the data it already sent. The reason for this is that edge-" -"triggered mode only delivers events when changes occur on the monitored file " +"triggered mode delivers events only when changes occur on the monitored file " "descriptor. So, in step B<5> the caller might end up waiting for some data " "that is already present inside the input buffer. In the above example, an " "event on I will be generated because of the write done in B<2> and the " @@ -235,7 +243,7 @@ msgstr "" "B(2) の呼び出しが 無期限に停止 (block) するかもしれない。" #. type: Plain text -#: build/C/man7/epoll.7:132 +#: build/C/man7/epoll.7:136 msgid "" "An application that employs the B flag should use nonblocking file " "descriptors to avoid having a blocking read or write starve a task that is " @@ -250,24 +258,24 @@ msgstr "" "る。" #. type: TP -#: build/C/man7/epoll.7:133 +#: build/C/man7/epoll.7:137 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:136 +#: build/C/man7/epoll.7:140 msgid "with nonblocking file descriptors; and" msgstr "ブロックしないファイルディスクリプタと共に使う。" #. type: TP -#: build/C/man7/epoll.7:136 +#: build/C/man7/epoll.7:140 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:144 +#: build/C/man7/epoll.7:148 msgid "" "by waiting for an event only after B(2) or B(2) return " "B." @@ -276,7 +284,7 @@ msgstr "" "つ。" #. type: Plain text -#: build/C/man7/epoll.7:155 +#: build/C/man7/epoll.7:159 msgid "" "By contrast, when used as a level-triggered interface (the default, when " "B is not specified), B is simply a faster B(2), and " @@ -289,7 +297,7 @@ msgstr "" "B(2) が使われているところではどこでも使用することができる。" #. type: Plain text -#: build/C/man7/epoll.7:172 +#: build/C/man7/epoll.7:176 msgid "" "Since even with edge-triggered B, multiple events can be generated " "upon receipt of multiple chunks of data, the caller has the option to " @@ -307,7 +315,7 @@ msgstr "" "は、 呼び出し側の責任である。" #. type: SS -#: build/C/man7/epoll.7:172 +#: build/C/man7/epoll.7:176 #, no-wrap msgid "/proc interfaces" msgstr "/proc インタフェース" @@ -318,7 +326,7 @@ msgstr "/proc インタフェース" #. This specifies an upper limit on the number of epoll instances #. that can be created per real user ID. #. type: Plain text -#: build/C/man7/epoll.7:180 +#: build/C/man7/epoll.7:184 msgid "" "The following interfaces can be used to limit the amount of kernel memory " "consumed by epoll:" @@ -327,14 +335,14 @@ msgstr "" "用することができる。" #. type: TP -#: build/C/man7/epoll.7:180 +#: build/C/man7/epoll.7:184 #, no-wrap msgid "I (since Linux 2.6.28)" msgstr "I (Linux 2.6.28 以降)" #. 2.6.29 (in 2.6.28, the default was 1/32 of lowmem) #. type: Plain text -#: build/C/man7/epoll.7:194 +#: build/C/man7/epoll.7:198 msgid "" "This specifies a limit on the total number of file descriptors that a user " "can register across all epoll instances on the system. The limit is per " @@ -351,13 +359,13 @@ msgstr "" "1/25 (4%) であり、 登録で消費されるメモリ量 (バイト単位) で割った値となる。" #. type: SS -#: build/C/man7/epoll.7:194 +#: build/C/man7/epoll.7:198 #, no-wrap -msgid "Example for Suggested Usage" +msgid "Example for suggested usage" msgstr "おすすめな使用例" #. type: Plain text -#: build/C/man7/epoll.7:223 +#: build/C/man7/epoll.7:227 msgid "" "While the usage of B when employed as a level-triggered interface " "does have the same semantics as B(2), the edge-triggered usage " @@ -381,7 +389,7 @@ msgstr "" "することができる。" #. type: Plain text -#: build/C/man7/epoll.7:229 +#: build/C/man7/epoll.7:233 #, no-wrap msgid "" "#define MAX_EVENTS 10\n" @@ -393,7 +401,7 @@ msgstr "" "int listen_sock, conn_sock, nfds, epollfd;\n" #. type: Plain text -#: build/C/man7/epoll.7:232 +#: build/C/man7/epoll.7:236 #, no-wrap msgid "" "/* Set up listening socket, \\(aqlisten_sock\\(aq (socket(),\n" @@ -403,7 +411,7 @@ msgstr "" " bind(), listen()) */\n" #. type: Plain text -#: build/C/man7/epoll.7:238 +#: build/C/man7/epoll.7:242 #, no-wrap msgid "" "epollfd = epoll_create(10);\n" @@ -419,7 +427,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man7/epoll.7:245 +#: build/C/man7/epoll.7:249 #, no-wrap msgid "" "ev.events = EPOLLIN;\n" @@ -437,7 +445,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man7/epoll.7:252 +#: build/C/man7/epoll.7:256 #, no-wrap msgid "" "for (;;) {\n" @@ -455,7 +463,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man7/epoll.7:274 +#: build/C/man7/epoll.7:278 #, no-wrap msgid "" " for (n = 0; n E nfds; ++n) {\n" @@ -503,7 +511,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man7/epoll.7:293 +#: build/C/man7/epoll.7:297 msgid "" "When used as an edge-triggered interface, for performance reasons, it is " "possible to add the file descriptor inside the B interface " @@ -518,19 +526,19 @@ msgstr "" "B の連続的な切り替えが避けられる。" #. type: SS -#: build/C/man7/epoll.7:293 +#: build/C/man7/epoll.7:297 #, no-wrap -msgid "Questions and Answers" +msgid "Questions and answers" msgstr "質問と解答" #. type: TP -#: build/C/man7/epoll.7:294 +#: build/C/man7/epoll.7:298 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:299 +#: build/C/man7/epoll.7:303 msgid "" "What is the key used to distinguish the file descriptors registered in an " "B set?" @@ -539,13 +547,13 @@ msgstr "" "して使えばよいか?" #. type: TP -#: build/C/man7/epoll.7:299 +#: build/C/man7/epoll.7:303 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:305 +#: build/C/man7/epoll.7:309 msgid "" "The key is the combination of the file descriptor number and the open file " "description (also known as an \"open file handle\", the kernel's internal " @@ -556,13 +564,13 @@ msgstr "" "ばれ、オープンされたファイルのカーネルの内部表現である)。" #. type: TP -#: build/C/man7/epoll.7:305 +#: build/C/man7/epoll.7:309 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:310 +#: build/C/man7/epoll.7:314 msgid "" "What happens if you register the same file descriptor on an B " "instance twice?" @@ -571,7 +579,7 @@ msgstr "" "なるか?" #. type: TP -#: build/C/man7/epoll.7:310 +#: build/C/man7/epoll.7:314 #, no-wrap msgid "B" msgstr "B" @@ -590,7 +598,7 @@ msgstr "B" #. "epoll design problems with common fork/exec patterns" #. mtk, Feb 2008 #. type: Plain text -#: build/C/man7/epoll.7:341 +#: build/C/man7/epoll.7:345 msgid "" "You will probably get B. However, it is possible to add a duplicate " "(B(2), B(2), B(2) B) descriptor to the same " @@ -604,13 +612,13 @@ msgstr "" "能は有用な手法である。" #. type: TP -#: build/C/man7/epoll.7:341 +#: build/C/man7/epoll.7:345 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:349 +#: build/C/man7/epoll.7:353 msgid "" "Can two B instances wait for the same file descriptor? If so, are " "events reported to both B file descriptors?" @@ -620,13 +628,13 @@ msgstr "" "告されるか?" #. type: TP -#: build/C/man7/epoll.7:349 +#: build/C/man7/epoll.7:353 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:353 +#: build/C/man7/epoll.7:357 msgid "" "Yes, and events would be reported to both. However, careful programming may " "be needed to do this correctly." @@ -635,24 +643,24 @@ msgstr "" "ラミングする必要が あるかもしれない。" #. type: TP -#: build/C/man7/epoll.7:353 +#: build/C/man7/epoll.7:357 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:358 +#: build/C/man7/epoll.7:362 msgid "Is the B file descriptor itself poll/epoll/selectable?" msgstr "B ファイルディスクリプタ自身は poll/epoll/select が可能か?" #. type: TP -#: build/C/man7/epoll.7:358 +#: build/C/man7/epoll.7:362 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:365 +#: build/C/man7/epoll.7:369 msgid "" "Yes. If an B file descriptor has events waiting then it will " "indicate as being readable." @@ -661,13 +669,13 @@ msgstr "" "は、 読み出し可能だと通知されることだろう。" #. type: TP -#: build/C/man7/epoll.7:365 +#: build/C/man7/epoll.7:369 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:370 +#: build/C/man7/epoll.7:374 msgid "" "What happens if one attempts to put an B file descriptor into its own " "file descriptor set?" @@ -676,13 +684,13 @@ msgstr "" "とするとどうなるか?" #. type: TP -#: build/C/man7/epoll.7:370 +#: build/C/man7/epoll.7:374 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:381 +#: build/C/man7/epoll.7:385 msgid "" "The B(2) call will fail (B). However, you can add an " "B file descriptor inside another B file descriptor set." @@ -692,13 +700,13 @@ msgstr "" "部に追加することは可能である。" #. type: TP -#: build/C/man7/epoll.7:381 +#: build/C/man7/epoll.7:385 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:386 +#: build/C/man7/epoll.7:390 msgid "" "Can I send an B file descriptor over a UNIX domain socket to another " "process?" @@ -707,13 +715,13 @@ msgstr "" "とは可能か?" #. type: TP -#: build/C/man7/epoll.7:386 +#: build/C/man7/epoll.7:390 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:392 +#: build/C/man7/epoll.7:396 msgid "" "Yes, but it does not make sense to do this, since the receiving process " "would not have copies of the file descriptors in the B set." @@ -722,13 +730,13 @@ msgstr "" "集合内のファイルディスクリプタのコピーを持っていないからである。" #. type: TP -#: build/C/man7/epoll.7:392 +#: build/C/man7/epoll.7:396 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:397 +#: build/C/man7/epoll.7:401 msgid "" "Will closing a file descriptor cause it to be removed from all B sets " "automatically?" @@ -737,13 +745,13 @@ msgstr "" "B 集合から自動的に削除されるか?" #. type: TP -#: build/C/man7/epoll.7:397 +#: build/C/man7/epoll.7:401 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:425 +#: build/C/man7/epoll.7:429 msgid "" "Yes, but be aware of the following point. A file descriptor is a reference " "to an open file description (see B(2)). Whenever a descriptor is " @@ -774,13 +782,13 @@ msgstr "" "と いうことを意味する。" #. type: TP -#: build/C/man7/epoll.7:425 +#: build/C/man7/epoll.7:429 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:430 +#: build/C/man7/epoll.7:434 msgid "" "If more than one event occurs between B(2) calls, are they " "combined or reported separately?" @@ -789,24 +797,24 @@ msgstr "" "めて報告されるか、 それとも別々に報告されるか?" #. type: TP -#: build/C/man7/epoll.7:430 +#: build/C/man7/epoll.7:434 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:433 +#: build/C/man7/epoll.7:437 msgid "They will be combined." msgstr "まとめて報告されるだろう。" #. type: TP -#: build/C/man7/epoll.7:433 +#: build/C/man7/epoll.7:437 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:437 +#: build/C/man7/epoll.7:441 msgid "" "Does an operation on a file descriptor affect the already collected but not " "yet reported events?" @@ -815,13 +823,13 @@ msgstr "" "いイベントに影響するか?" #. type: TP -#: build/C/man7/epoll.7:437 +#: build/C/man7/epoll.7:441 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:443 +#: build/C/man7/epoll.7:447 msgid "" "You can do two operations on an existing file descriptor. Remove would be " "meaningless for this case. Modify will reread available I/O." @@ -830,13 +838,13 @@ msgstr "" "合、削除には意味がない。 変更すると、使用可能な I/O が再び読み込まれる。" #. type: TP -#: build/C/man7/epoll.7:443 +#: build/C/man7/epoll.7:447 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:451 +#: build/C/man7/epoll.7:455 msgid "" "Do I need to continuously read/write a file descriptor until B when " "using the B flag (edge-triggered behavior) ?" @@ -845,13 +853,13 @@ msgstr "" "まで、 継続してファイルディスクリプタを読み書きする必要があるか?" #. type: TP -#: build/C/man7/epoll.7:451 +#: build/C/man7/epoll.7:455 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:461 +#: build/C/man7/epoll.7:465 msgid "" "Receiving an event from B(2) should suggest to you that such " "file descriptor is ready for the requested I/O operation. You must consider " @@ -865,7 +873,7 @@ msgstr "" "リプタをいつどのように使うかは、 全くユーザに任されてる。" #. type: Plain text -#: build/C/man7/epoll.7:467 +#: build/C/man7/epoll.7:471 msgid "" "For packet/token-oriented files (e.g., datagram socket, terminal in " "canonical mode), the only way to detect the end of the read/write I/O space " @@ -876,7 +884,7 @@ msgstr "" "する唯一の方法は B になるまで read/write を行うことである。" #. type: Plain text -#: build/C/man7/epoll.7:483 +#: build/C/man7/epoll.7:487 msgid "" "For stream-oriented files (e.g., pipe, FIFO, stream socket), the condition " "that the read/write I/O space is exhausted can also be detected by checking " @@ -899,19 +907,19 @@ msgstr "" "ない場合には、後者の手法の使用を避けること)。" #. type: SS -#: build/C/man7/epoll.7:483 +#: build/C/man7/epoll.7:487 #, no-wrap -msgid "Possible Pitfalls and Ways to Avoid Them" +msgid "Possible pitfalls and ways to avoid them" msgstr "ありがちな落とし穴と回避方法" #. type: TP -#: build/C/man7/epoll.7:484 +#: build/C/man7/epoll.7:488 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:492 +#: build/C/man7/epoll.7:496 msgid "" "If there is a large amount of I/O space, it is possible that by trying to " "drain it the other files will not get processed causing starvation. (This " @@ -922,7 +930,7 @@ msgstr "" "B に固有のものではない)。" #. type: Plain text -#: build/C/man7/epoll.7:500 +#: build/C/man7/epoll.7:504 msgid "" "The solution is to maintain a ready list and mark the file descriptor as " "ready in its associated data structure, thereby allowing the application to " @@ -938,13 +946,13 @@ msgstr "" "もできる。" #. type: TP -#: build/C/man7/epoll.7:500 +#: build/C/man7/epoll.7:504 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man7/epoll.7:516 +#: build/C/man7/epoll.7:520 msgid "" "If you use an event cache or store all the file descriptors returned from " "B(2), then make sure to provide a way to mark its closure " @@ -963,7 +971,7 @@ msgstr "" "ルディスクリプタを待つイベントが 存在するといって、混乱が起きる。" #. type: Plain text -#: build/C/man7/epoll.7:527 +#: build/C/man7/epoll.7:531 msgid "" "One solution for this is to call, during the processing of event 47, " "B(B) to delete file descriptor 13 and B" @@ -980,16 +988,16 @@ msgstr "" "クリプタが以前に削除されたものであると分かるので、 混乱は起きない。" #. type: SH -#: build/C/man7/epoll.7:527 build/C/man2/epoll_create.2:114 -#: build/C/man2/epoll_ctl.2:224 build/C/man2/epoll_wait.2:174 -#: build/C/man2/poll.2:286 +#: build/C/man7/epoll.7:531 build/C/man2/epoll_create.2:108 +#: build/C/man2/epoll_ctl.2:225 build/C/man2/epoll_wait.2:177 +#: build/C/man2/poll.2:312 #, no-wrap msgid "VERSIONS" msgstr "バージョン" #. Its interface should be finalized in Linux kernel 2.5.66. #. type: Plain text -#: build/C/man7/epoll.7:533 +#: build/C/man7/epoll.7:537 msgid "" "The B API was introduced in Linux kernel 2.5.44. Support was added " "to glibc in version 2.3.2." @@ -998,15 +1006,15 @@ msgstr "" "ジョン 2.3.2 で追加された。" #. type: SH -#: build/C/man7/epoll.7:533 build/C/man2/epoll_create.2:124 -#: build/C/man2/epoll_ctl.2:229 build/C/man2/epoll_wait.2:184 -#: build/C/man2/poll.2:306 +#: build/C/man7/epoll.7:537 build/C/man2/epoll_create.2:118 +#: build/C/man2/epoll_ctl.2:230 build/C/man2/epoll_wait.2:187 +#: build/C/man2/poll.2:329 #, no-wrap msgid "CONFORMING TO" msgstr "準拠" #. type: Plain text -#: build/C/man7/epoll.7:542 +#: build/C/man7/epoll.7:546 msgid "" "The B API is Linux-specific. Some other systems provide similar " "mechanisms, for example, FreeBSD has I, and Solaris has I." @@ -1016,69 +1024,67 @@ msgstr "" "る。" #. type: SH -#: build/C/man7/epoll.7:542 build/C/man2/epoll_create.2:133 -#: build/C/man2/epoll_ctl.2:252 build/C/man2/epoll_wait.2:187 -#: build/C/man2/poll.2:338 +#: build/C/man7/epoll.7:546 build/C/man2/epoll_create.2:144 +#: build/C/man2/epoll_ctl.2:253 build/C/man2/epoll_wait.2:219 +#: build/C/man2/poll.2:366 #, no-wrap msgid "SEE ALSO" msgstr "関連項目" #. type: Plain text -#: build/C/man7/epoll.7:547 +#: build/C/man7/epoll.7:551 msgid "" "B(2), B(2), B(2), B(2)" msgstr "" "B(2), B(2), B(2), B(2)" #. type: SH -#: build/C/man7/epoll.7:547 build/C/man2/epoll_create.2:138 -#: build/C/man2/epoll_ctl.2:257 build/C/man2/epoll_wait.2:191 -#: build/C/man2/poll.2:342 +#: build/C/man7/epoll.7:551 build/C/man2/epoll_create.2:149 +#: build/C/man2/epoll_ctl.2:258 build/C/man2/epoll_wait.2:223 +#: build/C/man2/poll.2:371 #, no-wrap msgid "COLOPHON" msgstr "この文書について" #. type: Plain text -#: build/C/man7/epoll.7:554 build/C/man2/epoll_create.2:145 -#: build/C/man2/epoll_ctl.2:264 build/C/man2/epoll_wait.2:198 -#: build/C/man2/poll.2:349 +#: build/C/man7/epoll.7:558 build/C/man2/epoll_create.2:156 +#: build/C/man2/epoll_ctl.2:265 build/C/man2/epoll_wait.2:230 +#: build/C/man2/poll.2:378 msgid "" -"This page is part of release 3.37 of the Linux I project. A " +"This page is part of release 3.53 of the Linux I project. A " "description of the project, and information about reporting bugs, can be " -"found at http://www.kernel.org/doc/man-pages/." +"found at \\%http://www.kernel.org/doc/man-pages/." msgstr "" -"この man ページは Linux I プロジェクトのリリース 3.37 の一部である。\n" -"プロジェクトの説明とバグ報告に関する情報は\n" +"この man ページは Linux I プロジェクトのリリース 3.53 の一部\n" +"である。プロジェクトの説明とバグ報告に関する情報は\n" "http://www.kernel.org/doc/man-pages/ に書かれている。" #. type: TH -#: build/C/man2/epoll_create.2:25 +#: build/C/man2/epoll_create.2:24 #, no-wrap msgid "EPOLL_CREATE" msgstr "EPOLL_CREATE" #. type: TH -#: build/C/man2/epoll_create.2:25 build/C/man2/epoll_ctl.2:21 -#: build/C/man2/epoll_wait.2:23 -#, fuzzy, no-wrap -#| msgid "2010-09-20" -msgid "2010-12-03" -msgstr "2010-09-20" +#: build/C/man2/epoll_create.2:24 build/C/man2/epoll_ctl.2:20 +#, no-wrap +msgid "2012-04-15" +msgstr "2012-04-15" #. type: Plain text -#: build/C/man2/epoll_create.2:28 +#: build/C/man2/epoll_create.2:27 msgid "epoll_create, epoll_create1 - open an epoll file descriptor" msgstr "" "epoll_create, epoll_create1 - epoll ファイルディスクリプタをオープンする" #. type: Plain text -#: build/C/man2/epoll_create.2:31 build/C/man2/epoll_wait.2:29 +#: build/C/man2/epoll_create.2:30 build/C/man2/epoll_wait.2:28 #, no-wrap msgid "B<#include Esys/epoll.hE>\n" msgstr "B<#include Esys/epoll.hE>\n" #. type: Plain text -#: build/C/man2/epoll_create.2:34 +#: build/C/man2/epoll_create.2:33 #, no-wrap msgid "" "BIB<);>\n" @@ -1088,29 +1094,17 @@ msgstr "" "BIB<);>\n" #. type: Plain text -#: build/C/man2/epoll_create.2:48 -#, fuzzy -#| msgid "" -#| "B() creates an epoll \"instance\", requesting the kernel " -#| "to allocate an event backing store dimensioned for I descriptors. " -#| "The I is not the maximum size of the backing store but just a hint " -#| "to the kernel about how to dimension internal structures. (Nowadays, " -#| "I is ignored; see NOTES below.)" +#: build/C/man2/epoll_create.2:42 msgid "" -"B() creates an epoll \"instance\", requesting the kernel to " -"allocate an event backing store dimensioned for I descriptors. The " -"I is not the maximum size of the backing store but just a hint to the " -"kernel about how to dimension internal structures. (Nowadays, I is " -"unused; see NOTES below.)" +"B() creates an B(7) instance. Since Linux 2.6.8, the " +"I argument is ignored, but must be greater than zero; see NOTES below." msgstr "" -"B() は、 I 個のディスクリプタを保持できる大きさのイベン" -"トバッキング ストアの割り当てをカーネルに対して要求することにより、 epoll " -"「インスタンス」を作成する。 I はバッキングストアの最大サイズではな" -"く、 内部構造の大きさをどの位にするかをカーネルに知らせるヒントでしかない。 " -"(現在は I は無視される。下記の「注意」を参照。)" +"B()は B(7) インスタンスを作成する。\n" +"Linux 2.6.8 以降では、I 引き数は無視されるが、 0 より大きな値で\n" +"なければならない。下記の「注意」を参照。" #. type: Plain text -#: build/C/man2/epoll_create.2:61 +#: build/C/man2/epoll_create.2:55 msgid "" "B() returns a file descriptor referring to the new epoll " "instance. This file descriptor is used for all the subsequent calls to the " @@ -1127,8 +1121,14 @@ msgstr "" "と、 カーネルはそのインスタンスを破壊して、対応するリソースを解放し、 再使用" "できるようにする。" +#. type: SS +#: build/C/man2/epoll_create.2:55 +#, no-wrap +msgid "epoll_create1()" +msgstr "epoll_create1()" + #. type: Plain text -#: build/C/man2/epoll_create.2:73 +#: build/C/man2/epoll_create.2:67 msgid "" "If I is 0, then, other than the fact that the obsolete I " "argument is dropped, B() is the same as B(). " @@ -1140,13 +1140,13 @@ msgstr "" "せることができる。" #. type: TP -#: build/C/man2/epoll_create.2:73 +#: build/C/man2/epoll_create.2:67 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_create.2:83 +#: build/C/man2/epoll_create.2:77 msgid "" "Set the close-on-exec (B) flag on the new file descriptor. See " "the description of the B flag in B(2) for reasons why this " @@ -1157,14 +1157,14 @@ msgstr "" "B フラグの説明を参照のこと。" #. type: SH -#: build/C/man2/epoll_create.2:83 build/C/man2/epoll_ctl.2:156 -#: build/C/man2/epoll_wait.2:137 build/C/man2/poll.2:257 +#: build/C/man2/epoll_create.2:77 build/C/man2/epoll_ctl.2:157 +#: build/C/man2/epoll_wait.2:140 build/C/man2/poll.2:283 #, no-wrap msgid "RETURN VALUE" msgstr "返り値" #. type: Plain text -#: build/C/man2/epoll_create.2:90 +#: build/C/man2/epoll_create.2:84 msgid "" "On success, these system calls return a nonnegative file descriptor. On " "error, -1 is returned, and I is set to indicate the error." @@ -1173,38 +1173,38 @@ msgstr "" "ラーの場合、-1 を返し、 I にエラーを示す値を設定する。" #. type: SH -#: build/C/man2/epoll_create.2:90 build/C/man2/epoll_ctl.2:165 -#: build/C/man2/epoll_wait.2:149 build/C/man2/poll.2:267 +#: build/C/man2/epoll_create.2:84 build/C/man2/epoll_ctl.2:166 +#: build/C/man2/epoll_wait.2:152 build/C/man2/poll.2:293 #, no-wrap msgid "ERRORS" msgstr "エラー" #. type: TP -#: build/C/man2/epoll_create.2:91 build/C/man2/epoll_create.2:95 -#: build/C/man2/epoll_ctl.2:180 build/C/man2/epoll_wait.2:166 -#: build/C/man2/poll.2:276 +#: build/C/man2/epoll_create.2:85 build/C/man2/epoll_create.2:89 +#: build/C/man2/epoll_ctl.2:181 build/C/man2/epoll_wait.2:169 +#: build/C/man2/poll.2:302 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_create.2:95 +#: build/C/man2/epoll_create.2:89 msgid "I is not positive." msgstr "I が正でない。" #. type: Plain text -#: build/C/man2/epoll_create.2:100 +#: build/C/man2/epoll_create.2:94 msgid "(B()) Invalid value specified in I." msgstr "(B()) I に無効な値が指定された。" #. type: TP -#: build/C/man2/epoll_create.2:100 +#: build/C/man2/epoll_create.2:94 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_create.2:108 +#: build/C/man2/epoll_create.2:102 msgid "" "The per-user limit on the number of epoll instances imposed by I was encountered. See B(7) for further " @@ -1215,98 +1215,111 @@ msgstr "" "のこと。" #. type: TP -#: build/C/man2/epoll_create.2:108 +#: build/C/man2/epoll_create.2:102 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_create.2:111 +#: build/C/man2/epoll_create.2:105 msgid "The system limit on the total number of open files has been reached." msgstr "オープンされたファイルの総数がシステム制限に達した。" #. type: TP -#: build/C/man2/epoll_create.2:111 build/C/man2/epoll_ctl.2:203 -#: build/C/man2/poll.2:283 +#: build/C/man2/epoll_create.2:105 build/C/man2/epoll_ctl.2:204 +#: build/C/man2/poll.2:309 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_create.2:114 +#: build/C/man2/epoll_create.2:108 msgid "There was insufficient memory to create the kernel object." msgstr "カーネルオブジェクトを作成するのに十分なメモリがなかった。" #. type: Plain text -#: build/C/man2/epoll_create.2:118 -#, fuzzy -#| msgid "" -#| "The B API was introduced in Linux kernel 2.5.44. Support was " -#| "added to glibc in version 2.3.2." +#: build/C/man2/epoll_create.2:112 msgid "" "B() was added to the kernel in version 2.6. Library support " "is provided in glibc starting with version 2.3.2." msgstr "" -"B API は Linux カーネル 2.5.44 に導入された。 glibc でのサポートはバー" -"ジョン 2.3.2 で追加された。" +"B() はカーネル 2.6 で追加された。\n" +"ライブラリによるサポートは glibc バージョン 2.3.2 以降で提供されている。" #. To be precise: kernel 2.5.44. #. The interface should be finalized by Linux kernel 2.5.66. #. type: Plain text -#: build/C/man2/epoll_create.2:124 +#: build/C/man2/epoll_create.2:118 msgid "" "B() was added to the kernel in version 2.6.27. Library " "support is provided in glibc starting with version 2.9." msgstr "" +"B() はカーネル 2.6.27 で追加された。\n" +"ライブラリによるサポートは glibc バージョン 2.9 以降で提供されている。" #. type: Plain text -#: build/C/man2/epoll_create.2:127 -#, fuzzy -#| msgid "" -#| "B() is Linux-specific, and was introduced in kernel 2.5.44." +#: build/C/man2/epoll_create.2:121 msgid "B() is Linux-specific." -msgstr "B() は Linux 独自であり、カーネル 2.5.44 で導入された。" +msgstr "B() は Linux 独自である。" #. type: SH -#: build/C/man2/epoll_create.2:127 build/C/man2/epoll_ctl.2:233 -#: build/C/man2/poll.2:312 +#: build/C/man2/epoll_create.2:121 build/C/man2/epoll_ctl.2:234 +#: build/C/man2/epoll_wait.2:190 build/C/man2/poll.2:335 #, no-wrap msgid "NOTES" msgstr "注意" #. type: Plain text -#: build/C/man2/epoll_create.2:133 -#, fuzzy -#| msgid "" -#| "Since Linux 2.6.8, the I argument is unused. (The kernel " -#| "dynamically sizes the required data structures without needing this " -#| "initial hint.)" -msgid "" -"Since Linux 2.6.8, the I argument is unused, but must be greater than " -"zero. (The kernel dynamically sizes the required data structures without " -"needing this initial hint.)" -msgstr "" -"Linux 2.6.8 以降では、 I 引き数は使用されない (カーネルは、動的に必要な" -"データ構造の大きさを決定し、 最初のヒントを必要しない)。" - -#. type: Plain text -#: build/C/man2/epoll_create.2:138 +#: build/C/man2/epoll_create.2:144 +msgid "" +"In the initial B() implementation, the I argument " +"informed the kernel of the number of file descriptors that the caller " +"expected to add to the B instance. The kernel used this information " +"as a hint for the amount of space to initially allocate in internal data " +"structures describing events. (If necessary, the kernel would allocate more " +"space if the caller's usage exceeded the hint given in I.) Nowadays, " +"this hint is no longer required (the kernel dynamically sizes the required " +"data structures without needing the hint), but I must still be greater " +"than zero, in order to ensure backward compatibility when new B " +"applications are run on older kernels." +msgstr "" +"初期の B() の実装では、I 引き数は、呼び出し元が " +"B\n" +"インスタンスに追加しようとするファイルディスクリプタ数をカーネルに教えるの" +"に\n" +"使われていた。カーネルはこの情報をイベントの情報を格納する内部データ構造に" +"最\n" +"初に割り当てる大きさを決める際のヒントとして使用していた (I で渡され" +"た\n" +"ヒントよりも使用量が大きくなった場合には、必要に応じてカーネルは追加で領域" +"を\n" +"割り当てる)。\n" +"\n" +"現在では、このヒントはもはや必要なくなっている (カーネルはヒントなしで必要" +"な\n" +"データ構造のサイズを動的に変更する) が、今も I には 0 より大きい値を\n" +"指定しなければならない。これは、B を使うアプリケーションが古いカーネ" +"ル\n" +"で実行される際の後方互換性を保証するためである。" + +#. type: Plain text +#: build/C/man2/epoll_create.2:149 msgid "B(2), B(2), B(2), B(7)" msgstr "B(2), B(2), B(2), B(7)" #. type: TH -#: build/C/man2/epoll_ctl.2:21 +#: build/C/man2/epoll_ctl.2:20 #, no-wrap msgid "EPOLL_CTL" msgstr "EPOLL_CTL" #. type: Plain text -#: build/C/man2/epoll_ctl.2:24 +#: build/C/man2/epoll_ctl.2:23 msgid "epoll_ctl - control interface for an epoll descriptor" msgstr "epoll_ctl - epoll ディスクリプタのインタフェースを操作する" #. type: Plain text -#: build/C/man2/epoll_ctl.2:29 +#: build/C/man2/epoll_ctl.2:28 msgid "" "BIB<, int >IB<, int >IB<, struct " "epoll_event *>IB<);>" @@ -1315,29 +1328,30 @@ msgstr "" "epoll_event *>IB<);>" #. type: Plain text -#: build/C/man2/epoll_ctl.2:37 +#: build/C/man2/epoll_ctl.2:38 msgid "" -"This system call performs control operations on the epoll instance referred " -"to by the file descriptor I. It requests that the operation I be " -"performed for the target file descriptor, I." +"This system call performs control operations on the B(7) instance " +"referred to by the file descriptor I. It requests that the operation " +"I be performed for the target file descriptor, I." msgstr "" -"このシステムコールは、ファイルディスクリプタ I が参照する epoll インス" -"タンスに対する操作を行う。 対象のファイルディスクリプタ I に対して、操作 " -"I の実行が要求される。" +"このシステムコールは、ファイルディスクリプタ I が参照する B(7)\n" +"インスタンスに対する操作を行う。 対象のファイルディスクリプタ I に対し" +"て、\n" +"操作 I の実行が要求される。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:41 +#: build/C/man2/epoll_ctl.2:42 msgid "Valid values for the I argument are :" msgstr "I 引き数に指定できる有効な値は以下の通りである。" #. type: TP -#: build/C/man2/epoll_ctl.2:41 +#: build/C/man2/epoll_ctl.2:42 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:53 +#: build/C/man2/epoll_ctl.2:54 msgid "" "Register the target file descriptor I on the B instance referred " "to by the file descriptor I and associate the event I with the " @@ -1348,13 +1362,13 @@ msgstr "" "内部ファイルに関連付ける。" #. type: TP -#: build/C/man2/epoll_ctl.2:53 +#: build/C/man2/epoll_ctl.2:54 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:59 +#: build/C/man2/epoll_ctl.2:60 msgid "" "Change the event I associated with the target file descriptor I." msgstr "" @@ -1362,13 +1376,13 @@ msgstr "" "する。" #. type: TP -#: build/C/man2/epoll_ctl.2:59 +#: build/C/man2/epoll_ctl.2:60 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:70 +#: build/C/man2/epoll_ctl.2:71 msgid "" "Remove (deregister) the target file descriptor I from the B " "instance referred to by I. The I is ignored and can be NULL " @@ -1379,7 +1393,7 @@ msgstr "" "し、下記の「バグ」を参照)。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:78 +#: build/C/man2/epoll_ctl.2:79 msgid "" "The I argument describes the object linked to the file descriptor " "I. The I is defined as :" @@ -1388,7 +1402,7 @@ msgstr "" "表す。 I は以下のように定義される:" #. type: Plain text -#: build/C/man2/epoll_ctl.2:87 +#: build/C/man2/epoll_ctl.2:88 #, no-wrap msgid "" "typedef union epoll_data {\n" @@ -1406,7 +1420,7 @@ msgstr "" "} epoll_data_t;\n" #. type: Plain text -#: build/C/man2/epoll_ctl.2:92 +#: build/C/man2/epoll_ctl.2:93 #, no-wrap msgid "" "struct epoll_event {\n" @@ -1420,7 +1434,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/epoll_ctl.2:99 +#: build/C/man2/epoll_ctl.2:100 msgid "" "The I member is a bit set composed using the following available " "event types:" @@ -1429,35 +1443,35 @@ msgstr "" "ビットセットである。" #. type: TP -#: build/C/man2/epoll_ctl.2:99 +#: build/C/man2/epoll_ctl.2:100 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:104 +#: build/C/man2/epoll_ctl.2:105 msgid "The associated file is available for B(2) operations." msgstr "関連付けられたファイルに対して、 B(2) 操作が可能である。" #. type: TP -#: build/C/man2/epoll_ctl.2:104 +#: build/C/man2/epoll_ctl.2:105 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:109 +#: build/C/man2/epoll_ctl.2:110 msgid "The associated file is available for B(2) operations." msgstr "関連付けられたファイルに対して、 B(2) 操作が可能である。" #. type: TP -#: build/C/man2/epoll_ctl.2:109 +#: build/C/man2/epoll_ctl.2:110 #, no-wrap msgid "B (since Linux 2.6.17)" msgstr "B(LinuxB<2.6.17>以降)\"" #. type: Plain text -#: build/C/man2/epoll_ctl.2:115 +#: build/C/man2/epoll_ctl.2:116 msgid "" "Stream socket peer closed connection, or shut down writing half of " "connection. (This flag is especially useful for writing simple code to " @@ -1469,24 +1483,24 @@ msgstr "" "ができる。)" #. type: TP -#: build/C/man2/epoll_ctl.2:115 +#: build/C/man2/epoll_ctl.2:116 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:120 +#: build/C/man2/epoll_ctl.2:121 msgid "There is urgent data available for B(2) operations." msgstr "B(2) 操作が可能な緊急 (urgent) データがある。" #. type: TP -#: build/C/man2/epoll_ctl.2:120 +#: build/C/man2/epoll_ctl.2:121 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:126 +#: build/C/man2/epoll_ctl.2:127 msgid "" "Error condition happened on the associated file descriptor. B" "(2) will always wait for this event; it is not necessary to set it in " @@ -1496,13 +1510,13 @@ msgstr "" "(2) は常にこのイベントを待つので、 I に設定する必要はない。" #. type: TP -#: build/C/man2/epoll_ctl.2:126 +#: build/C/man2/epoll_ctl.2:127 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:132 +#: build/C/man2/epoll_ctl.2:133 msgid "" "Hang up happened on the associated file descriptor. B(2) will " "always wait for this event; it is not necessary to set it in I." @@ -1511,13 +1525,13 @@ msgstr "" "(2) は常にこのイベントを待つので、 I に設定する必要はない。" #. type: TP -#: build/C/man2/epoll_ctl.2:132 +#: build/C/man2/epoll_ctl.2:133 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:142 +#: build/C/man2/epoll_ctl.2:143 msgid "" "Sets the Edge Triggered behavior for the associated file descriptor. The " "default behavior for B is Level Triggered. See B(7) for more " @@ -1531,13 +1545,13 @@ msgstr "" "こと。" #. type: TP -#: build/C/man2/epoll_ctl.2:142 +#: build/C/man2/epoll_ctl.2:143 #, no-wrap msgid "B (since Linux 2.6.2)" msgstr "B (Linux 2.6.2 以降)" #. type: Plain text -#: build/C/man2/epoll_ctl.2:156 +#: build/C/man2/epoll_ctl.2:157 msgid "" "Sets the one-shot behavior for the associated file descriptor. This means " "that after an event is pulled out with B(2) the associated file " @@ -1554,7 +1568,7 @@ msgstr "" "り:" #. type: Plain text -#: build/C/man2/epoll_ctl.2:165 +#: build/C/man2/epoll_ctl.2:166 msgid "" "When successful, B() returns zero. When an error occurs, " "B() returns -1 and I is set appropriately." @@ -1563,24 +1577,24 @@ msgstr "" "B() は -1 を返し、 I を適切に設定する。" #. type: TP -#: build/C/man2/epoll_ctl.2:166 build/C/man2/epoll_wait.2:150 +#: build/C/man2/epoll_ctl.2:167 build/C/man2/epoll_wait.2:153 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:172 +#: build/C/man2/epoll_ctl.2:173 msgid "I or I is not a valid file descriptor." msgstr "I か I が有効なファイルディスクリプタでない。" #. type: TP -#: build/C/man2/epoll_ctl.2:172 +#: build/C/man2/epoll_ctl.2:173 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:180 +#: build/C/man2/epoll_ctl.2:181 msgid "" "I was B, and the supplied file descriptor I is " "already registered with this epoll instance." @@ -1589,7 +1603,7 @@ msgstr "" "がこの epoll インスタンスに既に登録されている。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:193 +#: build/C/man2/epoll_ctl.2:194 msgid "" "I is not an B file descriptor, or I is the same as I, " "or the requested operation I is not supported by this interface." @@ -1599,13 +1613,13 @@ msgstr "" "いない。" #. type: TP -#: build/C/man2/epoll_ctl.2:193 +#: build/C/man2/epoll_ctl.2:194 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:203 +#: build/C/man2/epoll_ctl.2:204 msgid "" "I was B or B, and I is not registered " "with this epoll instance." @@ -1614,20 +1628,20 @@ msgstr "" "epoll インスタンスに登録されていない。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:208 +#: build/C/man2/epoll_ctl.2:209 msgid "" "There was insufficient memory to handle the requested I control " "operation." msgstr "要求された I 制御操作を扱うのに十分なメモリがない。" #. type: TP -#: build/C/man2/epoll_ctl.2:208 +#: build/C/man2/epoll_ctl.2:209 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:218 +#: build/C/man2/epoll_ctl.2:219 msgid "" "The limit imposed by I was encountered " "while trying to register (B) a new file descriptor on an " @@ -1638,37 +1652,34 @@ msgstr "" "た。 詳細は B(7) を参照。" #. type: TP -#: build/C/man2/epoll_ctl.2:218 +#: build/C/man2/epoll_ctl.2:219 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man2/epoll_ctl.2:224 +#: build/C/man2/epoll_ctl.2:225 msgid "The target file I does not support B." msgstr "対象ファイル I が B をサポートしていない。" #. To be precise: kernel 2.5.44. #. The interface should be finalized by Linux kernel 2.5.66. #. type: Plain text -#: build/C/man2/epoll_ctl.2:229 -#, fuzzy -#| msgid "B() was added to Linux in kernel 2.6.19." +#: build/C/man2/epoll_ctl.2:230 msgid "B() was added to the kernel in version 2.6." -msgstr "B() はカーネル 2.6.19 で Linux に追加された。" +msgstr "B() はカーネル 2.6 で追加された。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:233 -#, fuzzy -#| msgid "" -#| "B() is Linux-specific, and was introduced in kernel 2.5.44." +#: build/C/man2/epoll_ctl.2:234 msgid "" "B() is Linux-specific. Library support is provided in glibc " "starting with version 2.3.2." -msgstr "B() は Linux 独自であり、カーネル 2.5.44 で導入された。" +msgstr "" +"B() は Linux 独自である。\n" +"ライブラリによるサポートは glibc バージョン 2.3.2 以降で提供されている。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:238 +#: build/C/man2/epoll_ctl.2:239 msgid "" "The B interface supports all file descriptors that support B(2)." msgstr "" @@ -1676,13 +1687,14 @@ msgstr "" "リプタに対応している。" #. type: SH -#: build/C/man2/epoll_ctl.2:238 build/C/man2/poll.2:334 +#: build/C/man2/epoll_ctl.2:239 build/C/man2/epoll_wait.2:207 +#: build/C/man2/poll.2:362 #, no-wrap msgid "BUGS" msgstr "バグ" #. type: Plain text -#: build/C/man2/epoll_ctl.2:252 +#: build/C/man2/epoll_ctl.2:253 msgid "" "In kernel versions before 2.6.9, the B operation required a " "non-NULL pointer in I, even though this argument is ignored. Since " @@ -1697,25 +1709,31 @@ msgstr "" "は、 I に NULL でないポインタを指定すべきである。" #. type: Plain text -#: build/C/man2/epoll_ctl.2:257 +#: build/C/man2/epoll_ctl.2:258 msgid "B(2), B(2), B(2), B(7)" msgstr "B(2), B(2), B(2), B(7)" #. type: TH -#: build/C/man2/epoll_wait.2:23 +#: build/C/man2/epoll_wait.2:22 #, no-wrap msgid "EPOLL_WAIT" msgstr "EPOLL_WAIT" +#. type: TH +#: build/C/man2/epoll_wait.2:22 +#, no-wrap +msgid "2012-08-17" +msgstr "2012-08-17" + #. type: Plain text -#: build/C/man2/epoll_wait.2:26 +#: build/C/man2/epoll_wait.2:25 msgid "" "epoll_wait, epoll_pwait - wait for an I/O event on an epoll file descriptor" msgstr "" "epoll_wait, epoll_pwait - epoll ファイルディスクリプタの I/O イベントを待つ" #. type: Plain text -#: build/C/man2/epoll_wait.2:35 +#: build/C/man2/epoll_wait.2:34 #, no-wrap msgid "" "BIB<, struct epoll_event *>IB<,>\n" @@ -1731,40 +1749,48 @@ msgstr "" "B< const sigset_t *>IB<);>\n" #. type: Plain text -#: build/C/man2/epoll_wait.2:53 +#: build/C/man2/epoll_wait.2:52 msgid "" -"The B() system call waits for events on the B instance " -"referred to by the file descriptor I. The memory area pointed to by " -"I will contain the events that will be available for the caller. Up " -"to I are returned by B(). The I argument " -"must be greater than zero." +"The B() system call waits for events on the B(7) " +"instance referred to by the file descriptor I. The memory area " +"pointed to by I will contain the events that will be available for " +"the caller. Up to I are returned by B(). The " +"I argument must be greater than zero." msgstr "" -"B() システムコールは、 ファイルディスクリプタ I で参照され" -"る B インスタンスに対するイベントを待つ。 I が指すメモリ領域に" -"は、呼び出し側が利用可能なイベントが格納される。 最大 I 個のイベン" -"トが B() によって返される。 I 引き数は 0 より大きくな" -"ければならない。" +"B() システムコールは、ファイルディスクリプタ I で参照され" +"る\n" +"B(7) インスタンスに対するイベントを待つ。 I が指すメモリ領域に" +"は、\n" +"呼び出し側が利用可能なイベントが格納される。最大 I 個のイベント" +"が\n" +"B() によって返される。\n" +"I 引き数は 0 より大きくなければならない。" #. type: Plain text -#: build/C/man2/epoll_wait.2:67 +#: build/C/man2/epoll_wait.2:70 msgid "" -"The call waits for a maximum time of I milliseconds. Specifying a " -"I of -1 makes B() wait indefinitely, while specifying " -"a I equal to zero makes B() to return immediately even " -"if no events are available (return code equal to zero)." +"The I argument specifies the minimum number of milliseconds that " +"B() will block. (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.) Specifying a I " +"of -1 causes B() to block indefinitely, while specifying a " +"I equal to zero cause B() to return immediately, even " +"if no events are available." msgstr "" -"最大で I ミリ秒間イベントを待つ。 I を -1 に指定すると、 " -"B() は無限に待つ。 また I を 0 に指定すると、 " -"B() はイベントが利用可能でなくても、すぐに返る (返り値は 0 であ" -"る)。" +"I 引き数は、 B() が停止する最小時間をミリ秒で指定\n" +"する (この停止時間はシステムクロックの粒度に切り上げられ、カーネルの\n" +"スケジューリング遅延により少しだけ長くなる可能性がある)。 \n" +"I を -1 に指定すると、 B() は無限に停止する。 \n" +"I を 0 に指定すると、 B() は利用可能なイベントが\n" +"なくても、すぐに返る。" #. type: Plain text -#: build/C/man2/epoll_wait.2:71 +#: build/C/man2/epoll_wait.2:74 msgid "The I is defined as :" msgstr "I は以下のように定義される:" #. type: Plain text -#: build/C/man2/epoll_wait.2:80 +#: build/C/man2/epoll_wait.2:83 #, no-wrap msgid "" "typedef union epoll_data {\n" @@ -1782,7 +1808,7 @@ msgstr "" "} epoll_data_t;\n" #. type: Plain text -#: build/C/man2/epoll_wait.2:85 +#: build/C/man2/epoll_wait.2:88 #, no-wrap msgid "" "struct epoll_event {\n" @@ -1796,7 +1822,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/epoll_wait.2:96 +#: build/C/man2/epoll_wait.2:99 msgid "" "The I of each returned structure will contain the same data the user " "set with an B(2) (B,B) while the " @@ -1808,13 +1834,13 @@ msgstr "" "る。" #. type: SS -#: build/C/man2/epoll_wait.2:96 +#: build/C/man2/epoll_wait.2:99 #, no-wrap msgid "epoll_pwait()" msgstr "epoll_pwait()" #. type: Plain text -#: build/C/man2/epoll_wait.2:110 +#: build/C/man2/epoll_wait.2:113 msgid "" "The relationship between B() and B() is analogous " "to the relationship between B(2)." +msgstr "" +"B() で監視中の B インスタンス内のファイルディスクリプタが" +"別のスレッドによってクローズされた場合に何が起こるかの議論については、 " +"B(2) and B(2): like B(2), " @@ -2285,7 +2361,7 @@ msgstr "" "つことができる。" #. type: Plain text -#: build/C/man2/poll.2:198 +#: build/C/man2/poll.2:224 msgid "" "Other than the difference in the precision of the I argument, the " "following B() call:" @@ -2293,13 +2369,13 @@ msgstr "" "I 引き数の精度の違いを除くと、以下の B() の呼び出しは、" #. type: Plain text -#: build/C/man2/poll.2:201 +#: build/C/man2/poll.2:227 #, no-wrap msgid " ready = ppoll(&fds, nfds, timeout_ts, &sigmask);\n" msgstr " ready = ppoll(&fds, nfds, timeout_ts, &sigmask);\n" #. type: Plain text -#: build/C/man2/poll.2:210 +#: build/C/man2/poll.2:236 #, no-wrap msgid "" " sigset_t origmask;\n" @@ -2309,7 +2385,7 @@ msgstr "" " int timeout;\n" #. type: Plain text -#: build/C/man2/poll.2:216 +#: build/C/man2/poll.2:242 #, no-wrap msgid "" " timeout = (timeout_ts == NULL) ? -1 :\n" @@ -2325,7 +2401,7 @@ msgstr "" " sigprocmask(SIG_SETMASK, &origmask, NULL);\n" #. type: Plain text -#: build/C/man2/poll.2:223 +#: build/C/man2/poll.2:249 msgid "" "See the description of B(2) for an explanation of why B() " "is necessary." @@ -2334,7 +2410,7 @@ msgstr "" "と。" #. type: Plain text -#: build/C/man2/poll.2:235 +#: build/C/man2/poll.2:261 msgid "" "If the I argument is specified as NULL, then no signal mask " "manipulation is performed (and thus B() differs from B() only " @@ -2345,7 +2421,7 @@ msgstr "" "けとなる)。" #. type: Plain text -#: build/C/man2/poll.2:242 +#: build/C/man2/poll.2:268 msgid "" "The I argument specifies an upper limit on the amount of time " "that B() will block. This argument is a pointer to a structure of " @@ -2355,7 +2431,7 @@ msgstr "" "の引き数には以下の型の構造体へのポインタを指定する。" #. type: Plain text -#: build/C/man2/poll.2:249 +#: build/C/man2/poll.2:275 #, no-wrap msgid "" "struct timespec {\n" @@ -2369,7 +2445,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man2/poll.2:257 +#: build/C/man2/poll.2:283 msgid "" "If I is specified as NULL, then B() can block " "indefinitely." @@ -2378,7 +2454,7 @@ msgstr "" "得る。" #. type: Plain text -#: build/C/man2/poll.2:267 +#: build/C/man2/poll.2:293 msgid "" "On success, a positive number is returned; this is the number of structures " "which have nonzero I fields (in other words, those descriptors with " @@ -2393,7 +2469,7 @@ msgstr "" "定される。" #. type: Plain text -#: build/C/man2/poll.2:272 +#: build/C/man2/poll.2:298 msgid "" "The array given as argument was not contained in the calling program's " "address space." @@ -2402,36 +2478,37 @@ msgstr "" "い。" #. type: Plain text -#: build/C/man2/poll.2:276 +#: build/C/man2/poll.2:302 msgid "A signal occurred before any requested event; see B(7)." msgstr "" "要求されたイベントのどれかが起こる前にシグナルが発生した。 B(7) 参" "照。" #. type: Plain text -#: build/C/man2/poll.2:283 +#: build/C/man2/poll.2:309 msgid "The I value exceeds the B value." msgstr "I の値が B を超えた。" #. type: Plain text -#: build/C/man2/poll.2:286 +#: build/C/man2/poll.2:312 msgid "There was no space to allocate file descriptor tables." msgstr "ファイルディスクリプタ・テーブルを確保するためのメモリがない。" +#. library call was introduced in libc 5.4.28 #. type: Plain text -#: build/C/man2/poll.2:299 +#: build/C/man2/poll.2:322 msgid "" -"The B() system call was introduced in Linux 2.1.23. The B() " -"library call was introduced in libc 5.4.28 (and provides emulation using " -"B(2)." msgstr "" -"B() システムコールは Linux 2.1.23 で導入された。 B() ライブラ" -"リ・コールは libc 5.4.28 から導入された (これはカーネルが B() システム" -"コールをサポートしていない場合に B(2) を使用して B() \n" +"ラッパー関数のエミュレーションを行う。" #. type: Plain text -#: build/C/man2/poll.2:306 +#: build/C/man2/poll.2:329 msgid "" "The B() system call was added to Linux in kernel 2.6.16. The " "B() library call was added in glibc 2.4." @@ -2441,13 +2518,13 @@ msgstr "" #. NetBSD 3.0 has a pollts() which is like Linux ppoll(). #. type: Plain text -#: build/C/man2/poll.2:312 +#: build/C/man2/poll.2:335 msgid "B() conforms to POSIX.1-2001. B() is Linux-specific." msgstr "" "B() は POSIX.1-2001 に準拠している。 B() は Linux 固有である。" #. type: Plain text -#: build/C/man2/poll.2:320 +#: build/C/man2/poll.2:343 msgid "" "Some implementations define the nonstandard constant B with the " "value -1 for use as a I for B(). This constant is not " @@ -2457,14 +2534,23 @@ msgstr "" "B() の I の指定に使用できる。 この定数は glibc では定義されて" "いない。" +#. type: Plain text +#: build/C/man2/poll.2:348 +msgid "" +"For a discussion of what may happen if a file descriptor being monitored by " +"B() is closed in another thread, see B(2) を参照してほしい。" + #. type: SS -#: build/C/man2/poll.2:320 +#: build/C/man2/poll.2:348 #, no-wrap -msgid "Linux Notes" +msgid "Linux notes" msgstr "Linux での注意" #. type: Plain text -#: build/C/man2/poll.2:334 +#: build/C/man2/poll.2:362 msgid "" "The Linux B() system call modifies its I argument. " "However, the glibc wrapper function hides this behavior by using a local " @@ -2477,7 +2563,7 @@ msgstr "" "数では I 引き数は変更されない。" #. type: Plain text -#: build/C/man2/poll.2:338 +#: build/C/man2/poll.2:366 msgid "" "See the discussion of spurious readiness notifications under the BUGS " "section of B(2), B(2), B