msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2012-05-28 07:17+0900\n"
+"POT-Creation-Date: 2013-03-22 01:06+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#. type: TH
-#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_unlink.3:26
+#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_init.3:26 build/C/man3/sem_open.3:26 build/C/man7/sem_overview.7:26 build/C/man3/sem_post.3:26 build/C/man3/sem_unlink.3:26 build/C/man3/sem_wait.3:26
#, no-wrap
-msgid "2006-03-25"
+msgid "2012-05-13"
msgstr ""
#. type: TH
-#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_init.3:26 build/C/man3/sem_open.3:26 build/C/man7/sem_overview.7:26 build/C/man3/sem_post.3:26 build/C/man3/sem_unlink.3:26 build/C/man3/sem_wait.3:26 build/C/man2/semctl.2:39 build/C/man2/semget.2:34 build/C/man2/semop.2:33
+#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_init.3:26 build/C/man3/sem_open.3:26 build/C/man7/sem_overview.7:26 build/C/man3/sem_post.3:26 build/C/man3/sem_unlink.3:26 build/C/man3/sem_wait.3:26 build/C/man2/semctl.2:41 build/C/man2/semget.2:36 build/C/man2/semop.2:35
#, no-wrap
msgid "Linux"
msgstr ""
#. type: TH
-#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_init.3:26 build/C/man3/sem_open.3:26 build/C/man7/sem_overview.7:26 build/C/man3/sem_post.3:26 build/C/man3/sem_unlink.3:26 build/C/man3/sem_wait.3:26 build/C/man2/semctl.2:39 build/C/man2/semget.2:34 build/C/man2/semop.2:33
+#: build/C/man3/sem_close.3:26 build/C/man3/sem_destroy.3:26 build/C/man3/sem_getvalue.3:26 build/C/man3/sem_init.3:26 build/C/man3/sem_open.3:26 build/C/man7/sem_overview.7:26 build/C/man3/sem_post.3:26 build/C/man3/sem_unlink.3:26 build/C/man3/sem_wait.3:26 build/C/man2/semctl.2:41 build/C/man2/semget.2:36 build/C/man2/semop.2:35
#, no-wrap
msgid "Linux Programmer's Manual"
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:27 build/C/man3/sem_destroy.3:27 build/C/man3/sem_getvalue.3:27 build/C/man3/sem_init.3:27 build/C/man3/sem_open.3:27 build/C/man7/sem_overview.7:27 build/C/man3/sem_post.3:27 build/C/man3/sem_unlink.3:27 build/C/man3/sem_wait.3:27 build/C/man2/semctl.2:40 build/C/man2/semget.2:35 build/C/man2/semop.2:34
+#: build/C/man3/sem_close.3:27 build/C/man3/sem_destroy.3:27 build/C/man3/sem_getvalue.3:27 build/C/man3/sem_init.3:27 build/C/man3/sem_open.3:27 build/C/man7/sem_overview.7:27 build/C/man3/sem_post.3:27 build/C/man3/sem_unlink.3:27 build/C/man3/sem_wait.3:27 build/C/man2/semctl.2:42 build/C/man2/semget.2:37 build/C/man2/semop.2:36
#, no-wrap
msgid "NAME"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:29 build/C/man3/sem_destroy.3:29 build/C/man3/sem_getvalue.3:29 build/C/man3/sem_init.3:29 build/C/man3/sem_open.3:29 build/C/man3/sem_post.3:29 build/C/man3/sem_unlink.3:29 build/C/man3/sem_wait.3:29 build/C/man2/semctl.2:42 build/C/man2/semget.2:37 build/C/man2/semop.2:36
+#: build/C/man3/sem_close.3:29 build/C/man3/sem_destroy.3:29 build/C/man3/sem_getvalue.3:29 build/C/man3/sem_init.3:29 build/C/man3/sem_open.3:29 build/C/man3/sem_post.3:29 build/C/man3/sem_unlink.3:29 build/C/man3/sem_wait.3:29 build/C/man2/semctl.2:44 build/C/man2/semget.2:39 build/C/man2/semop.2:38
#, no-wrap
msgid "SYNOPSIS"
msgstr ""
#. type: Plain text
#: build/C/man3/sem_close.3:37 build/C/man3/sem_destroy.3:37 build/C/man3/sem_getvalue.3:37 build/C/man3/sem_init.3:37 build/C/man3/sem_open.3:41 build/C/man3/sem_post.3:37 build/C/man3/sem_unlink.3:37 build/C/man3/sem_wait.3:41
-msgid "Link with I<-lrt> or I<-pthread>."
+msgid "Link with I<-pthread>."
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:37 build/C/man3/sem_destroy.3:37 build/C/man3/sem_getvalue.3:37 build/C/man3/sem_init.3:37 build/C/man3/sem_open.3:41 build/C/man7/sem_overview.7:29 build/C/man3/sem_post.3:37 build/C/man3/sem_unlink.3:37 build/C/man3/sem_wait.3:49 build/C/man2/semctl.2:50 build/C/man2/semget.2:47 build/C/man2/semop.2:55
+#: build/C/man3/sem_close.3:37 build/C/man3/sem_destroy.3:37 build/C/man3/sem_getvalue.3:37 build/C/man3/sem_init.3:37 build/C/man3/sem_open.3:41 build/C/man7/sem_overview.7:29 build/C/man3/sem_post.3:37 build/C/man3/sem_unlink.3:37 build/C/man3/sem_wait.3:49 build/C/man2/semctl.2:52 build/C/man2/semget.2:49 build/C/man2/semop.2:57
#, no-wrap
msgid "DESCRIPTION"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:43 build/C/man3/sem_destroy.3:55 build/C/man3/sem_getvalue.3:54 build/C/man3/sem_init.3:77 build/C/man3/sem_open.3:104 build/C/man3/sem_post.3:45 build/C/man3/sem_unlink.3:44 build/C/man3/sem_wait.3:108 build/C/man2/semctl.2:338 build/C/man2/semget.2:155 build/C/man2/semop.2:312
+#: build/C/man3/sem_close.3:43 build/C/man3/sem_destroy.3:55 build/C/man3/sem_getvalue.3:54 build/C/man3/sem_init.3:77 build/C/man3/sem_open.3:104 build/C/man3/sem_post.3:45 build/C/man3/sem_unlink.3:44 build/C/man3/sem_wait.3:108 build/C/man2/semctl.2:340 build/C/man2/semget.2:157 build/C/man2/semop.2:314
#, no-wrap
msgid "RETURN VALUE"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:49 build/C/man3/sem_destroy.3:61 build/C/man3/sem_getvalue.3:60 build/C/man3/sem_init.3:83 build/C/man3/sem_open.3:116 build/C/man3/sem_post.3:52 build/C/man3/sem_unlink.3:50 build/C/man3/sem_wait.3:114 build/C/man2/semctl.2:385 build/C/man2/semget.2:161 build/C/man2/semop.2:322
+#: build/C/man3/sem_close.3:49 build/C/man3/sem_destroy.3:61 build/C/man3/sem_getvalue.3:60 build/C/man3/sem_init.3:83 build/C/man3/sem_open.3:116 build/C/man3/sem_post.3:52 build/C/man3/sem_unlink.3:50 build/C/man3/sem_wait.3:114 build/C/man2/semctl.2:387 build/C/man2/semget.2:163 build/C/man2/semop.2:324
#, no-wrap
msgid "ERRORS"
msgstr ""
#. type: TP
-#: build/C/man3/sem_close.3:50 build/C/man3/sem_destroy.3:62 build/C/man3/sem_getvalue.3:61 build/C/man3/sem_init.3:84 build/C/man3/sem_open.3:132 build/C/man3/sem_open.3:137 build/C/man3/sem_post.3:53 build/C/man3/sem_wait.3:119 build/C/man3/sem_wait.3:133 build/C/man2/semctl.2:418 build/C/man2/semget.2:186 build/C/man2/semop.2:370
+#: build/C/man3/sem_close.3:50 build/C/man3/sem_destroy.3:62 build/C/man3/sem_getvalue.3:61 build/C/man3/sem_init.3:84 build/C/man3/sem_open.3:132 build/C/man3/sem_open.3:137 build/C/man3/sem_post.3:53 build/C/man3/sem_wait.3:119 build/C/man3/sem_wait.3:133 build/C/man2/semctl.2:420 build/C/man2/semget.2:188 build/C/man2/semop.2:372
#, no-wrap
msgid "B<EINVAL>"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:54 build/C/man3/sem_destroy.3:66 build/C/man3/sem_getvalue.3:65 build/C/man3/sem_init.3:95 build/C/man3/sem_open.3:170 build/C/man7/sem_overview.7:138 build/C/man3/sem_post.3:61 build/C/man3/sem_unlink.3:62 build/C/man3/sem_wait.3:143 build/C/man2/semctl.2:460 build/C/man2/semget.2:217 build/C/man2/semop.2:400
+#: build/C/man3/sem_close.3:54 build/C/man3/sem_destroy.3:66 build/C/man3/sem_getvalue.3:65 build/C/man3/sem_init.3:95 build/C/man3/sem_open.3:170 build/C/man7/sem_overview.7:138 build/C/man3/sem_post.3:61 build/C/man3/sem_unlink.3:62 build/C/man3/sem_wait.3:143 build/C/man2/semctl.2:462 build/C/man2/semget.2:219 build/C/man2/semop.2:402
#, no-wrap
msgid "CONFORMING TO"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:56 build/C/man3/sem_destroy.3:68 build/C/man3/sem_getvalue.3:67 build/C/man3/sem_init.3:97 build/C/man7/sem_overview.7:140 build/C/man3/sem_post.3:63 build/C/man3/sem_wait.3:145 build/C/man2/semctl.2:463 build/C/man2/semget.2:221 build/C/man2/semop.2:403
+#: build/C/man3/sem_close.3:56 build/C/man3/sem_destroy.3:68 build/C/man3/sem_getvalue.3:67 build/C/man3/sem_init.3:97 build/C/man7/sem_overview.7:140 build/C/man3/sem_post.3:63 build/C/man3/sem_wait.3:145 build/C/man2/semctl.2:465 build/C/man2/semget.2:223 build/C/man2/semop.2:405
#, no-wrap
msgid "NOTES"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:60 build/C/man3/sem_destroy.3:74 build/C/man3/sem_getvalue.3:71 build/C/man3/sem_init.3:102 build/C/man3/sem_open.3:172 build/C/man7/sem_overview.7:152 build/C/man3/sem_post.3:70 build/C/man3/sem_unlink.3:64 build/C/man3/sem_wait.3:262 build/C/man2/semctl.2:509 build/C/man2/semget.2:279 build/C/man2/semop.2:516
+#: build/C/man3/sem_close.3:60 build/C/man3/sem_destroy.3:74 build/C/man3/sem_getvalue.3:71 build/C/man3/sem_init.3:102 build/C/man3/sem_open.3:172 build/C/man7/sem_overview.7:152 build/C/man3/sem_post.3:70 build/C/man3/sem_unlink.3:64 build/C/man3/sem_wait.3:262 build/C/man2/semctl.2:524 build/C/man2/semget.2:294 build/C/man2/semop.2:531
#, no-wrap
msgid "SEE ALSO"
msgstr ""
msgstr ""
#. type: SH
-#: build/C/man3/sem_close.3:67 build/C/man3/sem_destroy.3:79 build/C/man3/sem_getvalue.3:75 build/C/man3/sem_init.3:107 build/C/man3/sem_open.3:179 build/C/man7/sem_overview.7:162 build/C/man3/sem_post.3:74 build/C/man3/sem_unlink.3:70 build/C/man3/sem_wait.3:268 build/C/man2/semctl.2:516 build/C/man2/semget.2:286 build/C/man2/semop.2:524
+#: build/C/man3/sem_close.3:67 build/C/man3/sem_destroy.3:79 build/C/man3/sem_getvalue.3:75 build/C/man3/sem_init.3:107 build/C/man3/sem_open.3:179 build/C/man7/sem_overview.7:162 build/C/man3/sem_post.3:74 build/C/man3/sem_unlink.3:70 build/C/man3/sem_wait.3:268 build/C/man2/semctl.2:531 build/C/man2/semget.2:301 build/C/man2/semop.2:540
#, no-wrap
msgid "COLOPHON"
msgstr ""
#. type: Plain text
-#: build/C/man3/sem_close.3:74 build/C/man3/sem_destroy.3:86 build/C/man3/sem_getvalue.3:82 build/C/man3/sem_init.3:114 build/C/man3/sem_open.3:186 build/C/man7/sem_overview.7:169 build/C/man3/sem_post.3:81 build/C/man3/sem_unlink.3:77 build/C/man3/sem_wait.3:275 build/C/man2/semctl.2:523 build/C/man2/semget.2:293 build/C/man2/semop.2:531
+#: build/C/man3/sem_close.3:74 build/C/man3/sem_destroy.3:86 build/C/man3/sem_getvalue.3:82 build/C/man3/sem_init.3:114 build/C/man3/sem_open.3:186 build/C/man7/sem_overview.7:169 build/C/man3/sem_post.3:81 build/C/man3/sem_unlink.3:77 build/C/man3/sem_wait.3:275 build/C/man2/semctl.2:538 build/C/man2/semget.2:308 build/C/man2/semop.2:547
msgid ""
-"This page is part of release 3.41 of the Linux I<man-pages> project. A "
+"This page is part of release 3.50 of the Linux I<man-pages> project. A "
"description of the project, and information about reporting bugs, can be "
"found at http://www.kernel.org/doc/man-pages/."
msgstr ""
msgid "SEM_INIT"
msgstr ""
-#. type: TH
-#: build/C/man3/sem_init.3:26
-#, no-wrap
-msgid "2008-07-27"
-msgstr ""
-
#. type: Plain text
#: build/C/man3/sem_init.3:29
msgid "sem_init - initialize an unnamed semaphore"
msgid "SEM_OPEN"
msgstr ""
-#. type: TH
-#: build/C/man3/sem_open.3:26
-#, no-wrap
-msgid "2009-02-20"
-msgstr ""
-
#. type: Plain text
#: build/C/man3/sem_open.3:29
msgid "sem_open - initialize and open a named semaphore"
msgstr ""
#. type: TP
-#: build/C/man3/sem_open.3:117 build/C/man3/sem_unlink.3:51 build/C/man2/semctl.2:389 build/C/man2/semget.2:165 build/C/man2/semop.2:334
+#: build/C/man3/sem_open.3:117 build/C/man3/sem_unlink.3:51 build/C/man2/semctl.2:391 build/C/man2/semget.2:167 build/C/man2/semop.2:336
#, no-wrap
msgid "B<EACCES>"
msgstr ""
msgstr ""
#. type: TP
-#: build/C/man3/sem_open.3:121 build/C/man2/semget.2:173
+#: build/C/man3/sem_open.3:121 build/C/man2/semget.2:175
#, no-wrap
msgid "B<EEXIST>"
msgstr ""
msgstr ""
#. type: TP
-#: build/C/man3/sem_open.3:151 build/C/man3/sem_unlink.3:58 build/C/man2/semget.2:197
+#: build/C/man3/sem_open.3:151 build/C/man3/sem_unlink.3:58 build/C/man2/semget.2:199
#, no-wrap
msgid "B<ENOENT>"
msgstr ""
msgstr ""
#. type: TP
-#: build/C/man3/sem_open.3:167 build/C/man2/semget.2:205 build/C/man2/semop.2:377
+#: build/C/man3/sem_open.3:167 build/C/man2/semget.2:207 build/C/man2/semop.2:379
#, no-wrap
msgid "B<ENOMEM>"
msgstr ""
msgid "SEM_OVERVIEW"
msgstr ""
-#. type: TH
-#: build/C/man7/sem_overview.7:26
-#, no-wrap
-msgid "2010-05-22"
-msgstr ""
-
#. type: Plain text
#: build/C/man7/sem_overview.7:29
-msgid "sem_overview - Overview of POSIX semaphores"
+msgid "sem_overview - overview of POSIX semaphores"
msgstr ""
#. type: Plain text
#. type: Plain text
#: build/C/man7/sem_overview.7:124
msgid ""
-"Programs using the POSIX semaphores API must be compiled with I<cc -lrt> to "
-"link against the real-time library, I<librt>."
+"Programs using the POSIX semaphores API must be compiled with I<cc -pthread> "
+"to link against the real-time library, I<librt>."
msgstr ""
#. type: SS
msgstr ""
#. type: SH
-#: build/C/man7/sem_overview.7:149 build/C/man3/sem_post.3:67 build/C/man3/sem_wait.3:153 build/C/man2/semop.2:491
+#: build/C/man7/sem_overview.7:149 build/C/man3/sem_post.3:67 build/C/man3/sem_wait.3:153 build/C/man2/semop.2:506
#, no-wrap
msgid "EXAMPLE"
msgstr ""
msgid "SEM_POST"
msgstr ""
-#. type: TH
-#: build/C/man3/sem_post.3:26
-#, no-wrap
-msgid "2009-03-30"
-msgstr ""
-
#. type: Plain text
#: build/C/man3/sem_post.3:29
msgid "sem_post - unlock a semaphore"
msgid "SEM_WAIT"
msgstr ""
-#. type: TH
-#: build/C/man3/sem_wait.3:26
-#, no-wrap
-msgid "2012-02-12"
-msgstr ""
-
#. type: Plain text
#: build/C/man3/sem_wait.3:29
msgid "sem_wait, sem_timedwait, sem_trywait - lock a semaphore"
msgstr ""
#. type: Plain text
-#: build/C/man3/sem_wait.3:45 build/C/man2/semop.2:51
+#: build/C/man3/sem_wait.3:45 build/C/man2/semop.2:53
msgid "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
msgstr ""
msgstr ""
#. type: TP
-#: build/C/man3/sem_wait.3:115 build/C/man2/semop.2:366
+#: build/C/man3/sem_wait.3:115 build/C/man2/semop.2:368
#, no-wrap
msgid "B<EINTR>"
msgstr ""
msgstr ""
#. type: TP
-#: build/C/man3/sem_wait.3:126 build/C/man2/semop.2:341
+#: build/C/man3/sem_wait.3:126 build/C/man2/semop.2:343
#, no-wrap
msgid "B<EAGAIN>"
msgstr ""
msgstr ""
#. type: TH
-#: build/C/man2/semctl.2:39
+#: build/C/man2/semctl.2:41
#, no-wrap
msgid "SEMCTL"
msgstr ""
#. type: TH
-#: build/C/man2/semctl.2:39
+#: build/C/man2/semctl.2:41 build/C/man2/semget.2:36
#, no-wrap
-msgid "2009-09-27"
+msgid "2012-05-31"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:42
+#: build/C/man2/semctl.2:44
msgid "semctl - semaphore control operations"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:47 build/C/man2/semget.2:42 build/C/man2/semop.2:41
+#: build/C/man2/semctl.2:49 build/C/man2/semget.2:44 build/C/man2/semop.2:43
#, no-wrap
msgid ""
"B<#include E<lt>sys/types.hE<gt>>\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:49
+#: build/C/man2/semctl.2:51
#, no-wrap
msgid "B<int semctl(int >I<semid>B<, int >I<semnum>B<, int >I<cmd>B<, ...);>\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:60
+#: build/C/man2/semctl.2:62
msgid ""
"B<semctl>() performs the control operation specified by I<cmd> on the "
"semaphore set identified by I<semid>, or on the I<semnum>-th semaphore of "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:66
+#: build/C/man2/semctl.2:68
msgid ""
"This function has three or four arguments, depending on I<cmd>. When there "
"are four, the fourth has the type I<union semun>. The I<calling program> "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:76
+#: build/C/man2/semctl.2:78
#, no-wrap
msgid ""
"union semun {\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:82
+#: build/C/man2/semctl.2:84
msgid ""
"The I<semid_ds> data structure is defined in I<E<lt>sys/sem.hE<gt>> as "
"follows:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:91
+#: build/C/man2/semctl.2:93
#, no-wrap
msgid ""
"struct semid_ds {\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:99
+#: build/C/man2/semctl.2:101
msgid ""
-"The I<ipc_perm> structure is defined in I<E<lt>sys/ipc.hE<gt>> as follows "
-"(the highlighted fields are settable using B<IPC_SET>):"
+"The I<ipc_perm> structure is defined as follows (the highlighted fields are "
+"settable using B<IPC_SET>):"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:111
+#: build/C/man2/semctl.2:113
#, no-wrap
msgid ""
"struct ipc_perm {\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:117
+#: build/C/man2/semctl.2:119
msgid "Valid values for I<cmd> are:"
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:117
+#: build/C/man2/semctl.2:119
#, no-wrap
msgid "B<IPC_STAT>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:129
+#: build/C/man2/semctl.2:131
msgid ""
"Copy information from the kernel data structure associated with I<semid> "
"into the I<semid_ds> structure pointed to by I<arg.buf>. The argument "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:129
+#: build/C/man2/semctl.2:131
#, no-wrap
msgid "B<IPC_SET>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:152
+#: build/C/man2/semctl.2:154
msgid ""
"Write the values of some members of the I<semid_ds> structure pointed to by "
"I<arg.buf> to the kernel data structure associated with this semaphore set, "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:152
+#: build/C/man2/semctl.2:154
#, no-wrap
msgid "B<IPC_RMID>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:167
+#: build/C/man2/semctl.2:169
msgid ""
"Immediately remove the semaphore set, awakening all processes blocked in "
"B<semop>(2) calls on the set (with an error return and I<errno> set to "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:167
+#: build/C/man2/semctl.2:169
#, no-wrap
msgid "B<IPC_INFO> (Linux-specific)"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:179
+#: build/C/man2/semctl.2:181
msgid ""
"Returns information about system-wide semaphore limits and parameters in the "
"structure pointed to by I<arg.__buf>. This structure is of type I<seminfo>, "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:201
+#: build/C/man2/semctl.2:203
#, no-wrap
msgid ""
"struct seminfo {\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:215
+#: build/C/man2/semctl.2:217
msgid ""
"The I<semmsl>, I<semmns>, I<semopm>, and I<semmni> settings can be changed "
"via I</proc/sys/kernel/sem>; see B<proc>(5) for details."
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:215
+#: build/C/man2/semctl.2:217
#, no-wrap
msgid "B<SEM_INFO> (Linux-specific)"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:229
+#: build/C/man2/semctl.2:231
msgid ""
"Returns a I<seminfo> structure containing the same information as for "
"B<IPC_INFO>, except that the following fields are returned with information "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:229
+#: build/C/man2/semctl.2:231
#, no-wrap
msgid "B<SEM_STAT> (Linux-specific)"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:240
+#: build/C/man2/semctl.2:242
msgid ""
"Returns a I<semid_ds> structure as for B<IPC_STAT>. However, the I<semid> "
"argument is not a semaphore identifier, but instead an index into the "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:240
+#: build/C/man2/semctl.2:242
#, no-wrap
msgid "B<GETALL>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:251
+#: build/C/man2/semctl.2:253
msgid ""
"Return B<semval> (i.e., the current value) for all semaphores of the set "
"into I<arg.array>. The argument I<semnum> is ignored. The calling process "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:251 build/C/man2/semctl.2:349
+#: build/C/man2/semctl.2:253 build/C/man2/semctl.2:351
#, no-wrap
msgid "B<GETNCNT>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:264
+#: build/C/man2/semctl.2:266
msgid ""
"The system call returns the value of B<semncnt> for the I<semnum>-th "
"semaphore of the set (i.e., the number of processes waiting for an increase "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:264 build/C/man2/semctl.2:353
+#: build/C/man2/semctl.2:266 build/C/man2/semctl.2:355
#, no-wrap
msgid "B<GETPID>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:277
+#: build/C/man2/semctl.2:279
msgid ""
"The system call returns the value of B<sempid> for the I<semnum>-th "
"semaphore of the set (i.e., the PID of the process that executed the last "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:277 build/C/man2/semctl.2:357
+#: build/C/man2/semctl.2:279 build/C/man2/semctl.2:359
#, no-wrap
msgid "B<GETVAL>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:285
+#: build/C/man2/semctl.2:287
msgid ""
"The system call returns the value of B<semval> for the I<semnum>-th "
"semaphore of the set. The calling process must have read permission on the "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:285 build/C/man2/semctl.2:361
+#: build/C/man2/semctl.2:287 build/C/man2/semctl.2:363
#, no-wrap
msgid "B<GETZCNT>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:298
+#: build/C/man2/semctl.2:300
msgid ""
"The system call returns the value of B<semzcnt> for the I<semnum>-th "
"semaphore of the set (i.e., the number of processes waiting for B<semval> of "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:298
+#: build/C/man2/semctl.2:300
#, no-wrap
msgid "B<SETALL>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:320
+#: build/C/man2/semctl.2:322
msgid ""
"Set B<semval> for all semaphores of the set using I<arg.array>, updating "
"also the I<sem_ctime> member of the I<semid_ds> structure associated with "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:320
+#: build/C/man2/semctl.2:322
#, no-wrap
msgid "B<SETVAL>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:338
+#: build/C/man2/semctl.2:340
msgid ""
"Set the value of B<semval> to I<arg.val> for the I<semnum>-th semaphore of "
"the set, updating also the I<sem_ctime> member of the I<semid_ds> structure "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:345
+#: build/C/man2/semctl.2:347
msgid "On failure B<semctl>() returns -1 with I<errno> indicating the error."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:349
+#: build/C/man2/semctl.2:351
msgid ""
"Otherwise the system call returns a nonnegative value depending on I<cmd> as "
"follows:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:353
+#: build/C/man2/semctl.2:355
msgid "the value of B<semncnt>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:357
+#: build/C/man2/semctl.2:359
msgid "the value of B<sempid>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:361
+#: build/C/man2/semctl.2:363
msgid "the value of B<semval>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:365
+#: build/C/man2/semctl.2:367
msgid "the value of B<semzcnt>."
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:365
+#: build/C/man2/semctl.2:367
#, no-wrap
msgid "B<IPC_INFO>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:373
+#: build/C/man2/semctl.2:375
msgid ""
"the index of the highest used entry in the kernel's internal array recording "
"information about all semaphore sets. (This information can be used with "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:373
+#: build/C/man2/semctl.2:375
#, no-wrap
msgid "B<SEM_INFO>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:377
+#: build/C/man2/semctl.2:379
msgid "As for B<IPC_INFO>."
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:377
+#: build/C/man2/semctl.2:379
#, no-wrap
msgid "B<SEM_STAT>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:381
+#: build/C/man2/semctl.2:383
msgid "the identifier of the semaphore set whose index was given in I<semid>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:385
+#: build/C/man2/semctl.2:387
msgid "All other I<cmd> values return 0 on success."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:389
+#: build/C/man2/semctl.2:391
msgid "On failure, I<errno> will be set to one of the following:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:408
+#: build/C/man2/semctl.2:410
msgid ""
"The argument I<cmd> has one of the values B<GETALL>, B<GETPID>, B<GETVAL>, "
"B<GETNCNT>, B<GETZCNT>, B<IPC_STAT>, B<SEM_STAT>, B<SETALL>, or B<SETVAL> "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:408 build/C/man2/semop.2:350
+#: build/C/man2/semctl.2:410 build/C/man2/semop.2:352
#, no-wrap
msgid "B<EFAULT>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:415
+#: build/C/man2/semctl.2:417
msgid "The address pointed to by I<arg.buf> or I<arg.array> isn't accessible."
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:415 build/C/man2/semop.2:363
+#: build/C/man2/semctl.2:417 build/C/man2/semop.2:365
#, no-wrap
msgid "B<EIDRM>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:418 build/C/man2/semop.2:366
+#: build/C/man2/semctl.2:420 build/C/man2/semop.2:368
msgid "The semaphore set was removed."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:429
+#: build/C/man2/semctl.2:431
msgid ""
"Invalid value for I<cmd> or I<semid>. Or: for a B<SEM_STAT> operation, the "
"index value specified in I<semid> referred to an array slot that is "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:429
+#: build/C/man2/semctl.2:431
#, no-wrap
msgid "B<EPERM>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:447
+#: build/C/man2/semctl.2:449
msgid ""
"The argument I<cmd> has the value B<IPC_SET> or B<IPC_RMID> but the "
"effective user ID of the calling process is not the creator (as found in "
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:447 build/C/man2/semop.2:385
+#: build/C/man2/semctl.2:449 build/C/man2/semop.2:387
#, no-wrap
msgid "B<ERANGE>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:460
+#: build/C/man2/semctl.2:462
msgid ""
"The argument I<cmd> has the value B<SETALL> or B<SETVAL> and the value to "
"which B<semval> is to be set (for some semaphore of the set) is less than 0 "
#. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC.
#. type: Plain text
-#: build/C/man2/semctl.2:463 build/C/man2/semget.2:221 build/C/man2/semop.2:403
+#: build/C/man2/semctl.2:465 build/C/man2/semget.2:223 build/C/man2/semop.2:405
msgid "SVr4, POSIX.1-2001."
msgstr ""
+#. Like Linux, the FreeBSD man pages still document
+#. the inclusion of these header files.
+#. type: Plain text
+#: build/C/man2/semctl.2:478 build/C/man2/semget.2:236 build/C/man2/semop.2:418
+msgid ""
+"The inclusion of I<E<lt>sys/types.hE<gt>> and I<E<lt>sys/ipc.hE<gt>> isn't "
+"required on Linux or by any version of POSIX. However, some old "
+"implementations required the inclusion of these header files, and the SVID "
+"also documented their inclusion. Applications intended to be portable to "
+"such old systems may need to include these header files."
+msgstr ""
+
#. type: Plain text
-#: build/C/man2/semctl.2:474
+#: build/C/man2/semctl.2:489
msgid ""
"The B<IPC_INFO>, B<SEM_STAT> and B<SEM_INFO> operations are used by the "
"B<ipcs>(1) program to provide information on allocated resources. In the "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:487
+#: build/C/man2/semctl.2:502
msgid ""
"Various fields in a I<struct semid_ds> were typed as I<short> under Linux "
"2.2 and have become I<long> under Linux 2.4. To take advantage of this, a "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:496
+#: build/C/man2/semctl.2:511
msgid ""
"In some earlier versions of glibc, the I<semun> union was defined in "
"I<E<lt>sys/sem.hE<gt>>, but POSIX.1-2001 requires that the caller define "
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:500
+#: build/C/man2/semctl.2:515
msgid "The following system limit on semaphore sets affects a B<semctl>() call:"
msgstr ""
#. type: TP
-#: build/C/man2/semctl.2:500 build/C/man2/semop.2:449
+#: build/C/man2/semctl.2:515 build/C/man2/semop.2:464
#, no-wrap
msgid "B<SEMVMX>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:505
+#: build/C/man2/semctl.2:520
msgid "Maximum value for B<semval>: implementation dependent (32767)."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:509
+#: build/C/man2/semctl.2:524
msgid ""
"For greater portability it is best to always call B<semctl>() with four "
"arguments."
msgstr ""
#. type: Plain text
-#: build/C/man2/semctl.2:516
+#: build/C/man2/semctl.2:531
msgid ""
"B<ipc>(2), B<semget>(2), B<semop>(2), B<capabilities>(7), "
"B<sem_overview>(7), B<svipc>(7)"
msgstr ""
#. type: TH
-#: build/C/man2/semget.2:34
+#: build/C/man2/semget.2:36
#, no-wrap
msgid "SEMGET"
msgstr ""
-#. type: TH
-#: build/C/man2/semget.2:34
-#, no-wrap
-msgid "2004-05-27"
-msgstr ""
-
#. type: Plain text
-#: build/C/man2/semget.2:37
+#: build/C/man2/semget.2:39
msgid "semget - get a semaphore set identifier"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:47
+#: build/C/man2/semget.2:49
msgid "B<int semget(key_t >I<key>B<,> B<int >I<nsems>B<,> B<int >I<semflg>B<);>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:65
+#: build/C/man2/semget.2:67
msgid ""
"The B<semget>() system call returns the semaphore set identifier associated "
"with the argument I<key>. A new set of I<nsems> semaphores is created if "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:84
+#: build/C/man2/semget.2:86
msgid ""
"If I<semflg> specifies both B<IPC_CREAT> and B<IPC_EXCL> and a semaphore set "
"already exists for I<key>, then B<semget>() fails with I<errno> set to "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:97
+#: build/C/man2/semget.2:99
msgid ""
"Upon creation, the least significant 9 bits of the argument I<semflg> define "
"the permissions (for owner, group and others) for the semaphore set. These "
#. the values to zero, but I suppose there is/was some obscure
#. implementation out there that does not.
#. type: Plain text
-#: build/C/man2/semget.2:107
+#: build/C/man2/semget.2:109
msgid ""
"The values of the semaphores in a newly created set are indeterminate. "
"(POSIX.1-2001 is explicit on this point.) Although Linux, like many other "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:115
+#: build/C/man2/semget.2:117
msgid ""
"When creating a new semaphore set, B<semget>() initializes the set's "
"associated data structure, I<semid_ds> (see B<semctl>(2)), as follows:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:120
+#: build/C/man2/semget.2:122
msgid ""
"I<sem_perm.cuid> and I<sem_perm.uid> are set to the effective user ID of the "
"calling process."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:125
+#: build/C/man2/semget.2:127
msgid ""
"I<sem_perm.cgid> and I<sem_perm.gid> are set to the effective group ID of "
"the calling process."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:130
+#: build/C/man2/semget.2:132
msgid ""
"The least significant 9 bits of I<sem_perm.mode> are set to the least "
"significant 9 bits of I<semflg>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:134
+#: build/C/man2/semget.2:136
msgid "I<sem_nsems> is set to the value of I<nsems>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:137
+#: build/C/man2/semget.2:139
msgid "I<sem_otime> is set to 0."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:140
+#: build/C/man2/semget.2:142
msgid "I<sem_ctime> is set to the current time."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:151
+#: build/C/man2/semget.2:153
msgid ""
"The argument I<nsems> can be 0 (a don't care) when a semaphore set is not "
"being created. Otherwise I<nsems> must be greater than 0 and less than or "
#. and a check is made to see if it is marked for destruction.
#. type: Plain text
-#: build/C/man2/semget.2:155
+#: build/C/man2/semget.2:157
msgid "If the semaphore set already exists, the permissions are verified."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:161
+#: build/C/man2/semget.2:163
msgid ""
"If successful, the return value will be the semaphore set identifier (a "
"nonnegative integer), otherwise -1 is returned, with I<errno> indicating the "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:165
+#: build/C/man2/semget.2:167
msgid "On failure I<errno> will be set to one of the following:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:173
+#: build/C/man2/semget.2:175
msgid ""
"A semaphore set exists for I<key>, but the calling process does not have "
"permission to access the set, and does not have the B<CAP_IPC_OWNER> "
#. .B EIDRM
#. The semaphore set is marked to be deleted.
#. type: Plain text
-#: build/C/man2/semget.2:186
+#: build/C/man2/semget.2:188
msgid ""
"A semaphore set exists for I<key> and I<semflg> specified both B<IPC_CREAT> "
"and B<IPC_EXCL>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:197
+#: build/C/man2/semget.2:199
msgid ""
"I<nsems> is less than 0 or greater than the limit on the number of "
"semaphores per semaphore set (B<SEMMSL>), or a semaphore set corresponding "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:205
+#: build/C/man2/semget.2:207
msgid ""
"No semaphore set exists for I<key> and I<semflg> did not specify "
"B<IPC_CREAT>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:209
+#: build/C/man2/semget.2:211
msgid ""
"A semaphore set has to be created but the system does not have enough memory "
"for the new data structure."
msgstr ""
#. type: TP
-#: build/C/man2/semget.2:209
+#: build/C/man2/semget.2:211
#, no-wrap
msgid "B<ENOSPC>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:217
+#: build/C/man2/semget.2:219
msgid ""
"A semaphore set has to be created but the system limit for the maximum "
"number of semaphore sets (B<SEMMNI>), or the system wide maximum number of "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:231
+#: build/C/man2/semget.2:246
msgid ""
"B<IPC_PRIVATE> isn't a flag field but a I<key_t> type. If this special "
"value is used for I<key>, the system call ignores everything but the least "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:235
+#: build/C/man2/semget.2:250
msgid ""
"The following limits on semaphore set resources affect the B<semget>() "
"call:"
msgstr ""
#. type: TP
-#: build/C/man2/semget.2:235
+#: build/C/man2/semget.2:250
#, no-wrap
msgid "B<SEMMNI>"
msgstr ""
#. This /proc file is not available in Linux 2.2 and earlier -- MTK
#. type: Plain text
-#: build/C/man2/semget.2:241
+#: build/C/man2/semget.2:256
msgid ""
"System wide maximum number of semaphore sets: policy dependent (on Linux, "
"this limit can be read and modified via the fourth field of "
msgstr ""
#. type: TP
-#: build/C/man2/semget.2:241
+#: build/C/man2/semget.2:256
#, no-wrap
msgid "B<SEMMSL>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:246
+#: build/C/man2/semget.2:261
msgid ""
"Maximum number of semaphores per semid: implementation dependent (on Linux, "
"this limit can be read and modified via the first field of "
msgstr ""
#. type: TP
-#: build/C/man2/semget.2:246
+#: build/C/man2/semget.2:261
#, no-wrap
msgid "B<SEMMNS>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:254
+#: build/C/man2/semget.2:269
msgid ""
"System wide maximum number of semaphores: policy dependent (on Linux, this "
"limit can be read and modified via the second field of "
msgstr ""
#. type: SH
-#: build/C/man2/semget.2:254 build/C/man2/semop.2:461
+#: build/C/man2/semget.2:269 build/C/man2/semop.2:476
#, no-wrap
msgid "BUGS"
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:260
+#: build/C/man2/semget.2:275
msgid ""
"The name choice B<IPC_PRIVATE> was perhaps unfortunate, B<IPC_NEW> would "
"more clearly show its function."
#. In fact they are initialized to zero on Linux, but POSIX.1-2001
#. does not specify this, and we can't portably rely on it.
#. type: Plain text
-#: build/C/man2/semget.2:279
+#: build/C/man2/semget.2:294
msgid ""
"The semaphores in a set are not initialized by B<semget>(). In order to "
"initialize the semaphores, B<semctl>(2) must be used to perform a B<SETVAL> "
msgstr ""
#. type: Plain text
-#: build/C/man2/semget.2:286
+#: build/C/man2/semget.2:301
msgid ""
"B<semctl>(2), B<semop>(2), B<ftok>(3), B<capabilities>(7), "
"B<sem_overview>(7), B<svipc>(7)"
msgstr ""
#. type: TH
-#: build/C/man2/semop.2:33
+#: build/C/man2/semop.2:35
#, no-wrap
msgid "SEMOP"
msgstr ""
#. type: TH
-#: build/C/man2/semop.2:33
+#: build/C/man2/semop.2:35
#, no-wrap
-msgid "2012-05-10"
+msgid "2012-08-27"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:36
+#: build/C/man2/semop.2:38
msgid "semop, semtimedop - semaphore operations"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:43
+#: build/C/man2/semop.2:45
#, no-wrap
msgid ""
"B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, unsigned "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:46
+#: build/C/man2/semop.2:48
#, no-wrap
msgid ""
"B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, unsigned "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:55
+#: build/C/man2/semop.2:57
msgid "B<semtimedop>(): _GNU_SOURCE"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:57
+#: build/C/man2/semop.2:59
msgid "Each semaphore in a semaphore set has the following associated values:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:64
+#: build/C/man2/semop.2:66
#, no-wrap
msgid ""
"unsigned short semval; /* semaphore value */\n"
"unsigned short semzcnt; /* # waiting for zero */\n"
"unsigned short semncnt; /* # waiting for increase */\n"
-"pid_t sempid; /* process that did last op */\n"
+"pid_t sempid; /* ID of process that did last op */\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:78
+#: build/C/man2/semop.2:80
msgid ""
"B<semop>() performs operations on selected semaphores in the set indicated "
"by I<semid>. Each of the I<nsops> elements in the array pointed to by "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:84
+#: build/C/man2/semop.2:86
#, no-wrap
msgid ""
"unsigned short sem_num; /* semaphore number */\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:96
+#: build/C/man2/semop.2:98
msgid ""
"Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an "
"operation specifies B<SEM_UNDO>, it will be automatically undone when the "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:111
+#: build/C/man2/semop.2:113
msgid ""
"The set of operations contained in I<sops> is performed in I<array order>, "
"and I<atomically>, that is, the operations are performed either as a "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:118
+#: build/C/man2/semop.2:120
msgid ""
"Each operation is performed on the I<sem_num>-th semaphore of the semaphore "
"set, where the first semaphore of the set is numbered 0. There are three "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:131
+#: build/C/man2/semop.2:133
msgid ""
"If I<sem_op> is a positive integer, the operation adds this value to the "
"semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for "
-"this operation, the system updates the process undo count (I<semadj>) for "
-"this semaphore. This operation can always proceed\\(emit never forces a "
-"process to wait. The calling process must have alter permission on the "
-"semaphore set."
+"this operation, the system updates the undo count (I<semadj>) for this "
+"semaphore. This operation can always proceed\\(emit never forces a thread "
+"to wait. The calling process must have alter permission on the semaphore "
+"set."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:156
+#: build/C/man2/semop.2:158
msgid ""
"If I<sem_op> is zero, the process must have read permission on the semaphore "
"set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the "
"operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified "
"in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of "
"the operations in I<sops> is performed). Otherwise I<semzcnt> (the count of "
-"processes waiting until this semaphore's value becomes zero) is incremented "
-"by one and the process sleeps until one of the following occurs:"
+"threads waiting until this semaphore's value becomes zero) is incremented "
+"by one and the thread sleeps until one of the following occurs:"
msgstr ""
#. type: IP
-#: build/C/man2/semop.2:156 build/C/man2/semop.2:161 build/C/man2/semop.2:169 build/C/man2/semop.2:179 build/C/man2/semop.2:230 build/C/man2/semop.2:245 build/C/man2/semop.2:252 build/C/man2/semop.2:262
+#: build/C/man2/semop.2:158 build/C/man2/semop.2:163 build/C/man2/semop.2:171 build/C/man2/semop.2:181 build/C/man2/semop.2:232 build/C/man2/semop.2:247 build/C/man2/semop.2:254 build/C/man2/semop.2:264
#, no-wrap
msgid "\\(bu"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:161
+#: build/C/man2/semop.2:163
msgid "I<semval> becomes 0, at which time the value of I<semzcnt> is decremented."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:169
+#: build/C/man2/semop.2:171
msgid ""
"The semaphore set is removed: B<semop>() fails, with I<errno> set to "
"B<EIDRM>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:179
+#: build/C/man2/semop.2:181
msgid ""
-"The calling process catches a signal: the value of I<semzcnt> is decremented "
+"The calling thread catches a signal: the value of I<semzcnt> is decremented "
"and B<semop>() fails, with I<errno> set to B<EINTR>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:190
+#: build/C/man2/semop.2:192
msgid ""
"The time limit specified by I<timeout> in a B<semtimedop>() call expires: "
"B<semop>() fails, with I<errno> set to B<EAGAIN>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:230
+#: build/C/man2/semop.2:232
msgid ""
"If I<sem_op> is less than zero, the process must have alter permission on "
"the semaphore set. If I<semval> is greater than or equal to the absolute "
"value of I<sem_op>, the operation can proceed immediately: the absolute "
"value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is "
-"specified for this operation, the system updates the process undo count "
-"(I<semadj>) for this semaphore. If the absolute value of I<sem_op> is "
-"greater than I<semval>, and B<IPC_NOWAIT> is specified in I<sem_flg>, "
-"B<semop>() fails, with I<errno> set to B<EAGAIN> (and none of the "
-"operations in I<sops> is performed). Otherwise I<semncnt> (the counter of "
-"processes waiting for this semaphore's value to increase) is incremented by "
-"one and the process sleeps until one of the following occurs:"
+"specified for this operation, the system updates the undo count (I<semadj>) "
+"for this semaphore. If the absolute value of I<sem_op> is greater than "
+"I<semval>, and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, "
+"with I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is "
+"performed). Otherwise I<semncnt> (the counter of threads waiting for this "
+"semaphore's value to increase) is incremented by one and the thread sleeps "
+"until one of the following occurs:"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:245
+#: build/C/man2/semop.2:247
msgid ""
"I<semval> becomes greater than or equal to the absolute value of I<sem_op>, "
"at which time the value of I<semncnt> is decremented, the absolute value of "
"I<sem_op> is subtracted from I<semval> and, if B<SEM_UNDO> is specified for "
-"this operation, the system updates the process undo count (I<semadj>) for "
-"this semaphore."
+"this operation, the system updates the undo count (I<semadj>) for this "
+"semaphore."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:252
+#: build/C/man2/semop.2:254
msgid ""
"The semaphore set is removed from the system: B<semop>() fails, with "
"I<errno> set to B<EIDRM>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:262
+#: build/C/man2/semop.2:264
msgid ""
-"The calling process catches a signal: the value of I<semncnt> is decremented "
+"The calling thread catches a signal: the value of I<semncnt> is decremented "
"and B<semop>() fails, with I<errno> set to B<EINTR>."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:271
+#: build/C/man2/semop.2:273
msgid ""
"The time limit specified by I<timeout> in a B<semtimedop>() call expires: "
"the system call fails, with I<errno> set to B<EAGAIN>."
#. and
#. .I sem_ctime
#. type: Plain text
-#: build/C/man2/semop.2:282
+#: build/C/man2/semop.2:284
msgid ""
"On successful completion, the I<sempid> value for each semaphore specified "
-"in the array pointed to by I<sops> is set to the process ID of the calling "
-"process. In addition, the I<sem_otime> is set to the current time."
+"in the array pointed to by I<sops> is set to the caller's process ID. In "
+"addition, the I<sem_otime> is set to the current time."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:312
+#: build/C/man2/semop.2:314
msgid ""
"B<semtimedop>() behaves identically to B<semop>() except that in those "
-"cases were the calling process would sleep, the duration of that sleep is "
+"cases where the calling thread would sleep, the duration of that sleep is "
"limited by the amount of elapsed time specified by the I<timespec> structure "
"whose address is passed in the I<timeout> argument. (This sleep interval "
"will be rounded up to the system clock granularity, and kernel scheduling "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:322
+#: build/C/man2/semop.2:324
msgid ""
"If successful B<semop>() and B<semtimedop>() return 0; otherwise they "
"return -1 with I<errno> indicating the error."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:326
+#: build/C/man2/semop.2:328
msgid "On failure, I<errno> is set to one of the following:"
msgstr ""
#. type: TP
-#: build/C/man2/semop.2:326
+#: build/C/man2/semop.2:328
#, no-wrap
msgid "B<E2BIG>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:334
+#: build/C/man2/semop.2:336
msgid ""
"The argument I<nsops> is greater than B<SEMOPM>, the maximum number of "
"operations allowed per system call."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:341
+#: build/C/man2/semop.2:343
msgid ""
"The calling process does not have the permissions required to perform the "
"specified semaphore operations, and does not have the B<CAP_IPC_OWNER> "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:350
+#: build/C/man2/semop.2:352
msgid ""
"An operation could not proceed immediately and either B<IPC_NOWAIT> was "
"specified in I<sem_flg> or the time limit specified in I<timeout> expired."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:357
+#: build/C/man2/semop.2:359
msgid ""
"An address specified in either the I<sops> or the I<timeout> argument isn't "
"accessible."
msgstr ""
#. type: TP
-#: build/C/man2/semop.2:357
+#: build/C/man2/semop.2:359
#, no-wrap
msgid "B<EFBIG>"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:363
+#: build/C/man2/semop.2:365
msgid ""
"For some operation the value of I<sem_num> is less than 0 or greater than or "
"equal to the number of semaphores in the set."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:370
+#: build/C/man2/semop.2:372
msgid ""
-"While blocked in this system call, the process caught a signal; see "
+"While blocked in this system call, the thread caught a signal; see "
"B<signal>(7)."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:377
+#: build/C/man2/semop.2:379
msgid ""
"The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> "
"has a nonpositive value."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:385
+#: build/C/man2/semop.2:387
msgid ""
"The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does "
"not have enough memory to allocate the undo structure."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:393
+#: build/C/man2/semop.2:395
msgid ""
"For some operation I<sem_op+semval> is greater than B<SEMVMX>, the "
"implementation dependent maximum value for I<semval>."
msgstr ""
#. type: SH
-#: build/C/man2/semop.2:393
+#: build/C/man2/semop.2:395
#, no-wrap
msgid "VERSIONS"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:400
+#: build/C/man2/semop.2:402
msgid ""
"B<semtimedop>() first appeared in Linux 2.5.52, and was subsequently "
"backported into kernel 2.4.22. Glibc support for B<semtimedop>() first "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:411
+#: build/C/man2/semop.2:426
msgid ""
"The I<sem_undo> structures of a process aren't inherited by the child "
"produced by B<fork>(2), but they are inherited across an B<execve>(2) "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:417
+#: build/C/man2/semop.2:432
msgid ""
"B<semop>() is never automatically restarted after being interrupted by a "
"signal handler, regardless of the setting of the B<SA_RESTART> flag when "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:432
+#: build/C/man2/semop.2:447
msgid ""
"I<semadj> is a per-process integer which is simply the (negative) count of "
"all semaphore operations performed specifying the B<SEM_UNDO> flag. When a "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:437
+#: build/C/man2/semop.2:452
msgid ""
"The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore "
"can all be retrieved using appropriate B<semctl>(2) calls."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:441
+#: build/C/man2/semop.2:456
msgid "The following limits on semaphore set resources affect the B<semop>() call:"
msgstr ""
#. type: TP
-#: build/C/man2/semop.2:441
+#: build/C/man2/semop.2:456
#, no-wrap
msgid "B<SEMOPM>"
msgstr ""
#. This /proc file is not available in Linux 2.2 and earlier -- MTK
#. type: Plain text
-#: build/C/man2/semop.2:449
+#: build/C/man2/semop.2:464
msgid ""
"Maximum number of operations allowed for one B<semop>() call (32) (on "
"Linux, this limit can be read and modified via the third field of "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:454
+#: build/C/man2/semop.2:469
msgid "Maximum allowable value for I<semval>: implementation dependent (32767)."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:461
+#: build/C/man2/semop.2:476
msgid ""
"The implementation has no intrinsic limits for the adjust on exit maximum "
"value (B<SEMAEM>), the system wide maximum number of undo structures "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:482
+#: build/C/man2/semop.2:497
msgid ""
"When a process terminates, its set of associated I<semadj> structures is "
"used to undo the effect of all of the semaphore operations it performed with "
#. the fix:
#. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2
#. type: Plain text
-#: build/C/man2/semop.2:491
+#: build/C/man2/semop.2:506
msgid ""
"In kernels 2.6.x, x E<lt>= 10, there is a bug that in some circumstances "
-"prevents a process that is waiting for a semaphore value to become zero from "
+"prevents a thread that is waiting for a semaphore value to become zero from "
"being woken up when the value does actually become zero. This bug is fixed "
"in kernel 2.6.11."
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:496
+#: build/C/man2/semop.2:511
msgid ""
"The following code segment uses B<semop>() to atomically wait for the value "
"of semaphore 0 to become zero, and then increment the semaphore value by "
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:500
+#: build/C/man2/semop.2:515
#, no-wrap
msgid ""
" struct sembuf sops[2];\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:502
+#: build/C/man2/semop.2:517
#, no-wrap
msgid " /* Code to set I<semid> omitted */\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:506
+#: build/C/man2/semop.2:521
#, no-wrap
msgid ""
" sops[0].sem_num = 0; /* Operate on semaphore 0 */\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:510
+#: build/C/man2/semop.2:525
#, no-wrap
msgid ""
" sops[1].sem_num = 0; /* Operate on semaphore 0 */\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:515
+#: build/C/man2/semop.2:530
#, no-wrap
msgid ""
" if (semop(semid, sops, 2) == -1) {\n"
msgstr ""
#. type: Plain text
-#: build/C/man2/semop.2:524
+#: build/C/man2/semop.2:540
msgid ""
-"B<semctl>(2), B<semget>(2), B<sigaction>(2), B<capabilities>(7), "
-"B<sem_overview>(7), B<svipc>(7), B<time>(7)"
+"B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), "
+"B<capabilities>(7), B<sem_overview>(7), B<svipc>(7), B<time>(7)"
msgstr ""