| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:42+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
|
| 19 |
#. type: TH |
| 20 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 21 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 22 |
#, no-wrap |
| 23 |
msgid "semop" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 28 |
#: opensuse-tumbleweed |
| 29 |
#, no-wrap |
| 30 |
msgid "2026-02-08" |
| 31 |
msgstr "" |
| 32 |
|
| 33 |
#. type: TH |
| 34 |
#: archlinux debian-unstable |
| 35 |
#, no-wrap |
| 36 |
msgid "Linux man-pages 6.18" |
| 37 |
msgstr "" |
| 38 |
|
| 39 |
#. type: SH |
| 40 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 41 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 42 |
#, no-wrap |
| 43 |
msgid "NAME" |
| 44 |
msgstr "" |
| 45 |
|
| 46 |
#. type: Plain text |
| 47 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 48 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 49 |
msgid "semop, semtimedop - System V semaphore operations" |
| 50 |
msgstr "" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "LIBRARY" |
| 57 |
msgstr "" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 61 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 63 |
msgstr "" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "SYNOPSIS" |
| 70 |
msgstr "" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 74 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
#, no-wrap |
| 76 |
msgid "B<#include E<lt>sys/sem.hE<gt>>\n" |
| 77 |
msgstr "" |
| 78 |
|
| 79 |
#. type: Plain text |
| 80 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 81 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 82 |
#, no-wrap |
| 83 |
msgid "" |
| 84 |
"B<int semop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<);>\n" |
| 85 |
"B<int semtimedop(int >I<semid>B<, struct sembuf *>I<sops>B<, size_t >I<nsops>B<,>\n" |
| 86 |
"B< const struct timespec *_Nullable >I<timeout>B<);>\n" |
| 87 |
msgstr "" |
| 88 |
|
| 89 |
#. type: Plain text |
| 90 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 91 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 92 |
msgid "" |
| 93 |
"Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):" |
| 94 |
msgstr "" |
| 95 |
|
| 96 |
#. type: Plain text |
| 97 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 98 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 99 |
msgid "B<semtimedop>():" |
| 100 |
msgstr "" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
#, no-wrap |
| 106 |
msgid " _GNU_SOURCE\n" |
| 107 |
msgstr "" |
| 108 |
|
| 109 |
#. type: SH |
| 110 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 111 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 112 |
#, no-wrap |
| 113 |
msgid "DESCRIPTION" |
| 114 |
msgstr "" |
| 115 |
|
| 116 |
#. type: Plain text |
| 117 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 118 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 119 |
msgid "" |
| 120 |
"Each semaphore in a System\\ V semaphore set has the following associated " |
| 121 |
"values:" |
| 122 |
msgstr "" |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
#, no-wrap |
| 128 |
msgid "" |
| 129 |
"unsigned short semval; /* semaphore value */\n" |
| 130 |
"unsigned short semzcnt; /* # waiting for zero */\n" |
| 131 |
"unsigned short semncnt; /* # waiting for increase */\n" |
| 132 |
"pid_t sempid; /* PID of process that last\n" |
| 133 |
" modified the semaphore value */\n" |
| 134 |
msgstr "" |
| 135 |
|
| 136 |
#. type: Plain text |
| 137 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 138 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 139 |
msgid "" |
| 140 |
"B<semop>() performs operations on selected semaphores in the set indicated " |
| 141 |
"by I<semid>. Each of the I<nsops> elements in the array pointed to by " |
| 142 |
"I<sops> is a structure that specifies an operation to be performed on a " |
| 143 |
"single semaphore. The elements of this structure are of type I<struct " |
| 144 |
"sembuf>, containing the following members:" |
| 145 |
msgstr "" |
| 146 |
|
| 147 |
#. type: Plain text |
| 148 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 149 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 150 |
#, no-wrap |
| 151 |
msgid "" |
| 152 |
"unsigned short sem_num; /* semaphore number */\n" |
| 153 |
"short sem_op; /* semaphore operation */\n" |
| 154 |
"short sem_flg; /* operation flags */\n" |
| 155 |
msgstr "" |
| 156 |
|
| 157 |
#. type: Plain text |
| 158 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 159 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 160 |
msgid "" |
| 161 |
"Flags recognized in I<sem_flg> are B<IPC_NOWAIT> and B<SEM_UNDO>. If an " |
| 162 |
"operation specifies B<SEM_UNDO>, it will be automatically undone when the " |
| 163 |
"process terminates." |
| 164 |
msgstr "" |
| 165 |
|
| 166 |
#. type: Plain text |
| 167 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 168 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 169 |
msgid "" |
| 170 |
"The set of operations contained in I<sops> is performed in I<array order>, " |
| 171 |
"and I<atomically>, that is, the operations are performed either as a " |
| 172 |
"complete unit, or not at all. The behavior of the system call if not all " |
| 173 |
"operations can be performed immediately depends on the presence of the " |
| 174 |
"B<IPC_NOWAIT> flag in the individual I<sem_flg> fields, as noted below." |
| 175 |
msgstr "" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 179 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"Each operation is performed on the I<sem_num>-th semaphore of the semaphore " |
| 182 |
"set, where the first semaphore of the set is numbered 0. There are three " |
| 183 |
"types of operation, distinguished by the value of I<sem_op>." |
| 184 |
msgstr "" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "" |
| 190 |
"If I<sem_op> is a positive integer, the operation adds this value to the " |
| 191 |
"semaphore value (I<semval>). Furthermore, if B<SEM_UNDO> is specified for " |
| 192 |
"this operation, the system subtracts the value I<sem_op> from the semaphore " |
| 193 |
"adjustment (I<semadj>) value for this semaphore. This operation can always " |
| 194 |
"proceed\\[em]it never forces a thread to wait. The calling process must " |
| 195 |
"have alter permission on the semaphore set." |
| 196 |
msgstr "" |
| 197 |
|
| 198 |
#. type: Plain text |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
msgid "" |
| 202 |
"If I<sem_op> is zero, the process must have read permission on the semaphore " |
| 203 |
"set. This is a \"wait-for-zero\" operation: if I<semval> is zero, the " |
| 204 |
"operation can immediately proceed. Otherwise, if B<IPC_NOWAIT> is specified " |
| 205 |
"in I<sem_flg>, B<semop>() fails with I<errno> set to B<EAGAIN> (and none of " |
| 206 |
"the operations in I<sops> is performed). Otherwise, I<semzcnt> (the count " |
| 207 |
"of threads waiting until this semaphore's value becomes zero) is " |
| 208 |
"incremented by one and the thread sleeps until one of the following occurs:" |
| 209 |
msgstr "" |
| 210 |
|
| 211 |
#. type: IP |
| 212 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 213 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 214 |
#, no-wrap |
| 215 |
msgid "\\[bu]" |
| 216 |
msgstr "" |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
msgid "" |
| 222 |
"I<semval> becomes 0, at which time the value of I<semzcnt> is decremented." |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"The semaphore set is removed: B<semop>() fails, with I<errno> set to " |
| 230 |
"B<EIDRM>." |
| 231 |
msgstr "" |
| 232 |
|
| 233 |
#. type: Plain text |
| 234 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 235 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 236 |
msgid "" |
| 237 |
"The calling thread catches a signal: the value of I<semzcnt> is decremented " |
| 238 |
"and B<semop>() fails, with I<errno> set to B<EINTR>." |
| 239 |
msgstr "" |
| 240 |
|
| 241 |
#. type: Plain text |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
msgid "" |
| 245 |
"If I<sem_op> is less than zero, the process must have alter permission on " |
| 246 |
"the semaphore set. If I<semval> is greater than or equal to the absolute " |
| 247 |
"value of I<sem_op>, the operation can proceed immediately: the absolute " |
| 248 |
"value of I<sem_op> is subtracted from I<semval>, and, if B<SEM_UNDO> is " |
| 249 |
"specified for this operation, the system adds the absolute value of " |
| 250 |
"I<sem_op> to the semaphore adjustment (I<semadj>) value for this " |
| 251 |
"semaphore. If the absolute value of I<sem_op> is greater than I<semval>, " |
| 252 |
"and B<IPC_NOWAIT> is specified in I<sem_flg>, B<semop>() fails, with " |
| 253 |
"I<errno> set to B<EAGAIN> (and none of the operations in I<sops> is " |
| 254 |
"performed). Otherwise, I<semncnt> (the counter of threads waiting for this " |
| 255 |
"semaphore's value to increase) is incremented by one and the thread sleeps " |
| 256 |
"until one of the following occurs:" |
| 257 |
msgstr "" |
| 258 |
|
| 259 |
#. type: Plain text |
| 260 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 261 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 262 |
msgid "" |
| 263 |
"I<semval> becomes greater than or equal to the absolute value of I<sem_op>: " |
| 264 |
"the operation now proceeds, as described above." |
| 265 |
msgstr "" |
| 266 |
|
| 267 |
#. type: Plain text |
| 268 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 269 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 270 |
msgid "" |
| 271 |
"The semaphore set is removed from the system: B<semop>() fails, with " |
| 272 |
"I<errno> set to B<EIDRM>." |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "" |
| 279 |
"The calling thread catches a signal: the value of I<semncnt> is decremented " |
| 280 |
"and B<semop>() fails, with I<errno> set to B<EINTR>." |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#. and |
| 284 |
#. .I sem_ctime |
| 285 |
#. type: Plain text |
| 286 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 287 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 288 |
msgid "" |
| 289 |
"On successful completion, the I<sempid> value for each semaphore specified " |
| 290 |
"in the array pointed to by I<sops> is set to the caller's process ID. In " |
| 291 |
"addition, the I<sem_otime> is set to the current time." |
| 292 |
msgstr "" |
| 293 |
|
| 294 |
#. type: SS |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "semtimedop()" |
| 299 |
msgstr "" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"B<semtimedop>() behaves identically to B<semop>() except that in those " |
| 306 |
"cases where the calling thread would sleep, the duration of that sleep is " |
| 307 |
"limited by the amount of elapsed time specified by the I<timespec> structure " |
| 308 |
"whose address is passed in the I<timeout> argument. (This sleep interval " |
| 309 |
"will be rounded up to the system clock granularity, and kernel scheduling " |
| 310 |
"delays mean that the interval may overrun by a small amount.) If the " |
| 311 |
"specified time limit has been reached, B<semtimedop>() fails with I<errno> " |
| 312 |
"set to B<EAGAIN> (and none of the operations in I<sops> is performed). If " |
| 313 |
"the I<timeout> argument is NULL, then B<semtimedop>() behaves exactly like " |
| 314 |
"B<semop>()." |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "" |
| 321 |
"Note that if B<semtimedop>() is interrupted by a signal, causing the call " |
| 322 |
"to fail with the error B<EINTR>, the contents of I<timeout> are left " |
| 323 |
"unchanged." |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#. type: SH |
| 327 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 328 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 329 |
#, no-wrap |
| 330 |
msgid "RETURN VALUE" |
| 331 |
msgstr "" |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "" |
| 337 |
"On success, B<semop>() and B<semtimedop>() return 0. On failure, they " |
| 338 |
"return -1, and set I<errno> to indicate the error." |
| 339 |
msgstr "" |
| 340 |
|
| 341 |
#. type: SH |
| 342 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 343 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 344 |
#, no-wrap |
| 345 |
msgid "ERRORS" |
| 346 |
msgstr "" |
| 347 |
|
| 348 |
#. type: TP |
| 349 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 350 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 351 |
#, no-wrap |
| 352 |
msgid "B<E2BIG>" |
| 353 |
msgstr "" |
| 354 |
|
| 355 |
#. type: Plain text |
| 356 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 357 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 358 |
msgid "" |
| 359 |
"The argument I<nsops> is greater than B<SEMOPM>, the maximum number of " |
| 360 |
"operations allowed per system call." |
| 361 |
msgstr "" |
| 362 |
|
| 363 |
#. type: TP |
| 364 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 365 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 366 |
#, no-wrap |
| 367 |
msgid "B<EACCES>" |
| 368 |
msgstr "" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
msgid "" |
| 374 |
"The calling process does not have the permissions required to perform the " |
| 375 |
"specified semaphore operations, and does not have the B<CAP_IPC_OWNER> " |
| 376 |
"capability in the user namespace that governs its IPC namespace." |
| 377 |
msgstr "" |
| 378 |
|
| 379 |
#. type: TP |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
#, no-wrap |
| 383 |
msgid "B<EAGAIN>" |
| 384 |
msgstr "" |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
msgid "" |
| 390 |
"An operation could not proceed immediately and either B<IPC_NOWAIT> was " |
| 391 |
"specified in I<sem_flg> or the time limit specified in I<timeout> expired." |
| 392 |
msgstr "" |
| 393 |
|
| 394 |
#. type: TP |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
#, no-wrap |
| 398 |
msgid "B<EFAULT>" |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: Plain text |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
msgid "" |
| 405 |
"An address specified in either the I<sops> or the I<timeout> argument isn't " |
| 406 |
"accessible." |
| 407 |
msgstr "" |
| 408 |
|
| 409 |
#. type: TP |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
#, no-wrap |
| 413 |
msgid "B<EFBIG>" |
| 414 |
msgstr "" |
| 415 |
|
| 416 |
#. type: Plain text |
| 417 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 418 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 419 |
msgid "" |
| 420 |
"For some operation the value of I<sem_num> is less than 0 or greater than or " |
| 421 |
"equal to the number of semaphores in the set." |
| 422 |
msgstr "" |
| 423 |
|
| 424 |
#. type: TP |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "B<EIDRM>" |
| 429 |
msgstr "" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "The semaphore set was removed." |
| 435 |
msgstr "" |
| 436 |
|
| 437 |
#. type: TP |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
#, no-wrap |
| 441 |
msgid "B<EINTR>" |
| 442 |
msgstr "" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
msgid "" |
| 448 |
"While blocked in this system call, the thread caught a signal; see " |
| 449 |
"B<signal>(7)." |
| 450 |
msgstr "" |
| 451 |
|
| 452 |
#. type: TP |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
#, no-wrap |
| 456 |
msgid "B<EINVAL>" |
| 457 |
msgstr "" |
| 458 |
|
| 459 |
#. type: Plain text |
| 460 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 461 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 462 |
msgid "" |
| 463 |
"The semaphore set doesn't exist, or I<semid> is less than zero, or I<nsops> " |
| 464 |
"has a nonpositive value." |
| 465 |
msgstr "" |
| 466 |
|
| 467 |
#. type: TP |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
#, no-wrap |
| 471 |
msgid "B<ENOMEM>" |
| 472 |
msgstr "" |
| 473 |
|
| 474 |
#. type: Plain text |
| 475 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 476 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 477 |
msgid "" |
| 478 |
"The I<sem_flg> of some operation specified B<SEM_UNDO> and the system does " |
| 479 |
"not have enough memory to allocate the undo structure." |
| 480 |
msgstr "" |
| 481 |
|
| 482 |
#. type: TP |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
#, no-wrap |
| 486 |
msgid "B<ERANGE>" |
| 487 |
msgstr "" |
| 488 |
|
| 489 |
#. type: Plain text |
| 490 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 491 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 492 |
msgid "" |
| 493 |
"For some operation I<sem_op+semval> is greater than B<SEMVMX>, the " |
| 494 |
"implementation dependent maximum value for I<semval>." |
| 495 |
msgstr "" |
| 496 |
|
| 497 |
#. type: SH |
| 498 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 499 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 500 |
#, no-wrap |
| 501 |
msgid "STANDARDS" |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: Plain text |
| 505 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 506 |
#: opensuse-tumbleweed |
| 507 |
msgid "POSIX.1-2024." |
| 508 |
msgstr "" |
| 509 |
|
| 510 |
#. type: SH |
| 511 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 512 |
#: opensuse-tumbleweed |
| 513 |
#, no-wrap |
| 514 |
msgid "HISTORY" |
| 515 |
msgstr "" |
| 516 |
|
| 517 |
#. type: TP |
| 518 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 519 |
#: opensuse-tumbleweed |
| 520 |
#, no-wrap |
| 521 |
msgid "B<semop>()" |
| 522 |
msgstr "" |
| 523 |
|
| 524 |
#. type: Plain text |
| 525 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 526 |
#: opensuse-tumbleweed |
| 527 |
msgid "SVr4, POSIX.1-2001." |
| 528 |
msgstr "" |
| 529 |
|
| 530 |
#. type: TP |
| 531 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 532 |
#: opensuse-tumbleweed |
| 533 |
#, no-wrap |
| 534 |
msgid "B<semtimedop>()" |
| 535 |
msgstr "" |
| 536 |
|
| 537 |
#. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC. |
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 540 |
#: opensuse-tumbleweed |
| 541 |
msgid "SVr4, Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3." |
| 542 |
msgstr "" |
| 543 |
|
| 544 |
#. type: SH |
| 545 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 546 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 547 |
#, no-wrap |
| 548 |
msgid "NOTES" |
| 549 |
msgstr "" |
| 550 |
|
| 551 |
#. type: Plain text |
| 552 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 553 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 554 |
msgid "" |
| 555 |
"The I<sem_undo> structures of a process aren't inherited by the child " |
| 556 |
"produced by B<fork>(2), but they are inherited across an B<execve>(2) " |
| 557 |
"system call." |
| 558 |
msgstr "" |
| 559 |
|
| 560 |
#. type: Plain text |
| 561 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 562 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 563 |
msgid "" |
| 564 |
"B<semop>() is never automatically restarted after being interrupted by a " |
| 565 |
"signal handler, regardless of the setting of the B<SA_RESTART> flag when " |
| 566 |
"establishing a signal handler." |
| 567 |
msgstr "" |
| 568 |
|
| 569 |
#. type: Plain text |
| 570 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 571 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 572 |
msgid "" |
| 573 |
"A semaphore adjustment (I<semadj>) value is a per-process, per-semaphore " |
| 574 |
"integer that is the negated sum of all operations performed on a semaphore " |
| 575 |
"specifying the B<SEM_UNDO> flag. Each process has a list of I<semadj> " |
| 576 |
"values\\[em]one value for each semaphore on which it has operated using " |
| 577 |
"B<SEM_UNDO>. When a process terminates, each of its per-semaphore I<semadj> " |
| 578 |
"values is added to the corresponding semaphore, thus undoing the effect of " |
| 579 |
"that process's operations on the semaphore (but see BUGS below). When a " |
| 580 |
"semaphore's value is directly set using the B<SETVAL> or B<SETALL> request " |
| 581 |
"to B<semctl>(2), the corresponding I<semadj> values in all processes are " |
| 582 |
"cleared. The B<clone>(2) B<CLONE_SYSVSEM> flag allows more than one " |
| 583 |
"process to share a I<semadj> list; see B<clone>(2) for details." |
| 584 |
msgstr "" |
| 585 |
|
| 586 |
#. type: Plain text |
| 587 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 588 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 589 |
msgid "" |
| 590 |
"The I<semval>, I<sempid>, I<semzcnt>, and I<semnct> values for a semaphore " |
| 591 |
"can all be retrieved using appropriate B<semctl>(2) calls." |
| 592 |
msgstr "" |
| 593 |
|
| 594 |
#. type: SS |
| 595 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 596 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 597 |
#, no-wrap |
| 598 |
msgid "Semaphore limits" |
| 599 |
msgstr "" |
| 600 |
|
| 601 |
#. type: Plain text |
| 602 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 603 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 604 |
msgid "" |
| 605 |
"The following limits on semaphore set resources affect the B<semop>() call:" |
| 606 |
msgstr "" |
| 607 |
|
| 608 |
#. type: TP |
| 609 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 610 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 611 |
#, no-wrap |
| 612 |
msgid "B<SEMOPM>" |
| 613 |
msgstr "" |
| 614 |
|
| 615 |
#. commit e843e7d2c88b7db107a86bd2c7145dc715c058f4 |
| 616 |
#. This /proc file is not available in Linux 2.2 and earlier -- MTK |
| 617 |
#. See comment in Linux 3.19 source file include/uapi/linux/sem.h |
| 618 |
#. type: Plain text |
| 619 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 620 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 621 |
msgid "" |
| 622 |
"Maximum number of operations allowed for one B<semop>() call. Before Linux " |
| 623 |
"3.19, the default value for this limit was 32. Since Linux 3.19, the " |
| 624 |
"default value is 500. On Linux, this limit can be read and modified via the " |
| 625 |
"third field of I</proc/sys/kernel/sem>. I<Note>: this limit should not be " |
| 626 |
"raised above 1000, because of the risk of that B<semop>() fails due to " |
| 627 |
"kernel memory fragmentation when allocating memory to copy the I<sops> array." |
| 628 |
msgstr "" |
| 629 |
|
| 630 |
#. type: TP |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "B<SEMVMX>" |
| 635 |
msgstr "" |
| 636 |
|
| 637 |
#. type: Plain text |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
msgid "" |
| 641 |
"Maximum allowable value for I<semval>: implementation dependent (32767)." |
| 642 |
msgstr "" |
| 643 |
|
| 644 |
#. type: Plain text |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
msgid "" |
| 648 |
"The implementation has no intrinsic limits for the adjust on exit maximum " |
| 649 |
"value (B<SEMAEM>), the system wide maximum number of undo structures " |
| 650 |
"(B<SEMMNU>) and the per-process maximum number of undo entries system " |
| 651 |
"parameters." |
| 652 |
msgstr "" |
| 653 |
|
| 654 |
#. type: SH |
| 655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 656 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 657 |
#, no-wrap |
| 658 |
msgid "BUGS" |
| 659 |
msgstr "" |
| 660 |
|
| 661 |
#. type: Plain text |
| 662 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 663 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 664 |
msgid "" |
| 665 |
"When a process terminates, its set of associated I<semadj> structures is " |
| 666 |
"used to undo the effect of all of the semaphore operations it performed with " |
| 667 |
"the B<SEM_UNDO> flag. This raises a difficulty: if one (or more) of these " |
| 668 |
"semaphore adjustments would result in an attempt to decrease a semaphore's " |
| 669 |
"value below zero, what should an implementation do? One possible approach " |
| 670 |
"would be to block until all the semaphore adjustments could be performed. " |
| 671 |
"This is however undesirable since it could force process termination to " |
| 672 |
"block for arbitrarily long periods. Another possibility is that such " |
| 673 |
"semaphore adjustments could be ignored altogether (somewhat analogously to " |
| 674 |
"failing when B<IPC_NOWAIT> is specified for a semaphore operation). Linux " |
| 675 |
"adopts a third approach: decreasing the semaphore value as far as possible " |
| 676 |
"(i.e., to zero) and allowing process termination to proceed immediately." |
| 677 |
msgstr "" |
| 678 |
|
| 679 |
#. The bug report: |
| 680 |
#. http://marc.theaimsgroup.com/?l=linux-kernel&m=110260821123863&w=2 |
| 681 |
#. the fix: |
| 682 |
#. http://marc.theaimsgroup.com/?l=linux-kernel&m=110261701025794&w=2 |
| 683 |
#. type: Plain text |
| 684 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 685 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 686 |
msgid "" |
| 687 |
"In Linux 2.6.x, x E<lt>= 10, there is a bug that in some circumstances " |
| 688 |
"prevents a thread that is waiting for a semaphore value to become zero from " |
| 689 |
"being woken up when the value does actually become zero. This bug is fixed " |
| 690 |
"in Linux 2.6.11." |
| 691 |
msgstr "" |
| 692 |
|
| 693 |
#. type: SH |
| 694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
#, no-wrap |
| 697 |
msgid "EXAMPLES" |
| 698 |
msgstr "" |
| 699 |
|
| 700 |
#. type: Plain text |
| 701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 703 |
msgid "" |
| 704 |
"The following code segment uses B<semop>() to atomically wait for the value " |
| 705 |
"of semaphore 0 to become zero, and then increment the semaphore value by one." |
| 706 |
msgstr "" |
| 707 |
|
| 708 |
#. type: Plain text |
| 709 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 710 |
#: opensuse-tumbleweed |
| 711 |
#, no-wrap |
| 712 |
msgid "" |
| 713 |
"struct sembuf sops[2];\n" |
| 714 |
"int semid;\n" |
| 715 |
"\\&\n" |
| 716 |
"/* Code to set \\f[I]semid\\fR omitted */\n" |
| 717 |
"\\&\n" |
| 718 |
"sops[0].sem_num = 0; /* Operate on semaphore 0 */\n" |
| 719 |
"sops[0].sem_op = 0; /* Wait for value to equal 0 */\n" |
| 720 |
"sops[0].sem_flg = 0;\n" |
| 721 |
"\\&\n" |
| 722 |
"sops[1].sem_num = 0; /* Operate on semaphore 0 */\n" |
| 723 |
"sops[1].sem_op = 1; /* Increment value by one */\n" |
| 724 |
"sops[1].sem_flg = 0;\n" |
| 725 |
"\\&\n" |
| 726 |
"if (semop(semid, sops, 2) == -1) {\n" |
| 727 |
" perror(\"semop\");\n" |
| 728 |
" exit(EXIT_FAILURE);\n" |
| 729 |
"}\n" |
| 730 |
msgstr "" |
| 731 |
|
| 732 |
#. type: Plain text |
| 733 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 734 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 735 |
msgid "" |
| 736 |
"A further example of the use of B<semop>() can be found in B<shmop>(2)." |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#. type: SH |
| 740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 741 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
#, no-wrap |
| 743 |
msgid "SEE ALSO" |
| 744 |
msgstr "" |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"B<clone>(2), B<semctl>(2), B<semget>(2), B<sigaction>(2), " |
| 751 |
"B<capabilities>(7), B<sem_overview>(7), B<sysvipc>(7), B<time>(7)" |
| 752 |
msgstr "" |
| 753 |
|
| 754 |
#. type: TH |
| 755 |
#: debian-trixie |
| 756 |
#, no-wrap |
| 757 |
msgid "2024-05-02" |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#. type: TH |
| 761 |
#: debian-trixie |
| 762 |
#, no-wrap |
| 763 |
msgid "Linux man-pages 6.9.1" |
| 764 |
msgstr "" |
| 765 |
|
| 766 |
#. type: Plain text |
| 767 |
#: debian-trixie |
| 768 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 769 |
msgstr "" |
| 770 |
|
| 771 |
#. type: Plain text |
| 772 |
#: debian-trixie fedora-44 fedora-rawhide |
| 773 |
msgid "POSIX.1-2008." |
| 774 |
msgstr "" |
| 775 |
|
| 776 |
#. type: SH |
| 777 |
#: debian-trixie fedora-44 fedora-rawhide |
| 778 |
#, no-wrap |
| 779 |
msgid "VERSIONS" |
| 780 |
msgstr "" |
| 781 |
|
| 782 |
#. SVr4 documents additional error conditions EINVAL, EFBIG, ENOSPC. |
| 783 |
#. type: Plain text |
| 784 |
#: debian-trixie fedora-44 fedora-rawhide |
| 785 |
msgid "" |
| 786 |
"Linux 2.5.52 (backported into Linux 2.4.22), glibc 2.3.3. POSIX.1-2001, " |
| 787 |
"SVr4." |
| 788 |
msgstr "" |
| 789 |
|
| 790 |
#. type: Plain text |
| 791 |
#: debian-trixie fedora-44 fedora-rawhide |
| 792 |
#, no-wrap |
| 793 |
msgid "" |
| 794 |
"struct sembuf sops[2];\n" |
| 795 |
"int semid;\n" |
| 796 |
"\\&\n" |
| 797 |
"/* Code to set I<semid> omitted */\n" |
| 798 |
"\\&\n" |
| 799 |
"sops[0].sem_num = 0; /* Operate on semaphore 0 */\n" |
| 800 |
"sops[0].sem_op = 0; /* Wait for value to equal 0 */\n" |
| 801 |
"sops[0].sem_flg = 0;\n" |
| 802 |
"\\&\n" |
| 803 |
"sops[1].sem_num = 0; /* Operate on semaphore 0 */\n" |
| 804 |
"sops[1].sem_op = 1; /* Increment value by one */\n" |
| 805 |
"sops[1].sem_flg = 0;\n" |
| 806 |
"\\&\n" |
| 807 |
"if (semop(semid, sops, 2) == -1) {\n" |
| 808 |
" perror(\"semop\");\n" |
| 809 |
" exit(EXIT_FAILURE);\n" |
| 810 |
"}\n" |
| 811 |
msgstr "" |
| 812 |
|
| 813 |
#. type: TH |
| 814 |
#: fedora-44 fedora-rawhide |
| 815 |
#, no-wrap |
| 816 |
msgid "2024-07-23" |
| 817 |
msgstr "" |
| 818 |
|
| 819 |
#. type: TH |
| 820 |
#: fedora-44 fedora-rawhide |
| 821 |
#, no-wrap |
| 822 |
msgid "Linux man-pages 6.13" |
| 823 |
msgstr "" |
| 824 |
|
| 825 |
#. type: TH |
| 826 |
#: mageia-cauldron |
| 827 |
#, no-wrap |
| 828 |
msgid "Linux man-pages 6.17" |
| 829 |
msgstr "" |
| 830 |
|
| 831 |
#. type: TH |
| 832 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 833 |
#, no-wrap |
| 834 |
msgid "Linux man-pages (unreleased)" |
| 835 |
msgstr "" |