X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=po4a%2Fpthread%2Fpo%2Fja.po;h=eb6e792cf8f6ad1c2a26970dd086dbd048d75d9e;hb=915084a62abaadefd48dd30c552ab9ef77de5ebd;hp=dfefa51b0b36a778f331ae59f5cc3ca63d498533;hpb=8a7f723a0530d2fb90ab139c03452e84d1e19905;p=linuxjm%2FLDP_man-pages.git diff --git a/po4a/pthread/po/ja.po b/po4a/pthread/po/ja.po index dfefa51b..eb6e792c 100644 --- a/po4a/pthread/po/ja.po +++ b/po4a/pthread/po/ja.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2013-03-22 01:06+0900\n" -"PO-Revision-Date: 2012-06-04 23:34+0900\n" +"POT-Creation-Date: 2014-06-08 01:30+0900\n" +"PO-Revision-Date: 2014-06-08 02:52+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -24,8 +24,8 @@ msgstr "GETCONTEXT" #. type: TH #: build/C/man3/getcontext.3:25 #, no-wrap -msgid "2009-03-15" -msgstr "2009-03-15" +msgid "2014-04-08" +msgstr "2014-04-08" #. type: TH #: build/C/man3/getcontext.3:25 build/C/man3/pthread_attr_init.3:26 @@ -195,20 +195,20 @@ msgstr "BIB<);>" #: build/C/man3/pthread_attr_setstackaddr.3:41 #: build/C/man3/pthread_attr_setstacksize.3:41 #: build/C/man3/pthread_cancel.3:37 build/C/man3/pthread_cleanup_push.3:40 -#: build/C/man3/pthread_cleanup_push_defer_np.3:40 +#: build/C/man3/pthread_cleanup_push_defer_np.3:53 #: build/C/man3/pthread_create.3:38 build/C/man3/pthread_detach.3:37 #: build/C/man3/pthread_equal.3:37 build/C/man3/pthread_exit.3:37 #: build/C/man3/pthread_getattr_np.3:38 #: build/C/man3/pthread_getcpuclockid.3:38 build/C/man3/pthread_join.3:37 -#: build/C/man3/pthread_kill.3:37 +#: build/C/man3/pthread_kill.3:49 #: build/C/man3/pthread_kill_other_threads_np.3:35 #: build/C/man3/pthread_self.3:37 build/C/man3/pthread_setaffinity_np.3:42 #: build/C/man3/pthread_setcancelstate.3:39 #: build/C/man3/pthread_setconcurrency.3:38 #: build/C/man3/pthread_setname_np.3:39 #: build/C/man3/pthread_setschedparam.3:41 -#: build/C/man3/pthread_setschedprio.3:37 build/C/man3/pthread_sigmask.3:38 -#: build/C/man3/pthread_sigqueue.3:45 build/C/man3/pthread_testcancel.3:37 +#: build/C/man3/pthread_setschedprio.3:37 build/C/man3/pthread_sigmask.3:50 +#: build/C/man3/pthread_sigqueue.3:46 build/C/man3/pthread_testcancel.3:37 #: build/C/man3/pthread_tryjoin_np.3:42 build/C/man3/pthread_yield.3:37 #: build/C/man7/pthreads.7:29 #, no-wrap @@ -216,7 +216,7 @@ msgid "DESCRIPTION" msgstr "説明" #. type: Plain text -#: build/C/man3/getcontext.3:46 +#: build/C/man3/getcontext.3:49 msgid "" "In a System V-like environment, one has the two types I and " "I defined in Iucontext.hE> and the four functions " @@ -231,7 +231,7 @@ msgstr "" "ようになっている。" #. type: Plain text -#: build/C/man3/getcontext.3:50 +#: build/C/man3/getcontext.3:57 msgid "" "The I type is machine-dependent and opaque. The I " "type is a structure that has at least the following fields:" @@ -240,7 +240,7 @@ msgstr "" "構造体で、少なくとも以下の 4 つのフィールドを持つ。" #. type: Plain text -#: build/C/man3/getcontext.3:60 +#: build/C/man3/getcontext.3:67 #, no-wrap msgid "" "typedef struct ucontext {\n" @@ -260,7 +260,7 @@ msgstr "" "} ucontext_t;\n" #. type: Plain text -#: build/C/man3/getcontext.3:77 +#: build/C/man3/getcontext.3:94 msgid "" "with I and I defined in Isignal.hE>. Here " "I points to the context that will be resumed when the current " @@ -281,7 +281,7 @@ msgstr "" "ンレジスタが格納される。" #. type: Plain text -#: build/C/man3/getcontext.3:82 +#: build/C/man3/getcontext.3:101 msgid "" "The function B() initializes the structure pointed at by I " "to the currently active context." @@ -290,7 +290,7 @@ msgstr "" "ンテキストに初期化する。" #. type: Plain text -#: build/C/man3/getcontext.3:94 +#: build/C/man3/getcontext.3:114 msgid "" "The function B() restores the user context pointed at by " "I. A successful call does not return. The context should have been " @@ -298,12 +298,12 @@ msgid "" "third argument to a signal handler." msgstr "" "B() 関数は、ポインタ I が指すユーザコンテキストをリストアす" -"る。 呼び出しに成功すると返らない。 このコンテキストは、以前に B" -"() または B(3) で得られたものか、 あるいはシグナルの第三引数と" -"して与えられたものになる。" +"る。 呼び出しに成功すると返らない。 このコンテキストは、以前に " +"B() または B(3) で得られたものか、 あるいはシグナ" +"ルの第三引数として与えられたものになる。" #. type: Plain text -#: build/C/man3/getcontext.3:98 +#: build/C/man3/getcontext.3:118 msgid "" "If the context was obtained by a call of B(), program execution " "continues as if this call just returned." @@ -312,7 +312,7 @@ msgstr "" "プログラムはこの呼び出しから返った直後からのように実行を継続する。" #. type: Plain text -#: build/C/man3/getcontext.3:109 +#: build/C/man3/getcontext.3:135 msgid "" "If the context was obtained by a call of B(3), program " "execution continues by a call to the function I specified as the " @@ -323,12 +323,13 @@ msgid "" msgstr "" "コンテキストが B(3) の呼び出しによって得られていたものの場合" "は、 プログラムの実行はその B(3) 呼び出しの第二引数で指定された" -"関数 I を呼び出すかたちで継続する。 I から返ると、 B" -"(3) 呼び出しの第一引数で指定されていた I 構造体の I メンバで継" -"続する。 このメンバが NULL だった場合は、そのスレッドは終了する。" +"関数 I を呼び出すかたちで継続する。 I から返ると、 " +"B(3) 呼び出しの第一引数で指定されていた I 構造体の " +"I メンバで継続する。 このメンバが NULL だった場合は、そのスレッドは" +"終了する。" #. type: Plain text -#: build/C/man3/getcontext.3:116 +#: build/C/man3/getcontext.3:142 msgid "" "If the context was obtained by a call to a signal handler, then old standard " "text says that \"program execution continues with the program instruction " @@ -342,38 +343,38 @@ msgstr "" "は定義されていない」である。" #. type: SH -#: build/C/man3/getcontext.3:116 build/C/man3/makecontext.3:84 +#: build/C/man3/getcontext.3:142 build/C/man3/makecontext.3:84 #: build/C/man3/pthread_attr_init.3:68 #: build/C/man3/pthread_attr_setaffinity_np.3:76 #: build/C/man3/pthread_attr_setdetachstate.3:77 #: build/C/man3/pthread_attr_setguardsize.3:90 -#: build/C/man3/pthread_attr_setinheritsched.3:84 -#: build/C/man3/pthread_attr_setschedparam.3:74 -#: build/C/man3/pthread_attr_setschedpolicy.3:72 -#: build/C/man3/pthread_attr_setscope.3:91 +#: build/C/man3/pthread_attr_setinheritsched.3:93 +#: build/C/man3/pthread_attr_setschedparam.3:85 +#: build/C/man3/pthread_attr_setschedpolicy.3:83 +#: build/C/man3/pthread_attr_setscope.3:103 #: build/C/man3/pthread_attr_setstack.3:85 #: build/C/man3/pthread_attr_setstackaddr.3:74 #: build/C/man3/pthread_attr_setstacksize.3:61 -#: build/C/man3/pthread_cancel.3:109 build/C/man3/pthread_cleanup_push.3:119 +#: build/C/man3/pthread_cancel.3:112 build/C/man3/pthread_cleanup_push.3:121 #: build/C/man3/pthread_create.3:115 build/C/man3/pthread_detach.3:49 #: build/C/man3/pthread_equal.3:41 build/C/man3/pthread_exit.3:71 #: build/C/man3/pthread_getattr_np.3:73 #: build/C/man3/pthread_getcpuclockid.3:46 build/C/man3/pthread_join.3:70 -#: build/C/man3/pthread_kill.3:52 build/C/man3/pthread_self.3:46 +#: build/C/man3/pthread_kill.3:63 build/C/man3/pthread_self.3:46 #: build/C/man3/pthread_setaffinity_np.3:77 #: build/C/man3/pthread_setcancelstate.3:92 #: build/C/man3/pthread_setconcurrency.3:56 #: build/C/man3/pthread_setname_np.3:72 #: build/C/man3/pthread_setschedparam.3:104 -#: build/C/man3/pthread_setschedprio.3:53 build/C/man3/pthread_sigmask.3:49 -#: build/C/man3/pthread_sigqueue.3:65 build/C/man3/pthread_testcancel.3:50 +#: build/C/man3/pthread_setschedprio.3:53 build/C/man3/pthread_sigmask.3:61 +#: build/C/man3/pthread_sigqueue.3:66 build/C/man3/pthread_testcancel.3:50 #: build/C/man3/pthread_tryjoin_np.3:85 build/C/man3/pthread_yield.3:44 #, no-wrap msgid "RETURN VALUE" msgstr "返り値" #. type: Plain text -#: build/C/man3/getcontext.3:124 +#: build/C/man3/getcontext.3:151 msgid "" "When successful, B() returns 0 and B() does not " "return. On error, both return -1 and set I appropriately." @@ -382,124 +383,179 @@ msgstr "" "敗すると、両者とも -1 を返し、I をエラーに応じて設定する。" #. type: SH -#: build/C/man3/getcontext.3:124 build/C/man3/makecontext.3:96 +#: build/C/man3/getcontext.3:151 build/C/man3/makecontext.3:96 #: build/C/man3/pthread_attr_init.3:71 #: build/C/man3/pthread_attr_setaffinity_np.3:79 #: build/C/man3/pthread_attr_setdetachstate.3:80 #: build/C/man3/pthread_attr_setguardsize.3:93 -#: build/C/man3/pthread_attr_setinheritsched.3:87 -#: build/C/man3/pthread_attr_setschedparam.3:77 -#: build/C/man3/pthread_attr_setschedpolicy.3:75 -#: build/C/man3/pthread_attr_setscope.3:94 +#: build/C/man3/pthread_attr_setinheritsched.3:96 +#: build/C/man3/pthread_attr_setschedparam.3:88 +#: build/C/man3/pthread_attr_setschedpolicy.3:86 +#: build/C/man3/pthread_attr_setscope.3:106 #: build/C/man3/pthread_attr_setstack.3:88 #: build/C/man3/pthread_attr_setstackaddr.3:77 #: build/C/man3/pthread_attr_setstacksize.3:64 -#: build/C/man3/pthread_cancel.3:114 build/C/man3/pthread_cleanup_push.3:121 +#: build/C/man3/pthread_cancel.3:117 build/C/man3/pthread_cleanup_push.3:123 #: build/C/man3/pthread_create.3:122 build/C/man3/pthread_detach.3:54 #: build/C/man3/pthread_equal.3:45 build/C/man3/pthread_exit.3:73 #: build/C/man3/pthread_getattr_np.3:76 #: build/C/man3/pthread_getcpuclockid.3:49 build/C/man3/pthread_join.3:75 -#: build/C/man3/pthread_kill.3:57 build/C/man3/pthread_self.3:48 +#: build/C/man3/pthread_kill.3:68 build/C/man3/pthread_self.3:48 #: build/C/man3/pthread_setaffinity_np.3:80 #: build/C/man3/pthread_setcancelstate.3:95 #: build/C/man3/pthread_setconcurrency.3:68 #: build/C/man3/pthread_setname_np.3:75 #: build/C/man3/pthread_setschedparam.3:112 -#: build/C/man3/pthread_setschedprio.3:61 build/C/man3/pthread_sigmask.3:54 -#: build/C/man3/pthread_sigqueue.3:70 build/C/man3/pthread_testcancel.3:54 +#: build/C/man3/pthread_setschedprio.3:61 build/C/man3/pthread_sigmask.3:66 +#: build/C/man3/pthread_sigqueue.3:71 build/C/man3/pthread_testcancel.3:54 #: build/C/man3/pthread_tryjoin_np.3:89 build/C/man3/pthread_yield.3:49 #, no-wrap msgid "ERRORS" msgstr "エラー" #. type: Plain text -#: build/C/man3/getcontext.3:126 +#: build/C/man3/getcontext.3:153 msgid "None defined." msgstr "定義されていない。" #. type: SH -#: build/C/man3/getcontext.3:126 build/C/man3/makecontext.3:105 -#: build/C/man3/pthread_attr_init.3:79 -#: build/C/man3/pthread_attr_setaffinity_np.3:108 +#: build/C/man3/getcontext.3:153 build/C/man3/makecontext.3:105 #: build/C/man3/pthread_attr_setdetachstate.3:87 #: build/C/man3/pthread_attr_setguardsize.3:106 -#: build/C/man3/pthread_attr_setinheritsched.3:101 -#: build/C/man3/pthread_attr_setschedparam.3:89 -#: build/C/man3/pthread_attr_setschedpolicy.3:89 -#: build/C/man3/pthread_attr_setscope.3:107 +#: build/C/man3/pthread_attr_setinheritsched.3:110 +#: build/C/man3/pthread_attr_setschedparam.3:100 +#: build/C/man3/pthread_attr_setschedpolicy.3:100 +#: build/C/man3/pthread_attr_setscope.3:119 #: build/C/man3/pthread_attr_setstack.3:112 #: build/C/man3/pthread_attr_setstackaddr.3:83 -#: build/C/man3/pthread_attr_setstacksize.3:83 -#: build/C/man3/pthread_cancel.3:122 build/C/man3/pthread_cleanup_push.3:125 -#: build/C/man3/pthread_cleanup_push_defer_np.3:101 -#: build/C/man3/pthread_create.3:146 build/C/man3/pthread_detach.3:64 -#: build/C/man3/pthread_equal.3:47 build/C/man3/pthread_exit.3:75 -#: build/C/man3/pthread_getattr_np.3:98 -#: build/C/man3/pthread_getcpuclockid.3:65 build/C/man3/pthread_join.3:98 -#: build/C/man3/pthread_kill.3:66 +#: build/C/man3/pthread_attr_setstacksize.3:83 build/C/man3/pthread_equal.3:47 +#: build/C/man3/pthread_exit.3:75 build/C/man3/pthread_getcpuclockid.3:65 +#: build/C/man3/pthread_kill.3:72 #: build/C/man3/pthread_kill_other_threads_np.3:47 #: build/C/man3/pthread_self.3:50 build/C/man3/pthread_setaffinity_np.3:121 #: build/C/man3/pthread_setcancelstate.3:113 #: build/C/man3/pthread_setconcurrency.3:83 -#: build/C/man3/pthread_setname_np.3:102 #: build/C/man3/pthread_setschedparam.3:141 -#: build/C/man3/pthread_setschedprio.3:83 build/C/man3/pthread_sigmask.3:57 -#: build/C/man3/pthread_sigqueue.3:93 build/C/man3/pthread_testcancel.3:58 -#: build/C/man3/pthread_tryjoin_np.3:112 build/C/man3/pthread_yield.3:53 +#: build/C/man3/pthread_setschedprio.3:83 build/C/man3/pthread_sigmask.3:69 +#: build/C/man3/pthread_sigqueue.3:94 build/C/man3/pthread_testcancel.3:58 +#: build/C/man3/pthread_yield.3:53 +#, no-wrap +msgid "ATTRIBUTES" +msgstr "属性" + +#. type: SS +#: build/C/man3/getcontext.3:154 build/C/man3/makecontext.3:106 +#: build/C/man3/pthread_attr_setdetachstate.3:88 +#: build/C/man3/pthread_attr_setguardsize.3:107 +#: build/C/man3/pthread_attr_setinheritsched.3:111 +#: build/C/man3/pthread_attr_setschedparam.3:101 +#: build/C/man3/pthread_attr_setschedpolicy.3:101 +#: build/C/man3/pthread_attr_setscope.3:120 +#: build/C/man3/pthread_attr_setstack.3:113 +#: build/C/man3/pthread_attr_setstackaddr.3:84 +#: build/C/man3/pthread_attr_setstacksize.3:84 build/C/man3/pthread_equal.3:48 +#: build/C/man3/pthread_exit.3:76 build/C/man3/pthread_getcpuclockid.3:66 +#: build/C/man3/pthread_kill.3:73 +#: build/C/man3/pthread_kill_other_threads_np.3:48 +#: build/C/man3/pthread_self.3:51 build/C/man3/pthread_setaffinity_np.3:122 +#: build/C/man3/pthread_setcancelstate.3:114 +#: build/C/man3/pthread_setconcurrency.3:84 +#: build/C/man3/pthread_setschedparam.3:142 +#: build/C/man3/pthread_setschedprio.3:84 build/C/man3/pthread_sigmask.3:70 +#: build/C/man3/pthread_sigqueue.3:95 build/C/man3/pthread_testcancel.3:59 +#: build/C/man3/pthread_yield.3:54 +#, no-wrap +msgid "Multithreading (see pthreads(7))" +msgstr "マルチスレッディング (pthreads(7) 参照)" + +#. type: Plain text +#: build/C/man3/getcontext.3:160 +msgid "The B() and B() functions are thread-safe." +msgstr "関数 B() と B() はスレッドセーフである。" + +#. type: SH +#: build/C/man3/getcontext.3:160 build/C/man3/makecontext.3:112 +#: build/C/man3/pthread_attr_init.3:79 +#: build/C/man3/pthread_attr_setaffinity_np.3:108 +#: build/C/man3/pthread_attr_setdetachstate.3:94 +#: build/C/man3/pthread_attr_setguardsize.3:113 +#: build/C/man3/pthread_attr_setinheritsched.3:117 +#: build/C/man3/pthread_attr_setschedparam.3:107 +#: build/C/man3/pthread_attr_setschedpolicy.3:107 +#: build/C/man3/pthread_attr_setscope.3:126 +#: build/C/man3/pthread_attr_setstack.3:119 +#: build/C/man3/pthread_attr_setstackaddr.3:90 +#: build/C/man3/pthread_attr_setstacksize.3:90 +#: build/C/man3/pthread_cancel.3:125 build/C/man3/pthread_cleanup_push.3:127 +#: build/C/man3/pthread_cleanup_push_defer_np.3:114 +#: build/C/man3/pthread_create.3:153 build/C/man3/pthread_detach.3:64 +#: build/C/man3/pthread_equal.3:52 build/C/man3/pthread_exit.3:80 +#: build/C/man3/pthread_getattr_np.3:98 +#: build/C/man3/pthread_getcpuclockid.3:70 build/C/man3/pthread_join.3:98 +#: build/C/man3/pthread_kill.3:77 +#: build/C/man3/pthread_kill_other_threads_np.3:52 +#: build/C/man3/pthread_self.3:55 build/C/man3/pthread_setaffinity_np.3:128 +#: build/C/man3/pthread_setcancelstate.3:120 +#: build/C/man3/pthread_setconcurrency.3:90 +#: build/C/man3/pthread_setname_np.3:102 +#: build/C/man3/pthread_setschedparam.3:148 +#: build/C/man3/pthread_setschedprio.3:88 build/C/man3/pthread_sigmask.3:74 +#: build/C/man3/pthread_sigqueue.3:99 build/C/man3/pthread_testcancel.3:63 +#: build/C/man3/pthread_tryjoin_np.3:112 build/C/man3/pthread_yield.3:58 #, no-wrap msgid "CONFORMING TO" msgstr "準拠" #. type: Plain text -#: build/C/man3/getcontext.3:132 +#: build/C/man3/getcontext.3:166 msgid "" -"SUSv2, POSIX.1-2001. POSIX.1-2008 removes the specification of B" -"(), citing portability issues, and recommending that applications be " -"rewritten to use POSIX threads instead." +"SUSv2, POSIX.1-2001. POSIX.1-2008 removes the specification of " +"B(), citing portability issues, and recommending that " +"applications be rewritten to use POSIX threads instead." msgstr "" "SUSv2, POSIX.1-2001. POSIX.1-2008 では、移植性の問題から B() の" "仕様が削除された。 代わりに、アプリケーションを POSIX スレッドを使って書き直" "すことが 推奨されている。" #. type: SH -#: build/C/man3/getcontext.3:132 build/C/man3/makecontext.3:113 +#: build/C/man3/getcontext.3:166 build/C/man3/makecontext.3:120 #: build/C/man3/pthread_attr_init.3:81 #: build/C/man3/pthread_attr_setaffinity_np.3:111 -#: build/C/man3/pthread_attr_setdetachstate.3:89 -#: build/C/man3/pthread_attr_setguardsize.3:108 -#: build/C/man3/pthread_attr_setschedparam.3:91 -#: build/C/man3/pthread_attr_setscope.3:109 -#: build/C/man3/pthread_attr_setstack.3:114 -#: build/C/man3/pthread_attr_setstackaddr.3:86 -#: build/C/man3/pthread_attr_setstacksize.3:85 -#: build/C/man3/pthread_cancel.3:124 build/C/man3/pthread_cleanup_push.3:127 -#: build/C/man3/pthread_create.3:148 build/C/man3/pthread_detach.3:66 -#: build/C/man3/pthread_equal.3:49 build/C/man3/pthread_exit.3:77 -#: build/C/man3/pthread_getcpuclockid.3:67 build/C/man3/pthread_join.3:100 -#: build/C/man3/pthread_kill.3:68 -#: build/C/man3/pthread_kill_other_threads_np.3:50 -#: build/C/man3/pthread_self.3:52 build/C/man3/pthread_setaffinity_np.3:124 -#: build/C/man3/pthread_setcancelstate.3:115 -#: build/C/man3/pthread_setconcurrency.3:85 +#: build/C/man3/pthread_attr_setdetachstate.3:96 +#: build/C/man3/pthread_attr_setguardsize.3:115 +#: build/C/man3/pthread_attr_setschedparam.3:109 +#: build/C/man3/pthread_attr_setscope.3:128 +#: build/C/man3/pthread_attr_setstack.3:121 +#: build/C/man3/pthread_attr_setstackaddr.3:93 +#: build/C/man3/pthread_attr_setstacksize.3:92 +#: build/C/man3/pthread_cancel.3:127 build/C/man3/pthread_cleanup_push.3:129 +#: build/C/man3/pthread_create.3:155 build/C/man3/pthread_detach.3:66 +#: build/C/man3/pthread_equal.3:54 build/C/man3/pthread_exit.3:82 +#: build/C/man3/pthread_getcpuclockid.3:72 build/C/man3/pthread_join.3:100 +#: build/C/man3/pthread_kill.3:79 +#: build/C/man3/pthread_kill_other_threads_np.3:55 +#: build/C/man3/pthread_self.3:57 build/C/man3/pthread_setaffinity_np.3:131 +#: build/C/man3/pthread_setcancelstate.3:122 +#: build/C/man3/pthread_setconcurrency.3:92 #: build/C/man3/pthread_setname_np.3:104 -#: build/C/man3/pthread_setschedparam.3:143 -#: build/C/man3/pthread_setschedprio.3:85 build/C/man3/pthread_sigmask.3:59 -#: build/C/man3/pthread_yield.3:59 +#: build/C/man3/pthread_setschedparam.3:150 +#: build/C/man3/pthread_setschedprio.3:90 build/C/man3/pthread_sigmask.3:76 +#: build/C/man3/pthread_yield.3:64 #, no-wrap msgid "NOTES" msgstr "注意" #. type: Plain text -#: build/C/man3/getcontext.3:149 +#: build/C/man3/getcontext.3:183 msgid "" -"The earliest incarnation of this mechanism was the B(3)/B" -"(3) mechanism. Since that does not define the handling of the signal " -"context, the next stage was the B(3)/B(3) pair. The " -"present mechanism gives much more control. On the other hand, there is no " -"easy way to detect whether a return from B() is from the first " -"call, or via a B() call. The user has to invent her own " -"bookkeeping device, and a register variable won't do since registers are " -"restored." +"The earliest incarnation of this mechanism was the B(3)/" +"B(3) mechanism. Since that does not define the handling of the " +"signal context, the next stage was the B(3)/B(3) " +"pair. The present mechanism gives much more control. On the other hand, " +"there is no easy way to detect whether a return from B() is " +"from the first call, or via a B() call. The user has to invent " +"her own bookkeeping device, and a register variable won't do since registers " +"are restored." msgstr "" "このメカニズムの最古の実装は、 B(3)/B(3) 機構であった。 こ" "れらにはシグナルコンテキストの取り扱いが定義されていなかったので、 次の段階で" @@ -511,7 +567,7 @@ msgstr "" "くれない。" #. type: Plain text -#: build/C/man3/getcontext.3:160 +#: build/C/man3/getcontext.3:194 msgid "" "When a signal occurs, the current user context is saved and a new context is " "created by the kernel for the signal handler. Do not leave the handler " @@ -519,46 +575,46 @@ msgid "" "B(3) or B() instead." msgstr "" "シグナルが発生すると、 現在のユーザコンテキストは保存され、 シグナルハンドラ" -"用のコンテキストがカーネルによって生成される。 今後はハンドラに B" -"(3) を使わせないこと: この関数のコンテキスト下での動作は定義されていない。 " -"代わりに B(3) か B() を使うこと。" +"用のコンテキストがカーネルによって生成される。 今後はハンドラに " +"B(3) を使わせないこと: この関数のコンテキスト下での動作は定義されて" +"いない。 代わりに B(3) か B() を使うこと。" #. type: SH -#: build/C/man3/getcontext.3:160 build/C/man3/makecontext.3:220 +#: build/C/man3/getcontext.3:194 build/C/man3/makecontext.3:227 #: build/C/man3/pthread_attr_init.3:297 #: build/C/man3/pthread_attr_setaffinity_np.3:118 -#: build/C/man3/pthread_attr_setdetachstate.3:111 -#: build/C/man3/pthread_attr_setguardsize.3:158 -#: build/C/man3/pthread_attr_setinheritsched.3:122 -#: build/C/man3/pthread_attr_setschedparam.3:98 -#: build/C/man3/pthread_attr_setschedpolicy.3:94 -#: build/C/man3/pthread_attr_setscope.3:120 -#: build/C/man3/pthread_attr_setstack.3:156 -#: build/C/man3/pthread_attr_setstackaddr.3:110 -#: build/C/man3/pthread_attr_setstacksize.3:111 -#: build/C/man3/pthread_cancel.3:223 build/C/man3/pthread_cleanup_push.3:311 -#: build/C/man3/pthread_cleanup_push_defer_np.3:104 -#: build/C/man3/pthread_create.3:369 build/C/man3/pthread_detach.3:97 -#: build/C/man3/pthread_equal.3:56 build/C/man3/pthread_exit.3:105 +#: build/C/man3/pthread_attr_setdetachstate.3:118 +#: build/C/man3/pthread_attr_setguardsize.3:165 +#: build/C/man3/pthread_attr_setinheritsched.3:138 +#: build/C/man3/pthread_attr_setschedparam.3:116 +#: build/C/man3/pthread_attr_setschedpolicy.3:112 +#: build/C/man3/pthread_attr_setscope.3:139 +#: build/C/man3/pthread_attr_setstack.3:162 +#: build/C/man3/pthread_attr_setstackaddr.3:117 +#: build/C/man3/pthread_attr_setstacksize.3:118 +#: build/C/man3/pthread_cancel.3:226 build/C/man3/pthread_cleanup_push.3:315 +#: build/C/man3/pthread_cleanup_push_defer_np.3:117 +#: build/C/man3/pthread_create.3:376 build/C/man3/pthread_detach.3:97 +#: build/C/man3/pthread_equal.3:61 build/C/man3/pthread_exit.3:110 #: build/C/man3/pthread_getattr_np.3:345 -#: build/C/man3/pthread_getcpuclockid.3:169 build/C/man3/pthread_join.3:127 -#: build/C/man3/pthread_kill.3:75 -#: build/C/man3/pthread_kill_other_threads_np.3:66 -#: build/C/man3/pthread_self.3:76 build/C/man3/pthread_setaffinity_np.3:206 -#: build/C/man3/pthread_setcancelstate.3:177 -#: build/C/man3/pthread_setconcurrency.3:100 -#: build/C/man3/pthread_setname_np.3:198 -#: build/C/man3/pthread_setschedparam.3:431 -#: build/C/man3/pthread_setschedprio.3:91 build/C/man3/pthread_sigmask.3:135 -#: build/C/man3/pthread_sigqueue.3:95 build/C/man3/pthread_testcancel.3:63 -#: build/C/man3/pthread_tryjoin_np.3:135 build/C/man3/pthread_yield.3:62 -#: build/C/man7/pthreads.7:895 +#: build/C/man3/pthread_getcpuclockid.3:175 build/C/man3/pthread_join.3:127 +#: build/C/man3/pthread_kill.3:99 +#: build/C/man3/pthread_kill_other_threads_np.3:71 +#: build/C/man3/pthread_self.3:81 build/C/man3/pthread_setaffinity_np.3:213 +#: build/C/man3/pthread_setcancelstate.3:186 +#: build/C/man3/pthread_setconcurrency.3:107 +#: build/C/man3/pthread_setname_np.3:200 +#: build/C/man3/pthread_setschedparam.3:438 +#: build/C/man3/pthread_setschedprio.3:96 build/C/man3/pthread_sigmask.3:152 +#: build/C/man3/pthread_sigqueue.3:101 build/C/man3/pthread_testcancel.3:68 +#: build/C/man3/pthread_tryjoin_np.3:135 build/C/man3/pthread_yield.3:67 +#: build/C/man7/pthreads.7:893 #, no-wrap msgid "SEE ALSO" msgstr "関連項目" #. type: Plain text -#: build/C/man3/getcontext.3:167 +#: build/C/man3/getcontext.3:201 msgid "" "B(2), B(2), B(2), B(3), " "B(3), B(3)" @@ -567,80 +623,76 @@ msgstr "" "B(3), B(3)" #. type: SH -#: build/C/man3/getcontext.3:167 build/C/man3/makecontext.3:226 +#: build/C/man3/getcontext.3:201 build/C/man3/makecontext.3:233 #: build/C/man3/pthread_attr_init.3:313 #: build/C/man3/pthread_attr_setaffinity_np.3:124 -#: build/C/man3/pthread_attr_setdetachstate.3:117 -#: build/C/man3/pthread_attr_setguardsize.3:166 -#: build/C/man3/pthread_attr_setinheritsched.3:133 -#: build/C/man3/pthread_attr_setschedparam.3:110 -#: build/C/man3/pthread_attr_setschedpolicy.3:105 -#: build/C/man3/pthread_attr_setscope.3:130 -#: build/C/man3/pthread_attr_setstack.3:168 -#: build/C/man3/pthread_attr_setstackaddr.3:116 -#: build/C/man3/pthread_attr_setstacksize.3:118 -#: build/C/man3/pthread_cancel.3:235 build/C/man3/pthread_cleanup_push.3:317 -#: build/C/man3/pthread_cleanup_push_defer_np.3:110 -#: build/C/man3/pthread_create.3:382 build/C/man3/pthread_detach.3:104 -#: build/C/man3/pthread_equal.3:60 build/C/man3/pthread_exit.3:109 -#: build/C/man3/pthread_getattr_np.3:361 -#: build/C/man3/pthread_getcpuclockid.3:177 build/C/man3/pthread_join.3:134 -#: build/C/man3/pthread_kill.3:84 -#: build/C/man3/pthread_kill_other_threads_np.3:72 -#: build/C/man3/pthread_self.3:80 build/C/man3/pthread_setaffinity_np.3:214 -#: build/C/man3/pthread_setcancelstate.3:182 -#: build/C/man3/pthread_setconcurrency.3:103 -#: build/C/man3/pthread_setname_np.3:204 -#: build/C/man3/pthread_setschedparam.3:445 -#: build/C/man3/pthread_setschedprio.3:105 build/C/man3/pthread_sigmask.3:144 -#: build/C/man3/pthread_sigqueue.3:103 build/C/man3/pthread_testcancel.3:68 -#: build/C/man3/pthread_tryjoin_np.3:140 build/C/man3/pthread_yield.3:66 -#: build/C/man7/pthreads.7:929 -#, no-wrap -msgid "COLOPHON" -msgstr "この文書について" - -#. type: Plain text -#: build/C/man3/getcontext.3:174 build/C/man3/makecontext.3:233 -#: build/C/man3/pthread_attr_init.3:320 -#: build/C/man3/pthread_attr_setaffinity_np.3:131 #: build/C/man3/pthread_attr_setdetachstate.3:124 #: build/C/man3/pthread_attr_setguardsize.3:173 -#: build/C/man3/pthread_attr_setinheritsched.3:140 -#: build/C/man3/pthread_attr_setschedparam.3:117 -#: build/C/man3/pthread_attr_setschedpolicy.3:112 -#: build/C/man3/pthread_attr_setscope.3:137 -#: build/C/man3/pthread_attr_setstack.3:175 +#: build/C/man3/pthread_attr_setinheritsched.3:150 +#: build/C/man3/pthread_attr_setschedparam.3:128 +#: build/C/man3/pthread_attr_setschedpolicy.3:123 +#: build/C/man3/pthread_attr_setscope.3:149 +#: build/C/man3/pthread_attr_setstack.3:174 #: build/C/man3/pthread_attr_setstackaddr.3:123 #: build/C/man3/pthread_attr_setstacksize.3:125 -#: build/C/man3/pthread_cancel.3:242 build/C/man3/pthread_cleanup_push.3:324 -#: build/C/man3/pthread_cleanup_push_defer_np.3:117 -#: build/C/man3/pthread_create.3:389 build/C/man3/pthread_detach.3:111 -#: build/C/man3/pthread_equal.3:67 build/C/man3/pthread_exit.3:116 -#: build/C/man3/pthread_getattr_np.3:368 -#: build/C/man3/pthread_getcpuclockid.3:184 build/C/man3/pthread_join.3:141 -#: build/C/man3/pthread_kill.3:91 -#: build/C/man3/pthread_kill_other_threads_np.3:79 -#: build/C/man3/pthread_self.3:87 build/C/man3/pthread_setaffinity_np.3:221 -#: build/C/man3/pthread_setcancelstate.3:189 +#: build/C/man3/pthread_cancel.3:238 build/C/man3/pthread_cleanup_push.3:321 +#: build/C/man3/pthread_cleanup_push_defer_np.3:123 +#: build/C/man3/pthread_create.3:389 build/C/man3/pthread_detach.3:104 +#: build/C/man3/pthread_equal.3:65 build/C/man3/pthread_exit.3:114 +#: build/C/man3/pthread_getattr_np.3:361 +#: build/C/man3/pthread_getcpuclockid.3:183 build/C/man3/pthread_join.3:134 +#: build/C/man3/pthread_kill.3:108 +#: build/C/man3/pthread_kill_other_threads_np.3:77 +#: build/C/man3/pthread_self.3:85 build/C/man3/pthread_setaffinity_np.3:221 +#: build/C/man3/pthread_setcancelstate.3:191 #: build/C/man3/pthread_setconcurrency.3:110 -#: build/C/man3/pthread_setname_np.3:211 +#: build/C/man3/pthread_setname_np.3:206 #: build/C/man3/pthread_setschedparam.3:452 -#: build/C/man3/pthread_setschedprio.3:112 build/C/man3/pthread_sigmask.3:151 -#: build/C/man3/pthread_sigqueue.3:110 build/C/man3/pthread_testcancel.3:75 -#: build/C/man3/pthread_tryjoin_np.3:147 build/C/man3/pthread_yield.3:73 -#: build/C/man7/pthreads.7:936 -#, fuzzy -#| msgid "" -#| "This page is part of release 3.41 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/." -msgid "" -"This page is part of release 3.50 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/." -msgstr "" -"この man ページは Linux I プロジェクトのリリース 3.41 の一部\n" +#: build/C/man3/pthread_setschedprio.3:110 build/C/man3/pthread_sigmask.3:161 +#: build/C/man3/pthread_sigqueue.3:109 build/C/man3/pthread_testcancel.3:73 +#: build/C/man3/pthread_tryjoin_np.3:140 build/C/man3/pthread_yield.3:71 +#: build/C/man7/pthreads.7:927 +#, no-wrap +msgid "COLOPHON" +msgstr "この文書について" + +#. type: Plain text +#: build/C/man3/getcontext.3:209 build/C/man3/makecontext.3:241 +#: build/C/man3/pthread_attr_init.3:321 +#: build/C/man3/pthread_attr_setaffinity_np.3:132 +#: build/C/man3/pthread_attr_setdetachstate.3:132 +#: build/C/man3/pthread_attr_setguardsize.3:181 +#: build/C/man3/pthread_attr_setinheritsched.3:158 +#: build/C/man3/pthread_attr_setschedparam.3:136 +#: build/C/man3/pthread_attr_setschedpolicy.3:131 +#: build/C/man3/pthread_attr_setscope.3:157 +#: build/C/man3/pthread_attr_setstack.3:182 +#: build/C/man3/pthread_attr_setstackaddr.3:131 +#: build/C/man3/pthread_attr_setstacksize.3:133 +#: build/C/man3/pthread_cancel.3:246 build/C/man3/pthread_cleanup_push.3:329 +#: build/C/man3/pthread_cleanup_push_defer_np.3:131 +#: build/C/man3/pthread_create.3:397 build/C/man3/pthread_detach.3:112 +#: build/C/man3/pthread_equal.3:73 build/C/man3/pthread_exit.3:122 +#: build/C/man3/pthread_getattr_np.3:369 +#: build/C/man3/pthread_getcpuclockid.3:191 build/C/man3/pthread_join.3:142 +#: build/C/man3/pthread_kill.3:116 +#: build/C/man3/pthread_kill_other_threads_np.3:85 +#: build/C/man3/pthread_self.3:93 build/C/man3/pthread_setaffinity_np.3:229 +#: build/C/man3/pthread_setcancelstate.3:199 +#: build/C/man3/pthread_setconcurrency.3:118 +#: build/C/man3/pthread_setname_np.3:214 +#: build/C/man3/pthread_setschedparam.3:460 +#: build/C/man3/pthread_setschedprio.3:118 build/C/man3/pthread_sigmask.3:169 +#: build/C/man3/pthread_sigqueue.3:117 build/C/man3/pthread_testcancel.3:81 +#: build/C/man3/pthread_tryjoin_np.3:148 build/C/man3/pthread_yield.3:79 +#: build/C/man7/pthreads.7:935 +msgid "" +"This page is part of release 3.68 of the Linux I project. A " +"description of the project, information about reporting bugs, and the latest " +"version of this page, can be found at \\%http://www.kernel.org/doc/man-" +"pages/." +msgstr "" +"この man ページは Linux I プロジェクトのリリース 3.68 の一部\n" "である。プロジェクトの説明とバグ報告に関する情報は\n" "http://www.kernel.org/doc/man-pages/ に書かれている。" @@ -651,11 +703,20 @@ msgid "MAKECONTEXT" msgstr "MAKECONTEXT" #. type: TH -#: build/C/man3/makecontext.3:28 -#, fuzzy, no-wrap -#| msgid "2010-02-03" -msgid "2013-02-12" -msgstr "2010-02-03" +#: build/C/man3/makecontext.3:28 build/C/man3/pthread_attr_setaffinity_np.3:26 +#: build/C/man3/pthread_attr_setdetachstate.3:26 +#: build/C/man3/pthread_attr_setguardsize.3:26 +#: build/C/man3/pthread_attr_setscope.3:26 +#: build/C/man3/pthread_attr_setstack.3:26 +#: build/C/man3/pthread_attr_setstackaddr.3:26 +#: build/C/man3/pthread_attr_setstacksize.3:26 +#: build/C/man3/pthread_cleanup_push_defer_np.3:26 +#: build/C/man3/pthread_create.3:26 build/C/man3/pthread_setname_np.3:26 +#: build/C/man3/pthread_setschedparam.3:26 +#: build/C/man3/pthread_setschedprio.3:26 build/C/man3/pthread_sigqueue.3:25 +#, no-wrap +msgid "2014-05-28" +msgstr "2014-05-28" #. type: TH #: build/C/man3/makecontext.3:28 @@ -679,18 +740,12 @@ msgstr "" #. type: Plain text #: build/C/man3/makecontext.3:38 -msgid "BIB<, ucontext_t *>IB<);>" -msgstr "BIB<, ucontext_t *>IB<);>" +msgid "" +"BIB<, const ucontext_t *>IB<);>" +msgstr "BIB<, const ucontext_t *>IB<);>" #. type: Plain text #: build/C/man3/makecontext.3:49 -#, fuzzy -#| msgid "" -#| "In a System V-like environment, one has the type I defined in " -#| "Iucontext.hE> and the four functions B(2), " -#| "B(2), B() and B() that allow user-" -#| "level context switching between multiple threads of control within a " -#| "process." msgid "" "In a System V-like environment, one has the type I defined in " "Iucontext.hE> and the four functions B(3), " @@ -698,28 +753,19 @@ msgid "" "level context switching between multiple threads of control within a process." msgstr "" "System V 的な環境では、 B および B という 2 つの型" -"と、 B(2), B(2), B(), B() " +"と、 B(3), B(3), B(), B() " "という 4 つの関数が Iucontext.hE> で定義されており、あるプロセス内" "部で制御下にある複数のスレッド間で、 ユーザレベルのコンテキスト切替えができる" "ようになっている。" #. type: Plain text #: build/C/man3/makecontext.3:52 -#, fuzzy -#| msgid "For the type and the first two functions, see B(2)." msgid "For the type and the first two functions, see B(3)." msgstr "" -"これらの型と、最初の 2 つの関数については、 B(2) を参照のこと。" +"これらの型と、最初の 2 つの関数については、 B(3) を参照のこと。" #. type: Plain text #: build/C/man3/makecontext.3:64 -#, fuzzy -#| msgid "" -#| "The B() function modifies the context pointed to by I " -#| "(which was obtained from a call to B(2)). Before invoking " -#| "B(), the caller must allocate a new stack for this context " -#| "and assign its address to Iuc_stack>, and define a successor " -#| "context and assign its address to Iuc_link>." msgid "" "The B() function modifies the context pointed to by I " "(which was obtained from a call to B(3)). Before invoking " @@ -728,7 +774,7 @@ msgid "" "and assign its address to Iuc_link>." msgstr "" "B() 関数は、ポインタ I が指すコンテキストを変更する " -"(I は以前の B(2) 呼び出しで得られたものである)。 " +"(I は以前の B(3) 呼び出しで得られたものである)。 " "B() を起動する前には、呼び出し者は、このコンテキスト用に 新しい" "スタックを確保し、そのアドレスを Iuc_stack> に代入し、 さらに後継の" "コンテキストを定義し、そのアドレスを Iuc_link> に 代入しなければな" @@ -736,14 +782,6 @@ msgstr "" #. type: Plain text #: build/C/man3/makecontext.3:78 -#, fuzzy -#| msgid "" -#| "When this context is later activated (using B(2) or " -#| "B()) the function I is called, and passed the series " -#| "of integer (I) arguments that follow I; the caller must " -#| "specify the number of these arguments in I. When this function " -#| "returns, the successor context is activated. If the successor context " -#| "pointer is NULL, the thread exits." msgid "" "When this context is later activated (using B(3) or " "B()) the function I is called, and passed the series of " @@ -752,7 +790,7 @@ msgid "" "successor context is activated. If the successor context pointer is NULL, " "the thread exits." msgstr "" -"このコンテキストが将来 (B(2) または B() によっ" +"このコンテキストが将来 (B(3) または B() によっ" "て) 有効にされると、関数 I が呼ばれ、 引き数として I 以降の整数 " "(I) 引き数の列が渡される。 呼び出し者は I にこれらの引き数の個数" "を指定しなければならない。 この関数が戻ると、後継のコンテキストが有効にな" @@ -805,7 +843,7 @@ msgstr "スタックに割り当てる空間が残っていない。" #: build/C/man3/pthread_setaffinity_np.3:119 #: build/C/man3/pthread_setconcurrency.3:81 #: build/C/man3/pthread_setname_np.3:100 -#: build/C/man3/pthread_setschedprio.3:81 build/C/man3/pthread_sigqueue.3:89 +#: build/C/man3/pthread_setschedprio.3:81 build/C/man3/pthread_sigqueue.3:90 #: build/C/man3/pthread_tryjoin_np.3:110 #, no-wrap msgid "VERSIONS" @@ -821,7 +859,12 @@ msgstr "" "されている。" #. type: Plain text -#: build/C/man3/makecontext.3:113 +#: build/C/man3/makecontext.3:112 +msgid "The B() and B() functions are thread-safe." +msgstr "関数 B() と B() はスレッドセーフである。" + +#. type: Plain text +#: build/C/man3/makecontext.3:120 msgid "" "SUSv2, POSIX.1-2001. POSIX.1-2008 removes the specifications of " "B() and B(), citing portability issues, and " @@ -832,7 +875,7 @@ msgstr "" "POSIX スレッドを使って書き直すことが 推奨されている。" #. type: Plain text -#: build/C/man3/makecontext.3:121 +#: build/C/man3/makecontext.3:128 msgid "" "The interpretation of Iuc_stack> is just as in B(2), " "namely, this struct contains the start and length of a memory area to be " @@ -845,7 +888,7 @@ msgstr "" "て、ユーザプログラムはこの件については心配しなくてよい。" #. type: Plain text -#: build/C/man3/makecontext.3:137 +#: build/C/man3/makecontext.3:144 msgid "" "On architectures where I and pointer types are the same size (e.g., " "x86-32, where both types are 32 bits), you may be able to get away with " @@ -866,45 +909,40 @@ msgstr "" "できるようになっている。" #. type: SH -#: build/C/man3/makecontext.3:137 build/C/man3/pthread_attr_init.3:87 -#: build/C/man3/pthread_attr_setdetachstate.3:108 -#: build/C/man3/pthread_attr_setguardsize.3:155 -#: build/C/man3/pthread_attr_setinheritsched.3:119 -#: build/C/man3/pthread_attr_setschedparam.3:95 -#: build/C/man3/pthread_attr_setschedpolicy.3:91 -#: build/C/man3/pthread_attr_setstack.3:153 -#: build/C/man3/pthread_attr_setstacksize.3:108 -#: build/C/man3/pthread_cancel.3:132 build/C/man3/pthread_cleanup_push.3:151 -#: build/C/man3/pthread_create.3:202 build/C/man3/pthread_detach.3:93 +#: build/C/man3/makecontext.3:144 build/C/man3/pthread_attr_init.3:87 +#: build/C/man3/pthread_attr_setdetachstate.3:115 +#: build/C/man3/pthread_attr_setguardsize.3:162 +#: build/C/man3/pthread_attr_setinheritsched.3:135 +#: build/C/man3/pthread_attr_setschedparam.3:113 +#: build/C/man3/pthread_attr_setschedpolicy.3:109 +#: build/C/man3/pthread_attr_setstack.3:159 +#: build/C/man3/pthread_attr_setstacksize.3:115 +#: build/C/man3/pthread_cancel.3:135 build/C/man3/pthread_cleanup_push.3:155 +#: build/C/man3/pthread_create.3:209 build/C/man3/pthread_detach.3:93 #: build/C/man3/pthread_getattr_np.3:101 -#: build/C/man3/pthread_getcpuclockid.3:78 build/C/man3/pthread_join.3:124 -#: build/C/man3/pthread_setaffinity_np.3:154 -#: build/C/man3/pthread_setcancelstate.3:174 -#: build/C/man3/pthread_setname_np.3:112 -#: build/C/man3/pthread_setschedparam.3:149 build/C/man3/pthread_sigmask.3:61 -#: build/C/man3/pthread_testcancel.3:60 build/C/man3/pthread_tryjoin_np.3:115 +#: build/C/man3/pthread_getcpuclockid.3:83 build/C/man3/pthread_join.3:124 +#: build/C/man3/pthread_setaffinity_np.3:161 +#: build/C/man3/pthread_setcancelstate.3:183 +#: build/C/man3/pthread_setname_np.3:114 +#: build/C/man3/pthread_setschedparam.3:156 build/C/man3/pthread_sigmask.3:78 +#: build/C/man3/pthread_testcancel.3:65 build/C/man3/pthread_tryjoin_np.3:115 #, no-wrap msgid "EXAMPLE" msgstr "例" #. type: Plain text -#: build/C/man3/makecontext.3:145 -#, fuzzy -#| msgid "" -#| "The example program below demonstrates the use of B(2), " -#| "B(), and B(). Running the program produces the " -#| "following output:" +#: build/C/man3/makecontext.3:152 msgid "" "The example program below demonstrates the use of B(3), " "B(), and B(). Running the program produces the " "following output:" msgstr "" -"以下のサンプル・プログラムは、 B(2), B(), " +"以下のサンプル・プログラムは、 B(3), B(), " "B() の使用方法の例を示すものである。 このプログラムを実行する" "と、以下のような出力が得られる:" #. type: Plain text -#: build/C/man3/makecontext.3:157 +#: build/C/man3/makecontext.3:164 #, no-wrap msgid "" "$B< ./a.out>\n" @@ -928,18 +966,18 @@ msgstr "" "main: exiting\n" #. type: SS -#: build/C/man3/makecontext.3:159 build/C/man3/pthread_attr_init.3:148 -#: build/C/man3/pthread_cancel.3:148 build/C/man3/pthread_cleanup_push.3:227 -#: build/C/man3/pthread_create.3:241 build/C/man3/pthread_getattr_np.3:179 -#: build/C/man3/pthread_getcpuclockid.3:95 -#: build/C/man3/pthread_setname_np.3:138 -#: build/C/man3/pthread_setschedparam.3:224 build/C/man3/pthread_sigmask.3:79 +#: build/C/man3/makecontext.3:166 build/C/man3/pthread_attr_init.3:148 +#: build/C/man3/pthread_cancel.3:151 build/C/man3/pthread_cleanup_push.3:231 +#: build/C/man3/pthread_create.3:248 build/C/man3/pthread_getattr_np.3:179 +#: build/C/man3/pthread_getcpuclockid.3:101 +#: build/C/man3/pthread_setname_np.3:140 +#: build/C/man3/pthread_setschedparam.3:231 build/C/man3/pthread_sigmask.3:96 #, no-wrap msgid "Program source" msgstr "プログラムのソース" #. type: Plain text -#: build/C/man3/makecontext.3:165 +#: build/C/man3/makecontext.3:172 #, no-wrap msgid "" "#include Eucontext.hE\n" @@ -951,13 +989,13 @@ msgstr "" "#include Estdlib.hE\n" #. type: Plain text -#: build/C/man3/makecontext.3:167 +#: build/C/man3/makecontext.3:174 #, no-wrap msgid "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" msgstr "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" #. type: Plain text -#: build/C/man3/makecontext.3:170 +#: build/C/man3/makecontext.3:177 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" @@ -967,7 +1005,7 @@ msgstr "" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text -#: build/C/man3/makecontext.3:180 +#: build/C/man3/makecontext.3:187 #, no-wrap msgid "" "static void\n" @@ -991,7 +1029,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:190 +#: build/C/man3/makecontext.3:197 #, no-wrap msgid "" "static void\n" @@ -1015,7 +1053,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:196 +#: build/C/man3/makecontext.3:203 #, no-wrap msgid "" "int\n" @@ -1031,7 +1069,7 @@ msgstr "" " char func2_stack[16384];\n" #. type: Plain text -#: build/C/man3/makecontext.3:203 +#: build/C/man3/makecontext.3:210 #, no-wrap msgid "" " if (getcontext(&uctx_func1) == -1)\n" @@ -1049,7 +1087,7 @@ msgstr "" " makecontext(&uctx_func1, func1, 0);\n" #. type: Plain text -#: build/C/man3/makecontext.3:211 +#: build/C/man3/makecontext.3:218 #, no-wrap msgid "" " if (getcontext(&uctx_func2) == -1)\n" @@ -1069,7 +1107,7 @@ msgstr "" " makecontext(&uctx_func2, func2, 0);\n" #. type: Plain text -#: build/C/man3/makecontext.3:215 +#: build/C/man3/makecontext.3:222 #, no-wrap msgid "" " printf(\"main: swapcontext(&uctx_main, &uctx_func2)\\en\");\n" @@ -1081,7 +1119,7 @@ msgstr "" " handle_error(\"swapcontext\");\n" #. type: Plain text -#: build/C/man3/makecontext.3:219 +#: build/C/man3/makecontext.3:226 #, no-wrap msgid "" " printf(\"main: exiting\\en\");\n" @@ -1093,17 +1131,13 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:226 -#, fuzzy -#| msgid "" -#| "B(2), B(2), B(2), B(3), " -#| "B(3), B(3)" +#: build/C/man3/makecontext.3:233 msgid "" "B(2), B(2), B(2), B(3), " "B(3)" msgstr "" -"B(2), B(2), B(2), B(3), " -"B(3), B(3)" +"B(2), B(2), B(2), B(3), " +"B(3)" #. type: TH #: build/C/man3/pthread_attr_init.3:26 @@ -1146,8 +1180,7 @@ msgstr "" #: build/C/man3/pthread_self.3:32 build/C/man3/pthread_setcancelstate.3:33 #: build/C/man3/pthread_setconcurrency.3:32 #: build/C/man3/pthread_setschedparam.3:33 -#: build/C/man3/pthread_setschedprio.3:32 build/C/man3/pthread_sigqueue.3:31 -#: build/C/man3/pthread_testcancel.3:32 +#: build/C/man3/pthread_setschedprio.3:32 build/C/man3/pthread_testcancel.3:32 #, no-wrap msgid "B<#include Epthread.hE>\n" msgstr "B<#include Epthread.hE>\n" @@ -1243,10 +1276,10 @@ msgstr "" #: build/C/man3/pthread_attr_setaffinity_np.3:79 #: build/C/man3/pthread_attr_setdetachstate.3:80 #: build/C/man3/pthread_attr_setguardsize.3:93 -#: build/C/man3/pthread_attr_setinheritsched.3:87 -#: build/C/man3/pthread_attr_setschedparam.3:77 -#: build/C/man3/pthread_attr_setschedpolicy.3:75 -#: build/C/man3/pthread_attr_setscope.3:94 +#: build/C/man3/pthread_attr_setinheritsched.3:96 +#: build/C/man3/pthread_attr_setschedparam.3:88 +#: build/C/man3/pthread_attr_setschedpolicy.3:86 +#: build/C/man3/pthread_attr_setscope.3:106 #: build/C/man3/pthread_attr_setstack.3:88 #: build/C/man3/pthread_attr_setstackaddr.3:77 #: build/C/man3/pthread_attr_setstacksize.3:64 @@ -1275,24 +1308,23 @@ msgstr "" #. type: Plain text #: build/C/man3/pthread_attr_init.3:81 -#: build/C/man3/pthread_attr_setdetachstate.3:89 -#: build/C/man3/pthread_attr_setguardsize.3:108 -#: build/C/man3/pthread_attr_setinheritsched.3:103 -#: build/C/man3/pthread_attr_setschedparam.3:91 -#: build/C/man3/pthread_attr_setschedpolicy.3:91 -#: build/C/man3/pthread_attr_setscope.3:109 -#: build/C/man3/pthread_attr_setstack.3:114 -#: build/C/man3/pthread_attr_setstacksize.3:85 -#: build/C/man3/pthread_cancel.3:124 build/C/man3/pthread_cleanup_push.3:127 -#: build/C/man3/pthread_create.3:148 build/C/man3/pthread_detach.3:66 -#: build/C/man3/pthread_equal.3:49 build/C/man3/pthread_exit.3:77 -#: build/C/man3/pthread_getcpuclockid.3:67 build/C/man3/pthread_join.3:100 -#: build/C/man3/pthread_kill.3:68 build/C/man3/pthread_self.3:52 -#: build/C/man3/pthread_setcancelstate.3:115 -#: build/C/man3/pthread_setconcurrency.3:85 -#: build/C/man3/pthread_setschedparam.3:143 -#: build/C/man3/pthread_setschedprio.3:85 build/C/man3/pthread_sigmask.3:59 -#: build/C/man3/pthread_testcancel.3:60 +#: build/C/man3/pthread_attr_setdetachstate.3:96 +#: build/C/man3/pthread_attr_setguardsize.3:115 +#: build/C/man3/pthread_attr_setinheritsched.3:119 +#: build/C/man3/pthread_attr_setschedparam.3:109 +#: build/C/man3/pthread_attr_setschedpolicy.3:109 +#: build/C/man3/pthread_attr_setscope.3:128 +#: build/C/man3/pthread_attr_setstack.3:121 +#: build/C/man3/pthread_attr_setstacksize.3:92 +#: build/C/man3/pthread_cancel.3:127 build/C/man3/pthread_cleanup_push.3:129 +#: build/C/man3/pthread_create.3:155 build/C/man3/pthread_detach.3:66 +#: build/C/man3/pthread_equal.3:54 build/C/man3/pthread_exit.3:82 +#: build/C/man3/pthread_getcpuclockid.3:72 build/C/man3/pthread_join.3:100 +#: build/C/man3/pthread_self.3:57 build/C/man3/pthread_setcancelstate.3:122 +#: build/C/man3/pthread_setconcurrency.3:92 +#: build/C/man3/pthread_setschedparam.3:150 +#: build/C/man3/pthread_setschedprio.3:90 build/C/man3/pthread_sigmask.3:76 +#: build/C/man3/pthread_testcancel.3:65 msgid "POSIX.1-2001." msgstr "POSIX.1-2001." @@ -1373,9 +1405,9 @@ msgstr "" msgid "" "When we supply a stack size as a command-line argument, the program " "initializes a thread attributes object, sets various attributes in that " -"object, and passes a pointer to the object in the call to B" -"(3). Running the program on Linux/x86-32 with the NPTL threading " -"implementation, we see the following:" +"object, and passes a pointer to the object in the call to " +"B(3). Running the program on Linux/x86-32 with the NPTL " +"threading implementation, we see the following:" msgstr "" "コマンドライン引き数でスタックサイズが与えられた場合、\n" "このプログラムは、スレッド属性オブジェクトを初期化し、\n" @@ -1432,12 +1464,12 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:160 build/C/man3/pthread_cancel.3:159 -#: build/C/man3/pthread_cleanup_push.3:239 build/C/man3/pthread_create.3:254 +#: build/C/man3/pthread_attr_init.3:160 build/C/man3/pthread_cancel.3:162 +#: build/C/man3/pthread_cleanup_push.3:243 build/C/man3/pthread_create.3:261 #: build/C/man3/pthread_getattr_np.3:191 -#: build/C/man3/pthread_getcpuclockid.3:113 -#: build/C/man3/pthread_setaffinity_np.3:172 -#: build/C/man3/pthread_setschedparam.3:237 build/C/man3/pthread_sigmask.3:93 +#: build/C/man3/pthread_getcpuclockid.3:119 +#: build/C/man3/pthread_setaffinity_np.3:179 +#: build/C/man3/pthread_setschedparam.3:244 build/C/man3/pthread_sigmask.3:110 #, no-wrap msgid "" "#define handle_error_en(en, msg) \\e\n" @@ -1676,7 +1708,7 @@ msgstr "" #. type: Plain text #: build/C/man3/pthread_attr_init.3:248 -#: build/C/man3/pthread_setschedparam.3:355 +#: build/C/man3/pthread_setschedparam.3:362 #, no-wrap msgid " attrp = NULL;\n" msgstr " attrp = NULL;\n" @@ -1846,15 +1878,6 @@ msgstr "" msgid "PTHREAD_ATTR_SETAFFINITY_NP" msgstr "PTHREAD_ATTR_SETAFFINITY_NP" -#. type: TH -#: build/C/man3/pthread_attr_setaffinity_np.3:26 -#: build/C/man3/pthread_getattr_np.3:26 -#: build/C/man3/pthread_setaffinity_np.3:26 -#: build/C/man3/pthread_tryjoin_np.3:26 -#, no-wrap -msgid "2010-09-10" -msgstr "2010-09-10" - #. type: Plain text #: build/C/man3/pthread_attr_setaffinity_np.3:30 msgid "" @@ -1883,12 +1906,12 @@ msgstr "" msgid "" "BIB<,>\n" "B< size_t >IB<, const cpu_set_t *>IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< size_t >IB<, cpu_set_t *>IB<);>\n" msgstr "" "BIB<,>\n" "B< size_t >IB<, const cpu_set_t *>IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< size_t >IB<, cpu_set_t *>IB<);>\n" #. type: Plain text @@ -1920,8 +1943,8 @@ msgstr "" #: build/C/man3/pthread_attr_setaffinity_np.3:70 msgid "" "The argument I is the length (in bytes) of the buffer pointed to " -"by I. Typically, this argument would be specified as I." +"by I. Typically, this argument would be specified as " +"I." msgstr "" "I 引き数は I が指すバッファの (バイト単位の)\n" "大きさである。通常は、この引き数には I を\n" @@ -1944,21 +1967,21 @@ msgstr "" #: build/C/man3/pthread_attr_setaffinity_np.3:80 #: build/C/man3/pthread_attr_setaffinity_np.3:92 #: build/C/man3/pthread_attr_setdetachstate.3:83 -#: build/C/man3/pthread_attr_setinheritsched.3:90 -#: build/C/man3/pthread_attr_setschedpolicy.3:78 -#: build/C/man3/pthread_attr_setscope.3:97 +#: build/C/man3/pthread_attr_setinheritsched.3:99 +#: build/C/man3/pthread_attr_setschedpolicy.3:89 +#: build/C/man3/pthread_attr_setscope.3:109 #: build/C/man3/pthread_attr_setstack.3:91 #: build/C/man3/pthread_attr_setstacksize.3:67 -#: build/C/man3/pthread_create.3:137 build/C/man3/pthread_detach.3:55 +#: build/C/man3/pthread_create.3:144 build/C/man3/pthread_detach.3:55 #: build/C/man3/pthread_join.3:85 build/C/man3/pthread_join.3:89 -#: build/C/man3/pthread_kill.3:58 build/C/man3/pthread_setaffinity_np.3:84 +#: build/C/man3/pthread_kill.3:69 build/C/man3/pthread_setaffinity_np.3:84 #: build/C/man3/pthread_setaffinity_np.3:93 #: build/C/man3/pthread_setaffinity_np.3:109 #: build/C/man3/pthread_setcancelstate.3:99 #: build/C/man3/pthread_setcancelstate.3:107 #: build/C/man3/pthread_setconcurrency.3:71 #: build/C/man3/pthread_setschedparam.3:122 -#: build/C/man3/pthread_setschedprio.3:62 build/C/man3/pthread_sigqueue.3:77 +#: build/C/man3/pthread_setschedprio.3:62 build/C/man3/pthread_sigqueue.3:78 #, no-wrap msgid "B" msgstr "B" @@ -2006,8 +2029,8 @@ msgstr "これらの関数は glibc バージョン 2.3.4 以降で提供され #. type: Plain text #: build/C/man3/pthread_attr_setaffinity_np.3:111 -#: build/C/man3/pthread_cleanup_push_defer_np.3:104 -#: build/C/man3/pthread_setaffinity_np.3:124 +#: build/C/man3/pthread_cleanup_push_defer_np.3:117 +#: build/C/man3/pthread_setaffinity_np.3:131 #: build/C/man3/pthread_tryjoin_np.3:115 msgid "" "These functions are nonstandard GNU extensions; hence the suffix \"_np" @@ -2019,7 +2042,7 @@ msgstr "" #. type: Plain text #: build/C/man3/pthread_attr_setaffinity_np.3:118 -#: build/C/man3/pthread_setaffinity_np.3:150 +#: build/C/man3/pthread_setaffinity_np.3:157 msgid "" "In glibc 2.3.3 only, versions of these functions were provided that did not " "have a I argument. Instead the CPU set size given to the " @@ -2033,11 +2056,11 @@ msgstr "" #. type: Plain text #: build/C/man3/pthread_attr_setaffinity_np.3:124 msgid "" -"B(2), B(3), B" -"(3), B(7), B(7)" +"B(2), B(3), " +"B(3), B(7), B(7)" msgstr "" -"B(2), B(3), B" -"(3), B(7), B(7)" +"B(2), B(3), " +"B(3), B(7), B(7)" #. type: TH #: build/C/man3/pthread_attr_setdetachstate.3:26 @@ -2045,13 +2068,6 @@ msgstr "" msgid "PTHREAD_ATTR_SETDETACHSTATE" msgstr "PTHREAD_ATTR_SETDETACHSTATE" -#. type: TH -#: build/C/man3/pthread_attr_setdetachstate.3:26 -#: build/C/man3/pthread_attr_setschedpolicy.3:26 -#, no-wrap -msgid "2010-02-03" -msgstr "2010-02-03" - #. type: Plain text #: build/C/man3/pthread_attr_setdetachstate.3:30 msgid "" @@ -2066,10 +2082,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, int >IB<);>\n" -"BIB<, int *>IB<);>\n" +"BIB<, int *>IB<);>\n" msgstr "" "BIB<, int >IB<);>\n" -"BIB<, int *>IB<);>\n" +"BIB<, int *>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setdetachstate.3:53 @@ -2147,7 +2163,16 @@ msgid "An invalid value was specified in I." msgstr "無効な値が I で指定された。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:93 +#: build/C/man3/pthread_attr_setdetachstate.3:94 +msgid "" +"The B() and B() " +"functions are thread-safe." +msgstr "" +"関数 B() と B() は" +"スレッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setdetachstate.3:100 msgid "" "See B(3) for more details on detached and joinable threads." msgstr "" @@ -2155,7 +2180,7 @@ msgstr "" "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:101 +#: build/C/man3/pthread_attr_setdetachstate.3:108 msgid "" "A thread that is created in a joinable state should eventually either be " "joined using B(3) or detached using B(3); see " @@ -2167,24 +2192,24 @@ msgstr "" "のどちらかを行うべきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:108 +#: build/C/man3/pthread_attr_setdetachstate.3:115 msgid "" "It is an error to specify the thread ID of a thread that was created in a " -"detached state in a later call to B(3) or B" -"(3)." +"detached state in a later call to B(3) or " +"B(3)." msgstr "" "detached 状態で作成されたスレッドのスレッド ID を指定して、\n" "B(3) や B(3) を後から呼び出すのは\n" "エラーである。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:111 -#: build/C/man3/pthread_attr_setstack.3:156 +#: build/C/man3/pthread_attr_setdetachstate.3:118 +#: build/C/man3/pthread_attr_setstack.3:162 msgid "See B(3)." msgstr "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:117 +#: build/C/man3/pthread_attr_setdetachstate.3:124 msgid "" "B(3), B(3), B(3), " "B(3), B(7)" @@ -2198,15 +2223,6 @@ msgstr "" msgid "PTHREAD_ATTR_SETGUARDSIZE" msgstr "PTHREAD_ATTR_SETGUARDSIZE" -#. type: TH -#: build/C/man3/pthread_attr_setguardsize.3:26 -#: build/C/man3/pthread_attr_setscope.3:26 -#: build/C/man3/pthread_attr_setstack.3:26 -#: build/C/man3/pthread_attr_setstackaddr.3:26 build/C/man3/pthread_self.3:26 -#, no-wrap -msgid "2008-10-24" -msgstr "2008-10-24" - #. type: Plain text #: build/C/man3/pthread_attr_setguardsize.3:30 msgid "" @@ -2221,10 +2237,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, size_t >IB<);>\n" -"BIB<, size_t *>IB<);>\n" +"BIB<, size_t *>IB<);>\n" msgstr "" "BIB<, size_t >IB<);>\n" -"BIB<, size_t *>IB<);>\n" +"BIB<, size_t *>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setguardsize.3:49 @@ -2316,7 +2332,16 @@ msgid "These functions are provided by glibc since version 2.1." msgstr "これらの関数は glibc バージョン 2.1 以降で提供されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:122 +#: build/C/man3/pthread_attr_setguardsize.3:113 +msgid "" +"The B() and B() " +"functions are thread-safe." +msgstr "" +"関数 B() と B() はス" +"レッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setguardsize.3:129 msgid "" "A guard area consists of virtual memory pages that are protected to prevent " "read and write access. If a thread overflows its stack into the guard area, " @@ -2336,7 +2361,7 @@ msgstr "" "B() で設定された guard size が返される)。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:126 +#: build/C/man3/pthread_attr_setguardsize.3:133 msgid "" "Setting a guard size of 0 may be useful to save memory in an application " "that creates many threads and knows that stack overflow can never occur." @@ -2346,7 +2371,7 @@ msgstr "" "することで、メモリを節約できることもある。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:130 +#: build/C/man3/pthread_attr_setguardsize.3:137 msgid "" "Choosing a guard size larger than the default size may be necessary for " "detecting stack overflows if a thread allocates large data structures on the " @@ -2357,16 +2382,16 @@ msgstr "" "大きな guard size を選ぶ必要があるかもしれない。" #. type: SH -#: build/C/man3/pthread_attr_setguardsize.3:130 -#: build/C/man3/pthread_attr_setinheritsched.3:103 -#: build/C/man3/pthread_attr_setstacksize.3:96 -#: build/C/man3/pthread_create.3:196 build/C/man3/pthread_exit.3:93 +#: build/C/man3/pthread_attr_setguardsize.3:137 +#: build/C/man3/pthread_attr_setinheritsched.3:119 +#: build/C/man3/pthread_attr_setstacksize.3:103 +#: build/C/man3/pthread_create.3:203 build/C/man3/pthread_exit.3:98 #, no-wrap msgid "BUGS" msgstr "バグ" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:141 +#: build/C/man3/pthread_attr_setguardsize.3:148 msgid "" "As at glibc 2.8, the NPTL threading implementation includes the guard area " "within the stack size allocation, rather than allocating extra space at the " @@ -2391,7 +2416,7 @@ msgstr "" #. extra space at the end of the stack: #. http://sourceware.org/ml/libc-alpha/2008-05/msg00086.html #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:155 +#: build/C/man3/pthread_attr_setguardsize.3:162 msgid "" "The obsolete LinuxThreads implementation did the right thing, allocating " "extra space at the end of the stack for the guard area." @@ -2401,18 +2426,20 @@ msgstr "" "ガード領域がスタックの末尾に追加の領域が割り当てられる。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:158 +#: build/C/man3/pthread_attr_setguardsize.3:165 msgid "See B(3)." msgstr "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:166 +#: build/C/man3/pthread_attr_setguardsize.3:173 msgid "" -"B(2), B(2), B(3), B" -"(3), B(3), B(3), B(7)" +"B(2), B(2), B(3), " +"B(3), B(3), " +"B(3), B(7)" msgstr "" -"B(2), B(2), B(3), B" -"(3), B(3), B(3), B(7)" +"B(2), B(2), B(3), " +"B(3), B(3), " +"B(3), B(7)" #. type: TH #: build/C/man3/pthread_attr_setinheritsched.3:26 @@ -2423,19 +2450,19 @@ msgstr "PTHREAD_ATTR_SETINHERITSCHED" #. type: TH #: build/C/man3/pthread_attr_setinheritsched.3:26 #: build/C/man3/pthread_attr_setschedparam.3:26 -#: build/C/man3/pthread_attr_setstacksize.3:26 +#: build/C/man3/pthread_attr_setschedpolicy.3:26 build/C/man7/pthreads.7:26 #, no-wrap -msgid "2012-03-15" -msgstr "2012-03-15" +msgid "2014-05-21" +msgstr "2014-05-21" #. type: Plain text #: build/C/man3/pthread_attr_setinheritsched.3:30 msgid "" -"pthread_attr_setinheritsched, pthread_attr_getinheritsched - set/get inherit " +"pthread_attr_setinheritsched, pthread_attr_getinheritsched - set/get inherit-" "scheduler attribute in thread attributes object" msgstr "" -"pthread_attr_setinheritsched, pthread_attr_getinheritsched - \n" -"スレッド属性オブジェクトの inherit scheduler 属性の設定/取得を行う" +"pthread_attr_setinheritsched, pthread_attr_getinheritsched - スレッド属性オブ" +"ジェクトの inherit-scheduler 属性の設定/取得を行う" #. type: Plain text #: build/C/man3/pthread_attr_setinheritsched.3:38 @@ -2443,44 +2470,56 @@ msgstr "" msgid "" "BIB<,>\n" "B< int >IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< int *>IB<);>\n" msgstr "" "BIB<,>\n" "B< int >IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< int *>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setinheritsched.3:55 msgid "" -"The B() function sets the inherit scheduler " +"The B() function sets the inherit-scheduler " "attribute of the thread attributes object referred to by I to the " -"value specified in I. The inherit scheduler attribute " +"value specified in I. The inherit-scheduler attribute " "determines whether a thread created using the thread attributes object " "I will inherit its scheduling attributes from the calling thread or " "whether it will take them from I." msgstr "" -"B() 関数は、\n" -"I が参照するスレッド属性オブジェクトの inherit scheduler 属性を\n" -"I で指定された値に設定する。\n" -"inherit scheduler 属性により、スレッド属性オブジェクト I を使って\n" -"作成されるスレッドが、呼び出したスレッドのスケジューリング属性を継承\n" -"するか、I からスケジューリング属性を取得するかが決定される。" +"B() 関数は、 I が参照するスレッド属性オブ" +"ジェクトの inherit-scheduler 属性を I で指定された値に設定す" +"る。 inherit-scheduler 属性により、スレッド属性オブジェクト I を使って" +"作成されるスレッドが、呼び出したスレッドのスケジューリング属性を継承するか、 " +"I からスケジューリング属性を取得するかが決定される。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setinheritsched.3:64 +msgid "" +"The following scheduling attributes are affected by the inherit-scheduler " +"attribute: scheduling policy (B(3)), scheduling " +"priority (B(3)), and contention scope " +"(B(3))." +msgstr "" +"次に挙げるスケジューリング属性は inherit-scheduler 属性の影響を受ける: スケ" +"ジューリングポリシー (B(3))、 スケジューリング優" +"先度 (B(3))、 contention scope " +"(B(3))。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:58 +#: build/C/man3/pthread_attr_setinheritsched.3:67 msgid "The following values may be specified in I:" msgstr "以下の値を I に指定できる。" #. type: TP -#: build/C/man3/pthread_attr_setinheritsched.3:58 +#: build/C/man3/pthread_attr_setinheritsched.3:67 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:66 +#: build/C/man3/pthread_attr_setinheritsched.3:75 msgid "" "Threads that are created using I inherit scheduling attributes from " "the creating thread; the scheduling attributes in I are ignored." @@ -2490,14 +2529,14 @@ msgstr "" "I 内のスケジューリング属性は無視される。" #. type: TP -#: build/C/man3/pthread_attr_setinheritsched.3:66 +#: build/C/man3/pthread_attr_setinheritsched.3:75 #, no-wrap msgid "B" msgstr "B" #. FIXME what are the defaults for scheduler settings? #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:73 +#: build/C/man3/pthread_attr_setinheritsched.3:82 msgid "" "Threads that are created using I take their scheduling attributes from " "the values specified by the attributes object." @@ -2506,39 +2545,38 @@ msgstr "" "指定された値からスケジューリング属性を取得する。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:77 +#: build/C/man3/pthread_attr_setinheritsched.3:86 msgid "" -"The default setting of the inherit scheduler attribute in a newly " +"The default setting of the inherit-scheduler attribute in a newly " "initialized thread attributes object is B." msgstr "" -"新たに初期化されたスレッド属性オブジェクトの inherit scheduler 属性の\n" -"デフォルト設定は B である。" +"新たに初期化されたスレッド属性オブジェクトの inherit-scheduler 属性のデフォル" +"ト設定は B である。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:84 +#: build/C/man3/pthread_attr_setinheritsched.3:93 msgid "" -"The B() returns the inherit scheduler " +"The B() returns the inherit-scheduler " "attribute of the thread attributes object I in the buffer pointed to " "by I." msgstr "" -"B() は、\n" -"スレッド属性オブジェクト I の inherit scheduler 属性を\n" -"I が指すバッファに入れて返す。" +"B() は、 スレッド属性オブジェクト I の " +"inherit-scheduler 属性を I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:90 +#: build/C/man3/pthread_attr_setinheritsched.3:99 msgid "B() can fail with the following error:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:94 +#: build/C/man3/pthread_attr_setinheritsched.3:103 msgid "Invalid value in I." msgstr "I に無効な値が指定された。" #. .SH VERSIONS #. Available since glibc 2.0. #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:101 +#: build/C/man3/pthread_attr_setinheritsched.3:110 msgid "" "POSIX.1-2001 also documents an optional B error (\"attempt was made " "to set the attribute to an unsupported value\") for " @@ -2548,50 +2586,57 @@ msgstr "" "エラー B (\"サポートされていない値を属性に設定しようとした\")\n" "も追加で規定されている。" +#. type: Plain text +#: build/C/man3/pthread_attr_setinheritsched.3:117 +msgid "" +"The B() and " +"B() functions are thread-safe." +msgstr "" +"関数 B() と B() " +"はスレッドセーフである。" + #. FIXME . Track status of the following bug: #. http://sourceware.org/bugzilla/show_bug.cgi?id=7007 #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:119 +#: build/C/man3/pthread_attr_setinheritsched.3:135 msgid "" "As at glibc 2.8, if a thread attributes object is initialized using " "B(3), then the scheduling policy of the attributes object " "is set to B and the scheduling priority is set to 0. However, " -"if the inherit scheduler attribute is then set to B, " +"if the inherit-scheduler attribute is then set to B, " "then a thread created using the attribute object wrongly inherits its " "scheduling attributes from the creating thread. This bug does not occur if " "either the scheduling policy or scheduling priority attribute is explicitly " "set in the thread attributes object before calling B(3)." msgstr "" -"glibc 2.8 の時点では、スレッド属性オブジェクトが\n" -"B(3) を使って初期化された場合、\n" -"スレッド属性オブジェクトのスケジューリングポリシーが B に、\n" -"スケジューリング優先度が 0 に設定される。一方、その後 inherit\n" -"scheduling 属性に B が設定されると、このスレッ\n" -"ド属性オブジェクトを使って作成されたスレッドでは、スレッドを作成するス\n" -"レッドのスケジューリング属性が間違って継承されてしまう。\n" -"B(3) を呼び出す前にスケジューリングポリシー属性か\n" -"スケジューリング優先度属性のどちらかが明示的に設定された場合には、\n" -"このバグは発生しない。" - -#. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:122 -#: build/C/man3/pthread_attr_setschedparam.3:98 -#: build/C/man3/pthread_attr_setschedpolicy.3:94 +"glibc 2.8 の時点では、スレッド属性オブジェクトが B(3) を" +"使って初期化された場合、 スレッド属性オブジェクトのスケジューリングポリシー" +"が B に、 スケジューリング優先度が 0 に設定される。一方、その後 " +"inherit-scheduler 属性に B が設定されると、このスレッ" +"ド属性オブジェクトを使って作成されたスレッドでは、スレッドを作成するスレッド" +"のスケジューリング属性が間違って継承されてしまう。 B(3) を呼" +"び出す前にスケジューリングポリシー属性かスケジューリング優先度属性のどちらか" +"が明示的に設定された場合には、 このバグは発生しない。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setinheritsched.3:138 +#: build/C/man3/pthread_attr_setschedparam.3:116 +#: build/C/man3/pthread_attr_setschedpolicy.3:112 msgid "See B(3)." msgstr "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:133 +#: build/C/man3/pthread_attr_setinheritsched.3:150 msgid "" -"B(2), B(3), " -"B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(3), " +"B(3), B,(7) B(7)" msgstr "" -"B(2), B(3), " -"B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(3), " +"B(3), B,(7) B(7)" #. type: TH #: build/C/man3/pthread_attr_setschedparam.3:26 @@ -2614,12 +2659,12 @@ msgstr "" msgid "" "BIB<,>\n" "B< const struct sched_param *>IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< struct sched_param *>IB<);>\n" msgstr "" "BIB<,>\n" "B< const struct sched_param *>IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< struct sched_param *>IB<);>\n" #. type: Plain text @@ -2672,16 +2717,30 @@ msgstr "" msgid "" "As can be seen, only one scheduling parameter is supported. For details of " "the permitted ranges for scheduling priorities in each scheduling policy, " -"see B(2)." +"see B(7)." +msgstr "" +"見て分かる通り、サポートされているスケジューリングパラメータは一つだけであ" +"る。各スケジューリングポリシーで許可されるスケジューリング優先度の詳細につい" +"ては、B(7) を参照のこと。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setschedparam.3:85 +msgid "" +"In order for the parameter setting made by B() " +"to have effect when calling B(3), the caller must use " +"B(3) to set the inherit-scheduler attribute " +"of the attributes object I to B." msgstr "" -"見て分かる通り、サポートされているスケジューリングパラメータは一つだけ\n" -"である。各スケジューリングポリシーで許可されるスケジューリング優先度の\n" -"詳細については、B(2) を参照のこと。" +"B(3) を呼び出した際に B() で行っ" +"たパラメータ設定を有効にするには、 呼び出し側で " +"B(3) を使って 属性オブジェクト I の " +"inherit-scheduler 属性を B に設定しておかなければなら" +"ない。" #. .SH VERSIONS #. Available since glibc 2.0. #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:89 +#: build/C/man3/pthread_attr_setschedparam.3:100 msgid "" "POSIX.1 documents B and B errors for " "B(). On Linux these functions always succeed " @@ -2696,7 +2755,16 @@ msgstr "" "正のエラーの返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:95 +#: build/C/man3/pthread_attr_setschedparam.3:107 +msgid "" +"The B() and B() " +"functions are thread-safe." +msgstr "" +"関数 B() と B() はス" +"レッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setschedparam.3:113 msgid "" "See B(3) for a list of the thread scheduling " "policies supported on Linux." @@ -2705,17 +2773,17 @@ msgstr "" "ついては、 B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:110 +#: build/C/man3/pthread_attr_setschedparam.3:128 msgid "" -"B(2), B(2), B" -"(3), B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"B(2), B(3), " +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(7). B(7)" msgstr "" -"B(2), B(2), B" -"(3), B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"B(2), B(3), " +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(7). B(7)" #. type: TH #: build/C/man3/pthread_attr_setschedpolicy.3:26 @@ -2737,10 +2805,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, int >IB<);>\n" -"BIB<, int >I<*policy>B<);>\n" +"BIB<, int >I<*policy>B<);>\n" msgstr "" "BIB<, int >IB<);>\n" -"BIB<, int >I<*policy>B<);>\n" +"BIB<, int >I<*policy>B<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setschedpolicy.3:52 @@ -2763,11 +2831,10 @@ msgstr "" #: build/C/man3/pthread_attr_setschedpolicy.3:65 msgid "" "The supported values for I are B, B, and " -"B, with the semantics described in B(2)." +"B, with the semantics described in B(7)." msgstr "" -"I に指定できる値は B, B, B\n" -"である。それぞれの意味は B(2) で説明している通り\n" -"である。" +"I に指定できる値は B, B, B であ" +"る。それぞれの意味は B(7) で説明している通りである。" #. type: Plain text #: build/C/man3/pthread_attr_setschedpolicy.3:72 @@ -2781,19 +2848,33 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:78 +#: build/C/man3/pthread_attr_setschedpolicy.3:83 +msgid "" +"In order for the policy setting made by B() to " +"have effect when calling B(3), the caller must use " +"B(3) to set the inherit-scheduler attribute " +"of the attributes object I to B." +msgstr "" +"B(3) を呼び出した際に B() で行っ" +"たポリシー設定を有効にするには、 呼び出し側で " +"B(3) を使って 属性オブジェクト I の " +"inherit-scheduler 属性を B に設定しておかなければなら" +"ない。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setschedpolicy.3:89 msgid "B() can fail with the following error:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:82 +#: build/C/man3/pthread_attr_setschedpolicy.3:93 msgid "Invalid value in I." msgstr "I に無効な値が指定された。" #. .SH VERSIONS #. Available since glibc 2.0. #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:89 +#: build/C/man3/pthread_attr_setschedpolicy.3:100 msgid "" "POSIX.1-2001 also documents an optional B error (\"attempt was made " "to set the attribute to an unsupported value\") for " @@ -2804,17 +2885,26 @@ msgstr "" "も追加で規定されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:105 +#: build/C/man3/pthread_attr_setschedpolicy.3:107 msgid "" -"B(2), B(3), " -"B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"The B() and B() " +"functions are thread-safe." msgstr "" -"B(2), B(3), " -"B(3), B(3), " -"B(3), B(3), B" -"(3), B(7)" +"関数 B() と B() は" +"スレッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setschedpolicy.3:123 +msgid "" +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(3), B(7), " +"B(7)" +msgstr "" +"B(3), B(3), " +"B(3), B(3), " +"B(3), B(3), B(7), " +"B(7)" #. type: TH #: build/C/man3/pthread_attr_setscope.3:26 @@ -2836,10 +2926,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, int >IB<);>\n" -"BIB<, int *>IB<);>\n" +"BIB<, int *>IB<);>\n" msgstr "" "BIB<, int >IB<);>\n" -"BIB<, int *>IB<);>\n" +"BIB<, int *>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setscope.3:53 @@ -2906,18 +2996,32 @@ msgstr "" #. type: Plain text #: build/C/man3/pthread_attr_setscope.3:83 msgid "" -"POSIX.1-2001 only requires that an implementation support one of these " -"contention scopes, but permits both to be supported. Linux supports " -"B, but not B." +"POSIX.1-2001 requires that an implementation support at least one of these " +"contention scopes. Linux supports B, but not " +"B." msgstr "" -"POSIX.1-2001 で求められているのは、スレッド実装がこれらの contention\n" -"scope のうち 1 つをサポートすることだけであるが、\n" -"両方をサポートすることも認めている。\n" -"Linux は B をサポートしているが、\n" -"B はサポートしていない。" +"POSIX.1-2001 で求められているのは、スレッド実装がこれらの contention scope の" +"うち少なくとも 1 つをサポートすることだけである。 Linux は " +"B をサポートしているが、 B はサ" +"ポートしていない。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:91 +#: build/C/man3/pthread_attr_setscope.3:95 +msgid "" +"On systems that support multiple contention scopes, then, in order for the " +"parameter setting made by B() to have effect when " +"calling B(3), the caller must use " +"B(3) to set the inherit-scheduler attribute " +"of the attributes object I to B." +msgstr "" +"複数の contention scope をサポートしているシステムで、 B(3) " +"を呼び出した際に B() で行ったパラメータ設定を有効にす" +"るには、 呼び出し側で B(3) を使って 属性オブ" +"ジェクト I の inherit-scheduler 属性を B に設定" +"しておかなければならない。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setscope.3:103 msgid "" "The B() function returns the contention scope " "attribute of the thread attributes object referred to by I in the " @@ -2928,23 +3032,23 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:97 +#: build/C/man3/pthread_attr_setscope.3:109 msgid "B() can fail with the following errors:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:101 +#: build/C/man3/pthread_attr_setscope.3:113 msgid "An invalid value was specified in I." msgstr "I に無効な値が指定された。" #. type: TP -#: build/C/man3/pthread_attr_setscope.3:101 +#: build/C/man3/pthread_attr_setscope.3:113 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:107 +#: build/C/man3/pthread_attr_setscope.3:119 msgid "" "I specified the value B, which is not " "supported on Linux." @@ -2953,14 +3057,16 @@ msgstr "" "この値は Linux でサポートされていない。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:117 -#, fuzzy -#| msgid "" -#| "The B contention scope typically indicates that a " -#| "userspace thread is bound directly to a single kernel-scheduling entity. " -#| "This is the case on Linux for the obsolete LinuxThreads implementation " -#| "and the modern NPTL implementation, which are both 1:1 threading " -#| "implementations." +#: build/C/man3/pthread_attr_setscope.3:126 +msgid "" +"The B() and B() functions " +"are thread-safe." +msgstr "" +"関数 B() と B() はスレッドセー" +"フである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setscope.3:136 msgid "" "The B contention scope typically indicates that a user-" "space thread is bound directly to a single kernel-scheduling entity. This " @@ -2974,7 +3080,7 @@ msgstr "" "該当し、両方とも 1:1 で結び付けられるスレッド実装となっている。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:120 +#: build/C/man3/pthread_attr_setscope.3:139 msgid "" "POSIX.1-2001 specifies that the default contention scope is implementation-" "defined." @@ -2983,7 +3089,7 @@ msgstr "" "実装時で定義されるものと規定されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:130 +#: build/C/man3/pthread_attr_setscope.3:149 msgid "" "B(3), B(3), " "B(3), B(3), " @@ -3014,16 +3120,19 @@ msgstr "" msgid "" "BIB<,>\n" "B< void *>IB<, size_t >IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< void **>IB<, size_t *>IB<);>\n" msgstr "" "BIB<,>\n" "B< void *>IB<, size_t >IB<);>\n" -"BIB<,>\n" +"BIB<,>\n" "B< void **>IB<, size_t *>IB<);>\n" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:45 build/C/man3/pthread_sigqueue.3:41 +#: build/C/man3/pthread_attr_setstack.3:45 +#: build/C/man3/pthread_cleanup_push_defer_np.3:44 +#: build/C/man3/pthread_kill.3:41 build/C/man3/pthread_sigmask.3:42 +#: build/C/man3/pthread_sigqueue.3:42 msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "glibc 向けの機能検査マクロの要件 (B(7) 参照):" @@ -3112,7 +3221,16 @@ msgid "These functions are provided by glibc since version 2.2." msgstr "これらの関数は glibc バージョン 2.2 以降で提供されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:122 +#: build/C/man3/pthread_attr_setstack.3:119 +msgid "" +"The B() and B() functions " +"are thread-safe." +msgstr "" +"関数 B() と B() はスレッドセー" +"フである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setstack.3:129 msgid "" "These functions are provided for applications that must ensure that a " "thread's stack is placed in a particular location. For most applications, " @@ -3128,7 +3246,7 @@ msgstr "" "必要がある場合には B(3) を使うこと)" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:133 +#: build/C/man3/pthread_attr_setstack.3:140 msgid "" "When an application employs B(), it takes over the " "responsibility of allocating the stack. Any guard size value that was set " @@ -3146,7 +3264,7 @@ msgstr "" "スタックオーバーフローの可能性に対処するようにする必要がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:144 +#: build/C/man3/pthread_attr_setstack.3:151 msgid "" "The address specified in I should be suitably aligned: for full " "portability, align it on a page boundary (I). " @@ -3160,7 +3278,7 @@ msgstr "" "たいていは、 I はシステムのページサイズの倍数とすべきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:153 +#: build/C/man3/pthread_attr_setstack.3:159 msgid "" "If I is used to create multiple threads, then the caller must change " "the stack address attribute between calls to B(3); " @@ -3174,7 +3292,7 @@ msgstr "" "使おうとするため、訳の分からない状況が発生してしまう。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:168 +#: build/C/man3/pthread_attr_setstack.3:174 msgid "" "B(2), B(2), B(3), B(3), " "B(3), B(3), " @@ -3204,10 +3322,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, void *>IB<);>\n" -"BIB<, void **>IB<);>\n" +"BIB<, void **>IB<);>\n" msgstr "" "BIB<, void *>IB<);>\n" -"BIB<, void **>IB<);>\n" +"BIB<, void **>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setstackaddr.3:49 @@ -3216,8 +3334,8 @@ msgid "" "B(3) and B(3) instead." msgstr "" "これらの関数は廃止予定であり、B<使用しないこと>。\n" -"代わりに Use B(3) と B(3) を使" -"うこと。" +"代わりに B(3) と B(3) を使うこ" +"と。" #. type: Plain text #: build/C/man3/pthread_attr_setstackaddr.3:60 @@ -3267,7 +3385,16 @@ msgstr "" "返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:86 +#: build/C/man3/pthread_attr_setstackaddr.3:90 +msgid "" +"The B() and B() " +"functions are thread-safe." +msgstr "" +"関数 B() と B() はス" +"レッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setstackaddr.3:93 msgid "" "POSIX.1-2001 specifies these functions but marks them as obsolete. " "POSIX.1-2008 removes the specification of these functions." @@ -3276,7 +3403,7 @@ msgstr "" "POSIX.1-2008 では、これらの関数の規定は削除されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:110 +#: build/C/man3/pthread_attr_setstackaddr.3:117 msgid "" "I They cannot be portably used, since they " "provide no way of specifying the direction of growth or the range of the " @@ -3302,7 +3429,7 @@ msgstr "" "へのポインタである (I 引き数はスタックの範囲を指定する)。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:116 +#: build/C/man3/pthread_attr_setstackaddr.3:123 msgid "" "B(3), B(3), " "B(3), B(3), B(7)" @@ -3330,10 +3457,10 @@ msgstr "" #, no-wrap msgid "" "BIB<, size_t >IB<);>\n" -"BIB<, size_t *>IB<);>\n" +"BIB<, size_t *>IB<);>\n" msgstr "" "BIB<, size_t >IB<);>\n" -"BIB<, size_t *>IB<);>\n" +"BIB<, size_t *>IB<);>\n" #. type: Plain text #: build/C/man3/pthread_attr_setstacksize.3:49 @@ -3389,16 +3516,25 @@ msgstr "" "エラー B で失敗する。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:88 +#: build/C/man3/pthread_attr_setstacksize.3:90 +msgid "" +"The B() and B() " +"functions are thread-safe." +msgstr "" +"関数 B() と B() はス" +"レッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setstacksize.3:95 msgid "" -"For details on the default stack size of new threads, see B" -"(3)." +"For details on the default stack size of new threads, see " +"B(3)." msgstr "" "新しいスレッドのデフォルトのスタックサイズの詳細については\n" "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:91 +#: build/C/man3/pthread_attr_setstacksize.3:98 msgid "" "A thread's stack size is fixed at the time of thread creation. Only the " "main thread can dynamically grow its stack." @@ -3407,7 +3543,7 @@ msgstr "" "メインスレッドだけがスタックを動的に伸ばすことができる。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:96 +#: build/C/man3/pthread_attr_setstacksize.3:103 msgid "" "The B(3) function allows an application to set both " "the size and location of a caller-allocated stack that is to be used by a " @@ -3418,7 +3554,7 @@ msgstr "" "呼び出し側で割り当てたスタックのサイズと場所を指定できる。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:108 +#: build/C/man3/pthread_attr_setstacksize.3:115 msgid "" "As at glibc 2.8, if the specified I is not a multiple of " "B (16 bytes on most architectures), it may be rounded " @@ -3433,13 +3569,13 @@ msgstr "" "少なくとも I バイトになると書かれている。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:111 +#: build/C/man3/pthread_attr_setstacksize.3:118 #: build/C/man3/pthread_join.3:127 msgid "See B(3)." msgstr "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:118 +#: build/C/man3/pthread_attr_setstacksize.3:125 msgid "" "B(2), B(3), B(3), " "B(3), B(3), B(7)" @@ -3454,7 +3590,7 @@ msgid "PTHREAD_CANCEL" msgstr "PTHREAD_CANCEL" #. type: TH -#: build/C/man3/pthread_cancel.3:26 build/C/man3/pthread_setschedparam.3:26 +#: build/C/man3/pthread_cancel.3:26 #, no-wrap msgid "2008-11-17" msgstr "2008-11-17" @@ -3471,7 +3607,7 @@ msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:46 +#: build/C/man3/pthread_cancel.3:49 msgid "" "The B() function sends a cancellation request to the thread " "I. Whether and when the target thread reacts to the cancellation " @@ -3484,7 +3620,7 @@ msgstr "" "I と Iにより決まる。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:58 +#: build/C/man3/pthread_cancel.3:61 msgid "" "A thread's cancelability state, determined by B(3), " "can be I (the default for new threads) or I. If a thread " @@ -3500,7 +3636,7 @@ msgstr "" "cancelability type によって、いつキャンセルが発生するかが決まる。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:74 +#: build/C/man3/pthread_cancel.3:77 msgid "" "A thread's cancellation type, determined by B(3), may " "be either I or I (the default for new threads). " @@ -3508,7 +3644,7 @@ msgid "" "(usually immediately, but the system does not guarantee this). Deferred " "cancelability means that cancellation will be delayed until the thread next " "calls a function that is a I. A list of functions that " -"are or may be cancellation points is provided in I(7)." +"are or may be cancellation points is provided in B(7)." msgstr "" "スレッドのキャンセル種別 (cancelability type) は\n" "B(3) で設定され、I か I\n" @@ -3519,10 +3655,10 @@ msgstr "" "(deferred cancelability) では、そのスレッドが I<取り消しポイント\n" "(cancellation point)> となっている関数を次に呼び出すまでキャンセルが\n" "遅延される。取り消しポイントに設定されていたり設定\n" -"したりできる関数のリストは I(7) に記載している。" +"したりできる関数のリストは B(7) に記載している。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:78 +#: build/C/man3/pthread_cancel.3:81 msgid "" "When a cancellation requested is acted on, the following steps occur for " "I (in this order):" @@ -3531,13 +3667,13 @@ msgstr "" "I では以下のステップが (この順序で) 行われる。" #. type: IP -#: build/C/man3/pthread_cancel.3:78 build/C/man3/pthread_cleanup_push.3:69 +#: build/C/man3/pthread_cancel.3:81 build/C/man3/pthread_cleanup_push.3:69 #, no-wrap msgid "1." msgstr "1." #. type: Plain text -#: build/C/man3/pthread_cancel.3:83 +#: build/C/man3/pthread_cancel.3:86 msgid "" "Cancellation clean-up handlers are popped (in the reverse of the order in " "which they were pushed) and called. (See B(3).)" @@ -3547,13 +3683,13 @@ msgstr "" "(B(3) 参照)" #. type: IP -#: build/C/man3/pthread_cancel.3:83 build/C/man3/pthread_cleanup_push.3:73 +#: build/C/man3/pthread_cancel.3:86 build/C/man3/pthread_cleanup_push.3:73 #, no-wrap msgid "2." msgstr "2." #. type: Plain text -#: build/C/man3/pthread_cancel.3:88 +#: build/C/man3/pthread_cancel.3:91 msgid "" "Thread-specific data destructors are called, in an unspecified order. (See " "B(3).)" @@ -3563,29 +3699,29 @@ msgstr "" "(B(3) 参照)" #. type: IP -#: build/C/man3/pthread_cancel.3:88 build/C/man3/pthread_cleanup_push.3:81 +#: build/C/man3/pthread_cancel.3:91 build/C/man3/pthread_cleanup_push.3:83 #, no-wrap msgid "3." msgstr "3." #. type: Plain text -#: build/C/man3/pthread_cancel.3:92 +#: build/C/man3/pthread_cancel.3:95 msgid "The thread is terminated. (See B(3).)" msgstr "スレッドが終了される。 (B(3) 参照)" #. type: Plain text -#: build/C/man3/pthread_cancel.3:100 +#: build/C/man3/pthread_cancel.3:103 msgid "" -"The above steps happen asynchronously with respect to the B" -"() call; the return status of B() merely informs the " -"caller whether the cancellation request was successfully queued." +"The above steps happen asynchronously with respect to the " +"B() call; the return status of B() merely " +"informs the caller whether the cancellation request was successfully queued." msgstr "" "上記のステップは B() の呼び出しとは非同期に行われる。\n" "B() の返却ステータスは単にキャンセル要求が正常に\n" "キューに入れられたかどうかを呼び出し元に示すだけのものである。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:109 +#: build/C/man3/pthread_cancel.3:112 msgid "" "After a canceled thread has terminated, a join with that thread using " "B(3) obtains B as the thread's exit " @@ -3598,7 +3734,7 @@ msgstr "" "(スレッドの join はキャンセルが完了したかを知る唯一の方法である)" #. type: Plain text -#: build/C/man3/pthread_cancel.3:114 +#: build/C/man3/pthread_cancel.3:117 msgid "" "On success, B() returns 0; on error, it returns a nonzero " "error number." @@ -3607,26 +3743,26 @@ msgstr "" "エラーの場合、0 以外のエラー番号を返す。" #. type: TP -#: build/C/man3/pthread_cancel.3:115 build/C/man3/pthread_detach.3:59 +#: build/C/man3/pthread_cancel.3:118 build/C/man3/pthread_detach.3:59 #: build/C/man3/pthread_getcpuclockid.3:58 build/C/man3/pthread_join.3:93 -#: build/C/man3/pthread_kill.3:61 build/C/man3/pthread_setaffinity_np.3:114 +#: build/C/man3/pthread_setaffinity_np.3:114 #: build/C/man3/pthread_setschedparam.3:114 -#: build/C/man3/pthread_setschedprio.3:70 build/C/man3/pthread_sigqueue.3:85 +#: build/C/man3/pthread_setschedprio.3:70 build/C/man3/pthread_sigqueue.3:86 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_cancel.3:122 build/C/man3/pthread_detach.3:64 +#: build/C/man3/pthread_cancel.3:125 build/C/man3/pthread_detach.3:64 #: build/C/man3/pthread_getcpuclockid.3:63 build/C/man3/pthread_join.3:98 -#: build/C/man3/pthread_kill.3:66 build/C/man3/pthread_setaffinity_np.3:119 +#: build/C/man3/pthread_setaffinity_np.3:119 #: build/C/man3/pthread_setschedparam.3:119 #: build/C/man3/pthread_setschedprio.3:75 msgid "No thread with the ID I could be found." msgstr "ID が I のスレッドが見つからなかった。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:132 +#: build/C/man3/pthread_cancel.3:135 msgid "" "On Linux, cancellation is implemented using signals. Under the NPTL " "threading implementation, the first real-time signal (i.e., signal 32) is " @@ -3641,7 +3777,7 @@ msgstr "" "シグナルが使用され、そうでない場合は B が使用される。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:138 +#: build/C/man3/pthread_cancel.3:141 msgid "" "The program below creates a thread and then cancels it. The main thread " "joins with the canceled thread to check that its exit status was " @@ -3655,7 +3791,7 @@ msgstr "" "確認する。以下のシェルセッションはこのプログラムを実行した際の実行例である。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:146 +#: build/C/man3/pthread_cancel.3:149 #, no-wrap msgid "" "$ ./a.out\n" @@ -3671,7 +3807,7 @@ msgstr "" "main(): thread was canceled\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:156 +#: build/C/man3/pthread_cancel.3:159 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -3687,7 +3823,7 @@ msgstr "" "#include Eunistd.hE\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:164 +#: build/C/man3/pthread_cancel.3:167 #, no-wrap msgid "" "static void *\n" @@ -3701,7 +3837,7 @@ msgstr "" " int s;\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:167 +#: build/C/man3/pthread_cancel.3:170 #, no-wrap msgid "" " /* Disable cancellation for a while, so that we don\\(aqt\n" @@ -3711,7 +3847,7 @@ msgstr "" " immediately react to a cancellation request */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:171 +#: build/C/man3/pthread_cancel.3:174 #, no-wrap msgid "" " s = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);\n" @@ -3723,7 +3859,7 @@ msgstr "" " handle_error_en(s, \"pthread_setcancelstate\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:175 +#: build/C/man3/pthread_cancel.3:178 #, no-wrap msgid "" " printf(\"thread_func(): started; cancellation disabled\\en\");\n" @@ -3735,7 +3871,7 @@ msgstr "" " printf(\"thread_func(): about to enable cancellation\\en\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:179 +#: build/C/man3/pthread_cancel.3:182 #, no-wrap msgid "" " s = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);\n" @@ -3747,25 +3883,25 @@ msgstr "" " handle_error_en(s, \"pthread_setcancelstate\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:181 +#: build/C/man3/pthread_cancel.3:184 #, no-wrap msgid " /* sleep() is a cancellation point */\n" msgstr " /* sleep() is a cancellation point */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:183 +#: build/C/man3/pthread_cancel.3:186 #, no-wrap msgid " sleep(1000); /* Should get canceled while we sleep */\n" msgstr " sleep(1000); /* Should get canceled while we sleep */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:185 +#: build/C/man3/pthread_cancel.3:188 #, no-wrap msgid " /* Should never get here */\n" msgstr " /* Should never get here */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:189 +#: build/C/man3/pthread_cancel.3:192 #, no-wrap msgid "" " printf(\"thread_func(): not canceled!\\en\");\n" @@ -3777,7 +3913,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:196 +#: build/C/man3/pthread_cancel.3:199 #, no-wrap msgid "" "int\n" @@ -3795,13 +3931,13 @@ msgstr "" " int s;\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:198 +#: build/C/man3/pthread_cancel.3:201 #, no-wrap msgid " /* Start a thread and then send it a cancellation request */\n" msgstr " /* Start a thread and then send it a cancellation request */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:202 +#: build/C/man3/pthread_cancel.3:205 #, no-wrap msgid "" " s = pthread_create(&thr, NULL, &thread_func, NULL);\n" @@ -3813,13 +3949,13 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:204 +#: build/C/man3/pthread_cancel.3:207 #, no-wrap msgid " sleep(2); /* Give thread a chance to get started */\n" msgstr " sleep(2); /* Give thread a chance to get started */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:209 +#: build/C/man3/pthread_cancel.3:212 #, no-wrap msgid "" " printf(\"main(): sending cancellation request\\en\");\n" @@ -3833,13 +3969,13 @@ msgstr "" " handle_error_en(s, \"pthread_cancel\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:211 +#: build/C/man3/pthread_cancel.3:214 #, no-wrap msgid " /* Join with thread to see what its exit status was */\n" msgstr " /* Join with thread to see what its exit status was */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:215 build/C/man3/pthread_cleanup_push.3:303 +#: build/C/man3/pthread_cancel.3:218 build/C/man3/pthread_cleanup_push.3:307 #, no-wrap msgid "" " s = pthread_join(thr, &res);\n" @@ -3851,7 +3987,7 @@ msgstr "" " handle_error_en(s, \"pthread_join\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:222 +#: build/C/man3/pthread_cancel.3:225 #, no-wrap msgid "" " if (res == PTHREAD_CANCELED)\n" @@ -3869,7 +4005,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:235 +#: build/C/man3/pthread_cancel.3:238 msgid "" "B(3), B(3), B(3), " "B(3), B(3), B(3), " @@ -3887,7 +4023,6 @@ msgstr "PTHREAD_CLEANUP_PUSH" #. type: TH #: build/C/man3/pthread_cleanup_push.3:26 -#: build/C/man3/pthread_setcancelstate.3:26 #, no-wrap msgid "2008-11-24" msgstr "2008-11-24" @@ -3971,7 +4106,7 @@ msgstr "" "実行は、スタックに登録されたのと逆の順序で行われる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:81 +#: build/C/man3/pthread_cleanup_push.3:83 msgid "" "When a thread terminates by calling B(3), all clean-up " "handlers are executed as described in the preceding point. (Clean-up " @@ -3984,7 +4119,7 @@ msgstr "" "は、クリーンアップハンドラはI<呼び出されない>。)" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:87 +#: build/C/man3/pthread_cleanup_push.3:89 msgid "" "When a thread calls B() with a nonzero I " "argument, the top-most clean-up handler is popped and executed." @@ -3994,14 +4129,14 @@ msgstr "" "実行される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:99 +#: build/C/man3/pthread_cleanup_push.3:101 msgid "" "POSIX.1 permits B() and B() to " "be implemented as macros that expand to text containing \\(aqB<{>\\(aq and " "\\(aqB<}>\\(aq, respectively. For this reason, the caller must ensure that " "calls to these functions are paired within the same function, and at the " -"same lexical nesting level. (In other words, a clean-up handler is only " -"established during the execution of a specified section of code.)" +"same lexical nesting level. (In other words, a clean-up handler is " +"established only during the execution of a specified section of code.)" msgstr "" "POSIX.1 では、 B() と B() を\n" "それぞれ \\(aqB<{>\\(aq と \\(aqB<}>\\(aq を含むテキストに展開するマクロと\n" @@ -4012,15 +4147,15 @@ msgstr "" "の特定のセクションの実行の中でのみ設定するものであると言える。)" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:119 +#: build/C/man3/pthread_cleanup_push.3:121 msgid "" "Calling B(3) (B(3)) produces undefined results if any " -"call has been made to B() or B" -"() without the matching call of the pair since the jump buffer was filled " -"by B(3) (B(3)). Likewise, calling B(3) " -"(B(3)) from inside a clean-up handler produces undefined " -"results unless the jump buffer was also filled by B(3) (B" -"(3)) inside the handler." +"call has been made to B() or " +"B() without the matching call of the pair since the " +"jump buffer was filled by B(3) (B(3)). Likewise, " +"calling B(3) (B(3)) from inside a clean-up handler " +"produces undefined results unless the jump buffer was also filled by " +"B(3) (B(3)) inside the handler." msgstr "" "B(3) (B(3)) の呼び出しは、\n" "B() や B() の呼び出しが対と\n" @@ -4032,25 +4167,25 @@ msgstr "" "結果になるかは不定である。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:121 +#: build/C/man3/pthread_cleanup_push.3:123 msgid "These functions do not return a value." msgstr "これらの関数は値を返さない。" #. SH VERSIONS #. Available since glibc 2.0 #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:125 +#: build/C/man3/pthread_cleanup_push.3:127 msgid "There are no errors." msgstr "エラーはない。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:136 +#: build/C/man3/pthread_cleanup_push.3:140 msgid "" "On Linux, the B() and B() " -"functions I implemented as macros that expand to text containing \\(aqB<" -"{>\\(aq and \\(aqB<}>\\(aq, respectively. This means that variables " -"declared within the scope of paired calls to these functions will only be " -"visible within that scope." +"functions I implemented as macros that expand to text containing " +"\\(aqB<{>\\(aq and \\(aqB<}>\\(aq, respectively. This means that variables " +"declared within the scope of paired calls to these functions will be visible " +"within only that scope." msgstr "" "Linux では、関数 B() と B()\n" "は、それぞれ \\(aqB<{>\\(aq と \\(aqB<}>\\(aq を含むテキストに展開する\n" @@ -4060,7 +4195,7 @@ msgstr "" #. The text was actually added in the 2004 TC2 #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:151 +#: build/C/man3/pthread_cleanup_push.3:155 msgid "" "POSIX.1 says that the effect of using I, I, I, or " "I to prematurely leave a block bracketed B() " @@ -4074,7 +4209,7 @@ msgstr "" "移植性が必要なアプリケーションではこれを行うのは避けるべきである。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:166 +#: build/C/man3/pthread_cleanup_push.3:170 msgid "" "The program below provides a simple example of the use of the functions " "described in this page. The program creates a thread that executes a loop " @@ -4094,7 +4229,7 @@ msgstr "" "設定したりする。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:169 +#: build/C/man3/pthread_cleanup_push.3:173 msgid "" "In the following shell session, the main thread sends a cancellation request " "to the other thread:" @@ -4103,7 +4238,7 @@ msgstr "" "キャンセル要求を送信する。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:179 +#: build/C/man3/pthread_cleanup_push.3:183 #, no-wrap msgid "" "$ B<./a.out>\n" @@ -4123,7 +4258,7 @@ msgstr "" "Thread was canceled; cnt = 0\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:187 +#: build/C/man3/pthread_cleanup_push.3:191 msgid "" "From the above, we see that the thread was canceled, and that the " "cancellation clean-up handler was called and it reset the value of the " @@ -4134,7 +4269,7 @@ msgstr "" "グローバル変数 I の値が 0 にリセットされていることが確認できる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:190 +#: build/C/man3/pthread_cleanup_push.3:194 msgid "" "In the next run, the main program sets a global variable that causes other " "thread to terminate normally:" @@ -4143,7 +4278,7 @@ msgstr "" "もう一つのスレッドが正常終了するようにしている。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:198 +#: build/C/man3/pthread_cleanup_push.3:202 #, no-wrap msgid "" "$ B<./a.out x>\n" @@ -4159,7 +4294,7 @@ msgstr "" "Thread terminated normally; cnt = 2\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:206 +#: build/C/man3/pthread_cleanup_push.3:210 msgid "" "From the above, we see that the clean-up handler was not executed (because " "I was 0), and therefore the value of I was not reset." @@ -4169,7 +4304,7 @@ msgstr "" "分かる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:211 +#: build/C/man3/pthread_cleanup_push.3:215 msgid "" "In the next run, the main program sets a global variable that causes the " "other thread to terminate normally, and supplies a nonzero value for " @@ -4180,7 +4315,7 @@ msgstr "" "I に 0 以外の値を渡している。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:220 +#: build/C/man3/pthread_cleanup_push.3:224 #, no-wrap msgid "" "$ B<./a.out x 1>\n" @@ -4198,18 +4333,18 @@ msgstr "" "Thread terminated normally; cnt = 0\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:227 +#: build/C/man3/pthread_cleanup_push.3:231 msgid "" "In the above, we see that although the thread was not canceled, the clean-up " -"handler was executed, because the argument given to B" -"() was nonzero." +"handler was executed, because the argument given to " +"B() was nonzero." msgstr "" "上記では、スレッドはキャンセルされていないが、クリーンアップハンドラが\n" "実行されていないことが分かる。これは B() の引き数\n" "に 0 以外を渡したからである。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:236 +#: build/C/man3/pthread_cleanup_push.3:240 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -4227,7 +4362,7 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:243 +#: build/C/man3/pthread_cleanup_push.3:247 #, no-wrap msgid "" "static int done = 0;\n" @@ -4239,7 +4374,7 @@ msgstr "" "static int cnt = 0;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:250 +#: build/C/man3/pthread_cleanup_push.3:254 #, no-wrap msgid "" "static void\n" @@ -4257,7 +4392,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:255 +#: build/C/man3/pthread_cleanup_push.3:259 #, no-wrap msgid "" "static void *\n" @@ -4271,25 +4406,25 @@ msgstr "" " time_t start, curr;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:257 +#: build/C/man3/pthread_cleanup_push.3:261 #, no-wrap msgid " printf(\"New thread started\\en\");\n" msgstr " printf(\"New thread started\\en\");\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:259 +#: build/C/man3/pthread_cleanup_push.3:263 #, no-wrap msgid " pthread_cleanup_push(cleanup_handler, NULL);\n" msgstr " pthread_cleanup_push(cleanup_handler, NULL);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:261 +#: build/C/man3/pthread_cleanup_push.3:265 #, no-wrap msgid " curr = start = time(NULL);\n" msgstr " curr = start = time(NULL);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:270 +#: build/C/man3/pthread_cleanup_push.3:274 #, no-wrap msgid "" " while (!done) {\n" @@ -4311,7 +4446,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:274 +#: build/C/man3/pthread_cleanup_push.3:278 #, no-wrap msgid "" " pthread_cleanup_pop(cleanup_pop_arg);\n" @@ -4323,7 +4458,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:281 +#: build/C/man3/pthread_cleanup_push.3:285 #, no-wrap msgid "" "int\n" @@ -4341,7 +4476,7 @@ msgstr "" " void *res;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:285 +#: build/C/man3/pthread_cleanup_push.3:289 #, no-wrap msgid "" " s = pthread_create(&thr, NULL, thread_start, NULL);\n" @@ -4353,13 +4488,13 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:287 +#: build/C/man3/pthread_cleanup_push.3:291 #, no-wrap msgid " sleep(2); /* Allow new thread to run a while */\n" msgstr " sleep(2); /* Allow new thread to run a while */\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:292 +#: build/C/man3/pthread_cleanup_push.3:296 #, no-wrap msgid "" " if (argc E 1) {\n" @@ -4373,7 +4508,7 @@ msgstr "" " done = 1;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:299 +#: build/C/man3/pthread_cleanup_push.3:303 #, no-wrap msgid "" " } else {\n" @@ -4391,7 +4526,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:310 +#: build/C/man3/pthread_cleanup_push.3:314 #, no-wrap msgid "" " if (res == PTHREAD_CANCELED)\n" @@ -4409,7 +4544,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:317 +#: build/C/man3/pthread_cleanup_push.3:321 msgid "" "B(3), B(3), " "B(3), B(3), B(7)" @@ -4423,12 +4558,6 @@ msgstr "" msgid "PTHREAD_CLEANUP_PUSH_DEFER_NP" msgstr "PTHREAD_CLEANUP_PUSH_DEFER_NP" -#. type: TH -#: build/C/man3/pthread_cleanup_push_defer_np.3:26 -#, no-wrap -msgid "2008-12-04" -msgstr "2008-12-04" - #. type: Plain text #: build/C/man3/pthread_cleanup_push_defer_np.3:30 msgid "" @@ -4456,13 +4585,23 @@ msgstr "" #: build/C/man3/pthread_create.3:38 build/C/man3/pthread_detach.3:37 #: build/C/man3/pthread_join.3:37 build/C/man3/pthread_kill.3:37 #: build/C/man3/pthread_setname_np.3:39 build/C/man3/pthread_sigmask.3:38 -#: build/C/man3/pthread_sigqueue.3:37 build/C/man3/pthread_tryjoin_np.3:42 +#: build/C/man3/pthread_sigqueue.3:38 build/C/man3/pthread_tryjoin_np.3:42 #: build/C/man3/pthread_yield.3:37 msgid "Compile and link with I<-pthread>." msgstr "I<-pthread> を付けてコンパイルとリンクを行う。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:46 +#: build/C/man3/pthread_cleanup_push_defer_np.3:49 +msgid "B(), B():" +msgstr "B(), B():" + +#. type: Plain text +#: build/C/man3/pthread_cleanup_push_defer_np.3:51 +msgid "_GNU_SOURCE" +msgstr "_GNU_SOURCE" + +#. type: Plain text +#: build/C/man3/pthread_cleanup_push_defer_np.3:59 msgid "" "These functions are the same as B(3) and " "B(3), except for the differences noted on this page." @@ -4471,7 +4610,7 @@ msgstr "" "だが、このページで説明する点が異なる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:59 +#: build/C/man3/pthread_cleanup_push_defer_np.3:72 msgid "" "Like B(3), B() pushes " "I onto the thread's stack of cancellation clean-up handlers. In " @@ -4491,7 +4630,7 @@ msgstr "" "が保証される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:68 +#: build/C/man3/pthread_cleanup_push_defer_np.3:81 msgid "" "Like B(3), B() pops " "the top-most clean-up handler from the thread's stack of cancellation clean-" @@ -4505,7 +4644,7 @@ msgstr "" "する B() が呼ばれた時点の値に戻す。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:74 +#: build/C/man3/pthread_cleanup_push_defer_np.3:87 msgid "" "The caller must ensure that calls to these functions are paired within the " "same function, and at the same lexical nesting level. Other restrictions " @@ -4517,12 +4656,12 @@ msgstr "" "適用される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:76 +#: build/C/man3/pthread_cleanup_push_defer_np.3:89 msgid "This sequence of calls:" msgstr "以下の一連の呼び出し" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:81 +#: build/C/man3/pthread_cleanup_push_defer_np.3:94 #, no-wrap msgid "" "pthread_cleanup_push_defer_np(routine, arg);\n" @@ -4532,18 +4671,18 @@ msgstr "" "pthread_cleanup_pop_restore_np(execute);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:85 +#: build/C/man3/pthread_cleanup_push_defer_np.3:98 msgid "is equivalent to (but shorter and more efficient than):" msgstr "と以下は等価である (但し、上の方がより簡潔で効率的である)。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:91 +#: build/C/man3/pthread_cleanup_push_defer_np.3:104 #, no-wrap msgid "int oldtype;\n" msgstr "int oldtype;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:97 +#: build/C/man3/pthread_cleanup_push_defer_np.3:110 #, no-wrap msgid "" "pthread_cleanup_push(routine, arg);\n" @@ -4559,13 +4698,13 @@ msgstr "" "pthread_cleanup_pop(execute);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:110 +#: build/C/man3/pthread_cleanup_push_defer_np.3:123 msgid "" -"B(3), B(3), B" -"(3), B(3), B(7)" +"B(3), B(3), " +"B(3), B(3), B(7)" msgstr "" -"B(3), B(3), B" -"(3), B(3), B(7)" +"B(3), B(3), " +"B(3), B(3), B(7)" #. type: TH #: build/C/man3/pthread_create.3:26 @@ -4573,13 +4712,6 @@ msgstr "" msgid "PTHREAD_CREATE" msgstr "PTHREAD_CREATE" -#. type: TH -#: build/C/man3/pthread_create.3:26 build/C/man3/pthread_sigmask.3:26 -#, fuzzy, no-wrap -#| msgid "2012-03-15" -msgid "2012-08-03" -msgstr "2012-03-15" - #. type: Plain text #: build/C/man3/pthread_create.3:29 msgid "pthread_create - create a new thread" @@ -4626,8 +4758,8 @@ msgstr "*" #: build/C/man3/pthread_create.3:55 msgid "" "It calls B(3), specifying an exit status value that is " -"available to another thread in the same process that calls B" -"(3)." +"available to another thread in the same process that calls " +"B(3)." msgstr "" "スレッドが B(3) を呼び出す。\n" "B(3) を呼び出す際には終了ステータス値を指定する。\n" @@ -4745,20 +4877,36 @@ msgstr "" "エラーの場合は、エラー番号が返され、 I<*thread> の内容は不定である。" #. type: TP -#: build/C/man3/pthread_create.3:123 build/C/man3/pthread_sigqueue.3:71 +#: build/C/man3/pthread_create.3:123 build/C/man3/pthread_create.3:126 +#: build/C/man3/pthread_sigqueue.3:72 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_create.3:137 -msgid "" -"Insufficient resources to create another thread, or a system-imposed limit " -"on the number of threads was encountered. The latter case may occur in two " -"ways: the B soft resource limit (set via B(2)), " -"which limits the number of process for a real user ID, was reached; or the " -"kernel's system-wide limit on the number of threads, I, was reached." +#: build/C/man3/pthread_create.3:126 +msgid "Insufficient resources to create another thread." +msgstr "" + +#. NOTE! The following should match the description in fork(2) +#. type: Plain text +#: build/C/man3/pthread_create.3:144 +#, fuzzy +#| msgid "" +#| "Insufficient resources to create another thread, or a system-imposed " +#| "limit on the number of threads was encountered. The latter case may " +#| "occur in two ways: the B soft resource limit (set via " +#| "B(2)), which limits the number of process for a real user ID, " +#| "was reached; or the kernel's system-wide limit on the number of threads, " +#| "I, was reached." +msgid "" +"A system-imposed limit on the number of threads was encountered. There are " +"a number of limits that may trigger this error: the B soft " +"resource limit (set via B(2)), which limits the number of " +"processes and threads for a real user ID, was reached; the kernel's system-" +"wide limit on the number of processes threads, I, was reached (see B(5)); or the maximum number of PIDs, I, was reached (see B(5))." msgstr "" "別のスレッドを作成するのに十分なリソースがないか、システムで設定された\n" "スレッド数の上限に達していた。後者が起こるのは 2 つの場合がある。\n" @@ -4768,19 +4916,19 @@ msgstr "" "I が達していた場合である。" #. type: Plain text -#: build/C/man3/pthread_create.3:141 +#: build/C/man3/pthread_create.3:148 msgid "Invalid settings in I." msgstr "I で指定された設定が不正である。" #. type: TP -#: build/C/man3/pthread_create.3:141 build/C/man3/pthread_setschedparam.3:129 +#: build/C/man3/pthread_create.3:148 build/C/man3/pthread_setschedparam.3:129 #: build/C/man3/pthread_setschedprio.3:66 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_create.3:146 +#: build/C/man3/pthread_create.3:153 msgid "" "No permission to set the scheduling policy and parameters specified in " "I." @@ -4789,7 +4937,7 @@ msgstr "" "設定する許可がない。" #. type: Plain text -#: build/C/man3/pthread_create.3:160 +#: build/C/man3/pthread_create.3:167 msgid "" "See B(3) for further information on the thread ID returned in " "I<*thread> by B(). Unless real-time scheduling policies are " @@ -4804,7 +4952,7 @@ msgstr "" "次に実行されるかは決まっていない。" #. type: Plain text -#: build/C/man3/pthread_create.3:180 +#: build/C/man3/pthread_create.3:187 msgid "" "A thread may either be I or I. If a thread is joinable, " "then another thread can call B(3) to wait for the thread to " @@ -4836,7 +4984,7 @@ msgstr "" #. FIXME . Perhaps some of the following detail should be in #. a future pthread_attr_setstacksize(3) page. #. type: Plain text -#: build/C/man3/pthread_create.3:196 +#: build/C/man3/pthread_create.3:203 msgid "" "On Linux/x86-32, the default stack size for a new thread is 2 megabytes. " "Under the NPTL threading implementation, if the B soft " @@ -4855,7 +5003,7 @@ msgstr "" "デフォルト値以外のスタックサイズを得ることができる。" #. type: Plain text -#: build/C/man3/pthread_create.3:202 +#: build/C/man3/pthread_create.3:209 msgid "" "In the obsolete LinuxThreads implementation, each of the threads in a " "process has a different process ID. This is in violation of the POSIX " @@ -4868,7 +5016,7 @@ msgstr "" "B(7) を参照のこと。" #. type: Plain text -#: build/C/man3/pthread_create.3:206 +#: build/C/man3/pthread_create.3:213 msgid "" "The program below demonstrates the use of B(), as well as a " "number of other functions in the pthreads API." @@ -4877,7 +5025,7 @@ msgstr "" "pthreads API の他のいろいろな関数の使用例を示している。" #. type: Plain text -#: build/C/man3/pthread_create.3:211 +#: build/C/man3/pthread_create.3:218 msgid "" "In the following run, on a system providing the NPTL threading " "implementation, the stack size defaults to the value given by the \"stack " @@ -4888,11 +5036,11 @@ msgstr "" "になる。" #. type: Plain text -#: build/C/man3/pthread_create.3:223 +#: build/C/man3/pthread_create.3:230 #, no-wrap msgid "" "$B< ulimit -s>\n" -"8192 # The stack size limit is 8 MB (0x80000 bytes)\n" +"8192 # The stack size limit is 8 MB (0x800000 bytes)\n" "$B< ./a.out hola salut servus>\n" "Thread 1: top of stack near 0xb7dd03b8; argv_string=hola\n" "Thread 2: top of stack near 0xb75cf3b8; argv_string=salut\n" @@ -4902,7 +5050,7 @@ msgid "" "Joined with thread 3; returned value was SERVUS\n" msgstr "" "$B< ulimit -s>\n" -"8192 # The stack size limit is 8 MB (0x80000 bytes)\n" +"8192 # The stack size limit is 8 MB (0x800000 bytes)\n" "$B< ./a.out hola salut servus>\n" "Thread 1: top of stack near 0xb7dd03b8; argv_string=hola\n" "Thread 2: top of stack near 0xb75cf3b8; argv_string=salut\n" @@ -4912,7 +5060,7 @@ msgstr "" "Joined with thread 3; returned value was SERVUS\n" #. type: Plain text -#: build/C/man3/pthread_create.3:229 +#: build/C/man3/pthread_create.3:236 msgid "" "In the next run, the program explicitly sets a stack size of 1MB (using " "B(3)) for the created threads:" @@ -4922,7 +5070,7 @@ msgstr "" "明示的に設定している。" #. type: Plain text -#: build/C/man3/pthread_create.3:239 +#: build/C/man3/pthread_create.3:246 #, no-wrap msgid "" "$B< ./a.out -s 0x100000 hola salut servus>\n" @@ -4942,7 +5090,7 @@ msgstr "" "Joined with thread 3; returned value was SERVUS\n" #. type: Plain text -#: build/C/man3/pthread_create.3:251 +#: build/C/man3/pthread_create.3:258 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -4962,7 +5110,7 @@ msgstr "" "#include Ectype.hE\n" #. type: Plain text -#: build/C/man3/pthread_create.3:257 build/C/man3/pthread_getcpuclockid.3:110 +#: build/C/man3/pthread_create.3:264 build/C/man3/pthread_getcpuclockid.3:116 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" @@ -4972,7 +5120,7 @@ msgstr "" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text -#: build/C/man3/pthread_create.3:263 +#: build/C/man3/pthread_create.3:270 #, no-wrap msgid "" "struct thread_info { /* Used as argument to thread_start() */\n" @@ -4988,7 +5136,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man3/pthread_create.3:266 +#: build/C/man3/pthread_create.3:273 #, no-wrap msgid "" "/* Thread start function: display address near top of our stack,\n" @@ -4998,14 +5146,8 @@ msgstr "" " and return upper-cased copy of argv_string */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:272 -#, fuzzy, no-wrap -#| msgid "" -#| "static void *\n" -#| "thread_start(void *arg)\n" -#| "{\n" -#| " struct thread_info *tinfo = (struct thread_info *) arg;\n" -#| " char *uargv, *p;\n" +#: build/C/man3/pthread_create.3:279 +#, no-wrap msgid "" "static void *\n" "thread_start(void *arg)\n" @@ -5016,11 +5158,11 @@ msgstr "" "static void *\n" "thread_start(void *arg)\n" "{\n" -" struct thread_info *tinfo = (struct thread_info *) arg;\n" +" struct thread_info *tinfo = arg;\n" " char *uargv, *p;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:275 +#: build/C/man3/pthread_create.3:282 #, no-wrap msgid "" " printf(\"Thread %d: top of stack near %p; argv_string=%s\\en\",\n" @@ -5030,7 +5172,7 @@ msgstr "" " tinfo-Ethread_num, &p, tinfo-Eargv_string);\n" #. type: Plain text -#: build/C/man3/pthread_create.3:279 +#: build/C/man3/pthread_create.3:286 #, no-wrap msgid "" " uargv = strdup(tinfo-Eargv_string);\n" @@ -5042,7 +5184,7 @@ msgstr "" " handle_error(\"strdup\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:282 +#: build/C/man3/pthread_create.3:289 #, no-wrap msgid "" " for (p = uargv; *p != \\(aq\\e0\\(aq; p++)\n" @@ -5052,7 +5194,7 @@ msgstr "" " *p = toupper(*p);\n" #. type: Plain text -#: build/C/man3/pthread_create.3:285 +#: build/C/man3/pthread_create.3:292 #, no-wrap msgid "" " return uargv;\n" @@ -5062,7 +5204,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_create.3:294 +#: build/C/man3/pthread_create.3:301 #, no-wrap msgid "" "int\n" @@ -5084,13 +5226,13 @@ msgstr "" " void *res;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:296 +#: build/C/man3/pthread_create.3:303 #, no-wrap msgid " /* The \"-s\" option specifies a stack size for our threads */\n" msgstr " /* The \"-s\" option specifies a stack size for our threads */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:303 +#: build/C/man3/pthread_create.3:310 #, no-wrap msgid "" " stack_size = -1;\n" @@ -5108,7 +5250,7 @@ msgstr "" " break;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:310 +#: build/C/man3/pthread_create.3:317 #, no-wrap msgid "" " default:\n" @@ -5126,19 +5268,19 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:312 +#: build/C/man3/pthread_create.3:319 #, no-wrap msgid " num_threads = argc - optind;\n" msgstr " num_threads = argc - optind;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:314 +#: build/C/man3/pthread_create.3:321 #, no-wrap msgid " /* Initialize thread creation attributes */\n" msgstr " /* Initialize thread creation attributes */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:318 +#: build/C/man3/pthread_create.3:325 #, no-wrap msgid "" " s = pthread_attr_init(&attr);\n" @@ -5150,7 +5292,7 @@ msgstr "" " handle_error_en(s, \"pthread_attr_init\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:324 +#: build/C/man3/pthread_create.3:331 #, no-wrap msgid "" " if (stack_size E 0) {\n" @@ -5166,13 +5308,13 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:326 +#: build/C/man3/pthread_create.3:333 #, no-wrap msgid " /* Allocate memory for pthread_create() arguments */\n" msgstr " /* Allocate memory for pthread_create() arguments */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:330 +#: build/C/man3/pthread_create.3:337 #, no-wrap msgid "" " tinfo = calloc(num_threads, sizeof(struct thread_info));\n" @@ -5184,13 +5326,13 @@ msgstr "" " handle_error(\"calloc\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:332 +#: build/C/man3/pthread_create.3:339 #, no-wrap msgid " /* Create one thread for each command-line argument */\n" msgstr " /* Create one thread for each command-line argument */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:336 +#: build/C/man3/pthread_create.3:343 #, no-wrap msgid "" " for (tnum = 0; tnum E num_threads; tnum++) {\n" @@ -5202,7 +5344,7 @@ msgstr "" " tinfo[tnum].argv_string = argv[optind + tnum];\n" #. type: Plain text -#: build/C/man3/pthread_create.3:339 +#: build/C/man3/pthread_create.3:346 #, no-wrap msgid "" " /* The pthread_create() call stores the thread ID into\n" @@ -5212,7 +5354,7 @@ msgstr "" " corresponding element of tinfo[] */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:345 +#: build/C/man3/pthread_create.3:352 #, no-wrap msgid "" " s = pthread_create(&tinfo[tnum].thread_id, &attr,\n" @@ -5228,7 +5370,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:348 +#: build/C/man3/pthread_create.3:355 #, no-wrap msgid "" " /* Destroy the thread attributes object, since it is no\n" @@ -5238,7 +5380,7 @@ msgstr "" " longer needed */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:352 build/C/man3/pthread_setschedparam.3:423 +#: build/C/man3/pthread_create.3:359 build/C/man3/pthread_setschedparam.3:430 #, no-wrap msgid "" " s = pthread_attr_destroy(&attr);\n" @@ -5250,13 +5392,13 @@ msgstr "" " handle_error_en(s, \"pthread_attr_destroy\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:354 +#: build/C/man3/pthread_create.3:361 #, no-wrap msgid " /* Now join with each thread, and display its returned value */\n" msgstr " /* Now join with each thread, and display its returned value */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:359 +#: build/C/man3/pthread_create.3:366 #, no-wrap msgid "" " for (tnum = 0; tnum E num_threads; tnum++) {\n" @@ -5270,7 +5412,7 @@ msgstr "" " handle_error_en(s, \"pthread_join\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:364 +#: build/C/man3/pthread_create.3:371 #, no-wrap msgid "" " printf(\"Joined with thread %d; returned value was %s\\en\",\n" @@ -5284,7 +5426,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:368 +#: build/C/man3/pthread_create.3:375 #, no-wrap msgid "" " free(tinfo);\n" @@ -5296,17 +5438,17 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_create.3:382 +#: build/C/man3/pthread_create.3:389 msgid "" "B(2), B(3), B(3), " "B(3), B(3), B(3), " -"B(3), B(3), B(3), B" -"(7)" +"B(3), B(3), B(3), " +"B(7)" msgstr "" "B(2), B(3), B(3), " "B(3), B(3), B(3), " -"B(3), B(3), B(3), B" -"(7)" +"B(3), B(3), B(3), " +"B(7)" #. type: TH #: build/C/man3/pthread_detach.3:26 @@ -5429,11 +5571,11 @@ msgstr " pthread_detach(pthread_self());\n" #. type: Plain text #: build/C/man3/pthread_detach.3:104 msgid "" -"B(3), B(3), B" -"(3), B(3), B(3), B(7)" +"B(3), B(3), " +"B(3), B(3), B(3), B(7)" msgstr "" -"B(3), B(3), B" -"(3), B(3), B(3), B(7)" +"B(3), B(3), " +"B(3), B(3), B(3), B(7)" #. type: TH #: build/C/man3/pthread_equal.3:26 @@ -5443,9 +5585,12 @@ msgstr "PTHREAD_EQUAL" #. type: TH #: build/C/man3/pthread_equal.3:26 build/C/man3/pthread_exit.3:26 +#: build/C/man3/pthread_getcpuclockid.3:26 +#: build/C/man3/pthread_setaffinity_np.3:26 +#: build/C/man3/pthread_setconcurrency.3:25 #, no-wrap -msgid "2009-03-30" -msgstr "2009-03-30" +msgid "2014-05-23" +msgstr "2014-05-23" #. type: Plain text #: build/C/man3/pthread_equal.3:29 @@ -5481,7 +5626,12 @@ msgid "This function always succeeds." msgstr "この関数は常に成功する。" #. type: Plain text -#: build/C/man3/pthread_equal.3:56 +#: build/C/man3/pthread_equal.3:52 +msgid "The B() function is thread-safe." +msgstr "B() 関数はスレッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_equal.3:61 msgid "" "The B() function is necessary because thread IDs should be " "considered opaque: there is no portable way for applications to directly " @@ -5493,7 +5643,7 @@ msgstr "" "移植性を確保できる形で比較する方法はない。" #. type: Plain text -#: build/C/man3/pthread_equal.3:60 +#: build/C/man3/pthread_equal.3:65 msgid "B(3), B(3), B(7)" msgstr "B(3), B(3), B(7)" @@ -5572,7 +5722,12 @@ msgid "This function does not return to the caller." msgstr "この関数は呼び出し側には返らない。" #. type: Plain text -#: build/C/man3/pthread_exit.3:82 +#: build/C/man3/pthread_exit.3:80 +msgid "The B() function is thread-safe." +msgstr "B() 関数はスレッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_exit.3:87 msgid "" "Performing a return from the start function of any thread other than the " "main thread results in an implicit call to B(), using the " @@ -5583,7 +5738,7 @@ msgstr "" "関数の返り値がスレッドの終了ステータスとして使用される。" #. type: Plain text -#: build/C/man3/pthread_exit.3:88 +#: build/C/man3/pthread_exit.3:93 msgid "" "To allow other threads to continue execution, the main thread should " "terminate by calling B() rather than B(3)." @@ -5592,7 +5747,7 @@ msgstr "" "なく B() を呼び出して終了すべきである。" #. type: Plain text -#: build/C/man3/pthread_exit.3:93 +#: build/C/man3/pthread_exit.3:98 msgid "" "The value pointed to by I should not be located on the calling " "thread's stack, since the contents of that stack are undefined after the " @@ -5607,7 +5762,7 @@ msgstr "" #. http://thread.gmane.org/gmane.linux.kernel/611611 #. http://marc.info/?l=linux-kernel&m=122525468300823&w=2 #. type: Plain text -#: build/C/man3/pthread_exit.3:105 +#: build/C/man3/pthread_exit.3:110 msgid "" "Currently, there are limitations in the kernel implementation logic for " "B(2)ing on a stopped thread group with a dead thread group leader. " @@ -5624,7 +5779,7 @@ msgstr "" "場合がある。" #. type: Plain text -#: build/C/man3/pthread_exit.3:109 +#: build/C/man3/pthread_exit.3:114 msgid "B(3), B(3), B(7)" msgstr "B(3), B(3), B(7)" @@ -5634,6 +5789,12 @@ msgstr "B(3), B(3), B(7)" msgid "PTHREAD_GETATTR_NP" msgstr "PTHREAD_GETATTR_NP" +#. type: TH +#: build/C/man3/pthread_getattr_np.3:26 build/C/man3/pthread_tryjoin_np.3:26 +#, no-wrap +msgid "2010-09-10" +msgstr "2010-09-10" + #. type: Plain text #: build/C/man3/pthread_getattr_np.3:29 msgid "pthread_getattr_np - get attributes of created thread" @@ -5741,8 +5902,8 @@ msgstr "メモリが十分になかった。" msgid "" "In addition, if I refers to the main thread, then " "B() can fail because of errors from various underlying " -"calls: B(3), if I can't be opened; and B" -"(2), if the B resource limit is not supported." +"calls: B(3), if I can't be opened; and " +"B(2), if the B resource limit is not supported." msgstr "" "さらに、 I がメインスレッドを参照している場合には、\n" "B() は内部で行われる様々な呼び出しでの\n" @@ -5758,7 +5919,7 @@ msgstr "この関数は glibc バージョン 2.2.3 以降で利用できる。" #. type: Plain text #: build/C/man3/pthread_getattr_np.3:101 -#: build/C/man3/pthread_kill_other_threads_np.3:50 +#: build/C/man3/pthread_kill_other_threads_np.3:55 msgid "" "This function is a nonstandard GNU extension; hence the suffix \"_np" "\" (nonportable) in the name." @@ -6296,12 +6457,6 @@ msgstr "" msgid "PTHREAD_GETCPUCLOCKID" msgstr "PTHREAD_GETCPUCLOCKID" -#. type: TH -#: build/C/man3/pthread_getcpuclockid.3:26 -#, no-wrap -msgid "2009-02-08" -msgstr "2009-02-08" - #. type: Plain text #: build/C/man3/pthread_getcpuclockid.3:29 msgid "pthread_getcpuclockid - retrieve ID of a thread's CPU time clock" @@ -6356,7 +6511,12 @@ msgid "This function is available in glibc since version 2.2." msgstr "この関数は glibc バージョン 2.2 以降で利用できる。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:78 +#: build/C/man3/pthread_getcpuclockid.3:70 +msgid "The B() function is thread-safe." +msgstr "B() 関数はスレッドセーフである。" + +#. type: Plain text +#: build/C/man3/pthread_getcpuclockid.3:83 msgid "" "When I refers to the calling thread, this function returns an " "identifier that refers to the same clock manipulated by B(2) " @@ -6368,7 +6528,7 @@ msgstr "" "を参照する ID が返される。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:84 +#: build/C/man3/pthread_getcpuclockid.3:89 msgid "" "The program below creates a thread and then uses B(2) to " "retrieve the total process CPU time, and the per-thread CPU time consumed by " @@ -6381,7 +6541,7 @@ msgstr "" "下記のシェルのセッションは実行例である。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:93 +#: build/C/man3/pthread_getcpuclockid.3:99 #, no-wrap msgid "" "$ B<./a.out>\n" @@ -6401,13 +6561,13 @@ msgstr "" "Subthread CPU time: 0.992\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:99 +#: build/C/man3/pthread_getcpuclockid.3:105 #, no-wrap msgid "/* Link with \"-lrt\" */\n" msgstr "/* \"-lrt\" でリンクする */\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:107 +#: build/C/man3/pthread_getcpuclockid.3:113 #, no-wrap msgid "" "#include Etime.hE\n" @@ -6427,7 +6587,7 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:121 +#: build/C/man3/pthread_getcpuclockid.3:127 #, no-wrap msgid "" "static void *\n" @@ -6447,7 +6607,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:126 +#: build/C/man3/pthread_getcpuclockid.3:132 #, no-wrap msgid "" "static void\n" @@ -6461,7 +6621,7 @@ msgstr "" " struct timespec ts;\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:132 +#: build/C/man3/pthread_getcpuclockid.3:138 #, no-wrap msgid "" " printf(\"%s\", msg);\n" @@ -6477,7 +6637,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:139 +#: build/C/man3/pthread_getcpuclockid.3:145 #, no-wrap msgid "" "int\n" @@ -6495,7 +6655,7 @@ msgstr "" " int j, s;\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:143 +#: build/C/man3/pthread_getcpuclockid.3:149 #, no-wrap msgid "" " s = pthread_create(&thread, NULL, thread_start, NULL);\n" @@ -6507,7 +6667,7 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:146 +#: build/C/man3/pthread_getcpuclockid.3:152 #, no-wrap msgid "" " printf(\"Main thread sleeping\\en\");\n" @@ -6517,7 +6677,7 @@ msgstr "" " sleep(1);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:150 +#: build/C/man3/pthread_getcpuclockid.3:156 #, no-wrap msgid "" " printf(\"Main thread consuming some CPU time...\\en\");\n" @@ -6529,13 +6689,13 @@ msgstr "" " getppid();\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:152 +#: build/C/man3/pthread_getcpuclockid.3:158 #, no-wrap msgid " pclock(\"Process total CPU time: \", CLOCK_PROCESS_CPUTIME_ID);\n" msgstr " pclock(\"Process total CPU time: \", CLOCK_PROCESS_CPUTIME_ID);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:157 +#: build/C/man3/pthread_getcpuclockid.3:163 #, no-wrap msgid "" " s = pthread_getcpuclockid(pthread_self(), &cid);\n" @@ -6549,7 +6709,7 @@ msgstr "" " pclock(\"Main thread CPU time: \", cid);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:160 +#: build/C/man3/pthread_getcpuclockid.3:166 #, no-wrap msgid "" " /* The preceding 4 lines of code could have been replaced by:\n" @@ -6559,7 +6719,7 @@ msgstr "" " pclock(\"Main thread CPU time: \", CLOCK_THREAD_CPUTIME_ID); */\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:165 +#: build/C/man3/pthread_getcpuclockid.3:171 #, no-wrap msgid "" " s = pthread_getcpuclockid(thread, &cid);\n" @@ -6573,7 +6733,7 @@ msgstr "" " pclock(\"Subthread CPU time: 1 \", cid);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:168 +#: build/C/man3/pthread_getcpuclockid.3:174 #, no-wrap msgid "" " exit(EXIT_SUCCESS); /* Terminates both threads */\n" @@ -6583,7 +6743,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:177 +#: build/C/man3/pthread_getcpuclockid.3:183 msgid "" "B(2), B(2), B(2), " "B(3), B(3), B(7), B