X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=po4a%2Fpthread%2Fpo%2Fja.po;h=eb6e792cf8f6ad1c2a26970dd086dbd048d75d9e;hb=915084a62abaadefd48dd30c552ab9ef77de5ebd;hp=7314dbe3e311da5a054253d7a1dd9c6f6148ad03;hpb=69ab88104b328c9068747817e00fb85412a85cc0;p=linuxjm%2FLDP_man-pages.git diff --git a/po4a/pthread/po/ja.po b/po4a/pthread/po/ja.po index 7314dbe3..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: 2012-05-01 04:22+0900\n" -"PO-Revision-Date: 2012-05-04 03:04+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" @@ -16,202 +16,207 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" #. type: TH -#: build/C/man2/getcontext.2:23 +#: build/C/man3/getcontext.3:25 #, no-wrap msgid "GETCONTEXT" msgstr "GETCONTEXT" #. type: TH -#: build/C/man2/getcontext.2:23 +#: 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/man2/getcontext.2:23 build/C/man3/pthread_attr_init.3:24 -#: build/C/man3/pthread_attr_setaffinity_np.3:24 -#: build/C/man3/pthread_attr_setdetachstate.3:24 -#: build/C/man3/pthread_attr_setguardsize.3:24 -#: build/C/man3/pthread_attr_setinheritsched.3:24 -#: build/C/man3/pthread_attr_setschedparam.3:24 -#: build/C/man3/pthread_attr_setschedpolicy.3:24 -#: build/C/man3/pthread_attr_setscope.3:24 -#: build/C/man3/pthread_attr_setstack.3:24 -#: build/C/man3/pthread_attr_setstackaddr.3:24 -#: build/C/man3/pthread_attr_setstacksize.3:24 -#: build/C/man3/pthread_cancel.3:24 build/C/man3/pthread_cleanup_push.3:24 -#: build/C/man3/pthread_cleanup_push_defer_np.3:24 -#: build/C/man3/pthread_create.3:24 build/C/man3/pthread_detach.3:24 -#: build/C/man3/pthread_equal.3:24 build/C/man3/pthread_exit.3:24 -#: build/C/man3/pthread_getattr_np.3:24 -#: build/C/man3/pthread_getcpuclockid.3:24 build/C/man3/pthread_join.3:24 -#: build/C/man3/pthread_kill.3:24 -#: build/C/man3/pthread_kill_other_threads_np.3:24 -#: build/C/man3/pthread_self.3:24 build/C/man3/pthread_setaffinity_np.3:24 -#: build/C/man3/pthread_setcancelstate.3:24 -#: build/C/man3/pthread_setconcurrency.3:23 -#: build/C/man3/pthread_setschedparam.3:24 -#: build/C/man3/pthread_setschedprio.3:24 build/C/man3/pthread_sigmask.3:24 -#: build/C/man3/pthread_sigqueue.3:23 build/C/man3/pthread_testcancel.3:24 -#: build/C/man3/pthread_tryjoin_np.3:24 build/C/man3/pthread_yield.3:23 -#: build/C/man7/pthreads.7:24 +#: build/C/man3/getcontext.3:25 build/C/man3/pthread_attr_init.3:26 +#: 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_setinheritsched.3:26 +#: build/C/man3/pthread_attr_setschedparam.3:26 +#: build/C/man3/pthread_attr_setschedpolicy.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_cancel.3:26 build/C/man3/pthread_cleanup_push.3:26 +#: build/C/man3/pthread_cleanup_push_defer_np.3:26 +#: build/C/man3/pthread_create.3:26 build/C/man3/pthread_detach.3:26 +#: build/C/man3/pthread_equal.3:26 build/C/man3/pthread_exit.3:26 +#: build/C/man3/pthread_getattr_np.3:26 +#: build/C/man3/pthread_getcpuclockid.3:26 build/C/man3/pthread_join.3:26 +#: build/C/man3/pthread_kill.3:26 +#: build/C/man3/pthread_kill_other_threads_np.3:26 +#: build/C/man3/pthread_self.3:26 build/C/man3/pthread_setaffinity_np.3:26 +#: build/C/man3/pthread_setcancelstate.3:26 +#: build/C/man3/pthread_setconcurrency.3:25 +#: 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_sigmask.3:26 +#: build/C/man3/pthread_sigqueue.3:25 build/C/man3/pthread_testcancel.3:26 +#: build/C/man3/pthread_tryjoin_np.3:26 build/C/man3/pthread_yield.3:25 +#: build/C/man7/pthreads.7:26 #, no-wrap msgid "Linux" msgstr "Linux" #. type: TH -#: build/C/man2/getcontext.2:23 build/C/man3/makecontext.3:25 -#: build/C/man3/pthread_attr_init.3:24 -#: build/C/man3/pthread_attr_setaffinity_np.3:24 -#: build/C/man3/pthread_attr_setdetachstate.3:24 -#: build/C/man3/pthread_attr_setguardsize.3:24 -#: build/C/man3/pthread_attr_setinheritsched.3:24 -#: build/C/man3/pthread_attr_setschedparam.3:24 -#: build/C/man3/pthread_attr_setschedpolicy.3:24 -#: build/C/man3/pthread_attr_setscope.3:24 -#: build/C/man3/pthread_attr_setstack.3:24 -#: build/C/man3/pthread_attr_setstackaddr.3:24 -#: build/C/man3/pthread_attr_setstacksize.3:24 -#: build/C/man3/pthread_cancel.3:24 build/C/man3/pthread_cleanup_push.3:24 -#: build/C/man3/pthread_cleanup_push_defer_np.3:24 -#: build/C/man3/pthread_create.3:24 build/C/man3/pthread_detach.3:24 -#: build/C/man3/pthread_equal.3:24 build/C/man3/pthread_exit.3:24 -#: build/C/man3/pthread_getattr_np.3:24 -#: build/C/man3/pthread_getcpuclockid.3:24 build/C/man3/pthread_join.3:24 -#: build/C/man3/pthread_kill.3:24 -#: build/C/man3/pthread_kill_other_threads_np.3:24 -#: build/C/man3/pthread_self.3:24 build/C/man3/pthread_setaffinity_np.3:24 -#: build/C/man3/pthread_setcancelstate.3:24 -#: build/C/man3/pthread_setconcurrency.3:23 -#: build/C/man3/pthread_setschedparam.3:24 -#: build/C/man3/pthread_setschedprio.3:24 build/C/man3/pthread_sigmask.3:24 -#: build/C/man3/pthread_sigqueue.3:23 build/C/man3/pthread_testcancel.3:24 -#: build/C/man3/pthread_tryjoin_np.3:24 build/C/man3/pthread_yield.3:23 -#: build/C/man7/pthreads.7:24 +#: build/C/man3/getcontext.3:25 build/C/man3/makecontext.3:28 +#: build/C/man3/pthread_attr_init.3:26 +#: 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_setinheritsched.3:26 +#: build/C/man3/pthread_attr_setschedparam.3:26 +#: build/C/man3/pthread_attr_setschedpolicy.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_cancel.3:26 build/C/man3/pthread_cleanup_push.3:26 +#: build/C/man3/pthread_cleanup_push_defer_np.3:26 +#: build/C/man3/pthread_create.3:26 build/C/man3/pthread_detach.3:26 +#: build/C/man3/pthread_equal.3:26 build/C/man3/pthread_exit.3:26 +#: build/C/man3/pthread_getattr_np.3:26 +#: build/C/man3/pthread_getcpuclockid.3:26 build/C/man3/pthread_join.3:26 +#: build/C/man3/pthread_kill.3:26 +#: build/C/man3/pthread_kill_other_threads_np.3:26 +#: build/C/man3/pthread_self.3:26 build/C/man3/pthread_setaffinity_np.3:26 +#: build/C/man3/pthread_setcancelstate.3:26 +#: build/C/man3/pthread_setconcurrency.3:25 +#: 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_sigmask.3:26 +#: build/C/man3/pthread_sigqueue.3:25 build/C/man3/pthread_testcancel.3:26 +#: build/C/man3/pthread_tryjoin_np.3:26 build/C/man3/pthread_yield.3:25 +#: build/C/man7/pthreads.7:26 #, no-wrap msgid "Linux Programmer's Manual" msgstr "Linux Programmer's Manual" #. type: SH -#: build/C/man2/getcontext.2:24 build/C/man3/makecontext.3:26 -#: build/C/man3/pthread_attr_init.3:25 -#: build/C/man3/pthread_attr_setaffinity_np.3:25 -#: build/C/man3/pthread_attr_setdetachstate.3:25 -#: build/C/man3/pthread_attr_setguardsize.3:25 -#: build/C/man3/pthread_attr_setinheritsched.3:25 -#: build/C/man3/pthread_attr_setschedparam.3:25 -#: build/C/man3/pthread_attr_setschedpolicy.3:25 -#: build/C/man3/pthread_attr_setscope.3:25 -#: build/C/man3/pthread_attr_setstack.3:25 -#: build/C/man3/pthread_attr_setstackaddr.3:25 -#: build/C/man3/pthread_attr_setstacksize.3:25 -#: build/C/man3/pthread_cancel.3:25 build/C/man3/pthread_cleanup_push.3:25 -#: build/C/man3/pthread_cleanup_push_defer_np.3:25 -#: build/C/man3/pthread_create.3:25 build/C/man3/pthread_detach.3:25 -#: build/C/man3/pthread_equal.3:25 build/C/man3/pthread_exit.3:25 -#: build/C/man3/pthread_getattr_np.3:25 -#: build/C/man3/pthread_getcpuclockid.3:25 build/C/man3/pthread_join.3:25 -#: build/C/man3/pthread_kill.3:25 -#: build/C/man3/pthread_kill_other_threads_np.3:25 -#: build/C/man3/pthread_self.3:25 build/C/man3/pthread_setaffinity_np.3:25 -#: build/C/man3/pthread_setcancelstate.3:25 -#: build/C/man3/pthread_setconcurrency.3:24 -#: build/C/man3/pthread_setschedparam.3:25 -#: build/C/man3/pthread_setschedprio.3:25 build/C/man3/pthread_sigmask.3:25 -#: build/C/man3/pthread_sigqueue.3:24 build/C/man3/pthread_testcancel.3:25 -#: build/C/man3/pthread_tryjoin_np.3:25 build/C/man3/pthread_yield.3:24 -#: build/C/man7/pthreads.7:25 +#: build/C/man3/getcontext.3:26 build/C/man3/makecontext.3:29 +#: build/C/man3/pthread_attr_init.3:27 +#: build/C/man3/pthread_attr_setaffinity_np.3:27 +#: build/C/man3/pthread_attr_setdetachstate.3:27 +#: build/C/man3/pthread_attr_setguardsize.3:27 +#: build/C/man3/pthread_attr_setinheritsched.3:27 +#: build/C/man3/pthread_attr_setschedparam.3:27 +#: build/C/man3/pthread_attr_setschedpolicy.3:27 +#: build/C/man3/pthread_attr_setscope.3:27 +#: build/C/man3/pthread_attr_setstack.3:27 +#: build/C/man3/pthread_attr_setstackaddr.3:27 +#: build/C/man3/pthread_attr_setstacksize.3:27 +#: build/C/man3/pthread_cancel.3:27 build/C/man3/pthread_cleanup_push.3:27 +#: build/C/man3/pthread_cleanup_push_defer_np.3:27 +#: build/C/man3/pthread_create.3:27 build/C/man3/pthread_detach.3:27 +#: build/C/man3/pthread_equal.3:27 build/C/man3/pthread_exit.3:27 +#: build/C/man3/pthread_getattr_np.3:27 +#: build/C/man3/pthread_getcpuclockid.3:27 build/C/man3/pthread_join.3:27 +#: build/C/man3/pthread_kill.3:27 +#: build/C/man3/pthread_kill_other_threads_np.3:27 +#: build/C/man3/pthread_self.3:27 build/C/man3/pthread_setaffinity_np.3:27 +#: build/C/man3/pthread_setcancelstate.3:27 +#: build/C/man3/pthread_setconcurrency.3:26 +#: build/C/man3/pthread_setname_np.3:27 +#: build/C/man3/pthread_setschedparam.3:27 +#: build/C/man3/pthread_setschedprio.3:27 build/C/man3/pthread_sigmask.3:27 +#: build/C/man3/pthread_sigqueue.3:26 build/C/man3/pthread_testcancel.3:27 +#: build/C/man3/pthread_tryjoin_np.3:27 build/C/man3/pthread_yield.3:26 +#: build/C/man7/pthreads.7:27 #, no-wrap msgid "NAME" msgstr "名前" #. type: Plain text -#: build/C/man2/getcontext.2:26 +#: build/C/man3/getcontext.3:28 msgid "getcontext, setcontext - get or set the user context" msgstr "getcontext, setcontext - ユーザコンテキストを取得/設定する" #. type: SH -#: build/C/man2/getcontext.2:26 build/C/man3/makecontext.3:28 -#: build/C/man3/pthread_attr_init.3:28 -#: build/C/man3/pthread_attr_setaffinity_np.3:28 -#: build/C/man3/pthread_attr_setdetachstate.3:28 -#: build/C/man3/pthread_attr_setguardsize.3:28 -#: build/C/man3/pthread_attr_setinheritsched.3:28 -#: build/C/man3/pthread_attr_setschedparam.3:28 -#: build/C/man3/pthread_attr_setschedpolicy.3:28 -#: build/C/man3/pthread_attr_setscope.3:28 -#: build/C/man3/pthread_attr_setstack.3:28 -#: build/C/man3/pthread_attr_setstackaddr.3:28 -#: build/C/man3/pthread_attr_setstacksize.3:28 -#: build/C/man3/pthread_cancel.3:27 build/C/man3/pthread_cleanup_push.3:28 -#: build/C/man3/pthread_cleanup_push_defer_np.3:28 -#: build/C/man3/pthread_create.3:27 build/C/man3/pthread_detach.3:27 -#: build/C/man3/pthread_equal.3:27 build/C/man3/pthread_exit.3:27 -#: build/C/man3/pthread_getattr_np.3:27 -#: build/C/man3/pthread_getcpuclockid.3:27 build/C/man3/pthread_join.3:27 -#: build/C/man3/pthread_kill.3:27 -#: build/C/man3/pthread_kill_other_threads_np.3:27 -#: build/C/man3/pthread_self.3:27 build/C/man3/pthread_setaffinity_np.3:28 -#: build/C/man3/pthread_setcancelstate.3:28 -#: build/C/man3/pthread_setconcurrency.3:27 -#: build/C/man3/pthread_setschedparam.3:28 -#: build/C/man3/pthread_setschedprio.3:27 build/C/man3/pthread_sigmask.3:27 -#: build/C/man3/pthread_sigqueue.3:26 build/C/man3/pthread_testcancel.3:27 -#: build/C/man3/pthread_tryjoin_np.3:28 build/C/man3/pthread_yield.3:26 +#: build/C/man3/getcontext.3:28 build/C/man3/makecontext.3:31 +#: build/C/man3/pthread_attr_init.3:30 +#: build/C/man3/pthread_attr_setaffinity_np.3:30 +#: build/C/man3/pthread_attr_setdetachstate.3:30 +#: build/C/man3/pthread_attr_setguardsize.3:30 +#: build/C/man3/pthread_attr_setinheritsched.3:30 +#: build/C/man3/pthread_attr_setschedparam.3:30 +#: build/C/man3/pthread_attr_setschedpolicy.3:30 +#: build/C/man3/pthread_attr_setscope.3:30 +#: build/C/man3/pthread_attr_setstack.3:30 +#: build/C/man3/pthread_attr_setstackaddr.3:30 +#: build/C/man3/pthread_attr_setstacksize.3:30 +#: build/C/man3/pthread_cancel.3:29 build/C/man3/pthread_cleanup_push.3:30 +#: build/C/man3/pthread_cleanup_push_defer_np.3:30 +#: build/C/man3/pthread_create.3:29 build/C/man3/pthread_detach.3:29 +#: build/C/man3/pthread_equal.3:29 build/C/man3/pthread_exit.3:29 +#: build/C/man3/pthread_getattr_np.3:29 +#: build/C/man3/pthread_getcpuclockid.3:29 build/C/man3/pthread_join.3:29 +#: build/C/man3/pthread_kill.3:29 +#: build/C/man3/pthread_kill_other_threads_np.3:29 +#: build/C/man3/pthread_self.3:29 build/C/man3/pthread_setaffinity_np.3:30 +#: build/C/man3/pthread_setcancelstate.3:30 +#: build/C/man3/pthread_setconcurrency.3:29 +#: build/C/man3/pthread_setname_np.3:29 +#: build/C/man3/pthread_setschedparam.3:30 +#: build/C/man3/pthread_setschedprio.3:29 build/C/man3/pthread_sigmask.3:29 +#: build/C/man3/pthread_sigqueue.3:28 build/C/man3/pthread_testcancel.3:29 +#: build/C/man3/pthread_tryjoin_np.3:30 build/C/man3/pthread_yield.3:28 #, no-wrap msgid "SYNOPSIS" msgstr "書式" #. type: Plain text -#: build/C/man2/getcontext.2:28 build/C/man3/makecontext.3:30 +#: build/C/man3/getcontext.3:30 build/C/man3/makecontext.3:33 msgid "B<#include Eucontext.hE>" msgstr "B<#include Eucontext.hE>" #. type: Plain text -#: build/C/man2/getcontext.2:30 +#: build/C/man3/getcontext.3:32 msgid "BIB<);>" msgstr "BIB<);>" #. type: Plain text -#: build/C/man2/getcontext.2:32 +#: build/C/man3/getcontext.3:34 msgid "BIB<);>" msgstr "BIB<);>" #. type: SH -#: build/C/man2/getcontext.2:32 build/C/man3/makecontext.3:35 -#: build/C/man3/pthread_attr_init.3:37 -#: build/C/man3/pthread_attr_setaffinity_np.3:40 -#: build/C/man3/pthread_attr_setdetachstate.3:39 -#: build/C/man3/pthread_attr_setguardsize.3:39 -#: build/C/man3/pthread_attr_setinheritsched.3:39 -#: build/C/man3/pthread_attr_setschedparam.3:39 -#: build/C/man3/pthread_attr_setschedpolicy.3:39 -#: build/C/man3/pthread_attr_setscope.3:39 -#: build/C/man3/pthread_attr_setstack.3:52 -#: build/C/man3/pthread_attr_setstackaddr.3:39 -#: build/C/man3/pthread_attr_setstacksize.3:39 -#: build/C/man3/pthread_cancel.3:35 build/C/man3/pthread_cleanup_push.3:38 -#: build/C/man3/pthread_cleanup_push_defer_np.3:38 -#: build/C/man3/pthread_create.3:36 build/C/man3/pthread_detach.3:35 -#: build/C/man3/pthread_equal.3:35 build/C/man3/pthread_exit.3:35 -#: build/C/man3/pthread_getattr_np.3:36 -#: build/C/man3/pthread_getcpuclockid.3:36 build/C/man3/pthread_join.3:35 -#: build/C/man3/pthread_kill.3:35 -#: build/C/man3/pthread_kill_other_threads_np.3:33 -#: build/C/man3/pthread_self.3:35 build/C/man3/pthread_setaffinity_np.3:40 -#: build/C/man3/pthread_setcancelstate.3:37 -#: build/C/man3/pthread_setconcurrency.3:36 -#: build/C/man3/pthread_setschedparam.3:39 -#: build/C/man3/pthread_setschedprio.3:35 build/C/man3/pthread_sigmask.3:36 -#: build/C/man3/pthread_sigqueue.3:43 build/C/man3/pthread_testcancel.3:35 -#: build/C/man3/pthread_tryjoin_np.3:40 build/C/man3/pthread_yield.3:34 -#: build/C/man7/pthreads.7:27 +#: build/C/man3/getcontext.3:34 build/C/man3/makecontext.3:38 +#: build/C/man3/pthread_attr_init.3:39 +#: build/C/man3/pthread_attr_setaffinity_np.3:42 +#: build/C/man3/pthread_attr_setdetachstate.3:41 +#: build/C/man3/pthread_attr_setguardsize.3:41 +#: build/C/man3/pthread_attr_setinheritsched.3:41 +#: build/C/man3/pthread_attr_setschedparam.3:41 +#: build/C/man3/pthread_attr_setschedpolicy.3:41 +#: build/C/man3/pthread_attr_setscope.3:41 +#: build/C/man3/pthread_attr_setstack.3:54 +#: 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: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: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: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 msgid "DESCRIPTION" msgstr "説明" #. type: Plain text -#: build/C/man2/getcontext.2:44 +#: 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 " @@ -226,7 +231,7 @@ msgstr "" "ようになっている。" #. type: Plain text -#: build/C/man2/getcontext.2:48 +#: 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:" @@ -235,7 +240,7 @@ msgstr "" "構造体で、少なくとも以下の 4 つのフィールドを持つ。" #. type: Plain text -#: build/C/man2/getcontext.2:58 +#: build/C/man3/getcontext.3:67 #, no-wrap msgid "" "typedef struct ucontext {\n" @@ -255,7 +260,7 @@ msgstr "" "} ucontext_t;\n" #. type: Plain text -#: build/C/man2/getcontext.2:75 +#: 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 " @@ -276,7 +281,7 @@ msgstr "" "ンレジスタが格納される。" #. type: Plain text -#: build/C/man2/getcontext.2:80 +#: build/C/man3/getcontext.3:101 msgid "" "The function B() initializes the structure pointed at by I " "to the currently active context." @@ -285,7 +290,7 @@ msgstr "" "ンテキストに初期化する。" #. type: Plain text -#: build/C/man2/getcontext.2:92 +#: 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 " @@ -293,12 +298,12 @@ msgid "" "third argument to a signal handler." msgstr "" "B() 関数は、ポインタ I が指すユーザコンテキストをリストアす" -"る。 呼び出しに成功すると返らない。 このコンテキストは、以前に B" -"() または B(3) で得られたものか、 あるいはシグナルの第三引数と" -"して与えられたものになる。" +"る。 呼び出しに成功すると返らない。 このコンテキストは、以前に " +"B() または B(3) で得られたものか、 あるいはシグナ" +"ルの第三引数として与えられたものになる。" #. type: Plain text -#: build/C/man2/getcontext.2:96 +#: 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." @@ -307,7 +312,7 @@ msgstr "" "プログラムはこの呼び出しから返った直後からのように実行を継続する。" #. type: Plain text -#: build/C/man2/getcontext.2:107 +#: 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 " @@ -318,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/man2/getcontext.2:114 +#: 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 " @@ -337,37 +343,38 @@ msgstr "" "は定義されていない」である。" #. type: SH -#: build/C/man2/getcontext.2:114 build/C/man3/makecontext.3:81 -#: build/C/man3/pthread_attr_init.3:66 -#: build/C/man3/pthread_attr_setaffinity_np.3:74 -#: build/C/man3/pthread_attr_setdetachstate.3:75 -#: build/C/man3/pthread_attr_setguardsize.3:88 -#: build/C/man3/pthread_attr_setinheritsched.3:82 -#: build/C/man3/pthread_attr_setschedparam.3:72 -#: build/C/man3/pthread_attr_setschedpolicy.3:70 -#: build/C/man3/pthread_attr_setscope.3:89 -#: build/C/man3/pthread_attr_setstack.3:83 -#: build/C/man3/pthread_attr_setstackaddr.3:72 -#: build/C/man3/pthread_attr_setstacksize.3:59 -#: build/C/man3/pthread_cancel.3:107 build/C/man3/pthread_cleanup_push.3:117 -#: build/C/man3/pthread_create.3:113 build/C/man3/pthread_detach.3:47 -#: build/C/man3/pthread_equal.3:39 build/C/man3/pthread_exit.3:69 -#: build/C/man3/pthread_getattr_np.3:71 -#: build/C/man3/pthread_getcpuclockid.3:44 build/C/man3/pthread_join.3:68 -#: build/C/man3/pthread_kill.3:50 build/C/man3/pthread_self.3:44 -#: build/C/man3/pthread_setaffinity_np.3:75 -#: build/C/man3/pthread_setcancelstate.3:90 -#: build/C/man3/pthread_setconcurrency.3:54 -#: build/C/man3/pthread_setschedparam.3:102 -#: build/C/man3/pthread_setschedprio.3:51 build/C/man3/pthread_sigmask.3:47 -#: build/C/man3/pthread_sigqueue.3:63 build/C/man3/pthread_testcancel.3:48 -#: build/C/man3/pthread_tryjoin_np.3:83 build/C/man3/pthread_yield.3:41 +#: 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: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: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: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: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/man2/getcontext.2:122 +#: 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." @@ -376,121 +383,179 @@ msgstr "" "敗すると、両者とも -1 を返し、I をエラーに応じて設定する。" #. type: SH -#: build/C/man2/getcontext.2:122 build/C/man3/makecontext.3:93 -#: build/C/man3/pthread_attr_init.3:69 -#: build/C/man3/pthread_attr_setaffinity_np.3:77 -#: build/C/man3/pthread_attr_setdetachstate.3:78 -#: build/C/man3/pthread_attr_setguardsize.3:91 -#: build/C/man3/pthread_attr_setinheritsched.3:85 -#: build/C/man3/pthread_attr_setschedparam.3:75 -#: build/C/man3/pthread_attr_setschedpolicy.3:73 -#: build/C/man3/pthread_attr_setscope.3:92 -#: build/C/man3/pthread_attr_setstack.3:86 -#: build/C/man3/pthread_attr_setstackaddr.3:75 -#: build/C/man3/pthread_attr_setstacksize.3:62 -#: build/C/man3/pthread_cancel.3:112 build/C/man3/pthread_cleanup_push.3:119 -#: build/C/man3/pthread_create.3:120 build/C/man3/pthread_detach.3:52 -#: build/C/man3/pthread_equal.3:43 build/C/man3/pthread_exit.3:71 -#: build/C/man3/pthread_getattr_np.3:74 -#: build/C/man3/pthread_getcpuclockid.3:47 build/C/man3/pthread_join.3:73 -#: build/C/man3/pthread_kill.3:55 build/C/man3/pthread_self.3:46 -#: build/C/man3/pthread_setaffinity_np.3:78 -#: build/C/man3/pthread_setcancelstate.3:93 -#: build/C/man3/pthread_setconcurrency.3:66 -#: build/C/man3/pthread_setschedparam.3:110 -#: build/C/man3/pthread_setschedprio.3:59 build/C/man3/pthread_sigmask.3:52 -#: build/C/man3/pthread_sigqueue.3:68 build/C/man3/pthread_testcancel.3:52 -#: build/C/man3/pthread_tryjoin_np.3:87 build/C/man3/pthread_yield.3:46 +#: 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: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: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: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: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/man2/getcontext.2:124 +#: build/C/man3/getcontext.3:153 msgid "None defined." msgstr "定義されていない。" #. type: SH -#: build/C/man2/getcontext.2:124 build/C/man3/makecontext.3:102 -#: build/C/man3/pthread_attr_init.3:77 -#: build/C/man3/pthread_attr_setaffinity_np.3:106 -#: build/C/man3/pthread_attr_setdetachstate.3:85 -#: build/C/man3/pthread_attr_setguardsize.3:104 -#: build/C/man3/pthread_attr_setinheritsched.3:99 -#: build/C/man3/pthread_attr_setschedparam.3:87 -#: build/C/man3/pthread_attr_setschedpolicy.3:87 -#: build/C/man3/pthread_attr_setscope.3:105 -#: build/C/man3/pthread_attr_setstack.3:110 -#: build/C/man3/pthread_attr_setstackaddr.3:81 -#: build/C/man3/pthread_attr_setstacksize.3:81 -#: build/C/man3/pthread_cancel.3:120 build/C/man3/pthread_cleanup_push.3:123 -#: build/C/man3/pthread_cleanup_push_defer_np.3:99 -#: build/C/man3/pthread_create.3:144 build/C/man3/pthread_detach.3:62 -#: build/C/man3/pthread_equal.3:45 build/C/man3/pthread_exit.3:73 -#: build/C/man3/pthread_getattr_np.3:96 -#: build/C/man3/pthread_getcpuclockid.3:63 build/C/man3/pthread_join.3:96 -#: build/C/man3/pthread_kill.3:64 -#: build/C/man3/pthread_kill_other_threads_np.3:45 -#: build/C/man3/pthread_self.3:48 build/C/man3/pthread_setaffinity_np.3:119 -#: build/C/man3/pthread_setcancelstate.3:111 -#: build/C/man3/pthread_setconcurrency.3:81 -#: build/C/man3/pthread_setschedparam.3:139 -#: build/C/man3/pthread_setschedprio.3:81 build/C/man3/pthread_sigmask.3:55 -#: build/C/man3/pthread_sigqueue.3:91 build/C/man3/pthread_testcancel.3:56 -#: build/C/man3/pthread_tryjoin_np.3:110 build/C/man3/pthread_yield.3:50 +#: 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: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_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_setschedparam.3:141 +#: 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/man2/getcontext.2:130 +#: 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/man2/getcontext.2:130 build/C/man3/makecontext.3:110 -#: build/C/man3/pthread_attr_init.3:79 -#: build/C/man3/pthread_attr_setaffinity_np.3:109 -#: build/C/man3/pthread_attr_setdetachstate.3:87 -#: build/C/man3/pthread_attr_setguardsize.3:106 -#: build/C/man3/pthread_attr_setschedparam.3:89 -#: build/C/man3/pthread_attr_setscope.3:107 -#: build/C/man3/pthread_attr_setstack.3:112 -#: build/C/man3/pthread_attr_setstackaddr.3:84 -#: 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_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_getcpuclockid.3:65 build/C/man3/pthread_join.3:98 -#: build/C/man3/pthread_kill.3:66 -#: build/C/man3/pthread_kill_other_threads_np.3:48 -#: build/C/man3/pthread_self.3:50 build/C/man3/pthread_setaffinity_np.3:122 -#: build/C/man3/pthread_setcancelstate.3:113 -#: build/C/man3/pthread_setconcurrency.3:83 -#: 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_yield.3:56 +#: 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: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: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/man2/getcontext.2:147 +#: 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) 機構であった。 こ" "れらにはシグナルコンテキストの取り扱いが定義されていなかったので、 次の段階で" @@ -502,7 +567,7 @@ msgstr "" "くれない。" #. type: Plain text -#: build/C/man2/getcontext.2:158 +#: 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 " @@ -510,45 +575,46 @@ msgid "" "B(3) or B() instead." msgstr "" "シグナルが発生すると、 現在のユーザコンテキストは保存され、 シグナルハンドラ" -"用のコンテキストがカーネルによって生成される。 今後はハンドラに B" -"(3) を使わせないこと: この関数のコンテキスト下での動作は定義されていない。 " -"代わりに B(3) か B() を使うこと。" +"用のコンテキストがカーネルによって生成される。 今後はハンドラに " +"B(3) を使わせないこと: この関数のコンテキスト下での動作は定義されて" +"いない。 代わりに B(3) か B() を使うこと。" #. type: SH -#: build/C/man2/getcontext.2:158 build/C/man3/makecontext.3:217 -#: build/C/man3/pthread_attr_init.3:295 -#: build/C/man3/pthread_attr_setaffinity_np.3:116 -#: build/C/man3/pthread_attr_setdetachstate.3:109 -#: build/C/man3/pthread_attr_setguardsize.3:156 -#: build/C/man3/pthread_attr_setinheritsched.3:120 -#: build/C/man3/pthread_attr_setschedparam.3:96 -#: build/C/man3/pthread_attr_setschedpolicy.3:92 -#: build/C/man3/pthread_attr_setscope.3:118 -#: build/C/man3/pthread_attr_setstack.3:154 -#: build/C/man3/pthread_attr_setstackaddr.3:108 -#: build/C/man3/pthread_attr_setstacksize.3:109 -#: build/C/man3/pthread_cancel.3:221 build/C/man3/pthread_cleanup_push.3:309 -#: build/C/man3/pthread_cleanup_push_defer_np.3:102 -#: build/C/man3/pthread_create.3:367 build/C/man3/pthread_detach.3:95 -#: build/C/man3/pthread_equal.3:54 build/C/man3/pthread_exit.3:103 -#: build/C/man3/pthread_getattr_np.3:343 -#: build/C/man3/pthread_getcpuclockid.3:167 build/C/man3/pthread_join.3:125 -#: build/C/man3/pthread_kill.3:73 -#: build/C/man3/pthread_kill_other_threads_np.3:64 -#: build/C/man3/pthread_self.3:74 build/C/man3/pthread_setaffinity_np.3:204 -#: build/C/man3/pthread_setcancelstate.3:175 -#: build/C/man3/pthread_setconcurrency.3:98 -#: build/C/man3/pthread_setschedparam.3:429 -#: build/C/man3/pthread_setschedprio.3:89 build/C/man3/pthread_sigmask.3:133 -#: build/C/man3/pthread_sigqueue.3:93 build/C/man3/pthread_testcancel.3:61 -#: build/C/man3/pthread_tryjoin_np.3:133 build/C/man3/pthread_yield.3:59 +#: 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: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: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/man2/getcontext.2:165 +#: build/C/man3/getcontext.3:201 msgid "" "B(2), B(2), B(2), B(3), " "B(3), B(3)" @@ -557,101 +623,114 @@ msgstr "" "B(3), B(3)" #. type: SH -#: build/C/man2/getcontext.2:165 build/C/man3/makecontext.3:223 -#: build/C/man3/pthread_attr_init.3:309 -#: build/C/man3/pthread_attr_setaffinity_np.3:122 -#: build/C/man3/pthread_attr_setdetachstate.3:115 -#: build/C/man3/pthread_attr_setguardsize.3:164 -#: build/C/man3/pthread_attr_setinheritsched.3:129 -#: build/C/man3/pthread_attr_setschedparam.3:106 -#: build/C/man3/pthread_attr_setschedpolicy.3:101 -#: build/C/man3/pthread_attr_setscope.3:126 -#: build/C/man3/pthread_attr_setstack.3:164 -#: build/C/man3/pthread_attr_setstackaddr.3:114 -#: build/C/man3/pthread_attr_setstacksize.3:116 -#: build/C/man3/pthread_cancel.3:231 build/C/man3/pthread_cleanup_push.3:315 -#: build/C/man3/pthread_cleanup_push_defer_np.3:108 -#: build/C/man3/pthread_create.3:378 build/C/man3/pthread_detach.3:102 -#: build/C/man3/pthread_equal.3:58 build/C/man3/pthread_exit.3:107 -#: build/C/man3/pthread_getattr_np.3:357 -#: build/C/man3/pthread_getcpuclockid.3:175 build/C/man3/pthread_join.3:132 -#: build/C/man3/pthread_kill.3:82 -#: build/C/man3/pthread_kill_other_threads_np.3:70 -#: build/C/man3/pthread_self.3:78 build/C/man3/pthread_setaffinity_np.3:212 -#: build/C/man3/pthread_setcancelstate.3:180 -#: build/C/man3/pthread_setconcurrency.3:101 -#: build/C/man3/pthread_setschedparam.3:441 -#: build/C/man3/pthread_setschedprio.3:101 build/C/man3/pthread_sigmask.3:142 -#: build/C/man3/pthread_sigqueue.3:101 build/C/man3/pthread_testcancel.3:66 -#: build/C/man3/pthread_tryjoin_np.3:138 build/C/man3/pthread_yield.3:63 +#: 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:124 +#: build/C/man3/pthread_attr_setguardsize.3:173 +#: 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: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:206 +#: build/C/man3/pthread_setschedparam.3:452 +#: 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/man2/getcontext.2:172 build/C/man3/makecontext.3:230 -#: build/C/man3/pthread_attr_init.3:316 -#: build/C/man3/pthread_attr_setaffinity_np.3:129 -#: build/C/man3/pthread_attr_setdetachstate.3:122 -#: build/C/man3/pthread_attr_setguardsize.3:171 -#: build/C/man3/pthread_attr_setinheritsched.3:136 -#: build/C/man3/pthread_attr_setschedparam.3:113 -#: build/C/man3/pthread_attr_setschedpolicy.3:108 -#: build/C/man3/pthread_attr_setscope.3:133 -#: build/C/man3/pthread_attr_setstack.3:171 -#: build/C/man3/pthread_attr_setstackaddr.3:121 -#: build/C/man3/pthread_attr_setstacksize.3:123 -#: build/C/man3/pthread_cancel.3:238 build/C/man3/pthread_cleanup_push.3:322 -#: build/C/man3/pthread_cleanup_push_defer_np.3:115 -#: build/C/man3/pthread_create.3:385 build/C/man3/pthread_detach.3:109 -#: build/C/man3/pthread_equal.3:65 build/C/man3/pthread_exit.3:114 -#: build/C/man3/pthread_getattr_np.3:364 -#: build/C/man3/pthread_getcpuclockid.3:182 build/C/man3/pthread_join.3:139 -#: build/C/man3/pthread_kill.3:89 -#: build/C/man3/pthread_kill_other_threads_np.3:77 -#: build/C/man3/pthread_self.3:85 build/C/man3/pthread_setaffinity_np.3:219 -#: build/C/man3/pthread_setcancelstate.3:187 -#: build/C/man3/pthread_setconcurrency.3:108 -#: build/C/man3/pthread_setschedparam.3:448 -#: build/C/man3/pthread_setschedprio.3:108 build/C/man3/pthread_sigmask.3:149 -#: build/C/man3/pthread_sigqueue.3:108 build/C/man3/pthread_testcancel.3:73 -#: build/C/man3/pthread_tryjoin_np.3:145 build/C/man3/pthread_yield.3:70 -#: build/C/man7/pthreads.7:934 -msgid "" -"This page is part of release 3.40 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.40 の一部\n" +#: 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/ に書かれている。" #. type: TH -#: build/C/man3/makecontext.3:25 +#: build/C/man3/makecontext.3:28 #, no-wrap msgid "MAKECONTEXT" msgstr "MAKECONTEXT" #. type: TH -#: build/C/man3/makecontext.3:25 -#, no-wrap -msgid "2009-03-31" -msgstr "2009-03-31" +#: 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:25 +#: build/C/man3/makecontext.3:28 #, no-wrap msgid "GNU" msgstr "GNU" #. type: Plain text -#: build/C/man3/makecontext.3:28 +#: build/C/man3/makecontext.3:31 msgid "makecontext, swapcontext - manipulate user context" msgstr "makecontext, swapcontext - ユーザコンテキストを操作する" #. type: Plain text -#: build/C/man3/makecontext.3:33 +#: build/C/man3/makecontext.3:36 msgid "" "BIB<, void (*>IB<)(),> BIB<, ...);>" @@ -660,64 +739,65 @@ msgstr "" ">IB<, ...);>" #. type: Plain text -#: build/C/man3/makecontext.3:35 -msgid "BIB<, ucontext_t *>IB<);>" -msgstr "BIB<, ucontext_t *>IB<);>" +#: build/C/man3/makecontext.3:38 +msgid "" +"BIB<, const ucontext_t *>IB<);>" +msgstr "BIB<, const ucontext_t *>IB<);>" #. type: Plain text -#: build/C/man3/makecontext.3:46 +#: build/C/man3/makecontext.3:49 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-" +"Iucontext.hE> and the four functions B(3), " +"B(3), B() and B() that allow user-" "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:49 -msgid "For the type and the first two functions, see B(2)." +#: build/C/man3/makecontext.3:52 +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:61 +#: build/C/man3/makecontext.3:64 msgid "" "The B() function modifies the context pointed to by I " -"(which was obtained from a call to B(2)). Before invoking " +"(which was obtained from a call to B(3)). 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>." msgstr "" "B() 関数は、ポインタ I が指すコンテキストを変更する " -"(I は以前の B(2) 呼び出しで得られたものである)。 " +"(I は以前の B(3) 呼び出しで得られたものである)。 " "B() を起動する前には、呼び出し者は、このコンテキスト用に 新しい" "スタックを確保し、そのアドレスを Iuc_stack> に代入し、 さらに後継の" "コンテキストを定義し、そのアドレスを Iuc_link> に 代入しなければな" "らない。" #. type: Plain text -#: build/C/man3/makecontext.3:75 +#: build/C/man3/makecontext.3:78 msgid "" -"When this context is later activated (using B(2) or " +"When this context is later activated (using B(3) 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." msgstr "" -"このコンテキストが将来 (B(2) または B() によっ" +"このコンテキストが将来 (B(3) または B() によっ" "て) 有効にされると、関数 I が呼ばれ、 引き数として I 以降の整数 " "(I) 引き数の列が渡される。 呼び出し者は I にこれらの引き数の個数" "を指定しなければならない。 この関数が戻ると、後継のコンテキストが有効にな" "る。 後継コンテキストのポインタが NULL の場合、そのスレッドが終了する。" #. type: Plain text -#: build/C/man3/makecontext.3:81 +#: build/C/man3/makecontext.3:84 msgid "" "The B() function saves the current context in the structure " "pointed to by I, and then activates the context pointed to by I." @@ -726,7 +806,7 @@ msgstr "" "保存し、 ポインタ I が指すコンテキストを有効にする。" #. type: Plain text -#: build/C/man3/makecontext.3:93 +#: build/C/man3/makecontext.3:96 msgid "" "When successful, B() does not return. (But we may return " "later, in case I is activated, in which case it looks like " @@ -739,37 +819,38 @@ msgstr "" "て設定する。" #. type: TP -#: build/C/man3/makecontext.3:94 -#: build/C/man3/pthread_attr_setaffinity_np.3:100 -#: build/C/man3/pthread_getattr_np.3:75 +#: build/C/man3/makecontext.3:97 +#: build/C/man3/pthread_attr_setaffinity_np.3:102 +#: build/C/man3/pthread_getattr_np.3:77 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/makecontext.3:97 +#: build/C/man3/makecontext.3:100 msgid "Insufficient stack space left." msgstr "スタックに割り当てる空間が残っていない。" #. type: SH -#: build/C/man3/makecontext.3:97 -#: build/C/man3/pthread_attr_setaffinity_np.3:104 -#: build/C/man3/pthread_attr_setguardsize.3:102 -#: build/C/man3/pthread_attr_setstack.3:108 -#: build/C/man3/pthread_attr_setstackaddr.3:79 -#: build/C/man3/pthread_attr_setstacksize.3:79 -#: build/C/man3/pthread_getattr_np.3:94 -#: build/C/man3/pthread_getcpuclockid.3:61 -#: build/C/man3/pthread_setaffinity_np.3:117 -#: build/C/man3/pthread_setconcurrency.3:79 -#: build/C/man3/pthread_setschedprio.3:79 build/C/man3/pthread_sigqueue.3:87 -#: build/C/man3/pthread_tryjoin_np.3:108 +#: build/C/man3/makecontext.3:100 +#: build/C/man3/pthread_attr_setaffinity_np.3:106 +#: build/C/man3/pthread_attr_setguardsize.3:104 +#: build/C/man3/pthread_attr_setstack.3:110 +#: build/C/man3/pthread_attr_setstackaddr.3:81 +#: build/C/man3/pthread_attr_setstacksize.3:81 +#: build/C/man3/pthread_getattr_np.3:96 +#: build/C/man3/pthread_getcpuclockid.3:63 +#: 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:90 +#: build/C/man3/pthread_tryjoin_np.3:110 #, no-wrap msgid "VERSIONS" msgstr "バージョン" #. type: Plain text -#: build/C/man3/makecontext.3:102 +#: build/C/man3/makecontext.3:105 msgid "" "B() and B() are provided in glibc since version " "2.1." @@ -778,7 +859,12 @@ msgstr "" "されている。" #. type: Plain text -#: build/C/man3/makecontext.3:110 +#: 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 " @@ -789,7 +875,7 @@ msgstr "" "POSIX スレッドを使って書き直すことが 推奨されている。" #. type: Plain text -#: build/C/man3/makecontext.3:118 +#: 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 " @@ -802,7 +888,7 @@ msgstr "" "て、ユーザプログラムはこの件については心配しなくてよい。" #. type: Plain text -#: build/C/man3/makecontext.3:134 +#: 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 " @@ -823,39 +909,40 @@ msgstr "" "できるようになっている。" #. type: SH -#: build/C/man3/makecontext.3:134 build/C/man3/pthread_attr_init.3:85 -#: build/C/man3/pthread_attr_setdetachstate.3:106 -#: build/C/man3/pthread_attr_setguardsize.3:153 -#: build/C/man3/pthread_attr_setinheritsched.3:117 -#: build/C/man3/pthread_attr_setschedparam.3:93 -#: build/C/man3/pthread_attr_setschedpolicy.3:89 -#: build/C/man3/pthread_attr_setstack.3:151 -#: build/C/man3/pthread_attr_setstacksize.3:106 -#: build/C/man3/pthread_cancel.3:130 build/C/man3/pthread_cleanup_push.3:149 -#: build/C/man3/pthread_create.3:200 build/C/man3/pthread_detach.3:91 -#: build/C/man3/pthread_getattr_np.3:99 -#: build/C/man3/pthread_getcpuclockid.3:76 build/C/man3/pthread_join.3:122 -#: build/C/man3/pthread_setaffinity_np.3:152 -#: build/C/man3/pthread_setcancelstate.3:172 -#: build/C/man3/pthread_setschedparam.3:147 build/C/man3/pthread_sigmask.3:59 -#: build/C/man3/pthread_testcancel.3:58 build/C/man3/pthread_tryjoin_np.3:113 +#: 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: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:142 +#: build/C/man3/makecontext.3:152 msgid "" -"The example program below demonstrates the use of B(2), " +"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:154 +#: build/C/man3/makecontext.3:164 #, no-wrap msgid "" "$B< ./a.out>\n" @@ -879,17 +966,18 @@ msgstr "" "main: exiting\n" #. type: SS -#: build/C/man3/makecontext.3:156 build/C/man3/pthread_attr_init.3:146 -#: build/C/man3/pthread_cancel.3:146 build/C/man3/pthread_cleanup_push.3:225 -#: build/C/man3/pthread_create.3:239 build/C/man3/pthread_getattr_np.3:177 -#: build/C/man3/pthread_getcpuclockid.3:93 -#: build/C/man3/pthread_setschedparam.3:222 build/C/man3/pthread_sigmask.3:77 +#: 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:162 +#: build/C/man3/makecontext.3:172 #, no-wrap msgid "" "#include Eucontext.hE\n" @@ -901,13 +989,13 @@ msgstr "" "#include Estdlib.hE\n" #. type: Plain text -#: build/C/man3/makecontext.3:164 +#: 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:167 +#: build/C/man3/makecontext.3:177 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" @@ -917,7 +1005,7 @@ msgstr "" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text -#: build/C/man3/makecontext.3:177 +#: build/C/man3/makecontext.3:187 #, no-wrap msgid "" "static void\n" @@ -941,7 +1029,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:187 +#: build/C/man3/makecontext.3:197 #, no-wrap msgid "" "static void\n" @@ -965,7 +1053,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:193 +#: build/C/man3/makecontext.3:203 #, no-wrap msgid "" "int\n" @@ -981,7 +1069,7 @@ msgstr "" " char func2_stack[16384];\n" #. type: Plain text -#: build/C/man3/makecontext.3:200 +#: build/C/man3/makecontext.3:210 #, no-wrap msgid "" " if (getcontext(&uctx_func1) == -1)\n" @@ -999,7 +1087,7 @@ msgstr "" " makecontext(&uctx_func1, func1, 0);\n" #. type: Plain text -#: build/C/man3/makecontext.3:208 +#: build/C/man3/makecontext.3:218 #, no-wrap msgid "" " if (getcontext(&uctx_func2) == -1)\n" @@ -1019,7 +1107,7 @@ msgstr "" " makecontext(&uctx_func2, func2, 0);\n" #. type: Plain text -#: build/C/man3/makecontext.3:212 +#: build/C/man3/makecontext.3:222 #, no-wrap msgid "" " printf(\"main: swapcontext(&uctx_main, &uctx_func2)\\en\");\n" @@ -1031,7 +1119,7 @@ msgstr "" " handle_error(\"swapcontext\");\n" #. type: Plain text -#: build/C/man3/makecontext.3:216 +#: build/C/man3/makecontext.3:226 #, no-wrap msgid "" " printf(\"main: exiting\\en\");\n" @@ -1043,28 +1131,28 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/makecontext.3:223 +#: build/C/man3/makecontext.3:233 msgid "" -"B(2), B(2), B(2), B(2), " +"B(2), B(2), B(2), B(3), " "B(3)" msgstr "" -"B(2), B(2), B(2), B(2), " +"B(2), B(2), B(2), B(3), " "B(3)" #. type: TH -#: build/C/man3/pthread_attr_init.3:24 +#: build/C/man3/pthread_attr_init.3:26 #, no-wrap msgid "PTHREAD_ATTR_INIT" msgstr "PTHREAD_ATTR_INIT" #. type: TH -#: build/C/man3/pthread_attr_init.3:24 +#: build/C/man3/pthread_attr_init.3:26 #, no-wrap msgid "2008-11-11" msgstr "2008-11-11" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:28 +#: build/C/man3/pthread_attr_init.3:30 msgid "" "pthread_attr_init, pthread_attr_destroy - initialize and destroy thread " "attributes object" @@ -1073,33 +1161,32 @@ msgstr "" "スレッド属性オブジェクトの初期化と破棄を行う" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:31 -#: build/C/man3/pthread_attr_setdetachstate.3:31 -#: build/C/man3/pthread_attr_setguardsize.3:31 -#: build/C/man3/pthread_attr_setinheritsched.3:31 -#: build/C/man3/pthread_attr_setschedparam.3:31 -#: build/C/man3/pthread_attr_setschedpolicy.3:31 -#: build/C/man3/pthread_attr_setscope.3:31 -#: build/C/man3/pthread_attr_setstack.3:31 -#: build/C/man3/pthread_attr_setstackaddr.3:31 -#: build/C/man3/pthread_attr_setstacksize.3:31 -#: build/C/man3/pthread_cancel.3:30 build/C/man3/pthread_cleanup_push.3:31 -#: build/C/man3/pthread_cleanup_push_defer_np.3:31 -#: build/C/man3/pthread_create.3:30 build/C/man3/pthread_detach.3:30 -#: build/C/man3/pthread_equal.3:30 build/C/man3/pthread_exit.3:30 -#: build/C/man3/pthread_join.3:30 -#: build/C/man3/pthread_kill_other_threads_np.3:30 -#: build/C/man3/pthread_self.3:30 build/C/man3/pthread_setcancelstate.3:31 -#: build/C/man3/pthread_setconcurrency.3:30 -#: build/C/man3/pthread_setschedparam.3:31 -#: build/C/man3/pthread_setschedprio.3:30 build/C/man3/pthread_sigqueue.3:29 -#: build/C/man3/pthread_testcancel.3:30 build/C/man3/pthread_yield.3:29 +#: build/C/man3/pthread_attr_init.3:33 +#: build/C/man3/pthread_attr_setdetachstate.3:33 +#: build/C/man3/pthread_attr_setguardsize.3:33 +#: build/C/man3/pthread_attr_setinheritsched.3:33 +#: build/C/man3/pthread_attr_setschedparam.3:33 +#: build/C/man3/pthread_attr_setschedpolicy.3:33 +#: build/C/man3/pthread_attr_setscope.3:33 +#: build/C/man3/pthread_attr_setstack.3:33 +#: build/C/man3/pthread_attr_setstackaddr.3:33 +#: build/C/man3/pthread_attr_setstacksize.3:33 +#: build/C/man3/pthread_cancel.3:32 build/C/man3/pthread_cleanup_push.3:33 +#: build/C/man3/pthread_cleanup_push_defer_np.3:33 +#: build/C/man3/pthread_create.3:32 build/C/man3/pthread_detach.3:32 +#: build/C/man3/pthread_equal.3:32 build/C/man3/pthread_exit.3:32 +#: build/C/man3/pthread_join.3:32 +#: build/C/man3/pthread_kill_other_threads_np.3:32 +#: 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_testcancel.3:32 #, no-wrap msgid "B<#include Epthread.hE>\n" msgstr "B<#include Epthread.hE>\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:34 +#: build/C/man3/pthread_attr_init.3:36 #, no-wrap msgid "" "BIB<);>\n" @@ -1109,32 +1196,32 @@ msgstr "" "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:36 -#: build/C/man3/pthread_attr_setaffinity_np.3:39 -#: build/C/man3/pthread_attr_setdetachstate.3:38 -#: build/C/man3/pthread_attr_setguardsize.3:38 -#: build/C/man3/pthread_attr_setinheritsched.3:38 -#: build/C/man3/pthread_attr_setschedparam.3:38 -#: build/C/man3/pthread_attr_setschedpolicy.3:38 -#: build/C/man3/pthread_attr_setscope.3:38 -#: build/C/man3/pthread_attr_setstack.3:38 -#: build/C/man3/pthread_attr_setstackaddr.3:38 -#: build/C/man3/pthread_attr_setstacksize.3:38 -#: build/C/man3/pthread_cancel.3:34 build/C/man3/pthread_cleanup_push.3:37 -#: build/C/man3/pthread_equal.3:34 build/C/man3/pthread_exit.3:34 -#: build/C/man3/pthread_getattr_np.3:35 -#: build/C/man3/pthread_getcpuclockid.3:35 build/C/man3/pthread_self.3:34 -#: build/C/man3/pthread_setaffinity_np.3:39 -#: build/C/man3/pthread_setcancelstate.3:36 -#: build/C/man3/pthread_setconcurrency.3:35 -#: build/C/man3/pthread_setschedparam.3:38 -#: build/C/man3/pthread_setschedprio.3:34 build/C/man3/pthread_testcancel.3:34 +#: build/C/man3/pthread_attr_init.3:38 +#: build/C/man3/pthread_attr_setaffinity_np.3:41 +#: build/C/man3/pthread_attr_setdetachstate.3:40 +#: build/C/man3/pthread_attr_setguardsize.3:40 +#: build/C/man3/pthread_attr_setinheritsched.3:40 +#: build/C/man3/pthread_attr_setschedparam.3:40 +#: build/C/man3/pthread_attr_setschedpolicy.3:40 +#: build/C/man3/pthread_attr_setscope.3:40 +#: build/C/man3/pthread_attr_setstack.3:40 +#: build/C/man3/pthread_attr_setstackaddr.3:40 +#: build/C/man3/pthread_attr_setstacksize.3:40 +#: build/C/man3/pthread_cancel.3:36 build/C/man3/pthread_cleanup_push.3:39 +#: build/C/man3/pthread_equal.3:36 build/C/man3/pthread_exit.3:36 +#: build/C/man3/pthread_getattr_np.3:37 +#: build/C/man3/pthread_getcpuclockid.3:37 build/C/man3/pthread_self.3:36 +#: build/C/man3/pthread_setaffinity_np.3:41 +#: build/C/man3/pthread_setcancelstate.3:38 +#: build/C/man3/pthread_setconcurrency.3:37 +#: build/C/man3/pthread_setschedparam.3:40 +#: build/C/man3/pthread_setschedprio.3:36 build/C/man3/pthread_testcancel.3:36 #, no-wrap msgid "Compile and link with I<-pthread>.\n" msgstr "I<-pthread> でコンパイルしてリンクする。\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:48 +#: build/C/man3/pthread_attr_init.3:50 msgid "" "The B() function initializes the thread attributes " "object pointed to by I with default attribute values. After this " @@ -1150,7 +1237,7 @@ msgstr "" "オブジェクトを複数の B(3) に渡してもよい)。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:53 +#: build/C/man3/pthread_attr_init.3:55 msgid "" "Calling B() on a thread attributes object that has " "already been initialized results in undefined behavior." @@ -1160,7 +1247,7 @@ msgstr "" "どのような動作になるかは不定である。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:60 +#: build/C/man3/pthread_attr_init.3:62 msgid "" "When a thread attributes object is no longer required, it should be " "destroyed using the B() function. Destroying a " @@ -1173,7 +1260,7 @@ msgstr "" "そのオブジェクトを使って作成されたスレッドには影響はない。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:66 +#: build/C/man3/pthread_attr_init.3:68 msgid "" "Once a thread attributes object has been destroyed, it can be reinitialized " "using B(). Any other use of a destroyed thread " @@ -1185,19 +1272,20 @@ msgstr "" "使った場合の結果は不定である。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:69 -#: build/C/man3/pthread_attr_setaffinity_np.3:77 -#: build/C/man3/pthread_attr_setdetachstate.3:78 -#: build/C/man3/pthread_attr_setguardsize.3:91 -#: build/C/man3/pthread_attr_setinheritsched.3:85 -#: build/C/man3/pthread_attr_setschedparam.3:75 -#: build/C/man3/pthread_attr_setschedpolicy.3:73 -#: build/C/man3/pthread_attr_setscope.3:92 -#: build/C/man3/pthread_attr_setstack.3:86 -#: build/C/man3/pthread_attr_setstackaddr.3:75 -#: build/C/man3/pthread_attr_setstacksize.3:62 -#: build/C/man3/pthread_setaffinity_np.3:78 -#: build/C/man3/pthread_setcancelstate.3:93 +#: 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: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_setaffinity_np.3:80 +#: build/C/man3/pthread_setcancelstate.3:95 +#: build/C/man3/pthread_setname_np.3:75 msgid "" "On success, these functions return 0; on error, they return a nonzero error " "number." @@ -1206,7 +1294,7 @@ msgstr "" "エラーの場合、0 以外のエラー番号を返す。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:77 +#: build/C/man3/pthread_attr_init.3:79 msgid "" "POSIX.1-2001 documents an B error for B(); on " "Linux these functions always succeed (but portable and future-proof " @@ -1219,30 +1307,29 @@ msgstr "" "正のエラーの返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:79 -#: 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_setstack.3:112 -#: 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_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_getcpuclockid.3:65 build/C/man3/pthread_join.3:98 -#: build/C/man3/pthread_kill.3:66 build/C/man3/pthread_self.3:50 -#: build/C/man3/pthread_setcancelstate.3:113 -#: build/C/man3/pthread_setconcurrency.3:83 -#: 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_testcancel.3:58 +#: build/C/man3/pthread_attr_init.3:81 +#: 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." #. type: Plain text -#: build/C/man3/pthread_attr_init.3:85 +#: build/C/man3/pthread_attr_init.3:87 msgid "" "The I type should be treated as opaque: any access to the " "object other than via pthreads functions is nonportable and produces " @@ -1253,7 +1340,7 @@ msgstr "" "どのような結果が得られるかも分からない。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:94 +#: build/C/man3/pthread_attr_init.3:96 msgid "" "The program below optionally makes use of B() and " "various related functions to initialize a thread attributes object that is " @@ -1269,7 +1356,7 @@ msgstr "" "取得した属性を表示する。" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:103 +#: build/C/man3/pthread_attr_init.3:105 msgid "" "If the program is run with no command-line argument, then it passes NULL as " "the I argument of B(3), so that the thread is created " @@ -1284,7 +1371,7 @@ msgstr "" #. Results from glibc 2.8, SUSE 11.0; Oct 2008 #. type: Plain text -#: build/C/man3/pthread_attr_init.3:119 +#: build/C/man3/pthread_attr_init.3:121 #, no-wrap msgid "" "$B< ulimit -s> # No stack imit ==E default stack size is 2MB\n" @@ -1314,13 +1401,13 @@ msgstr "" " Stack size = 0x201000 bytes\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:129 +#: build/C/man3/pthread_attr_init.3:131 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" @@ -1331,7 +1418,7 @@ msgstr "" #. Results from glibc 2.8, SUSE 11.0; Oct 2008 #. type: Plain text -#: build/C/man3/pthread_attr_init.3:144 +#: build/C/man3/pthread_attr_init.3:146 #, no-wrap msgid "" "$B< ./a.out 0x3000000>\n" @@ -1359,7 +1446,7 @@ msgstr "" " Stack size = 0x3000000 bytes\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:155 build/C/man3/pthread_getattr_np.3:186 +#: build/C/man3/pthread_attr_init.3:157 build/C/man3/pthread_getattr_np.3:188 #, no-wrap msgid "" "#define _GNU_SOURCE /* To get pthread_getattr_np() declaration */\n" @@ -1377,12 +1464,12 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:158 build/C/man3/pthread_cancel.3:157 -#: build/C/man3/pthread_cleanup_push.3:237 build/C/man3/pthread_create.3:252 -#: build/C/man3/pthread_getattr_np.3:189 -#: build/C/man3/pthread_getcpuclockid.3:111 -#: build/C/man3/pthread_setaffinity_np.3:170 -#: build/C/man3/pthread_setschedparam.3:235 build/C/man3/pthread_sigmask.3:91 +#: 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: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" @@ -1392,7 +1479,7 @@ msgstr "" " do { errno = en; perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:166 +#: build/C/man3/pthread_attr_init.3:168 #, no-wrap msgid "" "static void\n" @@ -1412,7 +1499,7 @@ msgstr "" " struct sched_param sp;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:174 +#: build/C/man3/pthread_attr_init.3:176 #, no-wrap msgid "" " s = pthread_attr_getdetachstate(attr, &i);\n" @@ -1432,7 +1519,7 @@ msgstr "" " \"???\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:182 +#: build/C/man3/pthread_attr_init.3:184 #, no-wrap msgid "" " s = pthread_attr_getscope(attr, &i);\n" @@ -1452,7 +1539,7 @@ msgstr "" " \"???\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:190 +#: build/C/man3/pthread_attr_init.3:192 #, no-wrap msgid "" " s = pthread_attr_getinheritsched(attr, &i);\n" @@ -1472,7 +1559,7 @@ msgstr "" " \"???\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:199 +#: build/C/man3/pthread_attr_init.3:201 #, no-wrap msgid "" " s = pthread_attr_getschedpolicy(attr, &i);\n" @@ -1494,7 +1581,7 @@ msgstr "" " \"???\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:204 +#: build/C/man3/pthread_attr_init.3:206 #, no-wrap msgid "" " s = pthread_attr_getschedparam(attr, &sp);\n" @@ -1508,7 +1595,7 @@ msgstr "" " printf(\"%sScheduling priority = %d\\en\", prefix, sp.sched_priority);\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:209 +#: build/C/man3/pthread_attr_init.3:211 #, no-wrap msgid "" " s = pthread_attr_getguardsize(attr, &v);\n" @@ -1522,7 +1609,7 @@ msgstr "" " printf(\"%sGuard size = %d bytes\\en\", prefix, v);\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:216 +#: build/C/man3/pthread_attr_init.3:218 #, no-wrap msgid "" " s = pthread_attr_getstack(attr, &stkaddr, &v);\n" @@ -1540,7 +1627,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:222 +#: build/C/man3/pthread_attr_init.3:224 #, no-wrap msgid "" "static void *\n" @@ -1556,7 +1643,7 @@ msgstr "" " pthread_attr_t gattr;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:226 +#: build/C/man3/pthread_attr_init.3:228 #, no-wrap msgid "" " /* pthread_getattr_np() is a non-standard GNU extension that\n" @@ -1568,7 +1655,7 @@ msgstr "" " first argument */\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:230 +#: build/C/man3/pthread_attr_init.3:232 #, no-wrap msgid "" " s = pthread_getattr_np(pthread_self(), &gattr);\n" @@ -1580,7 +1667,7 @@ msgstr "" " handle_error_en(s, \"pthread_getattr_np\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:233 +#: build/C/man3/pthread_attr_init.3:235 #, no-wrap msgid "" " printf(\"Thread attributes:\\en\");\n" @@ -1590,7 +1677,7 @@ msgstr "" " display_pthread_attr(&gattr, \"\\et\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:236 build/C/man3/pthread_getattr_np.3:238 +#: build/C/man3/pthread_attr_init.3:238 build/C/man3/pthread_getattr_np.3:240 #, no-wrap msgid "" " exit(EXIT_SUCCESS); /* Terminate all threads */\n" @@ -1600,7 +1687,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:244 +#: build/C/man3/pthread_attr_init.3:246 #, no-wrap msgid "" "int\n" @@ -1620,14 +1707,14 @@ msgstr "" " int s;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:246 -#: build/C/man3/pthread_setschedparam.3:353 +#: build/C/man3/pthread_attr_init.3:248 +#: build/C/man3/pthread_setschedparam.3:362 #, no-wrap msgid " attrp = NULL;\n" msgstr " attrp = NULL;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:250 +#: build/C/man3/pthread_attr_init.3:252 #, no-wrap msgid "" " /* If a command-line argument was supplied, use it to set the\n" @@ -1639,7 +1726,7 @@ msgstr "" " and set attrp pointing to thread attributes object */\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:254 +#: build/C/man3/pthread_attr_init.3:256 #, no-wrap msgid "" " if (argc E 1) {\n" @@ -1651,13 +1738,13 @@ msgstr "" " void *sp;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:256 +#: build/C/man3/pthread_attr_init.3:258 #, no-wrap msgid " attrp = &attr;\n" msgstr " attrp = &attr;\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:260 +#: build/C/man3/pthread_attr_init.3:262 #, no-wrap msgid "" " s = pthread_attr_init(&attr);\n" @@ -1669,7 +1756,7 @@ msgstr "" " handle_error_en(s, \"pthread_attr_init\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:264 +#: build/C/man3/pthread_attr_init.3:266 #, no-wrap msgid "" " s = pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);\n" @@ -1681,7 +1768,7 @@ msgstr "" " handle_error_en(s, \"pthread_attr_setdetachstate\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:268 +#: build/C/man3/pthread_attr_init.3:270 #, no-wrap msgid "" " s = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);\n" @@ -1693,13 +1780,13 @@ msgstr "" " handle_error_en(s, \"pthread_attr_setinheritsched\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:270 +#: build/C/man3/pthread_attr_init.3:272 #, no-wrap msgid " stack_size = strtoul(argv[1], NULL, 0);\n" msgstr " stack_size = strtoul(argv[1], NULL, 0);\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:274 +#: build/C/man3/pthread_attr_init.3:276 #, no-wrap msgid "" " s = posix_memalign(&sp, sysconf(_SC_PAGESIZE), stack_size);\n" @@ -1711,13 +1798,13 @@ msgstr "" " handle_error_en(s, \"posix_memalign\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:276 +#: build/C/man3/pthread_attr_init.3:278 #, no-wrap msgid " printf(\"posix_memalign() allocated at %p\\en\", sp);\n" msgstr " printf(\"posix_memalign() allocated at %p\\en\", sp);\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:281 +#: build/C/man3/pthread_attr_init.3:283 #, no-wrap msgid "" " s = pthread_attr_setstack(&attr, sp, stack_size);\n" @@ -1731,7 +1818,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:285 build/C/man3/pthread_getattr_np.3:333 +#: build/C/man3/pthread_attr_init.3:287 build/C/man3/pthread_getattr_np.3:335 #, no-wrap msgid "" " s = pthread_create(&thr, attrp, &thread_start, NULL);\n" @@ -1743,7 +1830,7 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:291 build/C/man3/pthread_getattr_np.3:339 +#: build/C/man3/pthread_attr_init.3:293 build/C/man3/pthread_getattr_np.3:341 #, no-wrap msgid "" " if (attrp != NULL) {\n" @@ -1759,7 +1846,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:294 build/C/man3/pthread_getattr_np.3:342 +#: build/C/man3/pthread_attr_init.3:296 build/C/man3/pthread_getattr_np.3:344 #, no-wrap msgid "" " pause(); /* Terminates when other thread calls exit() */\n" @@ -1769,7 +1856,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_attr_init.3:309 +#: build/C/man3/pthread_attr_init.3:313 msgid "" "B(3), B(3), " "B(3), B(3), " @@ -1786,22 +1873,13 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_attr_setaffinity_np.3:24 +#: build/C/man3/pthread_attr_setaffinity_np.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETAFFINITY_NP" msgstr "PTHREAD_ATTR_SETAFFINITY_NP" -#. type: TH -#: build/C/man3/pthread_attr_setaffinity_np.3:24 -#: build/C/man3/pthread_getattr_np.3:24 -#: build/C/man3/pthread_setaffinity_np.3:24 -#: build/C/man3/pthread_tryjoin_np.3:24 -#, no-wrap -msgid "2010-09-10" -msgstr "2010-09-10" - #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:28 +#: build/C/man3/pthread_attr_setaffinity_np.3:30 msgid "" "pthread_attr_setaffinity_np, pthread_attr_getaffinity_np - set/get CPU " "affinity attribute in thread attributes object" @@ -1810,10 +1888,10 @@ msgstr "" "スレッド属性オブジェクトの CPU affinity 属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:32 -#: build/C/man3/pthread_getattr_np.3:31 -#: build/C/man3/pthread_setaffinity_np.3:32 -#: build/C/man3/pthread_tryjoin_np.3:32 +#: build/C/man3/pthread_attr_setaffinity_np.3:34 +#: build/C/man3/pthread_getattr_np.3:33 +#: build/C/man3/pthread_setaffinity_np.3:34 +#: build/C/man3/pthread_tryjoin_np.3:34 build/C/man3/pthread_yield.3:32 #, no-wrap msgid "" "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n" @@ -1823,21 +1901,21 @@ msgstr "" "B<#include Epthread.hE>\n" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:37 +#: build/C/man3/pthread_attr_setaffinity_np.3:39 #, no-wrap 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 -#: build/C/man3/pthread_attr_setaffinity_np.3:52 +#: build/C/man3/pthread_attr_setaffinity_np.3:54 msgid "" "The B() function sets the CPU affinity mask " "attribute of the thread attributes object referred to by I to the " @@ -1851,7 +1929,7 @@ msgstr "" "作成されたスレッドの CPU affinity マスクが決定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:61 +#: build/C/man3/pthread_attr_setaffinity_np.3:63 msgid "" "The B() function returns the CPU affinity mask " "attribute of the thread attributes object referred to by I in the " @@ -1862,19 +1940,19 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:68 +#: 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" "指定することだろう。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:74 -#: build/C/man3/pthread_setaffinity_np.3:65 +#: build/C/man3/pthread_attr_setaffinity_np.3:76 +#: build/C/man3/pthread_setaffinity_np.3:67 msgid "" "For more details on CPU affinity masks, see B(2). For a " "description of a set of macros that can be used to manipulate and inspect " @@ -1886,24 +1964,24 @@ msgstr "" "B(3) を参照してほしい。" #. type: TP -#: build/C/man3/pthread_attr_setaffinity_np.3:78 -#: build/C/man3/pthread_attr_setaffinity_np.3:90 -#: build/C/man3/pthread_attr_setdetachstate.3:81 -#: build/C/man3/pthread_attr_setinheritsched.3:88 -#: build/C/man3/pthread_attr_setschedpolicy.3:76 -#: build/C/man3/pthread_attr_setscope.3:95 -#: build/C/man3/pthread_attr_setstack.3:89 -#: build/C/man3/pthread_attr_setstacksize.3:65 -#: build/C/man3/pthread_create.3:135 build/C/man3/pthread_detach.3:53 -#: build/C/man3/pthread_join.3:83 build/C/man3/pthread_join.3:87 -#: build/C/man3/pthread_kill.3:56 build/C/man3/pthread_setaffinity_np.3:82 -#: build/C/man3/pthread_setaffinity_np.3:91 -#: build/C/man3/pthread_setaffinity_np.3:107 -#: build/C/man3/pthread_setcancelstate.3:97 -#: build/C/man3/pthread_setcancelstate.3:105 -#: build/C/man3/pthread_setconcurrency.3:69 -#: build/C/man3/pthread_setschedparam.3:120 -#: build/C/man3/pthread_setschedprio.3:60 build/C/man3/pthread_sigqueue.3:75 +#: 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: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: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: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:78 #, no-wrap msgid "B" msgstr "B" @@ -1912,7 +1990,7 @@ msgstr "B" #. The raw sched_getaffinity() system call returns the size (in bytes) #. of the cpumask_t type. #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:90 +#: build/C/man3/pthread_attr_setaffinity_np.3:92 msgid "" "(B()) I specified a CPU that was " "outside the set supported by the kernel. (The kernel configuration option " @@ -1921,11 +1999,12 @@ msgid "" msgstr "" "(B())\n" "I がカーネルがサポートする CPU 集合にない CPU を指定していた。\n" -"(CPU 集合を表現するのに使われるカーネルのデータ型がサポートする集合の範囲は、\n" +"(CPU 集合を表現するのに使われるカーネルのデータ型がサポートする集合の範囲" +"は、\n" "カーネルの設定オプション B により定義される)。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:100 +#: build/C/man3/pthread_attr_setaffinity_np.3:102 msgid "" "(B()) A CPU in the affinity mask of the thread " "attributes object referred to by I lies outside the range specified by " @@ -1937,21 +2016,22 @@ msgstr "" "(すなわち、I/I が小さすぎる)。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:104 +#: build/C/man3/pthread_attr_setaffinity_np.3:106 msgid "(B()) Could not allocate memory." -msgstr "(B()) メモリを割り当てることができなかった。" +msgstr "" +"(B()) メモリを割り当てることができなかった。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:106 -#: build/C/man3/pthread_setaffinity_np.3:119 +#: build/C/man3/pthread_attr_setaffinity_np.3:108 +#: build/C/man3/pthread_setaffinity_np.3:121 msgid "These functions are provided by glibc since version 2.3.4." msgstr "これらの関数は glibc バージョン 2.3.4 以降で提供されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:109 -#: build/C/man3/pthread_cleanup_push_defer_np.3:102 -#: build/C/man3/pthread_setaffinity_np.3:122 -#: build/C/man3/pthread_tryjoin_np.3:113 +#: build/C/man3/pthread_attr_setaffinity_np.3:111 +#: 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" "\" (nonportable) in the names." @@ -1961,8 +2041,8 @@ msgstr "" "付いている。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:116 -#: build/C/man3/pthread_setaffinity_np.3:148 +#: build/C/man3/pthread_attr_setaffinity_np.3:118 +#: 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 " @@ -1974,29 +2054,22 @@ msgstr "" "常に I であった。" #. type: Plain text -#: build/C/man3/pthread_attr_setaffinity_np.3:122 +#: 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:24 +#: build/C/man3/pthread_attr_setdetachstate.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETDETACHSTATE" msgstr "PTHREAD_ATTR_SETDETACHSTATE" -#. type: TH -#: build/C/man3/pthread_attr_setdetachstate.3:24 -#: build/C/man3/pthread_attr_setschedpolicy.3:24 -#, no-wrap -msgid "2010-02-03" -msgstr "2010-02-03" - #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:28 +#: build/C/man3/pthread_attr_setdetachstate.3:30 msgid "" "pthread_attr_setdetachstate, pthread_attr_getdetachstate - set/get detach " "state attribute in thread attributes object" @@ -2005,17 +2078,17 @@ msgstr "" "スレッド属性オブジェクトの detach state 属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:36 +#: build/C/man3/pthread_attr_setdetachstate.3:38 #, 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:51 +#: build/C/man3/pthread_attr_setdetachstate.3:53 msgid "" "The B() function sets the detach state " "attribute of the thread attributes object referred to by I to the " @@ -2031,36 +2104,36 @@ msgstr "" "detached (切り離された) 状態で作成されるかが決定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:54 +#: build/C/man3/pthread_attr_setdetachstate.3:56 msgid "The following values may be specified in I:" msgstr "I には以下の値を指定できる。" #. type: TP -#: build/C/man3/pthread_attr_setdetachstate.3:54 +#: build/C/man3/pthread_attr_setdetachstate.3:56 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:59 +#: build/C/man3/pthread_attr_setdetachstate.3:61 msgid "" "Threads that are created using I will be created in a detached state." msgstr "I を使って作成されるスレッドは detached 状態で作成される。" #. type: TP -#: build/C/man3/pthread_attr_setdetachstate.3:59 +#: build/C/man3/pthread_attr_setdetachstate.3:61 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:64 +#: build/C/man3/pthread_attr_setdetachstate.3:66 msgid "" "Threads that are created using I will be created in a joinable state." msgstr "I を使って作成されるスレッドは join 可能な状態で作成される。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:68 +#: build/C/man3/pthread_attr_setdetachstate.3:70 msgid "" "The default setting of the detach state attribute in a newly initialized " "thread attributes object is B." @@ -2069,7 +2142,7 @@ msgstr "" "デフォルト設定は B である。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:75 +#: build/C/man3/pthread_attr_setdetachstate.3:77 msgid "" "The B() returns the detach state attribute of " "the thread attributes object I in the buffer pointed to by " @@ -2080,17 +2153,26 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:81 +#: build/C/man3/pthread_attr_setdetachstate.3:83 msgid "B() can fail with the following error:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:85 +#: build/C/man3/pthread_attr_setdetachstate.3:87 msgid "An invalid value was specified in I." msgstr "無効な値が I で指定された。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:91 +#: 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 "" @@ -2098,7 +2180,7 @@ msgstr "" "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:99 +#: 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 " @@ -2110,24 +2192,24 @@ msgstr "" "のどちらかを行うべきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setdetachstate.3:106 +#: 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:109 -#: build/C/man3/pthread_attr_setstack.3:154 +#: 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:115 +#: build/C/man3/pthread_attr_setdetachstate.3:124 msgid "" "B(3), B(3), B(3), " "B(3), B(7)" @@ -2136,22 +2218,13 @@ msgstr "" "B(3), B(7)" #. type: TH -#: build/C/man3/pthread_attr_setguardsize.3:24 +#: build/C/man3/pthread_attr_setguardsize.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETGUARDSIZE" msgstr "PTHREAD_ATTR_SETGUARDSIZE" -#. type: TH -#: build/C/man3/pthread_attr_setguardsize.3:24 -#: build/C/man3/pthread_attr_setscope.3:24 -#: build/C/man3/pthread_attr_setstack.3:24 -#: build/C/man3/pthread_attr_setstackaddr.3:24 build/C/man3/pthread_self.3:24 -#, no-wrap -msgid "2008-10-24" -msgstr "2008-10-24" - #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:28 +#: build/C/man3/pthread_attr_setguardsize.3:30 msgid "" "pthread_attr_setguardsize, pthread_attr_getguardsize - set/get guard size " "attribute in thread attributes object" @@ -2160,17 +2233,17 @@ msgstr "" "スレッド属性オブジェクトの guard size 属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:36 +#: build/C/man3/pthread_attr_setguardsize.3:38 #, 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:47 +#: build/C/man3/pthread_attr_setguardsize.3:49 msgid "" "The B() function sets the guard size attribute " "of the thread attributes object referred to by I to the value " @@ -2181,7 +2254,7 @@ msgstr "" "I で指定された値に設定する。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:57 +#: build/C/man3/pthread_attr_setguardsize.3:59 msgid "" "If I is greater than 0, then for each new thread created using " "I the system allocates an additional region of at least I " @@ -2195,7 +2268,7 @@ msgstr "" "機能する (ただし「バグ」の節も参照)。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:63 +#: build/C/man3/pthread_attr_setguardsize.3:65 msgid "" "If I is 0, then new threads created with I will not have a " "guard area." @@ -2204,12 +2277,12 @@ msgstr "" "I を使って新しく作成されたスレッドはガード領域を持たない。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:65 +#: build/C/man3/pthread_attr_setguardsize.3:67 msgid "The default guard size is the same as the system page size." msgstr "デフォルトの guard size はシステムのページサイズと同じである。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:80 +#: build/C/man3/pthread_attr_setguardsize.3:82 msgid "" "If the stack address attribute has been set in I (using " "B(3) or B(3)), meaning " @@ -2228,7 +2301,7 @@ msgstr "" "られたスタックの最後に手動でガード領域を定義することになるだろう)。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:88 +#: build/C/man3/pthread_attr_setguardsize.3:90 msgid "" "The B() function returns the guard size " "attribute of the thread attributes object referred to by I in the " @@ -2239,7 +2312,7 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:102 +#: build/C/man3/pthread_attr_setguardsize.3:104 msgid "" "POSIX.1-2001 documents an B error if I or I is " "invalid. On Linux these functions always succeed (but portable and future-" @@ -2252,14 +2325,23 @@ msgstr "" "正のエラーの返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:104 -#: build/C/man3/pthread_attr_setstackaddr.3:81 -#: build/C/man3/pthread_attr_setstacksize.3:81 +#: build/C/man3/pthread_attr_setguardsize.3:106 +#: build/C/man3/pthread_attr_setstackaddr.3:83 +#: build/C/man3/pthread_attr_setstacksize.3:83 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:120 +#: 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, " @@ -2279,7 +2361,7 @@ msgstr "" "B() で設定された guard size が返される)。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:124 +#: 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." @@ -2289,7 +2371,7 @@ msgstr "" "することで、メモリを節約できることもある。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:128 +#: 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 " @@ -2300,16 +2382,16 @@ msgstr "" "大きな guard size を選ぶ必要があるかもしれない。" #. type: SH -#: build/C/man3/pthread_attr_setguardsize.3:128 -#: build/C/man3/pthread_attr_setinheritsched.3:101 -#: build/C/man3/pthread_attr_setstacksize.3:94 -#: build/C/man3/pthread_create.3:194 build/C/man3/pthread_exit.3:91 +#: 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:139 +#: 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 " @@ -2334,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:153 +#: 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." @@ -2344,87 +2426,100 @@ msgstr "" "ガード領域がスタックの末尾に追加の領域が割り当てられる。" #. type: Plain text -#: build/C/man3/pthread_attr_setguardsize.3:156 +#: 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:164 +#: 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:24 +#: build/C/man3/pthread_attr_setinheritsched.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETINHERITSCHED" msgstr "PTHREAD_ATTR_SETINHERITSCHED" #. type: TH -#: build/C/man3/pthread_attr_setinheritsched.3:24 -#: build/C/man3/pthread_attr_setschedparam.3:24 -#: build/C/man3/pthread_attr_setstacksize.3:24 -#: build/C/man3/pthread_create.3:24 +#: build/C/man3/pthread_attr_setinheritsched.3:26 +#: build/C/man3/pthread_attr_setschedparam.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:28 +#: 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:36 +#: build/C/man3/pthread_attr_setinheritsched.3:38 #, no-wrap 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:53 +#: 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:56 +#: 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:56 +#: build/C/man3/pthread_attr_setinheritsched.3:67 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:64 +#: 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." @@ -2434,14 +2529,14 @@ msgstr "" "I 内のスケジューリング属性は無視される。" #. type: TP -#: build/C/man3/pthread_attr_setinheritsched.3:64 +#: 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:71 +#: 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." @@ -2450,39 +2545,38 @@ msgstr "" "指定された値からスケジューリング属性を取得する。" #. type: Plain text -#: build/C/man3/pthread_attr_setinheritsched.3:75 +#: 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:82 +#: 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:88 +#: 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:92 +#: 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:99 +#: 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 " @@ -2492,59 +2586,66 @@ 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:117 +#: 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:120 -#: build/C/man3/pthread_attr_setschedparam.3:96 -#: build/C/man3/pthread_attr_setschedpolicy.3:92 +"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:129 +#: 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:24 +#: build/C/man3/pthread_attr_setschedparam.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSCHEDPARAM" msgstr "PTHREAD_ATTR_SETSCHEDPARAM" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:28 +#: build/C/man3/pthread_attr_setschedparam.3:30 msgid "" "pthread_attr_setschedparam, pthread_attr_getschedparam - set/get scheduling " "parameter attributes in thread attributes object" @@ -2553,21 +2654,21 @@ msgstr "" "スレッド属性オブジェクトのスケジューリングパラメータ属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:36 +#: build/C/man3/pthread_attr_setschedparam.3:38 #, no-wrap 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 -#: build/C/man3/pthread_attr_setschedparam.3:50 +#: build/C/man3/pthread_attr_setschedparam.3:52 msgid "" "The B() function sets the scheduling parameter " "attributes of the thread attributes object referred to by I to the " @@ -2582,7 +2683,7 @@ msgstr "" "作成されるスレッドのスケジューリングパラメータが決定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:57 +#: build/C/man3/pthread_attr_setschedparam.3:59 msgid "" "The B() returns the scheduling parameter " "attributes of the thread attributes object I in the buffer pointed to " @@ -2593,13 +2694,13 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:59 +#: build/C/man3/pthread_attr_setschedparam.3:61 msgid "Scheduling parameters are maintained in the following structure:" msgstr "スケジューリングパラメータは以下の構造体で管理される。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:65 -#: build/C/man3/pthread_setschedparam.3:67 +#: build/C/man3/pthread_attr_setschedparam.3:67 +#: build/C/man3/pthread_setschedparam.3:69 #, no-wrap msgid "" "struct sched_param {\n" @@ -2611,21 +2712,35 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:72 -#: build/C/man3/pthread_setschedparam.3:74 +#: build/C/man3/pthread_attr_setschedparam.3:74 +#: build/C/man3/pthread_setschedparam.3:76 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:87 +#: build/C/man3/pthread_attr_setschedparam.3:100 msgid "" "POSIX.1 documents B and B errors for " "B(). On Linux these functions always succeed " @@ -2640,7 +2755,16 @@ msgstr "" "正のエラーの返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:93 +#: 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." @@ -2649,26 +2773,26 @@ msgstr "" "ついては、 B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedparam.3:106 +#: 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:24 +#: build/C/man3/pthread_attr_setschedpolicy.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSCHEDPOLICY" msgstr "PTHREAD_ATTR_SETSCHEDPOLICY" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:28 +#: build/C/man3/pthread_attr_setschedpolicy.3:30 msgid "" "pthread_attr_setschedpolicy, pthread_attr_getschedpolicy - set/get " "scheduling policy attribute in thread attributes object" @@ -2677,17 +2801,17 @@ msgstr "" "オブジェクトのスケジューリングポリシー属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:36 +#: build/C/man3/pthread_attr_setschedpolicy.3:38 #, 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:50 +#: build/C/man3/pthread_attr_setschedpolicy.3:52 msgid "" "The B() function sets the scheduling policy " "attribute of the thread attributes object referred to by I to the " @@ -2704,17 +2828,16 @@ msgstr "" #. but pthread_attr_setschedpolicy() restricts policy to RR/FIFO/OTHER #. http://sourceware.org/bugzilla/show_bug.cgi?id=7013 #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:63 +#: 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:70 +#: build/C/man3/pthread_attr_setschedpolicy.3:72 msgid "" "The B() returns the scheduling policy " "attribute of the thread attributes object I in the buffer pointed to " @@ -2725,19 +2848,33 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:76 +#: 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:80 +#: 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:87 +#: 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 " @@ -2748,26 +2885,35 @@ msgstr "" "も追加で規定されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setschedpolicy.3:101 +#: 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:24 +#: build/C/man3/pthread_attr_setscope.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSCOPE" msgstr "PTHREAD_ATTR_SETSCOPE" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:28 +#: build/C/man3/pthread_attr_setscope.3:30 msgid "" "pthread_attr_setscope, pthread_attr_getscope - set/get contention scope " "attribute in thread attributes object" @@ -2776,17 +2922,17 @@ msgstr "" "スレッド属性オブジェクトの contention scope 属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:36 +#: build/C/man3/pthread_attr_setscope.3:38 #, 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:51 +#: build/C/man3/pthread_attr_setscope.3:53 msgid "" "The B() function sets the contention scope attribute " "of the thread attributes object referred to by I to the value " @@ -2802,13 +2948,13 @@ msgstr "" "POSIX.1-2001 では I に指定する値として 2 つの値が規定されている。" #. type: TP -#: build/C/man3/pthread_attr_setscope.3:51 +#: build/C/man3/pthread_attr_setscope.3:53 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:59 +#: build/C/man3/pthread_attr_setscope.3:61 msgid "" "The thread competes for resources with all other threads in all processes on " "the system that are in the same scheduling allocation domain (a group of one " @@ -2822,13 +2968,13 @@ msgstr "" "優先度に基づき、互いに相対的にスケジューリングされる。" #. type: TP -#: build/C/man3/pthread_attr_setscope.3:59 +#: build/C/man3/pthread_attr_setscope.3:61 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:74 +#: build/C/man3/pthread_attr_setscope.3:76 msgid "" "The thread competes for resources with all other threads in the same process " "that were also created with the B contention scope. " @@ -2848,20 +2994,34 @@ msgstr "" "規定されないままになっている。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:81 +#: build/C/man3/pthread_attr_setscope.3:83 +msgid "" +"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 scope の" +"うち少なくとも 1 つをサポートすることだけである。 Linux は " +"B をサポートしているが、 B はサ" +"ポートしていない。" + +#. type: Plain text +#: build/C/man3/pthread_attr_setscope.3:95 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." +"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 "" -"POSIX.1-2001 で求められているのは、スレッド実装がこれらの contention\n" -"scope のうち 1 つをサポートすることだけであるが、\n" -"両方をサポートすることも認めている。\n" -"Linux は B をサポートしているが、\n" -"B はサポートしていない。" +"複数の contention scope をサポートしているシステムで、 B(3) " +"を呼び出した際に B() で行ったパラメータ設定を有効にす" +"るには、 呼び出し側で B(3) を使って 属性オブ" +"ジェクト I の inherit-scheduler 属性を B に設定" +"しておかなければならない。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:89 +#: 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 " @@ -2872,23 +3032,23 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:95 +#: 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:99 +#: 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:99 +#: build/C/man3/pthread_attr_setscope.3:113 #, no-wrap msgid "B" msgstr "B" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:105 +#: build/C/man3/pthread_attr_setscope.3:119 msgid "" "I specified the value B, which is not " "supported on Linux." @@ -2897,21 +3057,30 @@ msgstr "" "この値は Linux でサポートされていない。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:115 +#: build/C/man3/pthread_attr_setscope.3:126 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." +"The B() and B() functions " +"are thread-safe." msgstr "" -"B contention scope では、通常は、一つの\n" -"ユーザ空間スレッドは一つのカーネルスケジューリング・エンティティに\n" +"関数 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 " +"is the case on Linux for the obsolete LinuxThreads implementation and the " +"modern NPTL implementation, which are both 1:1 threading implementations." +msgstr "" +"B contention scope では、通常は、一つの\n" +"ユーザ空間スレッドは一つのカーネルスケジューリング・エンティティに\n" "直接結び付けられる。\n" "Linux では、廃止予定の LinuxThreads 実装も新しい NPTL 実装もこれに\n" "該当し、両方とも 1:1 で結び付けられるスレッド実装となっている。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:118 +#: build/C/man3/pthread_attr_setscope.3:139 msgid "" "POSIX.1-2001 specifies that the default contention scope is implementation-" "defined." @@ -2920,7 +3089,7 @@ msgstr "" "実装時で定義されるものと規定されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setscope.3:126 +#: build/C/man3/pthread_attr_setscope.3:149 msgid "" "B(3), B(3), " "B(3), B(3), " @@ -2931,13 +3100,13 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_attr_setstack.3:24 +#: build/C/man3/pthread_attr_setstack.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSTACK" msgstr "PTHREAD_ATTR_SETSTACK" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:28 +#: build/C/man3/pthread_attr_setstack.3:30 msgid "" "pthread_attr_setstack, pthread_attr_getstack - set/get stack attributes in " "thread attributes object" @@ -2946,37 +3115,40 @@ msgstr "" "スレッド属性オブジェクトのスタック属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:36 +#: build/C/man3/pthread_attr_setstack.3:38 #, no-wrap 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:43 build/C/man3/pthread_sigqueue.3:39 +#: 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) 参照):" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:48 +#: build/C/man3/pthread_attr_setstack.3:50 msgid "B(), B():" msgstr "B(), B():" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:50 +#: build/C/man3/pthread_attr_setstack.3:52 msgid "_POSIX_C_SOURCE\\ E=\\ 200112L || _XOPEN_SOURCE\\ E=\\ 600" msgstr "_POSIX_C_SOURCE\\ E=\\ 200112L || _XOPEN_SOURCE\\ E=\\ 600" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:66 +#: build/C/man3/pthread_attr_setstack.3:68 msgid "" "The B() function sets the stack address and stack " "size attributes of the thread attributes object referred to by I to " @@ -2992,7 +3164,7 @@ msgstr "" "作成されるスレッドが使用すべきスタックの位置とサイズが指定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:72 +#: build/C/man3/pthread_attr_setstack.3:74 msgid "" "I should point to the lowest addressable byte of a buffer of " "I bytes that was allocated by the caller. The pages of the " @@ -3004,7 +3176,7 @@ msgstr "" "べきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:83 +#: build/C/man3/pthread_attr_setstack.3:85 msgid "" "The B() function returns the stack address and stack " "size attributes of the thread attributes object referred to by I in " @@ -3016,12 +3188,12 @@ msgstr "" "指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:89 +#: build/C/man3/pthread_attr_setstack.3:91 msgid "B() can fail with the following error:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:100 +#: build/C/man3/pthread_attr_setstack.3:102 msgid "" "I is less than B (16384) bytes. On some " "systems, this error may also occur if I or I error if the stack area described " "by I and I is not both readable and writable by the " @@ -3044,12 +3216,21 @@ msgstr "" "呼び出し側から読み書き両方のアクセスができない状況を表す。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:110 +#: build/C/man3/pthread_attr_setstack.3:112 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:120 +#: 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, " @@ -3065,7 +3246,7 @@ msgstr "" "必要がある場合には B(3) を使うこと)" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:131 +#: 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 " @@ -3083,7 +3264,7 @@ msgstr "" "スタックオーバーフローの可能性に対処するようにする必要がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:142 +#: 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). " @@ -3097,7 +3278,7 @@ msgstr "" "たいていは、 I はシステムのページサイズの倍数とすべきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:151 +#: 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); " @@ -3111,7 +3292,7 @@ msgstr "" "使おうとするため、訳の分からない状況が発生してしまう。" #. type: Plain text -#: build/C/man3/pthread_attr_setstack.3:164 +#: build/C/man3/pthread_attr_setstack.3:174 msgid "" "B(2), B(2), B(3), B(3), " "B(3), B(3), " @@ -3122,13 +3303,13 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_attr_setstackaddr.3:24 +#: build/C/man3/pthread_attr_setstackaddr.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSTACKADDR" msgstr "PTHREAD_ATTR_SETSTACKADDR" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:28 +#: build/C/man3/pthread_attr_setstackaddr.3:30 msgid "" "pthread_attr_setstackaddr, pthread_attr_getstackaddr - set/get stack address " "attribute in thread attributes object" @@ -3137,26 +3318,27 @@ msgstr "" "スレッド属性オブジェクトのスタックアドレス属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:36 +#: build/C/man3/pthread_attr_setstackaddr.3:38 #, 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:47 +#: build/C/man3/pthread_attr_setstackaddr.3:49 msgid "" "These functions are obsolete: B Use " "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:58 +#: build/C/man3/pthread_attr_setstackaddr.3:60 msgid "" "The B() function sets the stack address " "attribute of the thread attributes object referred to by I to the " @@ -3171,7 +3353,7 @@ msgstr "" "作成されるスレッドが使用すべきスタックの位置が指定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:64 +#: build/C/man3/pthread_attr_setstackaddr.3:66 msgid "" "I should point to a buffer of at least B bytes " "that was allocated by the caller. The pages of the allocated buffer should " @@ -3183,7 +3365,7 @@ msgstr "" "なっているべきである。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:72 +#: build/C/man3/pthread_attr_setstackaddr.3:74 msgid "" "The B() function returns the stack address " "attribute of the thread attributes object referred to by I in the " @@ -3194,7 +3376,7 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:79 +#: build/C/man3/pthread_attr_setstackaddr.3:81 msgid "" "No errors are defined (but applications should nevertheless handle a " "possible error return)." @@ -3203,7 +3385,16 @@ msgstr "" "返り値を処理するようにすべきである)。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:84 +#: 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." @@ -3212,7 +3403,7 @@ msgstr "" "POSIX.1-2008 では、これらの関数の規定は削除されている。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:108 +#: 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 " @@ -3238,7 +3429,7 @@ msgstr "" "へのポインタである (I 引き数はスタックの範囲を指定する)。" #. type: Plain text -#: build/C/man3/pthread_attr_setstackaddr.3:114 +#: build/C/man3/pthread_attr_setstackaddr.3:123 msgid "" "B(3), B(3), " "B(3), B(3), B(7)" @@ -3247,13 +3438,13 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_attr_setstacksize.3:24 +#: build/C/man3/pthread_attr_setstacksize.3:26 #, no-wrap msgid "PTHREAD_ATTR_SETSTACKSIZE" msgstr "PTHREAD_ATTR_SETSTACKSIZE" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:28 +#: build/C/man3/pthread_attr_setstacksize.3:30 msgid "" "pthread_attr_setstacksize, pthread_attr_getstacksize - set/get stack size " "attribute in thread attributes object" @@ -3262,17 +3453,17 @@ msgstr "" "スレッド属性オブジェクトのスタックサイズ属性の設定/取得を行う" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:36 +#: build/C/man3/pthread_attr_setstacksize.3:38 #, 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:47 +#: build/C/man3/pthread_attr_setstacksize.3:49 msgid "" "The B() function sets the stack size attribute " "of the thread attributes object referred to by I to the value " @@ -3283,7 +3474,7 @@ msgstr "" "属性を I で指定された値に設定する。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:51 +#: build/C/man3/pthread_attr_setstacksize.3:53 msgid "" "The stack size attribute determines the minimum size (in bytes) that will be " "allocated for threads created using the thread attributes object I." @@ -3293,7 +3484,7 @@ msgstr "" "に割り当てられる最小サイズ (バイト単位) が決定される。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:59 +#: build/C/man3/pthread_attr_setstacksize.3:61 msgid "" "The B() function returns the stack size " "attribute of the thread attributes object referred to by I in the " @@ -3304,18 +3495,18 @@ msgstr "" "I が指すバッファに入れて返す。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:65 +#: build/C/man3/pthread_attr_setstacksize.3:67 msgid "B() can fail with the following error:" msgstr "B() は以下のエラーで失敗する場合がある。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:70 +#: build/C/man3/pthread_attr_setstacksize.3:72 msgid "The stack size is less than B (16384) bytes." msgstr "スタックサイズが B (16384) バイト未満である。" #. e.g., MacOS #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:79 +#: build/C/man3/pthread_attr_setstacksize.3:81 msgid "" "On some systems, B() can fail with the error " "B if I is not a multiple of the system page size." @@ -3325,16 +3516,25 @@ msgstr "" "エラー B で失敗する。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:86 +#: build/C/man3/pthread_attr_setstacksize.3:90 msgid "" -"For details on the default stack size of new threads, see B" -"(3)." +"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)." msgstr "" "新しいスレッドのデフォルトのスタックサイズの詳細については\n" "B(3) を参照。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:89 +#: 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." @@ -3343,7 +3543,7 @@ msgstr "" "メインスレッドだけがスタックを動的に伸ばすことができる。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:94 +#: 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 " @@ -3354,7 +3554,7 @@ msgstr "" "呼び出し側で割り当てたスタックのサイズと場所を指定できる。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:106 +#: 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 " @@ -3369,13 +3569,13 @@ msgstr "" "少なくとも I バイトになると書かれている。" #. type: Plain text -#: build/C/man3/pthread_attr_setstacksize.3:109 -#: build/C/man3/pthread_join.3:125 +#: 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:116 +#: build/C/man3/pthread_attr_setstacksize.3:125 msgid "" "B(2), B(3), B(3), " "B(3), B(3), B(7)" @@ -3384,30 +3584,30 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_cancel.3:24 +#: build/C/man3/pthread_cancel.3:26 #, no-wrap msgid "PTHREAD_CANCEL" msgstr "PTHREAD_CANCEL" #. type: TH -#: build/C/man3/pthread_cancel.3:24 build/C/man3/pthread_setschedparam.3:24 +#: build/C/man3/pthread_cancel.3:26 #, no-wrap msgid "2008-11-17" msgstr "2008-11-17" #. type: Plain text -#: build/C/man3/pthread_cancel.3:27 +#: build/C/man3/pthread_cancel.3:29 msgid "pthread_cancel - send a cancellation request to a thread" msgstr "pthread_cancel - スレッドにキャンセル要求を送る" #. type: Plain text -#: build/C/man3/pthread_cancel.3:32 +#: build/C/man3/pthread_cancel.3:34 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:44 +#: 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 " @@ -3420,7 +3620,7 @@ msgstr "" "I と Iにより決まる。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:56 +#: 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 " @@ -3436,7 +3636,7 @@ msgstr "" "cancelability type によって、いつキャンセルが発生するかが決まる。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:72 +#: 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). " @@ -3444,21 +3644,21 @@ 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 "" -"スレッドの cancellation type は B(3) で設定され、\n" -"I か I のいずれかとなる(I が新しいスレッド\n" -"のデフォルト値である)。\n" -"非同期キャンセル (asynchronous cancelability) は、そのスレッドはいつでも\n" -"キャンセルされることを意味する (通常はすぐにキャンセルされるが、システムが\n" -"そのことを保証しているわけではない)。\n" -"遅延キャンセル (deferred cancelability) では、そのスレッドが I となっている関数を次に呼び出すまでキャンセルが遅延される。\n" -"取り消しポイント (cancellation point) に設定されていたり設定したりできる\n" -"関数のリストは I(7) に記載している。" +"スレッドのキャンセル種別 (cancelability type) は\n" +"B(3) で設定され、I か I\n" +"のいずれかとなる(I が新しいスレッドのデフォルト値である)。\n" +"非同期キャンセル (asynchronous cancelability) は、そのスレッドはいつで\n" +"もキャンセルされることを意味する (通常はすぐにキャンセルされるが、\n" +"システムがそのことを保証しているわけではない)。遅延キャンセル\n" +"(deferred cancelability) では、そのスレッドが I<取り消しポイント\n" +"(cancellation point)> となっている関数を次に呼び出すまでキャンセルが\n" +"遅延される。取り消しポイントに設定されていたり設定\n" +"したりできる関数のリストは B(7) に記載している。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:76 +#: build/C/man3/pthread_cancel.3:81 msgid "" "When a cancellation requested is acted on, the following steps occur for " "I (in this order):" @@ -3467,13 +3667,13 @@ msgstr "" "I では以下のステップが (この順序で) 行われる。" #. type: IP -#: build/C/man3/pthread_cancel.3:76 build/C/man3/pthread_cleanup_push.3:67 +#: 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:81 +#: 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).)" @@ -3483,13 +3683,13 @@ msgstr "" "(B(3) 参照)" #. type: IP -#: build/C/man3/pthread_cancel.3:81 build/C/man3/pthread_cleanup_push.3:71 +#: 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:86 +#: build/C/man3/pthread_cancel.3:91 msgid "" "Thread-specific data destructors are called, in an unspecified order. (See " "B(3).)" @@ -3499,29 +3699,29 @@ msgstr "" "(B(3) 参照)" #. type: IP -#: build/C/man3/pthread_cancel.3:86 build/C/man3/pthread_cleanup_push.3:79 +#: 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:90 +#: 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:98 +#: 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:107 +#: 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 " @@ -3534,7 +3734,7 @@ msgstr "" "(スレッドの join はキャンセルが完了したかを知る唯一の方法である)" #. type: Plain text -#: build/C/man3/pthread_cancel.3:112 +#: build/C/man3/pthread_cancel.3:117 msgid "" "On success, B() returns 0; on error, it returns a nonzero " "error number." @@ -3543,26 +3743,26 @@ msgstr "" "エラーの場合、0 以外のエラー番号を返す。" #. type: TP -#: build/C/man3/pthread_cancel.3:113 build/C/man3/pthread_detach.3:57 -#: build/C/man3/pthread_getcpuclockid.3:56 build/C/man3/pthread_join.3:91 -#: build/C/man3/pthread_kill.3:59 build/C/man3/pthread_setaffinity_np.3:112 -#: build/C/man3/pthread_setschedparam.3:112 -#: build/C/man3/pthread_setschedprio.3:68 build/C/man3/pthread_sigqueue.3:83 +#: 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_setaffinity_np.3:114 +#: build/C/man3/pthread_setschedparam.3:114 +#: 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:120 build/C/man3/pthread_detach.3:62 -#: build/C/man3/pthread_getcpuclockid.3:61 build/C/man3/pthread_join.3:96 -#: build/C/man3/pthread_kill.3:64 build/C/man3/pthread_setaffinity_np.3:117 -#: build/C/man3/pthread_setschedparam.3:117 -#: build/C/man3/pthread_setschedprio.3:73 +#: 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_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:130 +#: 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 " @@ -3577,7 +3777,7 @@ msgstr "" "シグナルが使用され、そうでない場合は B が使用される。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:136 +#: 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 " @@ -3591,7 +3791,7 @@ msgstr "" "確認する。以下のシェルセッションはこのプログラムを実行した際の実行例である。" #. type: Plain text -#: build/C/man3/pthread_cancel.3:144 +#: build/C/man3/pthread_cancel.3:149 #, no-wrap msgid "" "$ ./a.out\n" @@ -3607,7 +3807,7 @@ msgstr "" "main(): thread was canceled\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:154 +#: build/C/man3/pthread_cancel.3:159 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -3623,7 +3823,7 @@ msgstr "" "#include Eunistd.hE\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:162 +#: build/C/man3/pthread_cancel.3:167 #, no-wrap msgid "" "static void *\n" @@ -3637,7 +3837,7 @@ msgstr "" " int s;\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:165 +#: build/C/man3/pthread_cancel.3:170 #, no-wrap msgid "" " /* Disable cancellation for a while, so that we don\\(aqt\n" @@ -3647,7 +3847,7 @@ msgstr "" " immediately react to a cancellation request */\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:169 +#: build/C/man3/pthread_cancel.3:174 #, no-wrap msgid "" " s = pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, NULL);\n" @@ -3659,7 +3859,7 @@ msgstr "" " handle_error_en(s, \"pthread_setcancelstate\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:173 +#: build/C/man3/pthread_cancel.3:178 #, no-wrap msgid "" " printf(\"thread_func(): started; cancellation disabled\\en\");\n" @@ -3671,7 +3871,7 @@ msgstr "" " printf(\"thread_func(): about to enable cancellation\\en\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:177 +#: build/C/man3/pthread_cancel.3:182 #, no-wrap msgid "" " s = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);\n" @@ -3683,25 +3883,25 @@ msgstr "" " handle_error_en(s, \"pthread_setcancelstate\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:179 +#: 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:181 +#: 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:183 +#: 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:187 +#: build/C/man3/pthread_cancel.3:192 #, no-wrap msgid "" " printf(\"thread_func(): not canceled!\\en\");\n" @@ -3713,7 +3913,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:194 +#: build/C/man3/pthread_cancel.3:199 #, no-wrap msgid "" "int\n" @@ -3731,13 +3931,13 @@ msgstr "" " int s;\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:196 +#: 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:200 +#: build/C/man3/pthread_cancel.3:205 #, no-wrap msgid "" " s = pthread_create(&thr, NULL, &thread_func, NULL);\n" @@ -3749,13 +3949,13 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:202 +#: 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:207 +#: build/C/man3/pthread_cancel.3:212 #, no-wrap msgid "" " printf(\"main(): sending cancellation request\\en\");\n" @@ -3769,13 +3969,13 @@ msgstr "" " handle_error_en(s, \"pthread_cancel\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:209 +#: 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:213 build/C/man3/pthread_cleanup_push.3:301 +#: build/C/man3/pthread_cancel.3:218 build/C/man3/pthread_cleanup_push.3:307 #, no-wrap msgid "" " s = pthread_join(thr, &res);\n" @@ -3787,7 +3987,7 @@ msgstr "" " handle_error_en(s, \"pthread_join\");\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:220 +#: build/C/man3/pthread_cancel.3:225 #, no-wrap msgid "" " if (res == PTHREAD_CANCELED)\n" @@ -3805,7 +4005,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cancel.3:231 +#: build/C/man3/pthread_cancel.3:238 msgid "" "B(3), B(3), B(3), " "B(3), B(3), B(3), " @@ -3816,20 +4016,19 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_cleanup_push.3:24 +#: build/C/man3/pthread_cleanup_push.3:26 #, no-wrap msgid "PTHREAD_CLEANUP_PUSH" msgstr "PTHREAD_CLEANUP_PUSH" #. type: TH -#: build/C/man3/pthread_cleanup_push.3:24 -#: build/C/man3/pthread_setcancelstate.3:24 +#: build/C/man3/pthread_cleanup_push.3:26 #, no-wrap msgid "2008-11-24" msgstr "2008-11-24" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:28 +#: build/C/man3/pthread_cleanup_push.3:30 msgid "" "pthread_cleanup_push, pthread_cleanup_pop - push and pop thread cancellation " "clean-up handlers" @@ -3838,7 +4037,7 @@ msgstr "" "キャンセルクリーンアップハンドラの push/pop を行う" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:35 +#: build/C/man3/pthread_cleanup_push.3:37 #, no-wrap msgid "" "BIB<)(void *),>\n" @@ -3850,7 +4049,7 @@ msgstr "" "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:46 +#: build/C/man3/pthread_cleanup_push.3:48 msgid "" "These functions manipulate the calling thread's stack of thread-cancellation " "clean-up handlers. A clean-up handler is a function that is automatically " @@ -3858,111 +4057,159 @@ msgid "" "described below); it might, for example, unlock a mutex so that it becomes " "available to other threads in the process." msgstr "" +"これらの関数は、呼び出したスレッドのスレッドキャンセル時のクリーンアッ\n" +"プハンドラのスタックの操作を行う。クリーンアップハンドラは、スレッドが\n" +"キャンセルされた場合 (や以下で説明する他の種々の状況において) 自動的に\n" +"実行される関数である。例えば、mutex のロック解除を行い、プロセス内の\n" +"他のスレッドが利用できるようにする関数などが考えられる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:57 +#: build/C/man3/pthread_cleanup_push.3:59 msgid "" "The B() function pushes I onto the top of " "the stack of clean-up handlers. When I is later invoked, it will " "be given I as its argument." msgstr "" +"B() 関数は、 I をクリーンアップ\n" +"ハンドラのスタックの一番上にプッシュする。 I が後で\n" +"起動される際には、 I が関数の引き数と渡される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:64 +#: build/C/man3/pthread_cleanup_push.3:66 msgid "" "The B() function removes the routine at the top of the " "stack of clean-up handlers, and optionally executes it if I is " "nonzero." msgstr "" +"B() 関数は、クリーンアップハンドラの\n" +"スタックの一番上のルーチンを削除する。\n" +"I が 0 以外の場合にはそのルーチンを追加で実行する。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:67 +#: build/C/man3/pthread_cleanup_push.3:69 msgid "" "A cancellation clean-up handler is popped from the stack and executed in the " "following circumstances:" msgstr "" +"キャンセルクリーンアップハンドラは、以下に示す場合に\n" +"スタックから取り出され実行される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:71 +#: build/C/man3/pthread_cleanup_push.3:73 msgid "" "When a thread is canceled, all of the stacked clean-up handlers are popped " "and executed in the reverse of the order in which they were pushed onto the " "stack." msgstr "" +"スレッドがキャンセルされた際に、スタックに登録された全てのクリーン\n" +"アップハンドラが取り出されて、実行される。クリーンアップハンドラの\n" +"実行は、スタックに登録されたのと逆の順序で行われる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:79 +#: 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 " "handlers are I called if the thread terminates by performing a " "I from the thread start function.)" msgstr "" +"スレッドが B(3) を呼び出して終了する際に、全てのクリーン\n" +"アップハンドラが上の項目で述べたのと同様に実行される。\n" +"(スレッドがスレッド開始関数からの I の実行により終了する場合に\n" +"は、クリーンアップハンドラはI<呼び出されない>。)" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:85 +#: 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." msgstr "" +"スレッドが 0 以外の I 引き数で B() を\n" +"呼び出した際に、スタックの一番上のクリーンアップハンドラが取り出されて\n" +"実行される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:97 +#: 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" +"して実装することを許容している。\n" +"このため、呼び出し側では、これらの関数の呼び出しが同じ関数の中で対と\n" +"なり、かつ文法的に同じネストレベル (nesting level) になることを保証\n" +"しなければならない。 (言い換えると、クリーンアップハンドラは、コード\n" +"の特定のセクションの実行の中でのみ設定するものであると言える。)" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:117 +#: 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." -msgstr "" +"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" +"なる呼び出しがない状態で行われた場合には、どのような結果になるかは不定\n" +"である。これは jump バッファは B(3) (B(3)) により設\n" +"定されるからである。同様に、クリーンアップハンドラ内からの\n" +"B(3) (B(3)) の呼び出しも、jump バッファがハンドラ\n" +"内で B(3) (B(3)) で設定されていない限り、どのような\n" +"結果になるかは不定である。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:119 +#: 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:123 +#: build/C/man3/pthread_cleanup_push.3:127 msgid "There are no errors." msgstr "エラーはない。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:134 +#: 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" +"マクロとして実装されている。このことは、これらの関数を対で呼び出した\n" +"スコープ内で宣言された変数は、そのスコープの中でしか参照できない\n" +"ということを意味している。" #. The text was actually added in the 2004 TC2 #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:149 +#: 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() " "and B() is undefined. Portable applications should " "avoid doing this." msgstr "" +"POSIX.1 には、括弧を含む B() と\n" +"B() のブロックをそのままにしたままで、 \n" +"I, I, I, I を使った場合の影響は\n" +"不定であると書かれている。\n" +"移植性が必要なアプリケーションではこれを行うのは避けるべきである。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:164 +#: 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 " @@ -3972,16 +4219,26 @@ msgid "" "thread a cancellation request, or sets a global variable that causes the " "other thread to exit its loop and terminate normally (by doing a I)." msgstr "" +"以下のプログラムは、このページで説明した関数の簡単な使用例を示すもので\n" +"ある。このプログラムは B() と\n" +"B() で囲まれたループを実行するスレッドを作成する。\n" +"このループではグローバル変数 I を 1 秒に 1 ずつ増やしていく。\n" +"指定されたコマンドライン引き数の内容に基づいて、メインスレッドはもう一\n" +"つのスレッドにキャンセル要求を送ったり、もう一つのスレッドがループを\n" +"抜けて (I を呼び出して) 正常終了するようにグローバル変数を\n" +"設定したりする。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:167 +#: 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:" msgstr "" +"以下のシェルセッションでは、メインスレッドはもう一つのスレッドに\n" +"キャンセル要求を送信する。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:177 +#: build/C/man3/pthread_cleanup_push.3:183 #, no-wrap msgid "" "$ B<./a.out>\n" @@ -4001,22 +4258,27 @@ msgstr "" "Thread was canceled; cnt = 0\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:185 +#: 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 " "global variable I to 0." msgstr "" +"上記の実行例から、スレッドがキャンセルされ、\n" +"キャンセルクリーンアップハンドラが呼び出され、\n" +"グローバル変数 I の値が 0 にリセットされていることが確認できる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:188 +#: 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:" msgstr "" +"次の実行例では、メインプログラムはグローバル変数を設定して、\n" +"もう一つのスレッドが正常終了するようにしている。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:196 +#: build/C/man3/pthread_cleanup_push.3:202 #, no-wrap msgid "" "$ B<./a.out x>\n" @@ -4032,22 +4294,28 @@ msgstr "" "Thread terminated normally; cnt = 2\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:204 +#: 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." msgstr "" +"上記では、 (I が 0 なので) クリーンアップハンドラは\n" +"実行されておらず、その結果 I の値はリセットされていないことが\n" +"分かる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:209 +#: 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 " "I:" msgstr "" +"次の実行例では、メインプログラムはグローバル変数を設定して、\n" +"もう一つのスレッドが正常終了するようにし、さらに\n" +"I に 0 以外の値を渡している。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:218 +#: build/C/man3/pthread_cleanup_push.3:224 #, no-wrap msgid "" "$ B<./a.out x 1>\n" @@ -4065,15 +4333,18 @@ msgstr "" "Thread terminated normally; cnt = 0\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:225 +#: 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:234 +#: build/C/man3/pthread_cleanup_push.3:240 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -4091,7 +4362,7 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:241 +#: build/C/man3/pthread_cleanup_push.3:247 #, no-wrap msgid "" "static int done = 0;\n" @@ -4103,7 +4374,7 @@ msgstr "" "static int cnt = 0;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:248 +#: build/C/man3/pthread_cleanup_push.3:254 #, no-wrap msgid "" "static void\n" @@ -4121,7 +4392,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:253 +#: build/C/man3/pthread_cleanup_push.3:259 #, no-wrap msgid "" "static void *\n" @@ -4135,25 +4406,25 @@ msgstr "" " time_t start, curr;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:255 +#: 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:257 +#: 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:259 +#: 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:268 +#: build/C/man3/pthread_cleanup_push.3:274 #, no-wrap msgid "" " while (!done) {\n" @@ -4175,7 +4446,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:272 +#: build/C/man3/pthread_cleanup_push.3:278 #, no-wrap msgid "" " pthread_cleanup_pop(cleanup_pop_arg);\n" @@ -4187,7 +4458,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:279 +#: build/C/man3/pthread_cleanup_push.3:285 #, no-wrap msgid "" "int\n" @@ -4205,7 +4476,7 @@ msgstr "" " void *res;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:283 +#: build/C/man3/pthread_cleanup_push.3:289 #, no-wrap msgid "" " s = pthread_create(&thr, NULL, thread_start, NULL);\n" @@ -4217,13 +4488,13 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:285 +#: 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:290 +#: build/C/man3/pthread_cleanup_push.3:296 #, no-wrap msgid "" " if (argc E 1) {\n" @@ -4237,7 +4508,7 @@ msgstr "" " done = 1;\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:297 +#: build/C/man3/pthread_cleanup_push.3:303 #, no-wrap msgid "" " } else {\n" @@ -4255,7 +4526,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:308 +#: build/C/man3/pthread_cleanup_push.3:314 #, no-wrap msgid "" " if (res == PTHREAD_CANCELED)\n" @@ -4273,7 +4544,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push.3:315 +#: build/C/man3/pthread_cleanup_push.3:321 msgid "" "B(3), B(3), " "B(3), B(3), B(7)" @@ -4282,26 +4553,23 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_cleanup_push_defer_np.3:24 +#: build/C/man3/pthread_cleanup_push_defer_np.3:26 #, no-wrap msgid "PTHREAD_CLEANUP_PUSH_DEFER_NP" msgstr "PTHREAD_CLEANUP_PUSH_DEFER_NP" -#. type: TH -#: build/C/man3/pthread_cleanup_push_defer_np.3:24 -#, no-wrap -msgid "2008-12-04" -msgstr "2008-12-04" - #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:28 +#: build/C/man3/pthread_cleanup_push_defer_np.3:30 msgid "" "pthread_cleanup_push_defer_np, pthread_cleanup_pop_restore_np - push and pop " "thread cancellation clean-up handlers while saving cancelability type" msgstr "" +"pthread_cleanup_push_defer_np, pthread_cleanup_pop_restore_np - " +"cancelability type を保持したままでスレッドのキャンセルクリーンアップハンドラ" +"の push/pop を行う" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:35 +#: build/C/man3/pthread_cleanup_push_defer_np.3:37 #, no-wrap msgid "" "BIB<)(void *),>\n" @@ -4313,23 +4581,36 @@ msgstr "" "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:38 -#: build/C/man3/pthread_create.3:36 build/C/man3/pthread_detach.3:35 -#: build/C/man3/pthread_join.3:35 build/C/man3/pthread_kill.3:35 -#: build/C/man3/pthread_sigmask.3:36 build/C/man3/pthread_sigqueue.3:35 -#: build/C/man3/pthread_tryjoin_np.3:40 build/C/man3/pthread_yield.3:34 +#: build/C/man3/pthread_cleanup_push_defer_np.3:40 +#: 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: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:44 +#: 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." msgstr "" +"これらの関数は B(3) と B(3) と同じ" +"だが、このページで説明する点が異なる。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:57 +#: 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 " @@ -4338,50 +4619,70 @@ msgid "" "this ensures that cancellation clean-up will occur even if the thread's " "cancelability type was \"asynchronous\" before the call." msgstr "" +"B(3) と同様に、\n" +"B() は I をそのスレッドの\n" +"クリーンアップハンドラのスタックに追加する。これに加えて、\n" +"B() は現在の cancelability type も\n" +"保存し、cancelability type は \"deferred\" に設定する\n" +"(B(3) 参照)。\n" +"これにより、この関数が呼び出される前のスレッドの cancelability type が\n" +"\"asynchronous\" であったとしても、キャンセルクリーンアップが行われること\n" +"が保証される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:66 +#: 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-" "up handlers. In addition, it restores the thread's cancelability type to " "its value at the time of the matching B()." msgstr "" +"B(3) と同様に、\n" +"B() はそのスレッドのキャンセル\n" +"クリーンアップハンドラのスタックから一番上にあるクリーンアップハンドラ\n" +"を取り出す。これに加えて、そのスレッドの cancelability type を、対応\n" +"する B() が呼ばれた時点の値に戻す。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:72 +#: 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 " "apply, as described in B(3)." msgstr "" +"呼び出し側では、これらの関数の呼び出しが同じ関数の中で対となり、かつ\n" +"文法的に同じネストレベル (nesting level) になることを保証しなければ\n" +"ならない。 B(3) で説明されている他の制限も\n" +"適用される。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:74 +#: build/C/man3/pthread_cleanup_push_defer_np.3:89 msgid "This sequence of calls:" -msgstr "" +msgstr "以下の一連の呼び出し" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:79 +#: build/C/man3/pthread_cleanup_push_defer_np.3:94 #, no-wrap msgid "" "pthread_cleanup_push_defer_np(routine, arg);\n" "pthread_cleanup_pop_restore_np(execute);\n" msgstr "" +"pthread_cleanup_push_defer_np(routine, arg);\n" +"pthread_cleanup_pop_restore_np(execute);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:83 +#: build/C/man3/pthread_cleanup_push_defer_np.3:98 msgid "is equivalent to (but shorter and more efficient than):" -msgstr "" +msgstr "と以下は等価である (但し、上の方がより簡潔で効率的である)。" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:89 +#: 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:95 +#: build/C/man3/pthread_cleanup_push_defer_np.3:110 #, no-wrap msgid "" "pthread_cleanup_push(routine, arg);\n" @@ -4397,27 +4698,27 @@ msgstr "" "pthread_cleanup_pop(execute);\n" #. type: Plain text -#: build/C/man3/pthread_cleanup_push_defer_np.3:108 +#: 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:24 +#: build/C/man3/pthread_create.3:26 #, no-wrap msgid "PTHREAD_CREATE" msgstr "PTHREAD_CREATE" #. type: Plain text -#: build/C/man3/pthread_create.3:27 +#: build/C/man3/pthread_create.3:29 msgid "pthread_create - create a new thread" msgstr "pthread_create - 新しいスレッドを作成する" #. type: Plain text -#: build/C/man3/pthread_create.3:33 +#: build/C/man3/pthread_create.3:35 #, no-wrap msgid "" "BIB<, const pthread_attr_t *>IB<,>\n" @@ -4427,37 +4728,38 @@ msgstr "" "B< void *(*>IB<) (void *), void *>IB<);>\n" #. type: Plain text -#: build/C/man3/pthread_create.3:45 +#: build/C/man3/pthread_create.3:47 msgid "" "The B() function starts a new thread in the calling " "process. The new thread starts execution by invoking I(); " "I is passed as the sole argument of I()." msgstr "" -"B() 関数は、呼び出したプロセス内に新しいスレッドを作成する。\n" +"B() 関数は、呼び出したプロセス内に新しいスレッドを作成す" +"る。\n" "新しいスレッドの実行は、 I() を起動することで開始される。\n" "I() は引き数を一つだけ取り、\n" "I が I() の引き数として渡される。" #. type: Plain text -#: build/C/man3/pthread_create.3:47 +#: build/C/man3/pthread_create.3:49 msgid "The new thread terminates in one of the following ways:" msgstr "新しく作成されたスレッドは、以下のいずれかで終了する。" #. type: IP -#: build/C/man3/pthread_create.3:47 build/C/man3/pthread_create.3:53 -#: build/C/man3/pthread_create.3:61 build/C/man3/pthread_create.3:64 -#: build/C/man3/pthread_getattr_np.3:50 build/C/man3/pthread_getattr_np.3:53 -#: build/C/man3/pthread_getattr_np.3:56 +#: build/C/man3/pthread_create.3:49 build/C/man3/pthread_create.3:55 +#: build/C/man3/pthread_create.3:63 build/C/man3/pthread_create.3:66 +#: build/C/man3/pthread_getattr_np.3:52 build/C/man3/pthread_getattr_np.3:55 +#: build/C/man3/pthread_getattr_np.3:58 #, no-wrap msgid "*" msgstr "*" #. type: Plain text -#: build/C/man3/pthread_create.3:53 +#: 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" @@ -4465,7 +4767,7 @@ msgstr "" "別のスレッドで参照できる。" #. type: Plain text -#: build/C/man3/pthread_create.3:61 +#: build/C/man3/pthread_create.3:63 msgid "" "It returns from I(). This is equivalent to calling " "B(3) with the value supplied in the I statement." @@ -4474,12 +4776,12 @@ msgstr "" "I 文に渡した値で B(3) を呼び出すのと等価である。" #. type: Plain text -#: build/C/man3/pthread_create.3:64 +#: build/C/man3/pthread_create.3:66 msgid "It is canceled (see B(3))." msgstr "スレッドがキャンセルされる (B(3) 参照)。" #. type: Plain text -#: build/C/man3/pthread_create.3:70 +#: build/C/man3/pthread_create.3:72 msgid "" "Any of the threads in the process calls B(3), or the main thread " "performs a return from I
(). This causes the termination of all " @@ -4490,7 +4792,7 @@ msgstr "" "この場合は、プロセス内の全てのスレッドが終了される。" #. type: Plain text -#: build/C/man3/pthread_create.3:84 +#: build/C/man3/pthread_create.3:86 msgid "" "The I argument points to a I structure whose contents " "are used at thread creation time to determine attributes for the new thread; " @@ -4505,7 +4807,7 @@ msgstr "" "I が NULL の場合、新しいスレッドはデフォルトの属性で作成される。" #. type: Plain text -#: build/C/man3/pthread_create.3:91 +#: build/C/man3/pthread_create.3:93 msgid "" "Before returning, a successful call to B() stores the ID of " "the new thread in the buffer pointed to by I; this identifier is " @@ -4516,7 +4818,7 @@ msgstr "" "pthreads 関数の呼び出しでスレッドを参照するのに使用される。" #. type: Plain text -#: build/C/man3/pthread_create.3:99 +#: build/C/man3/pthread_create.3:101 msgid "" "The new thread inherits a copy of the creating thread's signal mask " "(B(3)). The set of pending signals for the new thread is " @@ -4530,7 +4832,7 @@ msgstr "" "(B(2)) を継承しない。" #. type: Plain text -#: build/C/man3/pthread_create.3:102 +#: build/C/man3/pthread_create.3:104 msgid "" "The new thread inherits the calling thread's floating-point environment " "(B(3))." @@ -4540,7 +4842,7 @@ msgstr "" #. CLOCK_THREAD_CPUTIME_ID in clock_gettime(2) #. type: Plain text -#: build/C/man3/pthread_create.3:107 +#: build/C/man3/pthread_create.3:109 msgid "" "The initial value of the new thread's CPU-time clock is 0 (see " "B(3))." @@ -4549,13 +4851,13 @@ msgstr "" "(B(3) 参照)。" #. type: SS -#: build/C/man3/pthread_create.3:107 +#: build/C/man3/pthread_create.3:109 #, no-wrap msgid "Linux-specific details" msgstr "Linux 固有の詳細" #. type: Plain text -#: build/C/man3/pthread_create.3:113 +#: build/C/man3/pthread_create.3:115 msgid "" "The new thread inherits copies of the calling thread's capability sets (see " "B(7)) and CPU affinity mask (see B(2))." @@ -4566,7 +4868,7 @@ msgstr "" "コピーをを継承しない。" #. type: Plain text -#: build/C/man3/pthread_create.3:120 +#: build/C/man3/pthread_create.3:122 msgid "" "On success, B() returns 0; on error, it returns an error " "number, and the contents of I<*thread> are undefined." @@ -4575,20 +4877,36 @@ msgstr "" "エラーの場合は、エラー番号が返され、 I<*thread> の内容は不定である。" #. type: TP -#: build/C/man3/pthread_create.3:121 build/C/man3/pthread_sigqueue.3:69 +#: 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:135 -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" @@ -4598,19 +4916,19 @@ msgstr "" "I が達していた場合である。" #. type: Plain text -#: build/C/man3/pthread_create.3:139 +#: build/C/man3/pthread_create.3:148 msgid "Invalid settings in I." msgstr "I で指定された設定が不正である。" #. type: TP -#: build/C/man3/pthread_create.3:139 build/C/man3/pthread_setschedparam.3:127 -#: build/C/man3/pthread_setschedprio.3:64 +#: 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:144 +#: build/C/man3/pthread_create.3:153 msgid "" "No permission to set the scheduling policy and parameters specified in " "I." @@ -4619,7 +4937,7 @@ msgstr "" "設定する許可がない。" #. type: Plain text -#: build/C/man3/pthread_create.3:158 +#: 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 " @@ -4634,7 +4952,7 @@ msgstr "" "次に実行されるかは決まっていない。" #. type: Plain text -#: build/C/man3/pthread_create.3:178 +#: 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 " @@ -4666,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:194 +#: 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 " @@ -4685,7 +5003,7 @@ msgstr "" "デフォルト値以外のスタックサイズを得ることができる。" #. type: Plain text -#: build/C/man3/pthread_create.3:200 +#: 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 " @@ -4698,7 +5016,7 @@ msgstr "" "B(7) を参照のこと。" #. type: Plain text -#: build/C/man3/pthread_create.3:204 +#: 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." @@ -4707,7 +5025,7 @@ msgstr "" "pthreads API の他のいろいろな関数の使用例を示している。" #. type: Plain text -#: build/C/man3/pthread_create.3:209 +#: 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 " @@ -4718,11 +5036,11 @@ msgstr "" "になる。" #. type: Plain text -#: build/C/man3/pthread_create.3:221 +#: 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" @@ -4732,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" @@ -4742,7 +5060,7 @@ msgstr "" "Joined with thread 3; returned value was SERVUS\n" #. type: Plain text -#: build/C/man3/pthread_create.3:227 +#: 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:" @@ -4752,7 +5070,7 @@ msgstr "" "明示的に設定している。" #. type: Plain text -#: build/C/man3/pthread_create.3:237 +#: build/C/man3/pthread_create.3:246 #, no-wrap msgid "" "$B< ./a.out -s 0x100000 hola salut servus>\n" @@ -4772,7 +5090,7 @@ msgstr "" "Joined with thread 3; returned value was SERVUS\n" #. type: Plain text -#: build/C/man3/pthread_create.3:249 +#: build/C/man3/pthread_create.3:258 #, no-wrap msgid "" "#include Epthread.hE\n" @@ -4792,7 +5110,7 @@ msgstr "" "#include Ectype.hE\n" #. type: Plain text -#: build/C/man3/pthread_create.3:255 build/C/man3/pthread_getcpuclockid.3:108 +#: build/C/man3/pthread_create.3:264 build/C/man3/pthread_getcpuclockid.3:116 #, no-wrap msgid "" "#define handle_error(msg) \\e\n" @@ -4802,7 +5120,7 @@ msgstr "" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" #. type: Plain text -#: build/C/man3/pthread_create.3:261 +#: build/C/man3/pthread_create.3:270 #, no-wrap msgid "" "struct thread_info { /* Used as argument to thread_start() */\n" @@ -4818,7 +5136,7 @@ msgstr "" "};\n" #. type: Plain text -#: build/C/man3/pthread_create.3:264 +#: build/C/man3/pthread_create.3:273 #, no-wrap msgid "" "/* Thread start function: display address near top of our stack,\n" @@ -4828,23 +5146,23 @@ msgstr "" " and return upper-cased copy of argv_string */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:270 +#: build/C/man3/pthread_create.3:279 #, no-wrap msgid "" "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" 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:273 +#: build/C/man3/pthread_create.3:282 #, no-wrap msgid "" " printf(\"Thread %d: top of stack near %p; argv_string=%s\\en\",\n" @@ -4854,7 +5172,7 @@ msgstr "" " tinfo-Ethread_num, &p, tinfo-Eargv_string);\n" #. type: Plain text -#: build/C/man3/pthread_create.3:277 +#: build/C/man3/pthread_create.3:286 #, no-wrap msgid "" " uargv = strdup(tinfo-Eargv_string);\n" @@ -4866,7 +5184,7 @@ msgstr "" " handle_error(\"strdup\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:280 +#: build/C/man3/pthread_create.3:289 #, no-wrap msgid "" " for (p = uargv; *p != \\(aq\\e0\\(aq; p++)\n" @@ -4876,7 +5194,7 @@ msgstr "" " *p = toupper(*p);\n" #. type: Plain text -#: build/C/man3/pthread_create.3:283 +#: build/C/man3/pthread_create.3:292 #, no-wrap msgid "" " return uargv;\n" @@ -4886,7 +5204,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_create.3:292 +#: build/C/man3/pthread_create.3:301 #, no-wrap msgid "" "int\n" @@ -4908,13 +5226,13 @@ msgstr "" " void *res;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:294 +#: 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:301 +#: build/C/man3/pthread_create.3:310 #, no-wrap msgid "" " stack_size = -1;\n" @@ -4932,7 +5250,7 @@ msgstr "" " break;\n" #. type: Plain text -#: build/C/man3/pthread_create.3:308 +#: build/C/man3/pthread_create.3:317 #, no-wrap msgid "" " default:\n" @@ -4950,19 +5268,19 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:310 +#: 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:312 +#: 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:316 +#: build/C/man3/pthread_create.3:325 #, no-wrap msgid "" " s = pthread_attr_init(&attr);\n" @@ -4974,7 +5292,7 @@ msgstr "" " handle_error_en(s, \"pthread_attr_init\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:322 +#: build/C/man3/pthread_create.3:331 #, no-wrap msgid "" " if (stack_size E 0) {\n" @@ -4990,13 +5308,13 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:324 +#: 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:328 +#: build/C/man3/pthread_create.3:337 #, no-wrap msgid "" " tinfo = calloc(num_threads, sizeof(struct thread_info));\n" @@ -5008,13 +5326,13 @@ msgstr "" " handle_error(\"calloc\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:330 +#: 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:334 +#: build/C/man3/pthread_create.3:343 #, no-wrap msgid "" " for (tnum = 0; tnum E num_threads; tnum++) {\n" @@ -5026,7 +5344,7 @@ msgstr "" " tinfo[tnum].argv_string = argv[optind + tnum];\n" #. type: Plain text -#: build/C/man3/pthread_create.3:337 +#: build/C/man3/pthread_create.3:346 #, no-wrap msgid "" " /* The pthread_create() call stores the thread ID into\n" @@ -5036,7 +5354,7 @@ msgstr "" " corresponding element of tinfo[] */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:343 +#: build/C/man3/pthread_create.3:352 #, no-wrap msgid "" " s = pthread_create(&tinfo[tnum].thread_id, &attr,\n" @@ -5052,7 +5370,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:346 +#: build/C/man3/pthread_create.3:355 #, no-wrap msgid "" " /* Destroy the thread attributes object, since it is no\n" @@ -5062,7 +5380,7 @@ msgstr "" " longer needed */\n" #. type: Plain text -#: build/C/man3/pthread_create.3:350 build/C/man3/pthread_setschedparam.3:421 +#: build/C/man3/pthread_create.3:359 build/C/man3/pthread_setschedparam.3:430 #, no-wrap msgid "" " s = pthread_attr_destroy(&attr);\n" @@ -5074,13 +5392,13 @@ msgstr "" " handle_error_en(s, \"pthread_attr_destroy\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:352 +#: 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:357 +#: build/C/man3/pthread_create.3:366 #, no-wrap msgid "" " for (tnum = 0; tnum E num_threads; tnum++) {\n" @@ -5094,7 +5412,7 @@ msgstr "" " handle_error_en(s, \"pthread_join\");\n" #. type: Plain text -#: build/C/man3/pthread_create.3:362 +#: build/C/man3/pthread_create.3:371 #, no-wrap msgid "" " printf(\"Joined with thread %d; returned value was %s\\en\",\n" @@ -5108,7 +5426,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_create.3:366 +#: build/C/man3/pthread_create.3:375 #, no-wrap msgid "" " free(tinfo);\n" @@ -5120,43 +5438,43 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_create.3:378 +#: 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:24 +#: build/C/man3/pthread_detach.3:26 #, no-wrap msgid "PTHREAD_DETACH" msgstr "PTHREAD_DETACH" #. type: TH -#: build/C/man3/pthread_detach.3:24 build/C/man3/pthread_join.3:24 +#: build/C/man3/pthread_detach.3:26 build/C/man3/pthread_join.3:26 #, no-wrap msgid "2008-11-27" msgstr "2008-11-27" #. type: Plain text -#: build/C/man3/pthread_detach.3:27 +#: build/C/man3/pthread_detach.3:29 msgid "pthread_detach - detach a thread" msgstr "pthread_detach - スレッドを切り離す (detach する)" #. type: Plain text -#: build/C/man3/pthread_detach.3:32 +#: build/C/man3/pthread_detach.3:34 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_detach.3:44 +#: build/C/man3/pthread_detach.3:46 msgid "" "The B() function marks the thread identified by I " "as detached. When a detached thread terminates, its resources are " @@ -5170,7 +5488,7 @@ msgstr "" "そのスレッドのリソースは自動的に解放されてシステムに戻される。" #. type: Plain text -#: build/C/man3/pthread_detach.3:47 +#: build/C/man3/pthread_detach.3:49 msgid "" "Attempting to detach an already detached thread results in unspecified " "behavior." @@ -5179,7 +5497,7 @@ msgstr "" "どのような結果となるかは規定されていない。" #. type: Plain text -#: build/C/man3/pthread_detach.3:52 +#: build/C/man3/pthread_detach.3:54 msgid "" "On success, B() returns 0; on error, it returns an error " "number." @@ -5188,12 +5506,12 @@ msgstr "" "エラーの場合、エラー番号を返す。" #. type: Plain text -#: build/C/man3/pthread_detach.3:57 build/C/man3/pthread_join.3:87 +#: build/C/man3/pthread_detach.3:59 build/C/man3/pthread_join.3:89 msgid "I is not a joinable thread." msgstr "I が join 可能なスレッドではない。" #. type: Plain text -#: build/C/man3/pthread_detach.3:68 +#: build/C/man3/pthread_detach.3:70 msgid "" "Once a thread has been detached, it can't be joined with B(3) " "or be made joinable again." @@ -5203,7 +5521,7 @@ msgstr "" "もう一度 join 可能にしたりすることはできない。" #. type: Plain text -#: build/C/man3/pthread_detach.3:75 +#: build/C/man3/pthread_detach.3:77 msgid "" "A new thread can be created in a detached state using " "B(3) to set the detached attribute of the " @@ -5214,7 +5532,7 @@ msgstr "" "新しいスレッドを detached 状態で作成することができる。" #. type: Plain text -#: build/C/man3/pthread_detach.3:82 +#: build/C/man3/pthread_detach.3:84 msgid "" "The detached attribute merely determines the behavior of the system when the " "thread terminates; it does not prevent the thread from being terminated if " @@ -5227,7 +5545,7 @@ msgstr "" "プロセスが B(3) を使って終了した場合と全く同じである)。 " #. type: Plain text -#: build/C/man3/pthread_detach.3:91 +#: build/C/man3/pthread_detach.3:93 msgid "" "Either B(3) or B() should be called for each " "thread that an application creates, so that system resources for the thread " @@ -5240,55 +5558,58 @@ msgstr "" "終了するときには、全てのスレッドのリソースが解放される)。" #. type: Plain text -#: build/C/man3/pthread_detach.3:93 +#: build/C/man3/pthread_detach.3:95 msgid "The following statement detaches the calling thread:" msgstr "以下の文は、呼び出したスレッド自身を detach する。" #. type: Plain text -#: build/C/man3/pthread_detach.3:95 +#: build/C/man3/pthread_detach.3:97 #, no-wrap msgid " pthread_detach(pthread_self());\n" msgstr " pthread_detach(pthread_self());\n" #. type: Plain text -#: build/C/man3/pthread_detach.3:102 +#: 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:24 +#: build/C/man3/pthread_equal.3:26 #, no-wrap msgid "PTHREAD_EQUAL" msgstr "PTHREAD_EQUAL" #. type: TH -#: build/C/man3/pthread_equal.3:24 build/C/man3/pthread_exit.3:24 +#: 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:27 +#: build/C/man3/pthread_equal.3:29 msgid "pthread_equal - compare thread IDs" msgstr "pthread_equal - スレッド ID を比較する" #. type: Plain text -#: build/C/man3/pthread_equal.3:32 +#: build/C/man3/pthread_equal.3:34 #, no-wrap msgid "BIB<, pthread_t >IB<);>\n" msgstr "BIB<, pthread_t >IB<);>\n" #. type: Plain text -#: build/C/man3/pthread_equal.3:39 +#: build/C/man3/pthread_equal.3:41 msgid "The B() function compares two thread identifiers." msgstr "B() 関数は 2 つのスレッド識別子の比較を行う。" #. type: Plain text -#: build/C/man3/pthread_equal.3:43 +#: build/C/man3/pthread_equal.3:45 msgid "" "If the two thread IDs are equal, B() returns a nonzero " "value; otherwise, it returns 0." @@ -5299,13 +5620,18 @@ msgstr "" #. SH VERSIONS #. Available since glibc 2.0 #. type: Plain text -#: build/C/man3/pthread_equal.3:45 build/C/man3/pthread_exit.3:73 -#: build/C/man3/pthread_self.3:48 build/C/man3/pthread_testcancel.3:56 +#: build/C/man3/pthread_equal.3:47 build/C/man3/pthread_exit.3:75 +#: build/C/man3/pthread_self.3:50 build/C/man3/pthread_testcancel.3:58 msgid "This function always succeeds." msgstr "この関数は常に成功する。" #. type: Plain text -#: build/C/man3/pthread_equal.3:54 +#: 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 " @@ -5317,29 +5643,29 @@ msgstr "" "移植性を確保できる形で比較する方法はない。" #. type: Plain text -#: build/C/man3/pthread_equal.3:58 +#: build/C/man3/pthread_equal.3:65 msgid "B(3), B(3), B(7)" msgstr "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_exit.3:24 +#: build/C/man3/pthread_exit.3:26 #, no-wrap msgid "PTHREAD_EXIT" msgstr "PTHREAD_EXIT" #. type: Plain text -#: build/C/man3/pthread_exit.3:27 +#: build/C/man3/pthread_exit.3:29 msgid "pthread_exit - terminate calling thread" msgstr "pthread_exit - 呼び出したスレッドを終了する" #. type: Plain text -#: build/C/man3/pthread_exit.3:32 +#: build/C/man3/pthread_exit.3:34 #, no-wrap msgid "BIB<);>\n" msgstr "BIB<);>\n" #. type: Plain text -#: build/C/man3/pthread_exit.3:43 +#: build/C/man3/pthread_exit.3:45 msgid "" "The B() function terminates the calling thread and returns a " "value via I that (if the thread is joinable) is available to " @@ -5351,7 +5677,7 @@ msgstr "" "呼び出した同じプロセス内の別のスレッドが参照できる値と同じである。" #. type: Plain text -#: build/C/man3/pthread_exit.3:53 +#: build/C/man3/pthread_exit.3:55 msgid "" "Any clean-up handlers established by B(3) that have " "not yet been popped, are popped (in the reverse of the order in which they " @@ -5367,7 +5693,7 @@ msgstr "" "は規定されていない)。" #. type: Plain text -#: build/C/man3/pthread_exit.3:60 +#: build/C/man3/pthread_exit.3:62 msgid "" "When a thread terminates, process-shared resources (e.g., mutexes, condition " "variables, semaphores, and file descriptors) are not released, and functions " @@ -5378,7 +5704,7 @@ msgstr "" "B(3) を使って登録された関数は呼び出されない。" #. type: Plain text -#: build/C/man3/pthread_exit.3:69 +#: build/C/man3/pthread_exit.3:71 msgid "" "After the last thread in a process terminates, the process terminates as by " "calling B(3) with an exit status of zero; thus, process-shared " @@ -5391,12 +5717,17 @@ msgstr "" "が呼び出される。" #. type: Plain text -#: build/C/man3/pthread_exit.3:71 +#: build/C/man3/pthread_exit.3:73 msgid "This function does not return to the caller." msgstr "この関数は呼び出し側には返らない。" #. type: Plain text #: 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 " @@ -5407,7 +5738,7 @@ msgstr "" "関数の返り値がスレッドの終了ステータスとして使用される。" #. type: Plain text -#: build/C/man3/pthread_exit.3:86 +#: 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)." @@ -5416,7 +5747,7 @@ msgstr "" "なく B() を呼び出して終了すべきである。" #. type: Plain text -#: build/C/man3/pthread_exit.3:91 +#: 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 " @@ -5431,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:103 +#: 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. " @@ -5448,29 +5779,35 @@ msgstr "" "場合がある。" #. type: Plain text -#: build/C/man3/pthread_exit.3:107 +#: build/C/man3/pthread_exit.3:114 msgid "B(3), B(3), B(7)" msgstr "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_getattr_np.3:24 +#: build/C/man3/pthread_getattr_np.3:26 #, no-wrap 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:27 +#: build/C/man3/pthread_getattr_np.3:29 msgid "pthread_getattr_np - get attributes of created thread" msgstr "pthread_getattr_np - 作成されたスレッドの属性を取得する" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:33 +#: build/C/man3/pthread_getattr_np.3:35 #, no-wrap msgid "BIB<, pthread_attr_t *>IB<);>\n" msgstr "BIB<, pthread_attr_t *>IB<);>\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:43 +#: build/C/man3/pthread_getattr_np.3:45 msgid "" "The B() function initializes the thread attributes " "object referred to by I so that it contains actual attribute values " @@ -5482,7 +5819,7 @@ msgstr "" "格納して返す。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:50 +#: build/C/man3/pthread_getattr_np.3:52 msgid "" "The returned attribute values may differ from the corresponding attribute " "values passed in the I object that was used to create the thread using " @@ -5493,7 +5830,7 @@ msgstr "" "特に、以下の属性は異なる場合がある。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:53 +#: build/C/man3/pthread_getattr_np.3:55 msgid "" "the detach state, since a joinable thread may have detached itself after " "creation;" @@ -5502,7 +5839,7 @@ msgstr "" "切り離す (detach する) ことができるからである。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:56 +#: build/C/man3/pthread_getattr_np.3:58 msgid "" "the stack size, which the implementation may align to a suitable boundary." msgstr "" @@ -5510,7 +5847,7 @@ msgstr "" "スレッドの実装によって適切な境界に揃えられる可能があるためである。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:61 +#: build/C/man3/pthread_getattr_np.3:63 msgid "" "and the guard size, which the implementation may round upward to a multiple " "of the page size, or ignore (i.e., treat as 0), if the application is " @@ -5522,7 +5859,7 @@ msgstr "" "(0 として扱われる) ことがあるからである。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:66 +#: build/C/man3/pthread_getattr_np.3:68 msgid "" "Furthermore, if the stack address attribute was not set in the thread " "attributes object used to create the thread, then the returned thread " @@ -5535,7 +5872,7 @@ msgstr "" "割り当てた実際のスタックアドレスが報告される。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:71 +#: build/C/man3/pthread_getattr_np.3:73 msgid "" "When the thread attributes object returned by B() is no " "longer required, it should be destroyed using B(3)." @@ -5545,8 +5882,8 @@ msgstr "" "そのオブジェクトを破棄すべきである。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:74 -#: build/C/man3/pthread_getcpuclockid.3:47 +#: build/C/man3/pthread_getattr_np.3:76 +#: build/C/man3/pthread_getcpuclockid.3:49 msgid "" "On success, this function returns 0; on error, it returns a nonzero error " "number." @@ -5556,17 +5893,17 @@ msgstr "" #. Can happen (but unlikely) while trying to allocate memory for cpuset #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:79 +#: build/C/man3/pthread_getattr_np.3:81 msgid "Insufficient memory." msgstr "メモリが十分になかった。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:94 +#: build/C/man3/pthread_getattr_np.3:96 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" @@ -5576,13 +5913,13 @@ msgstr "" "サポートされていない場合には B(2) でエラーが発生する。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:96 +#: build/C/man3/pthread_getattr_np.3:98 msgid "This function is available in glibc since version 2.2.3." msgstr "この関数は glibc バージョン 2.2.3 以降で利用できる。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:99 -#: build/C/man3/pthread_kill_other_threads_np.3:48 +#: build/C/man3/pthread_getattr_np.3:101 +#: 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." @@ -5592,7 +5929,7 @@ msgstr "" "付いている。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:109 +#: build/C/man3/pthread_getattr_np.3:111 msgid "" "The program below demonstrates the use of B(). The " "program creates a thread that then uses B() to retrieve " @@ -5610,7 +5947,7 @@ msgstr "" "下記のシェルのセッションはこのプログラムの使用例である。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:112 +#: build/C/man3/pthread_getattr_np.3:114 msgid "" "In the first run, on an x86-32 system, a thread is created using default " "attributes:" @@ -5619,7 +5956,7 @@ msgstr "" "(x86-32 システム上で実行)。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:122 +#: build/C/man3/pthread_getattr_np.3:124 #, no-wrap msgid "" "$B< ulimit -s> # No stack limit ==E default stack size is 2MB\n" @@ -5639,7 +5976,7 @@ msgstr "" " Stack size = 0x201000 (2101248) bytes\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:128 +#: build/C/man3/pthread_getattr_np.3:130 msgid "" "In the following run, we see that if a guard size is specified, it is " "rounded up to the next multiple of the system page size (4096 bytes on " @@ -5650,7 +5987,7 @@ msgstr "" "(x86-32 ではシステムのページサイズは 4096 バイトである)。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:136 +#: build/C/man3/pthread_getattr_np.3:138 #, no-wrap msgid "" "$B< ./a.out -g 4097>\n" @@ -5666,7 +6003,7 @@ msgstr "" " Stack size = 0x0 (0) bytes\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:141 +#: build/C/man3/pthread_getattr_np.3:143 #, no-wrap msgid "" "Attributes of created thread:\n" @@ -5693,7 +6030,7 @@ msgstr "" #. .fi #. .in #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:160 +#: build/C/man3/pthread_getattr_np.3:162 msgid "" "In the last run, the program manually allocates a stack for the thread. In " "this case, the guard size attribute is ignored." @@ -5702,7 +6039,7 @@ msgstr "" "この場合には、guard size 属性は無視される。" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:165 +#: build/C/man3/pthread_getattr_np.3:167 #, no-wrap msgid "" "$B< ./a.out -g 4096 -s 0x8000 -a>\n" @@ -5712,7 +6049,7 @@ msgstr "" "Allocated thread stack at 0x804d000\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:170 +#: build/C/man3/pthread_getattr_np.3:172 #, no-wrap msgid "" "Thread attributes object after initializations:\n" @@ -5726,7 +6063,7 @@ msgstr "" " Stack size = 0x8000 (32768) bytes\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:175 +#: build/C/man3/pthread_getattr_np.3:177 #, no-wrap msgid "" "Attributes of created thread:\n" @@ -5740,7 +6077,7 @@ msgstr "" " Stack size = 0x8000 (32768) bytes\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:196 +#: build/C/man3/pthread_getattr_np.3:198 #, no-wrap msgid "" "static void\n" @@ -5758,7 +6095,7 @@ msgstr "" " void *stack_addr;\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:201 +#: build/C/man3/pthread_getattr_np.3:203 #, no-wrap msgid "" " s = pthread_attr_getguardsize(attr, &guard_size);\n" @@ -5772,7 +6109,7 @@ msgstr "" " printf(\"%sGuard size = %d bytes\\en\", prefix, guard_size);\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:212 +#: build/C/man3/pthread_getattr_np.3:214 #, no-wrap msgid "" " s = pthread_attr_getstack(attr, &stack_addr, &stack_size);\n" @@ -5798,7 +6135,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:218 +#: build/C/man3/pthread_getattr_np.3:220 #, no-wrap msgid "" "static void\n" @@ -5814,7 +6151,7 @@ msgstr "" " pthread_attr_t attr;\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:222 +#: build/C/man3/pthread_getattr_np.3:224 #, no-wrap msgid "" " s = pthread_getattr_np(thread, &attr);\n" @@ -5826,13 +6163,13 @@ msgstr "" " handle_error_en(s, \"pthread_getattr_np\");\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:224 +#: build/C/man3/pthread_getattr_np.3:226 #, no-wrap msgid " display_stack_related_attributes(&attr, prefix);\n" msgstr " display_stack_related_attributes(&attr, prefix);\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:229 +#: build/C/man3/pthread_getattr_np.3:231 #, no-wrap msgid "" " s = pthread_attr_destroy(&attr);\n" @@ -5846,7 +6183,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:235 +#: build/C/man3/pthread_getattr_np.3:237 #, no-wrap msgid "" "static void * /* Start function for thread we create */\n" @@ -5862,7 +6199,7 @@ msgstr "" " display_thread_attributes(pthread_self(), \"\\et\");\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:249 +#: build/C/man3/pthread_getattr_np.3:251 #, no-wrap msgid "" "static void\n" @@ -5888,7 +6225,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:262 +#: build/C/man3/pthread_getattr_np.3:264 #, no-wrap msgid "" "static pthread_attr_t * /* Get thread attributes from command line */\n" @@ -5918,7 +6255,7 @@ msgstr "" " guard_size = -1;\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:271 +#: build/C/man3/pthread_getattr_np.3:273 #, no-wrap msgid "" " while ((opt = getopt(argc, argv, \"ag:s:\")) != -1) {\n" @@ -5940,7 +6277,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:274 +#: build/C/man3/pthread_getattr_np.3:276 #, no-wrap msgid "" " if (allocate_stack && stack_size == -1)\n" @@ -5950,7 +6287,7 @@ msgstr "" " usage(argv[0], \"Specifying -a without -s makes no sense\\en\");\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:277 +#: build/C/man3/pthread_getattr_np.3:279 #, no-wrap msgid "" " if (argc E optind)\n" @@ -5960,7 +6297,7 @@ msgstr "" " usage(argv[0], \"Extraneous command-line arguments\\en\");\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:280 +#: build/C/man3/pthread_getattr_np.3:282 #, no-wrap msgid "" " if (stack_size E= 0 || guard_size E 0) {\n" @@ -5970,7 +6307,7 @@ msgstr "" " ret_attrp = attrp;\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:285 +#: build/C/man3/pthread_getattr_np.3:287 #, no-wrap msgid "" " s = pthread_attr_init(attrp);\n" @@ -5984,7 +6321,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:297 +#: build/C/man3/pthread_getattr_np.3:299 #, no-wrap msgid "" " if (stack_size E= 0) {\n" @@ -6012,7 +6349,7 @@ msgstr "" " printf(\"Allocated thread stack at %p\\en\\en\", stack_addr);\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:303 +#: build/C/man3/pthread_getattr_np.3:305 #, no-wrap msgid "" " s = pthread_attr_setstack(attrp, stack_addr, stack_size);\n" @@ -6028,7 +6365,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:309 +#: build/C/man3/pthread_getattr_np.3:311 #, no-wrap msgid "" " if (guard_size E= 0) {\n" @@ -6044,7 +6381,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:312 +#: build/C/man3/pthread_getattr_np.3:314 #, no-wrap msgid "" " return ret_attrp;\n" @@ -6054,7 +6391,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:321 +#: build/C/man3/pthread_getattr_np.3:323 #, no-wrap msgid "" "int\n" @@ -6076,13 +6413,13 @@ msgstr "" " a thread attributes object */\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:323 +#: build/C/man3/pthread_getattr_np.3:325 #, no-wrap msgid " attrp = get_thread_attributes_from_cl(argc, argv, &attr);\n" msgstr " attrp = get_thread_attributes_from_cl(argc, argv, &attr);\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:329 +#: build/C/man3/pthread_getattr_np.3:331 #, no-wrap msgid "" " if (attrp != NULL) {\n" @@ -6098,7 +6435,7 @@ msgstr "" " }\n" #. type: Plain text -#: build/C/man3/pthread_getattr_np.3:357 +#: build/C/man3/pthread_getattr_np.3:361 msgid "" "B(3), B(3), " "B(3), B(3), " @@ -6115,24 +6452,18 @@ msgstr "" "B(3), B(3), B(7)" #. type: TH -#: build/C/man3/pthread_getcpuclockid.3:24 +#: build/C/man3/pthread_getcpuclockid.3:26 #, no-wrap msgid "PTHREAD_GETCPUCLOCKID" msgstr "PTHREAD_GETCPUCLOCKID" -#. type: TH -#: build/C/man3/pthread_getcpuclockid.3:24 -#, no-wrap -msgid "2009-02-08" -msgstr "2009-02-08" - #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:27 +#: build/C/man3/pthread_getcpuclockid.3:29 msgid "pthread_getcpuclockid - retrieve ID of a thread's CPU time clock" msgstr "pthread_getcpuclockid - スレッドの CPU 時間時計の ID を取得する" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:31 +#: build/C/man3/pthread_getcpuclockid.3:33 #, no-wrap msgid "" "B<#include Epthread.hE>\n" @@ -6142,7 +6473,7 @@ msgstr "" "B<#include Etime.hE>\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:33 +#: build/C/man3/pthread_getcpuclockid.3:35 #, no-wrap msgid "BIB<, clockid_t *>I\n" msgstr "BIB<, clockid_t *>I\n" @@ -6151,7 +6482,7 @@ msgstr "BIB<, clockid_t *>Itid << CLOCK_IDFIELD_SIZE) #. where CLOCK_IDFIELD_SIZE is 3. #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:44 +#: build/C/man3/pthread_getcpuclockid.3:46 msgid "" "The B() function returns the clock ID for the CPU " "time clock of the thread I." @@ -6160,7 +6491,7 @@ msgstr "" "スレッド I の CPU 時間時計のクロック ID を返す。" #. type: TP -#: build/C/man3/pthread_getcpuclockid.3:48 +#: build/C/man3/pthread_getcpuclockid.3:50 #, no-wrap msgid "B" msgstr "B" @@ -6170,17 +6501,22 @@ msgstr "B" #. be possible if kernel thread IDs took more than 29 bits (which #. they currently cannot). #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:56 +#: build/C/man3/pthread_getcpuclockid.3:58 msgid "Per-thread CPU time clocks are not supported by the system." msgstr "スレッド単位の CPU 時間時計はこのシステムではサポートされていない。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:63 +#: build/C/man3/pthread_getcpuclockid.3:65 msgid "This function is available in glibc since version 2.2." msgstr "この関数は glibc バージョン 2.2 以降で利用できる。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:76 +#: 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) " @@ -6192,7 +6528,7 @@ msgstr "" "を参照する ID が返される。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:82 +#: 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 " @@ -6205,7 +6541,7 @@ msgstr "" "下記のシェルのセッションは実行例である。" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:91 +#: build/C/man3/pthread_getcpuclockid.3:99 #, no-wrap msgid "" "$ B<./a.out>\n" @@ -6225,13 +6561,13 @@ msgstr "" "Subthread CPU time: 0.992\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:97 +#: 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:105 +#: build/C/man3/pthread_getcpuclockid.3:113 #, no-wrap msgid "" "#include Etime.hE\n" @@ -6251,7 +6587,7 @@ msgstr "" "#include Eerrno.hE\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:119 +#: build/C/man3/pthread_getcpuclockid.3:127 #, no-wrap msgid "" "static void *\n" @@ -6271,7 +6607,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:124 +#: build/C/man3/pthread_getcpuclockid.3:132 #, no-wrap msgid "" "static void\n" @@ -6285,7 +6621,7 @@ msgstr "" " struct timespec ts;\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:130 +#: build/C/man3/pthread_getcpuclockid.3:138 #, no-wrap msgid "" " printf(\"%s\", msg);\n" @@ -6301,7 +6637,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:137 +#: build/C/man3/pthread_getcpuclockid.3:145 #, no-wrap msgid "" "int\n" @@ -6319,7 +6655,7 @@ msgstr "" " int j, s;\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:141 +#: build/C/man3/pthread_getcpuclockid.3:149 #, no-wrap msgid "" " s = pthread_create(&thread, NULL, thread_start, NULL);\n" @@ -6331,7 +6667,7 @@ msgstr "" " handle_error_en(s, \"pthread_create\");\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:144 +#: build/C/man3/pthread_getcpuclockid.3:152 #, no-wrap msgid "" " printf(\"Main thread sleeping\\en\");\n" @@ -6341,7 +6677,7 @@ msgstr "" " sleep(1);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:148 +#: build/C/man3/pthread_getcpuclockid.3:156 #, no-wrap msgid "" " printf(\"Main thread consuming some CPU time...\\en\");\n" @@ -6353,13 +6689,13 @@ msgstr "" " getppid();\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:150 +#: 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:155 +#: build/C/man3/pthread_getcpuclockid.3:163 #, no-wrap msgid "" " s = pthread_getcpuclockid(pthread_self(), &cid);\n" @@ -6373,7 +6709,7 @@ msgstr "" " pclock(\"Main thread CPU time: \", cid);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:158 +#: build/C/man3/pthread_getcpuclockid.3:166 #, no-wrap msgid "" " /* The preceding 4 lines of code could have been replaced by:\n" @@ -6383,7 +6719,7 @@ msgstr "" " pclock(\"Main thread CPU time: \", CLOCK_THREAD_CPUTIME_ID); */\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:163 +#: build/C/man3/pthread_getcpuclockid.3:171 #, no-wrap msgid "" " s = pthread_getcpuclockid(thread, &cid);\n" @@ -6397,7 +6733,7 @@ msgstr "" " pclock(\"Subthread CPU time: 1 \", cid);\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:166 +#: build/C/man3/pthread_getcpuclockid.3:174 #, no-wrap msgid "" " exit(EXIT_SUCCESS); /* Terminates both threads */\n" @@ -6407,7 +6743,7 @@ msgstr "" "}\n" #. type: Plain text -#: build/C/man3/pthread_getcpuclockid.3:175 +#: build/C/man3/pthread_getcpuclockid.3:183 msgid "" "B(2), B(2), B(2), " "B(3), B(3), B(7), B