Debian Codegraph @

templates/man7/pthreads.7.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:38+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 "pthreads"
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 "pthreads - POSIX threads"
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 "DESCRIPTION"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid ""
63 "POSIX.1 specifies a set of interfaces (functions, header files) for threaded "
64 "programming commonly known as POSIX threads, or Pthreads. A single process "
65 "can contain multiple threads, all of which are executing the same program. "
66 "These threads share the same global memory (data and heap segments), but "
67 "each thread has its own stack (automatic variables)."
68 msgstr ""
69
70 #. type: Plain text
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 msgid ""
74 "POSIX.1 also requires that threads share a range of other attributes (i.e., "
75 "these attributes are process-wide rather than per-thread):"
76 msgstr ""
77
78 #. type: IP
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid "\\[bu]"
83 msgstr ""
84
85 #. type: Plain text
86 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
87 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
88 msgid "process ID"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid "parent process ID"
95 msgstr ""
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 msgid "process group ID and session ID"
101 msgstr ""
102
103 #. type: Plain text
104 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
105 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
106 msgid "controlling terminal"
107 msgstr ""
108
109 #. type: Plain text
110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
112 msgid "user and group IDs"
113 msgstr ""
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "open file descriptors"
119 msgstr ""
120
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 msgid "record locks (see B<fcntl>(2))"
125 msgstr ""
126
127 #. type: Plain text
128 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
129 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
130 msgid "signal dispositions"
131 msgstr ""
132
133 #. type: Plain text
134 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
135 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
136 msgid "file mode creation mask (B<umask>(2))"
137 msgstr ""
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid "current directory (B<chdir>(2)) and root directory (B<chroot>(2))"
143 msgstr ""
144
145 #. type: Plain text
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 msgid ""
149 "interval timers (B<setitimer>(2)) and POSIX timers (B<timer_create>(2))"
150 msgstr ""
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid "nice value (B<setpriority>(2))"
156 msgstr ""
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid "resource limits (B<setrlimit>(2))"
162 msgstr ""
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid ""
168 "measurements of the consumption of CPU time (B<times>(2)) and resources "
169 "(B<getrusage>(2))"
170 msgstr ""
171
172 #. type: Plain text
173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
175 msgid ""
176 "As well as the stack, POSIX.1 specifies that various other attributes are "
177 "distinct for each thread, including:"
178 msgstr ""
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid "thread ID (the I<pthread_t> data type)"
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 "signal mask (B<pthread_sigmask>(3))"
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid "the I<errno> variable"
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 "alternate signal stack (B<sigaltstack>(2))"
202 msgstr ""
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid "real-time scheduling policy and priority (B<sched>(7))"
208 msgstr ""
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid "The following Linux-specific features are also per-thread:"
214 msgstr ""
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid "capabilities (see B<capabilities>(7))"
220 msgstr ""
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid "CPU affinity (B<sched_setaffinity>(2))"
226 msgstr ""
227
228 #. type: SS
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "Pthreads function return values"
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 "Most pthreads functions return 0 on success, and an error number on "
240 "failure. The error numbers that can be returned have the same meaning as "
241 "the error numbers returned in I<errno> by conventional system calls and C "
242 "library functions. Note that the pthreads functions do not set I<errno>. "
243 "For each of the pthreads functions that can return an error, POSIX.1-2001 "
244 "specifies that the function can never fail with the error B<EINTR>."
245 msgstr ""
246
247 #. type: SS
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "Thread IDs"
252 msgstr ""
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid ""
258 "Each of the threads in a process has a unique thread identifier (stored in "
259 "the type I<pthread_t>). This identifier is returned to the caller of "
260 "B<pthread_create>(3), and a thread can obtain its own thread identifier "
261 "using B<pthread_self>(3)."
262 msgstr ""
263
264 #. type: Plain text
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 msgid ""
268 "Thread IDs are guaranteed to be unique only within a process. (In all "
269 "pthreads functions that accept a thread ID as an argument, that ID by "
270 "definition refers to a thread in the same process as the caller.)"
271 msgstr ""
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "The system may reuse a thread ID after a terminated thread has been joined, "
278 "or a detached thread has terminated. POSIX says: \"If an application "
279 "attempts to use a thread ID whose lifetime has ended, the behavior is "
280 "undefined.\""
281 msgstr ""
282
283 #. type: SS
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "Thread-safe functions"
288 msgstr ""
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "A thread-safe function is one that can be safely (i.e., it will deliver the "
295 "same results regardless of whether it is) called from multiple threads at "
296 "the same time."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 msgid ""
303 "POSIX.1-2001 and POSIX.1-2008 require that all functions specified in the "
304 "standard shall be thread-safe, except for the following functions:"
305 msgstr ""
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid ""
312 "asctime()\n"
313 "basename()\n"
314 "catgets()\n"
315 "crypt()\n"
316 "ctermid() if passed a non-NULL argument\n"
317 "ctime()\n"
318 "dbm_clearerr()\n"
319 "dbm_close()\n"
320 "dbm_delete()\n"
321 "dbm_error()\n"
322 "dbm_fetch()\n"
323 "dbm_firstkey()\n"
324 "dbm_nextkey()\n"
325 "dbm_open()\n"
326 "dbm_store()\n"
327 "dirname()\n"
328 "dlerror()\n"
329 "drand48()\n"
330 "ecvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)]\n"
331 "encrypt()\n"
332 "endgrent()\n"
333 "endpwent()\n"
334 "endutxent()\n"
335 "fcvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)]\n"
336 "ftw()\n"
337 "gcvt() [POSIX.1-2001 only (function removed in POSIX.1-2008)]\n"
338 "getc_unlocked()\n"
339 "getchar_unlocked()\n"
340 "getdate()\n"
341 "getenv()\n"
342 "getgrent()\n"
343 "getgrgid()\n"
344 "getgrnam()\n"
345 "gethostbyaddr() [POSIX.1-2001 only (function removed in\n"
346 " POSIX.1-2008)]\n"
347 "gethostbyname() [POSIX.1-2001 only (function removed in\n"
348 " POSIX.1-2008)]\n"
349 "gethostent()\n"
350 "getlogin()\n"
351 "getnetbyaddr()\n"
352 "getnetbyname()\n"
353 "getnetent()\n"
354 "getopt()\n"
355 "getprotobyname()\n"
356 "getprotobynumber()\n"
357 "getprotoent()\n"
358 "getpwent()\n"
359 "getpwnam()\n"
360 "getpwuid()\n"
361 "getservbyname()\n"
362 "getservbyport()\n"
363 "getservent()\n"
364 "getutxent()\n"
365 "getutxid()\n"
366 "getutxline()\n"
367 "gmtime()\n"
368 "hcreate()\n"
369 "hdestroy()\n"
370 "hsearch()\n"
371 "inet_ntoa()\n"
372 "l64a()\n"
373 "lgamma()\n"
374 "lgammaf()\n"
375 "lgammal()\n"
376 "localeconv()\n"
377 "localtime()\n"
378 "lrand48()\n"
379 "mrand48()\n"
380 "nftw()\n"
381 "nl_langinfo()\n"
382 "ptsname()\n"
383 "putc_unlocked()\n"
384 "putchar_unlocked()\n"
385 "putenv()\n"
386 "pututxline()\n"
387 "rand()\n"
388 "readdir()\n"
389 "setenv()\n"
390 "setgrent()\n"
391 "setkey()\n"
392 "setpwent()\n"
393 "setutxent()\n"
394 "strerror()\n"
395 "strsignal() [Added in POSIX.1-2008]\n"
396 "strtok()\n"
397 "system() [Added in POSIX.1-2008]\n"
398 "tmpnam() if passed a non-NULL argument\n"
399 "ttyname()\n"
400 "unsetenv()\n"
401 "wcrtomb() if its final argument is NULL\n"
402 "wcsrtombs() if its final argument is NULL\n"
403 "wcstombs()\n"
404 "wctomb()\n"
405 msgstr ""
406
407 #. type: SS
408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
410 #, no-wrap
411 msgid "Async-cancel-safe functions"
412 msgstr ""
413
414 #. type: Plain text
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 msgid ""
418 "An async-cancel-safe function is one that can be safely called in an "
419 "application where asynchronous cancelability is enabled (see "
420 "B<pthread_setcancelstate>(3))."
421 msgstr ""
422
423 #. type: Plain text
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 msgid ""
427 "Only the following functions are required to be async-cancel-safe by "
428 "POSIX.1-2001 and POSIX.1-2008:"
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 #, no-wrap
435 msgid ""
436 "pthread_cancel()\n"
437 "pthread_setcancelstate()\n"
438 "pthread_setcanceltype()\n"
439 msgstr ""
440
441 #. type: SS
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "Cancelation points"
446 msgstr ""
447
448 #. type: Plain text
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 msgid ""
452 "POSIX.1 specifies that certain functions must, and certain other functions "
453 "may, be cancelation points. If a thread is cancelable, its cancelability "
454 "type is deferred, and a cancelation request is pending for the thread, then "
455 "the thread is canceled when it calls a function that is a cancelation point."
456 msgstr ""
457
458 #. type: Plain text
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 msgid ""
462 "The following functions are required to be cancelation points by "
463 "POSIX.1-2001 and/or POSIX.1-2008:"
464 msgstr ""
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid ""
471 "accept()\n"
472 "aio_suspend()\n"
473 "clock_nanosleep()\n"
474 "close()\n"
475 "connect()\n"
476 "creat()\n"
477 "fcntl() F_SETLKW\n"
478 "fdatasync()\n"
479 "fsync()\n"
480 "getmsg()\n"
481 "getpmsg()\n"
482 "lockf() F_LOCK\n"
483 "mq_receive()\n"
484 "mq_send()\n"
485 "mq_timedreceive()\n"
486 "mq_timedsend()\n"
487 "msgrcv()\n"
488 "msgsnd()\n"
489 "msync()\n"
490 "nanosleep()\n"
491 "open()\n"
492 "openat() [Added in POSIX.1-2008]\n"
493 "pause()\n"
494 "poll()\n"
495 "pread()\n"
496 "pselect()\n"
497 "pthread_cond_timedwait()\n"
498 "pthread_cond_wait()\n"
499 "pthread_join()\n"
500 "pthread_testcancel()\n"
501 "putmsg()\n"
502 "putpmsg()\n"
503 "pwrite()\n"
504 "read()\n"
505 "readv()\n"
506 "recv()\n"
507 "recvfrom()\n"
508 "recvmsg()\n"
509 "select()\n"
510 "sem_timedwait()\n"
511 "sem_wait()\n"
512 "send()\n"
513 "sendmsg()\n"
514 "sendto()\n"
515 "sigpause() [POSIX.1-2001 only (moves to \"may\" list in POSIX.1-2008)]\n"
516 "sigsuspend()\n"
517 "sigtimedwait()\n"
518 "sigwait()\n"
519 "sigwaitinfo()\n"
520 "sleep()\n"
521 "system()\n"
522 "tcdrain()\n"
523 "usleep() [POSIX.1-2001 only (function removed in POSIX.1-2008)]\n"
524 "wait()\n"
525 "waitid()\n"
526 "waitpid()\n"
527 "write()\n"
528 "writev()\n"
529 msgstr ""
530
531 #. type: Plain text
532 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
533 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
534 msgid ""
535 "The following functions may be cancelation points according to POSIX.1-2001 "
536 "and/or POSIX.1-2008:"
537 msgstr ""
538
539 #. type: Plain text
540 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
541 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
542 #, no-wrap
543 msgid ""
544 "access()\n"
545 "asctime()\n"
546 "asctime_r()\n"
547 "catclose()\n"
548 "catgets()\n"
549 "catopen()\n"
550 "chmod() [Added in POSIX.1-2008]\n"
551 "chown() [Added in POSIX.1-2008]\n"
552 "closedir()\n"
553 "closelog()\n"
554 "ctermid()\n"
555 "ctime()\n"
556 "ctime_r()\n"
557 "dbm_close()\n"
558 "dbm_delete()\n"
559 "dbm_fetch()\n"
560 "dbm_nextkey()\n"
561 "dbm_open()\n"
562 "dbm_store()\n"
563 "dlclose()\n"
564 "dlopen()\n"
565 "dprintf() [Added in POSIX.1-2008]\n"
566 "endgrent()\n"
567 "endhostent()\n"
568 "endnetent()\n"
569 "endprotoent()\n"
570 "endpwent()\n"
571 "endservent()\n"
572 "endutxent()\n"
573 "faccessat() [Added in POSIX.1-2008]\n"
574 "fchmod() [Added in POSIX.1-2008]\n"
575 "fchmodat() [Added in POSIX.1-2008]\n"
576 "fchown() [Added in POSIX.1-2008]\n"
577 "fchownat() [Added in POSIX.1-2008]\n"
578 "fclose()\n"
579 "fcntl() (for any value of cmd argument)\n"
580 "fflush()\n"
581 "fgetc()\n"
582 "fgetpos()\n"
583 "fgets()\n"
584 "fgetwc()\n"
585 "fgetws()\n"
586 "fmtmsg()\n"
587 "fopen()\n"
588 "fpathconf()\n"
589 "fprintf()\n"
590 "fputc()\n"
591 "fputs()\n"
592 "fputwc()\n"
593 "fputws()\n"
594 "fread()\n"
595 "freopen()\n"
596 "fscanf()\n"
597 "fseek()\n"
598 "fseeko()\n"
599 "fsetpos()\n"
600 "fstat()\n"
601 "fstatat() [Added in POSIX.1-2008]\n"
602 "ftell()\n"
603 "ftello()\n"
604 "ftw()\n"
605 "futimens() [Added in POSIX.1-2008]\n"
606 "fwprintf()\n"
607 "fwrite()\n"
608 "fwscanf()\n"
609 "getaddrinfo()\n"
610 "getc()\n"
611 "getc_unlocked()\n"
612 "getchar()\n"
613 "getchar_unlocked()\n"
614 "getcwd()\n"
615 "getdate()\n"
616 "getdelim() [Added in POSIX.1-2008]\n"
617 "getgrent()\n"
618 "getgrgid()\n"
619 "getgrgid_r()\n"
620 "getgrnam()\n"
621 "getgrnam_r()\n"
622 "gethostbyaddr() [POSIX.1-2001 only (function removed in\n"
623 " POSIX.1-2008)]\n"
624 "gethostbyname() [POSIX.1-2001 only (function removed in\n"
625 " POSIX.1-2008)]\n"
626 "gethostent()\n"
627 "gethostid()\n"
628 "gethostname()\n"
629 "getline() [Added in POSIX.1-2008]\n"
630 "getlogin()\n"
631 "getlogin_r()\n"
632 "getnameinfo()\n"
633 "getnetbyaddr()\n"
634 "getnetbyname()\n"
635 "getnetent()\n"
636 "getopt() (if opterr is nonzero)\n"
637 "getprotobyname()\n"
638 "getprotobynumber()\n"
639 "getprotoent()\n"
640 "getpwent()\n"
641 "getpwnam()\n"
642 "getpwnam_r()\n"
643 "getpwuid()\n"
644 "getpwuid_r()\n"
645 "gets()\n"
646 "getservbyname()\n"
647 "getservbyport()\n"
648 "getservent()\n"
649 "getutxent()\n"
650 "getutxid()\n"
651 "getutxline()\n"
652 "getwc()\n"
653 "getwchar()\n"
654 "getwd() [POSIX.1-2001 only (function removed in POSIX.1-2008)]\n"
655 "glob()\n"
656 "iconv_close()\n"
657 "iconv_open()\n"
658 "ioctl()\n"
659 "link()\n"
660 "linkat() [Added in POSIX.1-2008]\n"
661 "lio_listio() [Added in POSIX.1-2008]\n"
662 "localtime()\n"
663 "localtime_r()\n"
664 "lockf() [Added in POSIX.1-2008]\n"
665 "lseek()\n"
666 "lstat()\n"
667 "mkdir() [Added in POSIX.1-2008]\n"
668 "mkdirat() [Added in POSIX.1-2008]\n"
669 "mkdtemp() [Added in POSIX.1-2008]\n"
670 "mkfifo() [Added in POSIX.1-2008]\n"
671 "mkfifoat() [Added in POSIX.1-2008]\n"
672 "mknod() [Added in POSIX.1-2008]\n"
673 "mknodat() [Added in POSIX.1-2008]\n"
674 "mkstemp()\n"
675 "mktime()\n"
676 "nftw()\n"
677 "opendir()\n"
678 "openlog()\n"
679 "pathconf()\n"
680 "pclose()\n"
681 "perror()\n"
682 "popen()\n"
683 "posix_fadvise()\n"
684 "posix_fallocate()\n"
685 "posix_madvise()\n"
686 "posix_openpt()\n"
687 "posix_spawn()\n"
688 "posix_spawnp()\n"
689 "posix_trace_clear()\n"
690 "posix_trace_close()\n"
691 "posix_trace_create()\n"
692 "posix_trace_create_withlog()\n"
693 "posix_trace_eventtypelist_getnext_id()\n"
694 "posix_trace_eventtypelist_rewind()\n"
695 "posix_trace_flush()\n"
696 "posix_trace_get_attr()\n"
697 "posix_trace_get_filter()\n"
698 "posix_trace_get_status()\n"
699 "posix_trace_getnext_event()\n"
700 "posix_trace_open()\n"
701 "posix_trace_rewind()\n"
702 "posix_trace_set_filter()\n"
703 "posix_trace_shutdown()\n"
704 "posix_trace_timedgetnext_event()\n"
705 "posix_typed_mem_open()\n"
706 "printf()\n"
707 "psiginfo() [Added in POSIX.1-2008]\n"
708 "psignal() [Added in POSIX.1-2008]\n"
709 "pthread_rwlock_rdlock()\n"
710 "pthread_rwlock_timedrdlock()\n"
711 "pthread_rwlock_timedwrlock()\n"
712 "pthread_rwlock_wrlock()\n"
713 "putc()\n"
714 "putc_unlocked()\n"
715 "putchar()\n"
716 "putchar_unlocked()\n"
717 "puts()\n"
718 "pututxline()\n"
719 "putwc()\n"
720 "putwchar()\n"
721 "readdir()\n"
722 "readdir_r()\n"
723 "readlink() [Added in POSIX.1-2008]\n"
724 "readlinkat() [Added in POSIX.1-2008]\n"
725 "remove()\n"
726 "rename()\n"
727 "renameat() [Added in POSIX.1-2008]\n"
728 "rewind()\n"
729 "rewinddir()\n"
730 "scandir() [Added in POSIX.1-2008]\n"
731 "scanf()\n"
732 "seekdir()\n"
733 "semop()\n"
734 "setgrent()\n"
735 "sethostent()\n"
736 "setnetent()\n"
737 "setprotoent()\n"
738 "setpwent()\n"
739 "setservent()\n"
740 "setutxent()\n"
741 "sigpause() [Added in POSIX.1-2008]\n"
742 "stat()\n"
743 "strerror()\n"
744 "strerror_r()\n"
745 "strftime()\n"
746 "symlink()\n"
747 "symlinkat() [Added in POSIX.1-2008]\n"
748 "sync()\n"
749 "syslog()\n"
750 "tmpfile()\n"
751 "tmpnam()\n"
752 "ttyname()\n"
753 "ttyname_r()\n"
754 "tzset()\n"
755 "ungetc()\n"
756 "ungetwc()\n"
757 "unlink()\n"
758 "unlinkat() [Added in POSIX.1-2008]\n"
759 "utime() [Added in POSIX.1-2008]\n"
760 "utimensat() [Added in POSIX.1-2008]\n"
761 "utimes() [Added in POSIX.1-2008]\n"
762 "vdprintf() [Added in POSIX.1-2008]\n"
763 "vfprintf()\n"
764 "vfwprintf()\n"
765 "vprintf()\n"
766 "vwprintf()\n"
767 "wcsftime()\n"
768 "wordexp()\n"
769 "wprintf()\n"
770 "wscanf()\n"
771 msgstr ""
772
773 #. type: Plain text
774 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
775 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
776 msgid ""
777 "An implementation may also mark other functions not specified in the "
778 "standard as cancelation points. In particular, an implementation is likely "
779 "to mark any nonstandard function that may block as a cancelation point. "
780 "(This includes most functions that can touch files.)"
781 msgstr ""
782
783 #. So, scanning "cancelation point" comments in the glibc 2.8 header
784 #. files, it looks as though at least the following nonstandard
785 #. functions are cancelation points:
786 #. endnetgrent
787 #. endspent
788 #. epoll_pwait
789 #. epoll_wait
790 #. fcloseall
791 #. fdopendir
792 #. fflush_unlocked
793 #. fgetc_unlocked
794 #. fgetgrent
795 #. fgetgrent_r
796 #. fgetpwent
797 #. fgetpwent_r
798 #. fgets_unlocked
799 #. fgetspent
800 #. fgetspent_r
801 #. fgetwc_unlocked
802 #. fgetws_unlocked
803 #. fputc_unlocked
804 #. fputs_unlocked
805 #. fputwc_unlocked
806 #. fputws_unlocked
807 #. fread_unlocked
808 #. fwrite_unlocked
809 #. gai_suspend
810 #. getaddrinfo_a
811 #. getdate_r
812 #. getgrent_r
813 #. getgrouplist
814 #. gethostbyaddr_r
815 #. gethostbyname2
816 #. gethostbyname2_r
817 #. gethostbyname_r
818 #. gethostent_r
819 #. getnetbyaddr_r
820 #. getnetbyname_r
821 #. getnetent_r
822 #. getnetgrent
823 #. getnetgrent_r
824 #. getprotobyname_r
825 #. getprotobynumber_r
826 #. getprotoent_r
827 #. getpw
828 #. getpwent_r
829 #. getservbyname_r
830 #. getservbyport_r
831 #. getservent_r
832 #. getspent
833 #. getspent_r
834 #. getspnam
835 #. getspnam_r
836 #. getutmp
837 #. getutmpx
838 #. getw
839 #. getwc_unlocked
840 #. getwchar_unlocked
841 #. initgroups
842 #. innetgr
843 #. mkostemp
844 #. mkostemp64
845 #. mkstemp64
846 #. ppoll
847 #. pthread_timedjoin_np
848 #. putgrent
849 #. putpwent
850 #. putspent
851 #. putw
852 #. putwc_unlocked
853 #. putwchar_unlocked
854 #. rcmd
855 #. rcmd_af
856 #. rexec
857 #. rexec_af
858 #. rresvport
859 #. rresvport_af
860 #. ruserok
861 #. ruserok_af
862 #. setnetgrent
863 #. setspent
864 #. sgetspent
865 #. sgetspent_r
866 #. updwtmpx
867 #. utmpxname
868 #. vfscanf
869 #. vfwscanf
870 #. vscanf
871 #. vsyslog
872 #. vwscanf
873 #. type: Plain text
874 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
875 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
876 msgid ""
877 "It should be noted that even if an application is not using asynchronous "
878 "cancelation, that calling a function from the above list from an "
879 "asynchronous signal handler may cause the equivalent of asynchronous "
880 "cancelation. The underlying user code may not expect asynchronous "
881 "cancelation and the state of the user data may become inconsistent. "
882 "Therefore signals should be used with caution when entering a region of "
883 "deferred cancelation."
884 msgstr ""
885
886 #. type: SS
887 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
888 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
889 #, no-wrap
890 msgid "Compiling on Linux"
891 msgstr ""
892
893 #. type: Plain text
894 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
895 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
896 msgid ""
897 "On Linux, programs that use the Pthreads API should be compiled using I<cc "
898 "-pthread>."
899 msgstr ""
900
901 #. type: SS
902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
904 #, no-wrap
905 msgid "Linux implementations of POSIX threads"
906 msgstr ""
907
908 #. type: Plain text
909 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
910 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
911 msgid ""
912 "Over time, two threading implementations have been provided by the GNU C "
913 "library on Linux:"
914 msgstr ""
915
916 #. type: TP
917 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
918 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
919 #, no-wrap
920 msgid "B<LinuxThreads>"
921 msgstr ""
922
923 #. type: Plain text
924 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
925 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
926 msgid ""
927 "This is the original Pthreads implementation. Since glibc 2.4, this "
928 "implementation is no longer supported."
929 msgstr ""
930
931 #. type: TP
932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
934 #, no-wrap
935 msgid "B<NPTL> (Native POSIX Threads Library)"
936 msgstr ""
937
938 #. type: Plain text
939 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
940 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
941 msgid ""
942 "This is the modern Pthreads implementation. By comparison with "
943 "LinuxThreads, NPTL provides closer conformance to the requirements of the "
944 "POSIX.1 specification and better performance when creating large numbers of "
945 "threads. NPTL is available since glibc 2.3.2, and requires features that "
946 "are present in the Linux 2.6 kernel."
947 msgstr ""
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid ""
953 "Both of these are so-called 1:1 implementations, meaning that each thread "
954 "maps to a kernel scheduling entity. Both threading implementations employ "
955 "the Linux B<clone>(2) system call. In NPTL, thread synchronization "
956 "primitives (mutexes, thread joining, and so on) are implemented using the "
957 "Linux B<futex>(2) system call."
958 msgstr ""
959
960 #. type: SS
961 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
962 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
963 #, no-wrap
964 msgid "LinuxThreads"
965 msgstr ""
966
967 #. type: Plain text
968 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
969 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
970 msgid "The notable features of this implementation are the following:"
971 msgstr ""
972
973 #. type: Plain text
974 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
975 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
976 msgid ""
977 "In addition to the main (initial) thread, and the threads that the program "
978 "creates using B<pthread_create>(3), the implementation creates a \"manager\" "
979 "thread. This thread handles thread creation and termination. (Problems can "
980 "result if this thread is inadvertently killed.)"
981 msgstr ""
982
983 #. type: Plain text
984 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
985 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
986 msgid ""
987 "Signals are used internally by the implementation. On Linux 2.2 and later, "
988 "the first three real-time signals are used (see also B<signal>(7)). On "
989 "older Linux kernels, B<SIGUSR1> and B<SIGUSR2> are used. Applications must "
990 "avoid the use of whichever set of signals is employed by the implementation."
991 msgstr ""
992
993 #. type: Plain text
994 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
995 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
996 msgid ""
997 "Threads do not share process IDs. (In effect, LinuxThreads threads are "
998 "implemented as processes which share more information than usual, but which "
999 "do not share a common process ID.) LinuxThreads threads (including the "
1000 "manager thread) are visible as separate processes using B<ps>(1)."
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 ""
1007 "The LinuxThreads implementation deviates from the POSIX.1 specification in a "
1008 "number of ways, including the following:"
1009 msgstr ""
1010
1011 #. type: Plain text
1012 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1013 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1014 msgid "Calls to B<getpid>(2) return a different value in each thread."
1015 msgstr ""
1016
1017 #. type: Plain text
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 msgid ""
1021 "Calls to B<getppid>(2) in threads other than the main thread return the "
1022 "process ID of the manager thread; instead B<getppid>(2) in these threads "
1023 "should return the same value as B<getppid>(2) in the main thread."
1024 msgstr ""
1025
1026 #. type: Plain text
1027 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1028 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1029 msgid ""
1030 "When one thread creates a new child process using B<fork>(2), any thread "
1031 "should be able to B<wait>(2) on the child. However, the implementation "
1032 "allows only the thread that created the child to B<wait>(2) on it."
1033 msgstr ""
1034
1035 #. type: Plain text
1036 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1037 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1038 msgid ""
1039 "When a thread calls B<execve>(2), all other threads are terminated (as "
1040 "required by POSIX.1). However, the resulting process has the same PID as "
1041 "the thread that called B<execve>(2): it should have the same PID as the main "
1042 "thread."
1043 msgstr ""
1044
1045 #. type: Plain text
1046 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1047 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1048 msgid ""
1049 "Threads do not share user and group IDs. This can cause complications with "
1050 "set-user-ID programs and can cause failures in Pthreads functions if an "
1051 "application changes its credentials using B<seteuid>(2) or similar."
1052 msgstr ""
1053
1054 #. type: Plain text
1055 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1056 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1057 msgid "Threads do not share a common session ID and process group ID."
1058 msgstr ""
1059
1060 #. type: Plain text
1061 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1062 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1063 msgid "Threads do not share record locks created using B<fcntl>(2)."
1064 msgstr ""
1065
1066 #. type: Plain text
1067 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1068 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1069 msgid ""
1070 "The information returned by B<times>(2) and B<getrusage>(2) is per-thread "
1071 "rather than process-wide."
1072 msgstr ""
1073
1074 #. type: Plain text
1075 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1076 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1077 msgid "Threads do not share semaphore undo values (see B<semop>(2))."
1078 msgstr ""
1079
1080 #. type: Plain text
1081 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1082 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1083 msgid "Threads do not share interval timers."
1084 msgstr ""
1085
1086 #. FIXME . bug report filed for NPTL nice nonconformance
1087 #. http://bugzilla.kernel.org/show_bug.cgi?id=6258
1088 #. Sep 08: there is a patch by Denys Vlasenko to address this
1089 #. "make setpriority POSIX compliant; introduce PRIO_THREAD extension"
1090 #. Monitor this to see if it makes it into mainline.
1091 #. type: Plain text
1092 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1093 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1094 msgid "Threads do not share a common nice value."
1095 msgstr ""
1096
1097 #. type: Plain text
1098 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1099 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1100 msgid ""
1101 "POSIX.1 distinguishes the notions of signals that are directed to the "
1102 "process as a whole and signals that are directed to individual threads. "
1103 "According to POSIX.1, a process-directed signal (sent using B<kill>(2), for "
1104 "example) should be handled by a single, arbitrarily selected thread within "
1105 "the process. LinuxThreads does not support the notion of process-directed "
1106 "signals: signals may be sent only to specific threads."
1107 msgstr ""
1108
1109 #. type: Plain text
1110 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1111 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1112 msgid ""
1113 "Threads have distinct alternate signal stack settings. However, a new "
1114 "thread's alternate signal stack settings are copied from the thread that "
1115 "created it, so that the threads initially share an alternate signal stack. "
1116 "(A new thread should start with no alternate signal stack defined. If two "
1117 "threads handle signals on their shared alternate signal stack at the same "
1118 "time, unpredictable program failures are likely to occur.)"
1119 msgstr ""
1120
1121 #. type: SS
1122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1124 #, no-wrap
1125 msgid "NPTL"
1126 msgstr ""
1127
1128 #. type: Plain text
1129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1131 msgid ""
1132 "With NPTL, all of the threads in a process are placed in the same thread "
1133 "group; all members of a thread group share the same PID. NPTL does not "
1134 "employ a manager thread."
1135 msgstr ""
1136
1137 #. type: Plain text
1138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1140 msgid ""
1141 "NPTL makes internal use of the first two real-time signals; these signals "
1142 "cannot be used in applications. See B<nptl>(7) for further details."
1143 msgstr ""
1144
1145 #. type: Plain text
1146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1148 msgid "NPTL still has at least one nonconformance with POSIX.1:"
1149 msgstr ""
1150
1151 #. type: Plain text
1152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1154 msgid "Some NPTL nonconformances occur only with older kernels:"
1155 msgstr ""
1156
1157 #. type: Plain text
1158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1160 msgid ""
1161 "The information returned by B<times>(2) and B<getrusage>(2) is per-thread "
1162 "rather than process-wide (fixed in Linux 2.6.9)."
1163 msgstr ""
1164
1165 #. type: Plain text
1166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1168 msgid "Threads do not share resource limits (fixed in Linux 2.6.10)."
1169 msgstr ""
1170
1171 #. type: Plain text
1172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1174 msgid "Threads do not share interval timers (fixed in Linux 2.6.12)."
1175 msgstr ""
1176
1177 #. type: Plain text
1178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1180 msgid ""
1181 "Only the main thread is permitted to start a new session using B<setsid>(2) "
1182 "(fixed in Linux 2.6.16)."
1183 msgstr ""
1184
1185 #. type: Plain text
1186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1188 msgid ""
1189 "Only the main thread is permitted to make the process into a process group "
1190 "leader using B<setpgid>(2) (fixed in Linux 2.6.16)."
1191 msgstr ""
1192
1193 #. type: Plain text
1194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1196 msgid ""
1197 "Threads have distinct alternate signal stack settings. However, a new "
1198 "thread's alternate signal stack settings are copied from the thread that "
1199 "created it, so that the threads initially share an alternate signal stack "
1200 "(fixed in Linux 2.6.16)."
1201 msgstr ""
1202
1203 #. type: Plain text
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 msgid "Note the following further points about the NPTL implementation:"
1207 msgstr ""
1208
1209 #. type: Plain text
1210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1212 msgid ""
1213 "If the stack size soft resource limit (see the description of "
1214 "B<RLIMIT_STACK> in B<setrlimit>(2)) is set to a value other than "
1215 "I<unlimited>, then this value defines the default stack size for new "
1216 "threads. To be effective, this limit must be set before the program is "
1217 "executed, perhaps using the I<ulimit -s> shell built-in command (I<limit "
1218 "stacksize> in the C shell)."
1219 msgstr ""
1220
1221 #. type: SS
1222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1224 #, no-wrap
1225 msgid "Determining the threading implementation"
1226 msgstr ""
1227
1228 #. type: Plain text
1229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1231 msgid ""
1232 "Since glibc 2.3.2, the B<getconf>(1) command can be used to determine the "
1233 "system's threading implementation, for example:"
1234 msgstr ""
1235
1236 #. type: Plain text
1237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1239 #, no-wrap
1240 msgid ""
1241 "bash$ getconf GNU_LIBPTHREAD_VERSION\n"
1242 "NPTL 2.3.4\n"
1243 msgstr ""
1244
1245 #. type: Plain text
1246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1248 msgid ""
1249 "With older glibc versions, a command such as the following should be "
1250 "sufficient to determine the default threading implementation:"
1251 msgstr ""
1252
1253 #. type: Plain text
1254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1256 #, no-wrap
1257 msgid ""
1258 "bash$ $( ldd /bin/ls | grep libc.so | awk \\[aq]{print $3}\\[aq] ) | \\[rs]\n"
1259 " egrep -i \\[aq]threads|nptl\\[aq]\n"
1260 " Native POSIX Threads Library by Ulrich Drepper et al\n"
1261 msgstr ""
1262
1263 #. type: SS
1264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1266 #, no-wrap
1267 msgid "Selecting the threading implementation: LD_ASSUME_KERNEL"
1268 msgstr ""
1269
1270 #. type: Plain text
1271 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1272 #: opensuse-tumbleweed
1273 msgid ""
1274 "On systems with a glibc that supports both LinuxThreads and NPTL (i.e., "
1275 "glibc 2.3.*), the B<LD_ASSUME_KERNEL> environment variable can be used to "
1276 "override the dynamic linker's default choice of threading implementation. "
1277 "This variable tells the dynamic linker to assume that it is running on top "
1278 "of a particular kernel version. By specifying a kernel version that does "
1279 "not provide the support required by NPTL, we can force the use of "
1280 "LinuxThreads. (The most likely reason for doing this is to run a (broken) "
1281 "application that depends on some nonconformant behavior in LinuxThreads.) "
1282 "For example:"
1283 msgstr ""
1284
1285 #. type: Plain text
1286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1288 #, no-wrap
1289 msgid ""
1290 "bash$ $( LD_ASSUME_KERNEL=2.2.5 ldd /bin/ls | grep libc.so | \\[rs]\n"
1291 " awk \\[aq]{print $3}\\[aq] ) | egrep -i \\[aq]threads|nptl\\[aq]\n"
1292 " linuxthreads-0.10 by Xavier Leroy\n"
1293 msgstr ""
1294
1295 #. type: SH
1296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1298 #, no-wrap
1299 msgid "SEE ALSO"
1300 msgstr ""
1301
1302 #. type: Plain text
1303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1305 msgid ""
1306 "B<clone>(2), B<fork>(2), B<futex>(2), B<gettid>(2), B<proc>(5), "
1307 "B<attributes>(7), B<futex>(7), B<nptl>(7), B<sigevent>(3type), B<signal>(7)"
1308 msgstr ""
1309
1310 #. type: Plain text
1311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1313 msgid ""
1314 "Various Pthreads manual pages, for example: B<pthread_atfork>(3), "
1315 "B<pthread_attr_init>(3), B<pthread_cancel>(3), B<pthread_cleanup_push>(3), "
1316 "B<pthread_cond_signal>(3), B<pthread_cond_wait>(3), B<pthread_create>(3), "
1317 "B<pthread_detach>(3), B<pthread_equal>(3), B<pthread_exit>(3), "
1318 "B<pthread_key_create>(3), B<pthread_kill>(3), B<pthread_mutex_lock>(3), "
1319 "B<pthread_mutex_unlock>(3), B<pthread_mutexattr_destroy>(3), "
1320 "B<pthread_mutexattr_init>(3), B<pthread_once>(3), B<pthread_spin_init>(3), "
1321 "B<pthread_spin_lock>(3), B<pthread_rwlockattr_setkind_np>(3), "
1322 "B<pthread_setcancelstate>(3), B<pthread_setcanceltype>(3), "
1323 "B<pthread_setspecific>(3), B<pthread_sigmask>(3), B<pthread_sigqueue>(3), "
1324 "and B<pthread_testcancel>(3)"
1325 msgstr ""
1326
1327 #. type: TH
1328 #: debian-trixie fedora-44 fedora-rawhide
1329 #, no-wrap
1330 msgid "2024-06-15"
1331 msgstr ""
1332
1333 #. type: TH
1334 #: debian-trixie
1335 #, no-wrap
1336 msgid "Linux man-pages 6.9.1"
1337 msgstr ""
1338
1339 #. type: Plain text
1340 #: debian-trixie fedora-44 fedora-rawhide
1341 msgid ""
1342 "On systems with a glibc that supports both LinuxThreads and NPTL (i.e., "
1343 "glibc 2.3.I<x>), the B<LD_ASSUME_KERNEL> environment variable can be used to "
1344 "override the dynamic linker's default choice of threading implementation. "
1345 "This variable tells the dynamic linker to assume that it is running on top "
1346 "of a particular kernel version. By specifying a kernel version that does "
1347 "not provide the support required by NPTL, we can force the use of "
1348 "LinuxThreads. (The most likely reason for doing this is to run a (broken) "
1349 "application that depends on some nonconformant behavior in LinuxThreads.) "
1350 "For example:"
1351 msgstr ""
1352
1353 #. type: TH
1354 #: fedora-44 fedora-rawhide
1355 #, no-wrap
1356 msgid "Linux man-pages 6.13"
1357 msgstr ""
1358
1359 #. type: TH
1360 #: mageia-cauldron
1361 #, no-wrap
1362 msgid "Linux man-pages 6.17"
1363 msgstr ""
1364
1365 #. type: TH
1366 #: opensuse-leap-16-1 opensuse-tumbleweed
1367 #, no-wrap
1368 msgid "Linux man-pages (unreleased)"
1369 msgstr ""