Debian Codegraph @

templates/man2/semctl.2.pot

raw
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 "semctl"
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 "semctl - System V semaphore control 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 "B<int semctl(int >I<semid>B<, int >I<semnum>B<, int >I<op>B<, ...);>\n"
84 msgstr ""
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr ""
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "B<semctl>() performs the control operation specified by I<op> on the "
98 "System\\ V semaphore set identified by I<semid>, or on the I<semnum>-th "
99 "semaphore of that set. (The semaphores in a set are numbered starting at 0.)"
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 msgid ""
106 "This function has three or four arguments, depending on I<op>. When there "
107 "are four, the fourth has the type I<union semun>. The I<calling program> "
108 "must define this union as follows:"
109 msgstr ""
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid ""
116 "union semun {\n"
117 " int val; /* Value for SETVAL */\n"
118 " struct semid_ds *buf; /* Buffer for IPC_STAT, IPC_SET */\n"
119 " unsigned short *array; /* Array for GETALL, SETALL */\n"
120 " struct seminfo *__buf; /* Buffer for IPC_INFO\n"
121 " (Linux-specific) */\n"
122 "};\n"
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "The I<semid_ds> data structure is defined in I<E<lt>sys/sem.hE<gt>> as "
130 "follows:"
131 msgstr ""
132
133 #. type: Plain text
134 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
135 #: opensuse-tumbleweed
136 #, no-wrap
137 msgid ""
138 "struct semid_ds {\n"
139 " struct ipc_perm sem_perm; /* Ownership and permissions */\n"
140 " time_t sem_otime; /* Last semop time */\n"
141 " time_t sem_ctime; /* Creation time/time of last\n"
142 " modification via semctl() */\n"
143 " unsigned long sem_nsems; /* # of semaphores in set */\n"
144 "};\n"
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 msgid "The fields of the I<semid_ds> structure are as follows:"
151 msgstr ""
152
153 #. type: TP
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid "I<sem_perm>"
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "This is an I<ipc_perm> structure (see below) that specifies the access "
165 "permissions on the semaphore set."
166 msgstr ""
167
168 #. type: TP
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "I<sem_otime>"
173 msgstr ""
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid "Time of last B<semop>(2) system call."
179 msgstr ""
180
181 #. type: TP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "I<sem_ctime>"
186 msgstr ""
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "Time of creation of semaphore set or time of last B<semctl>() B<IPCSET>, "
193 "B<SETVAL>, or B<SETALL> operation."
194 msgstr ""
195
196 #. type: TP
197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
199 #, no-wrap
200 msgid "I<sem_nsems>"
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "Number of semaphores in the set. Each semaphore of the set is referenced by "
208 "a nonnegative integer ranging from B<0> to I<sem_nsems-1>."
209 msgstr ""
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "The I<ipc_perm> structure is defined as follows (the highlighted fields are "
216 "settable using B<IPC_SET>):"
217 msgstr ""
218
219 #. type: Plain text
220 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
221 #: opensuse-tumbleweed
222 #, no-wrap
223 msgid ""
224 "struct ipc_perm {\n"
225 " key_t __key; /* Key supplied to semget(2) */\n"
226 " uid_t \\f[B]uid\\fR; /* Effective UID of owner */\n"
227 " gid_t \\f[B]gid\\fR; /* Effective GID of owner */\n"
228 " uid_t cuid; /* Effective UID of creator */\n"
229 " gid_t cgid; /* Effective GID of creator */\n"
230 " unsigned short \\f[B]mode\\fR; /* Permissions */\n"
231 " unsigned short __seq; /* Sequence number */\n"
232 "};\n"
233 msgstr ""
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "The least significant 9 bits of the I<mode> field of the I<ipc_perm> "
240 "structure define the access permissions for the shared memory segment. The "
241 "permission bits are as follows:"
242 msgstr ""
243
244 #. type: tbl table
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "0400"
249 msgstr ""
250
251 #. type: tbl table
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 #, no-wrap
255 msgid "Read by user"
256 msgstr ""
257
258 #. type: tbl table
259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
261 #, no-wrap
262 msgid "0200"
263 msgstr ""
264
265 #. type: tbl table
266 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
267 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
268 #, no-wrap
269 msgid "Write by user"
270 msgstr ""
271
272 #. type: tbl table
273 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
274 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
275 #, no-wrap
276 msgid "0040"
277 msgstr ""
278
279 #. type: tbl table
280 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
281 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
282 #, no-wrap
283 msgid "Read by group"
284 msgstr ""
285
286 #. type: tbl table
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "0020"
291 msgstr ""
292
293 #. type: tbl table
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "Write by group"
298 msgstr ""
299
300 #. type: tbl table
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "0004"
305 msgstr ""
306
307 #. type: tbl table
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "Read by others"
312 msgstr ""
313
314 #. type: tbl table
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid "0002"
319 msgstr ""
320
321 #. type: tbl table
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid "Write by others"
326 msgstr ""
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid ""
332 "In effect, \"write\" means \"alter\" for a semaphore set. Bits 0100, 0010, "
333 "and 0001 (the execute bits) are unused by the system."
334 msgstr ""
335
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "Valid values for I<op> are:"
340 msgstr ""
341
342 #. type: TP
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "B<IPC_STAT>"
347 msgstr ""
348
349 #. type: Plain text
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 msgid ""
353 "Copy information from the kernel data structure associated with I<semid> "
354 "into the I<semid_ds> structure pointed to by I<arg.buf>. The argument "
355 "I<semnum> is ignored. The calling process must have read permission on the "
356 "semaphore set."
357 msgstr ""
358
359 #. type: TP
360 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
361 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
362 #, no-wrap
363 msgid "B<IPC_SET>"
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid ""
370 "Write the values of some members of the I<semid_ds> structure pointed to by "
371 "I<arg.buf> to the kernel data structure associated with this semaphore set, "
372 "updating also its I<sem_ctime> member."
373 msgstr ""
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "The following members of the structure are updated: I<sem_perm.uid>, "
380 "I<sem_perm.gid>, and (the least significant 9 bits of) I<sem_perm.mode>."
381 msgstr ""
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid ""
387 "The effective UID of the calling process must match the owner "
388 "(I<sem_perm.uid>) or creator (I<sem_perm.cuid>) of the semaphore set, or "
389 "the caller must be privileged. The argument I<semnum> is ignored."
390 msgstr ""
391
392 #. type: TP
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "B<IPC_RMID>"
397 msgstr ""
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "Immediately remove the semaphore set, awakening all processes blocked in "
404 "B<semop>(2) calls on the set (with an error return and I<errno> set to "
405 "B<EIDRM>). The effective user ID of the calling process must match the "
406 "creator or owner of the semaphore set, or the caller must be privileged. "
407 "The argument I<semnum> is ignored."
408 msgstr ""
409
410 #. type: TP
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 #, no-wrap
414 msgid "B<IPC_INFO> (Linux-specific)"
415 msgstr ""
416
417 #. type: Plain text
418 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
419 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
420 msgid ""
421 "Return information about system-wide semaphore limits and parameters in the "
422 "structure pointed to by I<arg.__buf>. This structure is of type I<seminfo>, "
423 "defined in I<E<lt>sys/sem.hE<gt>> if the B<_GNU_SOURCE> feature test macro "
424 "is defined:"
425 msgstr ""
426
427 #. type: Plain text
428 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
429 #: opensuse-tumbleweed
430 #, no-wrap
431 msgid ""
432 "struct seminfo {\n"
433 " int semmap; /* Number of entries in semaphore\n"
434 " map; unused within kernel */\n"
435 " int semmni; /* Maximum number of semaphore sets */\n"
436 " int semmns; /* Maximum number of semaphores in all\n"
437 " semaphore sets */\n"
438 " int semmnu; /* System-wide maximum number of undo\n"
439 " structures; unused within kernel */\n"
440 " int semmsl; /* Maximum number of semaphores in a\n"
441 " set */\n"
442 " int semopm; /* Maximum number of operations for\n"
443 " semop(2) */\n"
444 " int semume; /* Maximum number of undo entries per\n"
445 " process; unused within kernel */\n"
446 " int semusz; /* Size of struct sem_undo */\n"
447 " int semvmx; /* Maximum semaphore value */\n"
448 " int semaem; /* Max.\\& value that can be recorded for\n"
449 " semaphore adjustment (SEM_UNDO) */\n"
450 "};\n"
451 msgstr ""
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid ""
457 "The I<semmsl>, I<semmns>, I<semopm>, and I<semmni> settings can be changed "
458 "via I</proc/sys/kernel/sem>; see B<proc>(5) for details."
459 msgstr ""
460
461 #. type: TP
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "B<SEM_INFO> (Linux-specific)"
466 msgstr ""
467
468 #. type: Plain text
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 msgid ""
472 "Return a I<seminfo> structure containing the same information as for "
473 "B<IPC_INFO>, except that the following fields are returned with information "
474 "about system resources consumed by semaphores: the I<semusz> field returns "
475 "the number of semaphore sets that currently exist on the system; and the "
476 "I<semaem> field returns the total number of semaphores in all semaphore sets "
477 "on the system."
478 msgstr ""
479
480 #. type: TP
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 #, no-wrap
484 msgid "B<SEM_STAT> (Linux-specific)"
485 msgstr ""
486
487 #. type: Plain text
488 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
489 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
490 msgid ""
491 "Return a I<semid_ds> structure as for B<IPC_STAT>. However, the I<semid> "
492 "argument is not a semaphore identifier, but instead an index into the "
493 "kernel's internal array that maintains information about all semaphore sets "
494 "on the system."
495 msgstr ""
496
497 #. type: TP
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 #, no-wrap
501 msgid "B<SEM_STAT_ANY> (Linux-specific, since Linux 4.17)"
502 msgstr ""
503
504 #. type: Plain text
505 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
506 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
507 msgid ""
508 "Return a I<semid_ds> structure as for B<SEM_STAT>. However, "
509 "I<sem_perm.mode> is not checked for read access for I<semid> meaning that "
510 "any user can employ this operation (just as any user may read I</proc/"
511 "sysvipc/sem> to obtain the same information)."
512 msgstr ""
513
514 #. type: TP
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "B<GETALL>"
519 msgstr ""
520
521 #. type: Plain text
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 msgid ""
525 "Return B<semval> (i.e., the current value) for all semaphores of the set "
526 "into I<arg.array>. The argument I<semnum> is ignored. The calling process "
527 "must have read permission on the semaphore set."
528 msgstr ""
529
530 #. type: TP
531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "B<GETNCNT>"
535 msgstr ""
536
537 #. type: Plain text
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 msgid ""
541 "Return the B<semncnt> value for the I<semnum>-th semaphore of the set (i.e., "
542 "the number of processes waiting for the semaphore's value to increase). The "
543 "calling process must have read permission on the semaphore set."
544 msgstr ""
545
546 #. type: TP
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "B<GETPID>"
551 msgstr ""
552
553 #. type: Plain text
554 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
555 #: opensuse-leap-16-1 opensuse-tumbleweed
556 msgid ""
557 "Return the B<sempid> value for the I<semnum>-th semaphore of the set. This "
558 "is the PID of the process that last performed an operation on that semaphore "
559 "(but see VERSIONS). The calling process must have read permission on the "
560 "semaphore set."
561 msgstr ""
562
563 #. type: TP
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 #, no-wrap
567 msgid "B<GETVAL>"
568 msgstr ""
569
570 #. type: Plain text
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 msgid ""
574 "Return B<semval> (i.e., the semaphore value) for the I<semnum>-th semaphore "
575 "of the set. The calling process must have read permission on the semaphore "
576 "set."
577 msgstr ""
578
579 #. type: TP
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "B<GETZCNT>"
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 "Return the B<semzcnt> value for the I<semnum>-th semaphore of the set (i.e., "
591 "the number of processes waiting for the semaphore value to become 0). The "
592 "calling process must have read permission on the semaphore set."
593 msgstr ""
594
595 #. type: TP
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 #, no-wrap
599 msgid "B<SETALL>"
600 msgstr ""
601
602 #. type: Plain text
603 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
604 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
605 msgid ""
606 "Set the B<semval> values for all semaphores of the set using I<arg.array>, "
607 "updating also the I<sem_ctime> member of the I<semid_ds> structure "
608 "associated with the set. Undo entries (see B<semop>(2)) are cleared for "
609 "altered semaphores in all processes. If the changes to semaphore values "
610 "would permit blocked B<semop>(2) calls in other processes to proceed, then "
611 "those processes are woken up. The argument I<semnum> is ignored. The "
612 "calling process must have alter (write) permission on the semaphore set."
613 msgstr ""
614
615 #. type: TP
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 #, no-wrap
619 msgid "B<SETVAL>"
620 msgstr ""
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "Set the semaphore value (B<semval>) to I<arg.val> for the I<semnum>-th "
627 "semaphore of the set, updating also the I<sem_ctime> member of the "
628 "I<semid_ds> structure associated with the set. Undo entries are cleared for "
629 "altered semaphores in all processes. If the changes to semaphore values "
630 "would permit blocked B<semop>(2) calls in other processes to proceed, then "
631 "those processes are woken up. The calling process must have alter "
632 "permission on the semaphore set."
633 msgstr ""
634
635 #. type: SH
636 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
637 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
638 #, no-wrap
639 msgid "RETURN VALUE"
640 msgstr ""
641
642 #. type: Plain text
643 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
644 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
645 msgid ""
646 "On success, B<semctl>() returns a nonnegative value depending on I<op> as "
647 "follows:"
648 msgstr ""
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 msgid "the value of B<semncnt>."
654 msgstr ""
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid "the value of B<sempid>."
660 msgstr ""
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid "the value of B<semval>."
666 msgstr ""
667
668 #. type: Plain text
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 msgid "the value of B<semzcnt>."
672 msgstr ""
673
674 #. type: TP
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "B<IPC_INFO>"
679 msgstr ""
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "the index of the highest used entry in the kernel's internal array recording "
686 "information about all semaphore sets. (This information can be used with "
687 "repeated B<SEM_STAT> or B<SEM_STAT_ANY> operations to obtain information "
688 "about all semaphore sets on the system.)"
689 msgstr ""
690
691 #. type: TP
692 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
693 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
694 #, no-wrap
695 msgid "B<SEM_INFO>"
696 msgstr ""
697
698 #. type: Plain text
699 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
700 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
701 msgid "as for B<IPC_INFO>."
702 msgstr ""
703
704 #. type: TP
705 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
706 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
707 #, no-wrap
708 msgid "B<SEM_STAT>"
709 msgstr ""
710
711 #. type: Plain text
712 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
713 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
714 msgid "the identifier of the semaphore set whose index was given in I<semid>."
715 msgstr ""
716
717 #. type: TP
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 #, no-wrap
721 msgid "B<SEM_STAT_ANY>"
722 msgstr ""
723
724 #. type: Plain text
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 msgid "as for B<SEM_STAT>."
728 msgstr ""
729
730 #. type: Plain text
731 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
732 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
733 msgid "All other I<op> values return 0 on success."
734 msgstr ""
735
736 #. type: Plain text
737 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
738 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
739 msgid ""
740 "On failure, B<semctl>() returns -1 and sets I<errno> to indicate the error."
741 msgstr ""
742
743 #. type: SH
744 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
745 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
746 #, no-wrap
747 msgid "ERRORS"
748 msgstr ""
749
750 #. type: TP
751 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
752 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
753 #, no-wrap
754 msgid "B<EACCES>"
755 msgstr ""
756
757 #. type: Plain text
758 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
759 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
760 msgid ""
761 "The argument I<op> has one of the values B<GETALL>, B<GETPID>, B<GETVAL>, "
762 "B<GETNCNT>, B<GETZCNT>, B<IPC_STAT>, B<SEM_STAT>, B<SEM_STAT_ANY>, "
763 "B<SETALL>, or B<SETVAL> and the calling process does not have the required "
764 "permissions on the semaphore set and does not have the B<CAP_IPC_OWNER> "
765 "capability in the user namespace that governs its IPC namespace."
766 msgstr ""
767
768 #. type: TP
769 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
770 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
771 #, no-wrap
772 msgid "B<EFAULT>"
773 msgstr ""
774
775 #. type: Plain text
776 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
777 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
778 msgid "The address pointed to by I<arg.buf> or I<arg.array> isn't accessible."
779 msgstr ""
780
781 #. type: TP
782 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
783 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
784 #, no-wrap
785 msgid "B<EIDRM>"
786 msgstr ""
787
788 #. type: Plain text
789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
791 msgid "The semaphore set was removed."
792 msgstr ""
793
794 #. type: TP
795 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
796 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
797 #, no-wrap
798 msgid "B<EINVAL>"
799 msgstr ""
800
801 #. type: Plain text
802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
804 msgid ""
805 "Invalid value for I<op> or I<semid>. Or: for a B<SEM_STAT> operation, the "
806 "index value specified in I<semid> referred to an array slot that is "
807 "currently unused."
808 msgstr ""
809
810 #. type: TP
811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
813 #, no-wrap
814 msgid "B<EPERM>"
815 msgstr ""
816
817 #. type: Plain text
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 msgid ""
821 "The argument I<op> has the value B<IPC_SET> or B<IPC_RMID> but the effective "
822 "user ID of the calling process is not the creator (as found in "
823 "I<sem_perm.cuid>) or the owner (as found in I<sem_perm.uid>) of the "
824 "semaphore set, and the process does not have the B<CAP_SYS_ADMIN> capability."
825 msgstr ""
826
827 #. type: TP
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 #, no-wrap
831 msgid "B<ERANGE>"
832 msgstr ""
833
834 #. type: Plain text
835 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
836 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
837 msgid ""
838 "The argument I<op> has the value B<SETALL> or B<SETVAL> and the value to "
839 "which B<semval> is to be set (for some semaphore of the set) is less than 0 "
840 "or greater than the implementation limit B<SEMVMX>."
841 msgstr ""
842
843 #. type: SH
844 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
845 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
846 #, no-wrap
847 msgid "VERSIONS"
848 msgstr ""
849
850 #. POSIX.1-2001, POSIX.1-2008
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "POSIX.1 specifies the I<sem_nsems> field of the I<semid_ds> structure as "
856 "having the type I<unsigned\\ short>, and the field is so defined on most "
857 "other systems. It was also so defined on Linux 2.2 and earlier, but, since "
858 "Linux 2.4, the field has the type I<unsigned\\ long>."
859 msgstr ""
860
861 #. type: SS
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 #, no-wrap
865 msgid "The sempid value"
866 msgstr ""
867
868 #. type: Plain text
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 msgid ""
872 "POSIX.1 defines I<sempid> as the \"process ID of [the] last operation\" on a "
873 "semaphore, and explicitly notes that this value is set by a successful "
874 "B<semop>(2) call, with the implication that no other interface affects the "
875 "I<sempid> value."
876 msgstr ""
877
878 #. At least OpenSolaris (and, one supposes, older Solaris) and Darwin
879 #. type: Plain text
880 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
881 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
882 msgid ""
883 "While some implementations conform to the behavior specified in POSIX.1, "
884 "others do not. (The fault here probably lies with POSIX.1 inasmuch as it "
885 "likely failed to capture the full range of existing implementation "
886 "behaviors.) Various other implementations also update I<sempid> for the "
887 "other operations that update the value of a semaphore: the B<SETVAL> and "
888 "B<SETALL> operations, as well as the semaphore adjustments performed on "
889 "process termination as a consequence of the use of the B<SEM_UNDO> flag (see "
890 "B<semop>(2))."
891 msgstr ""
892
893 #. commit a5f4db877177d2a3d7ae62a7bac3a5a27e083d7f
894 #. type: Plain text
895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
897 msgid ""
898 "Linux also updates I<sempid> for B<SETVAL> operations and semaphore "
899 "adjustments. However, somewhat inconsistently, up to and including Linux "
900 "4.5, the kernel did not update I<sempid> for B<SETALL> operations. This was "
901 "rectified in Linux 4.6."
902 msgstr ""
903
904 #. type: SH
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 #, no-wrap
908 msgid "STANDARDS"
909 msgstr ""
910
911 #. type: Plain text
912 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
913 #: opensuse-tumbleweed
914 msgid "POSIX.1-2024."
915 msgstr ""
916
917 #. type: SH
918 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
919 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
920 #, no-wrap
921 msgid "HISTORY"
922 msgstr ""
923
924 #. SVr4 documents more error conditions EINVAL and EOVERFLOW.
925 #. type: Plain text
926 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
927 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
928 msgid "POSIX.1-2001, SVr4."
929 msgstr ""
930
931 #. type: Plain text
932 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
933 #: opensuse-tumbleweed
934 msgid ""
935 "Various fields in a I<struct\\ semid_ds> were typed as I<short> under Linux "
936 "2.2 and have become I<long> under Linux 2.4. To take advantage of this, a "
937 "recompilation under glibc-2.1.91 or later should suffice. (The kernel "
938 "distinguishes old and new calls by an B<IPC_64> flag in I<op>.)"
939 msgstr ""
940
941 #. POSIX.1-2001, POSIX.1-2008
942 #. type: Plain text
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 msgid ""
946 "In some earlier versions of glibc, the I<semun> union was defined in "
947 "I<E<lt>sys/sem.hE<gt>>, but POSIX.1 requires that the caller define this "
948 "union. On versions of glibc where this union is I<not> defined, the macro "
949 "B<_SEM_SEMUN_UNDEFINED> is defined in I<E<lt>sys/sem.hE<gt>>."
950 msgstr ""
951
952 #. type: SH
953 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
954 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
955 #, no-wrap
956 msgid "NOTES"
957 msgstr ""
958
959 #. type: Plain text
960 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
961 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
962 msgid ""
963 "The B<IPC_INFO>, B<SEM_STAT>, and B<SEM_INFO> operations are used by the "
964 "B<ipcs>(1) program to provide information on allocated resources. In the "
965 "future these may modified or moved to a I</proc> filesystem interface."
966 msgstr ""
967
968 #. type: Plain text
969 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
970 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
971 msgid ""
972 "The following system limit on semaphore sets affects a B<semctl>() call:"
973 msgstr ""
974
975 #. type: TP
976 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
977 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
978 #, no-wrap
979 msgid "B<SEMVMX>"
980 msgstr ""
981
982 #. type: Plain text
983 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
984 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
985 msgid "Maximum value for B<semval>: implementation dependent (32767)."
986 msgstr ""
987
988 #. type: Plain text
989 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
990 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
991 msgid ""
992 "For greater portability, it is best to always call B<semctl>() with four "
993 "arguments."
994 msgstr ""
995
996 #. type: SH
997 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
998 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
999 #, no-wrap
1000 msgid "EXAMPLES"
1001 msgstr ""
1002
1003 #. type: Plain text
1004 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1005 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1006 msgid "See B<shmop>(2)."
1007 msgstr ""
1008
1009 #. type: SH
1010 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1011 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1012 #, no-wrap
1013 msgid "SEE ALSO"
1014 msgstr ""
1015
1016 #. type: Plain text
1017 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1018 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1019 msgid ""
1020 "B<ipc>(2), B<semget>(2), B<semop>(2), B<capabilities>(7), "
1021 "B<sem_overview>(7), B<sysvipc>(7)"
1022 msgstr ""
1023
1024 #. type: TH
1025 #: debian-trixie
1026 #, no-wrap
1027 msgid "2024-05-02"
1028 msgstr ""
1029
1030 #. type: TH
1031 #: debian-trixie
1032 #, no-wrap
1033 msgid "Linux man-pages 6.9.1"
1034 msgstr ""
1035
1036 #. type: Plain text
1037 #: debian-trixie
1038 msgid "Standard C library (I<libc>, I<-lc>)"
1039 msgstr ""
1040
1041 #. type: Plain text
1042 #: debian-trixie fedora-44 fedora-rawhide
1043 #, no-wrap
1044 msgid ""
1045 "struct semid_ds {\n"
1046 " struct ipc_perm sem_perm; /* Ownership and permissions */\n"
1047 " time_t sem_otime; /* Last semop time */\n"
1048 " time_t sem_ctime; /* Creation time/time of last\n"
1049 " modification via semctl() */\n"
1050 " unsigned long sem_nsems; /* No. of semaphores in set */\n"
1051 "};\n"
1052 msgstr ""
1053
1054 #. type: Plain text
1055 #: debian-trixie fedora-44 fedora-rawhide
1056 #, no-wrap
1057 msgid ""
1058 "struct ipc_perm {\n"
1059 " key_t __key; /* Key supplied to semget(2) */\n"
1060 " uid_t B<uid>; /* Effective UID of owner */\n"
1061 " gid_t B<gid>; /* Effective GID of owner */\n"
1062 " uid_t cuid; /* Effective UID of creator */\n"
1063 " gid_t cgid; /* Effective GID of creator */\n"
1064 " unsigned short B<mode>; /* Permissions */\n"
1065 " unsigned short __seq; /* Sequence number */\n"
1066 "};\n"
1067 msgstr ""
1068
1069 #. type: Plain text
1070 #: debian-trixie fedora-44 fedora-rawhide
1071 #, no-wrap
1072 msgid ""
1073 "struct seminfo {\n"
1074 " int semmap; /* Number of entries in semaphore\n"
1075 " map; unused within kernel */\n"
1076 " int semmni; /* Maximum number of semaphore sets */\n"
1077 " int semmns; /* Maximum number of semaphores in all\n"
1078 " semaphore sets */\n"
1079 " int semmnu; /* System-wide maximum number of undo\n"
1080 " structures; unused within kernel */\n"
1081 " int semmsl; /* Maximum number of semaphores in a\n"
1082 " set */\n"
1083 " int semopm; /* Maximum number of operations for\n"
1084 " semop(2) */\n"
1085 " int semume; /* Maximum number of undo entries per\n"
1086 " process; unused within kernel */\n"
1087 " int semusz; /* Size of struct sem_undo */\n"
1088 " int semvmx; /* Maximum semaphore value */\n"
1089 " int semaem; /* Max. value that can be recorded for\n"
1090 " semaphore adjustment (SEM_UNDO) */\n"
1091 "};\n"
1092 msgstr ""
1093
1094 #. type: Plain text
1095 #: debian-trixie
1096 msgid ""
1097 "Return the B<sempid> value for the I<semnum>-th semaphore of the set. This "
1098 "is the PID of the process that last performed an operation on that semaphore "
1099 "(but see NOTES). The calling process must have read permission on the "
1100 "semaphore set."
1101 msgstr ""
1102
1103 #. type: Plain text
1104 #: debian-trixie fedora-44 fedora-rawhide
1105 msgid "POSIX.1-2008."
1106 msgstr ""
1107
1108 #. type: Plain text
1109 #: debian-trixie fedora-44 fedora-rawhide
1110 msgid ""
1111 "Various fields in a I<struct semid_ds> were typed as I<short> under Linux "
1112 "2.2 and have become I<long> under Linux 2.4. To take advantage of this, a "
1113 "recompilation under glibc-2.1.91 or later should suffice. (The kernel "
1114 "distinguishes old and new calls by an B<IPC_64> flag in I<op>.)"
1115 msgstr ""
1116
1117 #. type: TH
1118 #: fedora-44 fedora-rawhide
1119 #, no-wrap
1120 msgid "2024-07-23"
1121 msgstr ""
1122
1123 #. type: TH
1124 #: fedora-44 fedora-rawhide
1125 #, no-wrap
1126 msgid "Linux man-pages 6.13"
1127 msgstr ""
1128
1129 #. type: TH
1130 #: mageia-cauldron
1131 #, no-wrap
1132 msgid "Linux man-pages 6.17"
1133 msgstr ""
1134
1135 #. type: TH
1136 #: opensuse-leap-16-1 opensuse-tumbleweed
1137 #, no-wrap
1138 msgid "Linux man-pages (unreleased)"
1139 msgstr ""