]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man7/posixoptions.7
epoll.7: wfix
[thirdparty/man-pages.git] / man7 / posixoptions.7
CommitLineData
fea681da
MK
1.\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
2.\"
1dd72f9c 3.\" %%%LICENSE_START(GPLv2+_DOC_FULL)
fea681da
MK
4.\" This is free documentation; you can redistribute it and/or
5.\" modify it under the terms of the GNU General Public License as
6.\" published by the Free Software Foundation; either version 2 of
7.\" the License, or (at your option) any later version.
8.\"
9.\" The GNU General Public License's references to "object code"
10.\" and "executables" are to be interpreted as the output of any
11.\" document formatting or typesetting system, including
12.\" intermediate and printed output.
13.\"
14.\" This manual is distributed in the hope that it will be useful,
15.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
16.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17.\" GNU General Public License for more details.
18.\"
19.\" You should have received a copy of the GNU General Public
c715f741
MK
20.\" License along with this manual; if not, see
21.\" <http://www.gnu.org/licenses/>.
6a8d8745 22.\" %%%LICENSE_END
fea681da 23.\"
09b8afdc 24.TH POSIXOPTIONS 7 2018-04-30 "" "Linux Programmer's Manual"
fea681da
MK
25.SH NAME
26posixoptions \- optional parts of the POSIX standard
27.SH DESCRIPTION
4dec66f9 28The POSIX standard (the information below is from POSIX.1-2001)
6beb1671 29describes a set of behaviors and interfaces for a compliant system.
fea681da
MK
30However, many interfaces are optional and there are feature test macros
31to test the availability of interfaces at compile time, and functions
32.BR sysconf (3),
33.BR fpathconf (3),
34.BR pathconf (3),
35.BR confstr (3)
c13182ef
MK
36to do this at run time.
37From shell scripts one can use
fea681da
MK
38.BR getconf (1).
39For more detail, see
40.BR sysconf (3).
dd3568a1 41.PP
fea681da 42We give the name of the POSIX abbreviation, the option, the name of the
0b80cf56 43.BR sysconf (3)
fea681da
MK
44parameter used to inquire about the option, and possibly
45a very short description.
46Much more precise detail can be found in the POSIX standard itself,
47versions of which can nowadays be accessed freely on the web.
73d8cece 48.SS ADV - _POSIX_ADVISORY_INFO - _SC_ADVISORY_INFO
949f13d2 49The following advisory functions are present:
408731d4 50.PP
fea681da 51.nf
408731d4 52.in +4n
17282a58
MK
53.IR posix_fadvise ()
54.IR posix_fallocate ()
55.IR posix_memalign ()
56.IR posix_madvise ()
408731d4 57.in
fea681da 58.fi
73d8cece 59.SS AIO - _POSIX_ASYNCHRONOUS_IO - _SC_ASYNCHRONOUS_IO
fea681da
MK
60The header
61.I <aio.h>
62is present.
949f13d2 63The following functions are present:
408731d4 64.PP
fea681da 65.nf
408731d4 66.in +4n
17282a58
MK
67.IR aio_cancel ()
68.IR aio_error ()
69.IR aio_fsync ()
70.IR aio_read ()
71.IR aio_return ()
72.IR aio_suspend ()
73.IR aio_write ()
74.IR lio_listio ()
408731d4 75.in
fea681da 76.fi
73d8cece 77.SS BAR - _POSIX_BARRIERS - _SC_BARRIERS
8c4f34f8
MK
78This option implies the
79.B _POSIX_THREADS
80and
81.B _POSIX_THREAD_SAFE_FUNCTIONS
82options.
949f13d2 83The following functions are present:
408731d4 84.PP
fea681da 85.nf
408731d4 86.in +4n
17282a58
MK
87.IR pthread_barrier_destroy ()
88.IR pthread_barrier_init ()
89.IR pthread_barrier_wait ()
90.IR pthread_barrierattr_destroy ()
91.IR pthread_barrierattr_init ()
408731d4 92.in
fea681da 93.fi
d282bb24 94.\" .SS BE
fea681da 95.\" Batch environment.
d282bb24 96.\" .SS CD
fea681da 97.\" C development.
73d8cece 98.SS --- - POSIX_CHOWN_RESTRICTED
9b6d6dcc 99If this option is in effect (as it always is under POSIX.1-2001),
33a0ccb2
MK
100then only root may change the owner of a file, and nonroot can
101set the group of a file only to one of the groups it belongs to.
17282a58
MK
102This affects the following functions
103.PP
104.nf
105.in +4n
106.IR chown ()
107.IR fchown ()
108.in
109.fi
fea681da 110.\" What about lchown() ?
73d8cece 111.SS CS - _POSIX_CLOCK_SELECTION - _SC_CLOCK_SELECTION
8c4f34f8
MK
112This option implies the
113.B _POSIX_TIMERS
114option.
949f13d2 115The following functions are present:
408731d4 116.PP
fea681da 117.nf
408731d4 118.in +4n
17282a58
MK
119.IR pthread_condattr_getclock ()
120.IR pthread_condattr_setclock ()
121.IR clock_nanosleep ()
408731d4 122.in
fea681da 123.fi
408731d4 124.PP
949f13d2
MK
125If
126.B CLOCK_REALTIME
127is changed by the function
63aa9df0 128.IR clock_settime (),
fea681da 129then this affects all timers set for an absolute time.
73d8cece 130.SS CPT - _POSIX_CPUTIME - _SC_CPUTIME
6f131a89
MK
131The
132.B CLOCK_PROCESS_CPUTIME_ID
133clock ID is supported.
fea681da 134The initial value of this clock is 0 for each process.
8c4f34f8
MK
135This option implies the
136.B _POSIX_TIMERS
137option.
fea681da 138The function
63aa9df0 139.IR clock_getcpuclockid ()
fea681da 140is present.
d282bb24 141.\" .SS FD
fea681da 142.\" Fortran development
d282bb24 143.\" .SS FR
fea681da 144.\" Fortran runtime
73d8cece 145.SS --- - _POSIX_FILE_LOCKING - _SC_FILE_LOCKING
c13182ef
MK
146This option has been deleted.
147Not in final XPG6.
b072a788 148.SS FSC - _POSIX_FSYNC - _SC_FSYNC
fea681da 149The function
63aa9df0 150.IR fsync ()
fea681da 151is present.
73d8cece 152.SS IP6 - _POSIX_IPV6 - _SC_IPV6
fea681da 153Internet Protocol Version 6 is supported.
73d8cece 154.SS --- - _POSIX_JOB_CONTROL - _SC_JOB_CONTROL
aa17b6e7 155If this option is in effect (as it always is under POSIX.1-2001),
949f13d2
MK
156then the system implements POSIX-style job control,
157and the following functions are present:
408731d4 158.PP
fea681da 159.nf
408731d4 160.in +4n
17282a58
MK
161.IR setpgid ()
162.IR tcdrain ()
163.IR tcflush ()
164.IR tcgetpgrp ()
165.IR tcsendbreak ()
166.IR tcsetattr ()
167.IR tcsetpgrp ()
408731d4 168.in
fea681da 169.fi
73d8cece 170.SS MF - _POSIX_MAPPED_FILES - _SC_MAPPED_FILES
c13182ef
MK
171Shared memory is supported.
172The include file
fea681da 173.I <sys/mman.h>
c13182ef 174is present.
949f13d2 175The following functions are present:
17282a58
MK
176.PP
177.nf
178.in +4n
179.IR mmap ()
180.IR msync ()
181.IR munmap ()
182.in
183.fi
73d8cece 184.SS ML - _POSIX_MEMLOCK - _SC_MEMLOCK
c13182ef 185Shared memory can be locked into core.
17282a58
MK
186The following functions are present:
187.PP
188.nf
189.in +4n
190.IR mlockall ()
63aa9df0 191.IR munlockall ()
17282a58
MK
192.in
193.fi
73d8cece 194.SS MR/MLR - _POSIX_MEMLOCK_RANGE - _SC_MEMLOCK_RANGE
c13182ef 195More precisely, ranges can be locked into core.
17282a58
MK
196The following functions are present:
197.PP
198.nf
199.in +4n
200.IR mlock ()
63aa9df0 201.IR munlock ()
17282a58
MK
202.in
203.fi
73d8cece 204.SS MPR - _POSIX_MEMORY_PROTECTION - _SC_MEMORY_PROTECTION
fea681da 205The function
63aa9df0 206.IR mprotect ()
fea681da 207is present.
73d8cece 208.SS MSG - _POSIX_MESSAGE_PASSING - _SC_MESSAGE_PASSING
fea681da 209The include file
0daa9e92 210.I <mqueue.h>
c13182ef 211is present.
949f13d2 212The following functions are present:
408731d4 213.PP
fea681da 214.nf
408731d4 215.in +4n
17282a58
MK
216.IR mq_close ()
217.IR mq_getattr ()
218.IR mq_notify ()
219.IR mq_open ()
220.IR mq_receive ()
221.IR mq_send ()
222.IR mq_setattr ()
223.IR mq_unlink ()
408731d4 224.in
fea681da 225.fi
73d8cece 226.SS MON - _POSIX_MONOTONIC_CLOCK - _SC_MONOTONIC_CLOCK
8c4f34f8
MK
227.B CLOCK_MONOTONIC
228is supported.
229This option implies the
230.B _POSIX_TIMERS
231option.
17282a58 232The following functions are affected:
408731d4 233.PP
c7496b03 234.nf
408731d4 235.in +4n
17282a58
MK
236.IR aio_suspend ()
237.IR clock_getres ()
238.IR clock_gettime ()
239.IR clock_settime ()
240.IR timer_create ()
408731d4 241.in
fea681da 242.fi
73d8cece 243.SS --- - _POSIX_MULTI_PROCESS - _SC_MULTI_PROCESS
c13182ef
MK
244This option has been deleted.
245Not in final XPG6.
d282bb24 246.\" .SS MX
fea681da 247.\" IEC 60559 Floating-Point Option.
73d8cece 248.SS --- - _POSIX_NO_TRUNC
5a9ef491 249If this option is in effect (as it always is under POSIX.1-2001),
8c4f34f8
MK
250then pathname components longer than
251.B NAME_MAX
252are not truncated,
fea681da
MK
253but give an error.
254This property may be dependent on the path prefix of the component.
73d8cece 255.SS PIO - _POSIX_PRIORITIZED_IO - _SC_PRIORITIZED_IO
fea681da
MK
256This option says that one can specify priorities for asynchronous I/O.
257This affects the functions
408731d4 258.PP
fea681da 259.nf
408731d4 260.in +4n
17282a58
MK
261.IR aio_read ()
262.IR aio_write ()
408731d4 263.in
fea681da 264.fi
73d8cece 265.SS PS - _POSIX_PRIORITY_SCHEDULING - _SC_PRIORITY_SCHEDULING
fea681da
MK
266The include file
267.I <sched.h>
c13182ef 268is present.
949f13d2 269The following functions are present:
408731d4 270.PP
fea681da 271.nf
408731d4 272.in +4n
17282a58
MK
273.IR sched_get_priority_max ()
274.IR sched_get_priority_min ()
275.IR sched_getparam ()
276.IR sched_getscheduler ()
277.IR sched_rr_get_interval ()
278.IR sched_setparam ()
279.IR sched_setscheduler ()
280.IR sched_yield ()
408731d4 281.in
fea681da 282.fi
6b2300a2 283.PP
8c4f34f8
MK
284If also
285.B _POSIX_SPAWN
949f13d2 286is in effect, then the following functions are present:
408731d4 287.PP
fea681da 288.nf
408731d4 289.in +4n
17282a58
MK
290.IR posix_spawnattr_getschedparam ()
291.IR posix_spawnattr_getschedpolicy ()
292.IR posix_spawnattr_setschedparam ()
293.IR posix_spawnattr_setschedpolicy ()
408731d4 294.in
fea681da 295.fi
73d8cece 296.SS RS - _POSIX_RAW_SOCKETS
c13182ef 297Raw sockets are supported.
17282a58
MK
298The following functions are affected:
299.PP
300.nf
301.in +4n
302.IR getsockopt ()
303.IR setsockopt ()
304.in
305.fi
73d8cece 306.SS --- - _POSIX_READER_WRITER_LOCKS - _SC_READER_WRITER_LOCKS
8c4f34f8
MK
307This option implies the
308.B _POSIX_THREADS
309option.
c13182ef 310Conversely,
8c4f34f8
MK
311under POSIX.1-2001 the
312.B _POSIX_THREADS
313option implies this option.
408731d4 314.PP
949f13d2 315The following functions are present:
17282a58 316.PP
408731d4
MK
317.in +4n
318.nf
17282a58
MK
319.IR pthread_rwlock_destroy ()
320.IR pthread_rwlock_init ()
321.IR pthread_rwlock_rdlock ()
322.IR pthread_rwlock_tryrdlock ()
323.IR pthread_rwlock_trywrlock ()
324.IR pthread_rwlock_unlock ()
325.IR pthread_rwlock_wrlock ()
326.IR pthread_rwlockattr_destroy ()
327.IR pthread_rwlockattr_init ()
408731d4 328.in
fea681da 329.fi
73d8cece 330.SS RTS - _POSIX_REALTIME_SIGNALS - _SC_REALTIME_SIGNALS
c13182ef 331Realtime signals are supported.
949f13d2 332The following functions are present:
408731d4 333.PP
fea681da 334.nf
408731d4 335.in +4n
17282a58
MK
336.IR sigqueue ()
337.IR sigtimedwait ()
338.IR sigwaitinfo ()
408731d4 339.in
fea681da 340.fi
73d8cece 341.SS --- - _POSIX_REGEXP - _SC_REGEXP
742ce8dd 342If this option is in effect (as it always is under POSIX.1-2001),
949f13d2
MK
343then POSIX regular expressions are supported
344and the following functions are present:
408731d4 345.PP
fea681da 346.nf
408731d4 347.in +4n
17282a58
MK
348.IR regcomp ()
349.IR regerror ()
350.IR regexec ()
351.IR regfree ()
408731d4 352.in
fea681da 353.fi
73d8cece 354.SS --- - _POSIX_SAVED_IDS - _SC_SAVED_IDS
9b6d6dcc 355If this option is in effect (as it always is under POSIX.1-2001),
fea681da 356then a process has a saved set-user-ID and a saved set-group-ID.
17282a58 357The following functions are affected:
408731d4 358.PP
fea681da 359.nf
408731d4 360.in +4n
17282a58
MK
361.IR exec ()
362.IR kill ()
363.IR seteuid ()
364.IR setegid ()
365.IR setgid ()
366.IR setuid ()
408731d4 367.in
fea681da 368.fi
d282bb24 369.\" .SS SD
fea681da 370.\" Software development
73d8cece 371.SS SEM - _POSIX_SEMAPHORES - _SC_SEMAPHORES
fea681da
MK
372The include file
373.I <semaphore.h>
374is present.
949f13d2 375The following functions are present:
408731d4 376.PP
fea681da 377.nf
408731d4 378.in +4n
17282a58
MK
379.IR sem_close ()
380.IR sem_destroy ()
381.IR sem_getvalue ()
382.IR sem_init ()
383.IR sem_open ()
384.IR sem_post ()
385.IR sem_trywait ()
386.IR sem_unlink ()
387.IR sem_wait ()
408731d4 388.in
fea681da 389.fi
73d8cece 390.SS SHM - _POSIX_SHARED_MEMORY_OBJECTS - _SC_SHARED_MEMORY_OBJECTS
949f13d2 391The following functions are present:
408731d4 392.PP
fea681da 393.nf
408731d4 394.in +4n
17282a58
MK
395.IR mmap ()
396.IR munmap ()
397.IR shm_open ()
398.IR shm_unlink ()
408731d4 399.in
fea681da 400.fi
73d8cece 401.SS --- - _POSIX_SHELL - _SC_SHELL
4dec66f9 402If this option is in effect (as it always is under POSIX.1-2001),
fea681da 403the function
63aa9df0 404.IR system ()
fea681da 405is present.
73d8cece 406.SS SPN - _POSIX_SPAWN - _SC_SPAWN
fea681da
MK
407This option describes support for process creation in a context where
408it is difficult or impossible to use
63aa9df0 409.IR fork (),
75b94dc3 410for example, because no MMU is present.
17282a58 411.PP
8c4f34f8
MK
412If
413.B _POSIX_SPAWN
414is in effect, then the include file
fea681da 415.I <spawn.h>
949f13d2 416and the following functions are present:
408731d4 417.PP
fea681da 418.nf
408731d4 419.in +4n
17282a58
MK
420.IR posix_spawn ()
421.IR posix_spawn_file_actions_addclose ()
422.IR posix_spawn_file_actions_adddup2 ()
423.IR posix_spawn_file_actions_addopen ()
424.IR posix_spawn_file_actions_destroy ()
425.IR posix_spawn_file_actions_init ()
426.IR posix_spawnattr_destroy ()
427.IR posix_spawnattr_getsigdefault ()
428.IR posix_spawnattr_getflags ()
429.IR posix_spawnattr_getpgroup ()
430.IR posix_spawnattr_getsigmask ()
431.IR posix_spawnattr_init ()
432.IR posix_spawnattr_setsigdefault ()
433.IR posix_spawnattr_setflags ()
434.IR posix_spawnattr_setpgroup ()
435.IR posix_spawnattr_setsigmask ()
436.IR posix_spawnp ()
408731d4 437.in
fea681da 438.fi
6b2300a2 439.PP
8c4f34f8
MK
440If also
441.B _POSIX_PRIORITY_SCHEDULING
442is in effect, then
949f13d2 443the following functions are present:
408731d4 444.PP
fea681da 445.nf
408731d4 446.in +4n
17282a58
MK
447.IR posix_spawnattr_getschedparam ()
448.IR posix_spawnattr_getschedpolicy ()
449.IR posix_spawnattr_setschedparam ()
450.IR posix_spawnattr_setschedpolicy ()
408731d4 451.in
fea681da 452.fi
73d8cece 453.SS SPI - _POSIX_SPIN_LOCKS - _SC_SPIN_LOCKS
8c4f34f8
MK
454This option implies the
455.B _POSIX_THREADS
456and
457.B _POSIX_THREAD_SAFE_FUNCTIONS
458options.
949f13d2 459The following functions are present:
408731d4 460.PP
fea681da 461.nf
408731d4 462.in +4n
17282a58
MK
463.IR pthread_spin_destroy ()
464.IR pthread_spin_init ()
465.IR pthread_spin_lock ()
466.IR pthread_spin_trylock ()
467.IR pthread_spin_unlock ()
408731d4 468.in -4n
fea681da 469.fi
73d8cece 470.SS SS - _POSIX_SPORADIC_SERVER - _SC_SPORADIC_SERVER
8c4f34f8
MK
471The scheduling policy
472.B SCHED_SPORADIC
473is supported.
474This option implies the
475.B _POSIX_PRIORITY_SCHEDULING
476option.
17282a58 477The following functions are affected:
408731d4 478.PP
fea681da 479.nf
73be834a 480.in +4n
17282a58
MK
481.IR sched_setparam ()
482.IR sched_setscheduler ()
408731d4 483.in
fea681da 484.fi
73d8cece 485.SS SIO - _POSIX_SYNCHRONIZED_IO - _SC_SYNCHRONIZED_IO
17282a58
MK
486The following functions are affected:
487.PP
488.nf
489.in +4n
490.IR open ()
491.IR msync ()
492.IR fsync ()
493.IR fdatasync ()
494.in
495.fi
73d8cece 496.SS TSA - _POSIX_THREAD_ATTR_STACKADDR - _SC_THREAD_ATTR_STACKADDR
17282a58 497The following functions are affected:
408731d4 498.PP
fea681da 499.nf
408731d4 500.in +4n
17282a58
MK
501.IR pthread_attr_getstack ()
502.IR pthread_attr_getstackaddr ()
503.IR pthread_attr_setstack ()
504.IR pthread_attr_setstackaddr ()
408731d4 505.in
fea681da 506.fi
73d8cece 507.SS TSS - _POSIX_THREAD_ATTR_STACKSIZE - _SC_THREAD_ATTR_STACKSIZE
17282a58 508The following functions are affected:
408731d4 509.PP
fea681da 510.nf
408731d4 511.in +4n
17282a58
MK
512.IR pthread_attr_getstack ()
513.IR pthread_attr_getstacksize ()
514.IR pthread_attr_setstack ()
515.IR pthread_attr_setstacksize ()
408731d4 516.in
fea681da 517.fi
73d8cece 518.SS TCT - _POSIX_THREAD_CPUTIME - _SC_THREAD_CPUTIME
fea681da 519The clockID CLOCK_THREAD_CPUTIME_ID is supported.
8c4f34f8
MK
520This option implies the
521.B _POSIX_TIMERS
522option.
17282a58 523The following functions are affected:
408731d4 524.PP
fea681da 525.nf
408731d4 526.in +4n
17282a58
MK
527.IR pthread_getcpuclockid ()
528.IR clock_getres ()
529.IR clock_gettime ()
530.IR clock_settime ()
531.IR timer_create ()
408731d4 532.in
fea681da 533.fi
73d8cece 534.SS TPI - _POSIX_THREAD_PRIO_INHERIT - _SC_THREAD_PRIO_INHERIT
17282a58 535The following functions are affected:
408731d4 536.PP
fea681da 537.nf
408731d4 538.in +4n
17282a58
MK
539.IR pthread_mutexattr_getprotocol ()
540.IR pthread_mutexattr_setprotocol ()
408731d4 541.in
fea681da 542.fi
73d8cece 543.SS TPP - _POSIX_THREAD_PRIO_PROTECT - _SC_THREAD_PRIO_PROTECT
17282a58 544The following functions are affected:
408731d4 545.PP
fea681da 546.nf
408731d4 547.in +4n
17282a58
MK
548.IR pthread_mutex_getprioceiling ()
549.IR pthread_mutex_setprioceiling ()
550.IR pthread_mutexattr_getprioceiling ()
551.IR pthread_mutexattr_getprotocol ()
552.IR pthread_mutexattr_setprioceiling ()
553.IR pthread_mutexattr_setprotocol ()
408731d4 554.in
fea681da 555.fi
73d8cece 556.SS TPS - _POSIX_THREAD_PRIORITY_SCHEDULING - _SC_THREAD_PRIORITY_SCHEDULING
fea681da
MK
557If this option is in effect, the different threads inside a process
558can run with different priorities and/or different schedulers.
17282a58 559The following functions are affected:
408731d4 560.PP
fea681da 561.nf
408731d4 562.in +4n
17282a58
MK
563.IR pthread_attr_getinheritsched ()
564.IR pthread_attr_getschedpolicy ()
565.IR pthread_attr_getscope ()
566.IR pthread_attr_setinheritsched ()
567.IR pthread_attr_setschedpolicy ()
568.IR pthread_attr_setscope ()
569.IR pthread_getschedparam ()
570.IR pthread_setschedparam ()
571.IR pthread_setschedprio ()
408731d4 572.in
fea681da 573.fi
73d8cece 574.SS TSH - _POSIX_THREAD_PROCESS_SHARED - _SC_THREAD_PROCESS_SHARED
17282a58 575The following functions are affected:
408731d4 576.PP
fea681da 577.nf
408731d4 578.in +4n
17282a58
MK
579.IR pthread_barrierattr_getpshared ()
580.IR pthread_barrierattr_setpshared ()
581.IR pthread_condattr_getpshared ()
582.IR pthread_condattr_setpshared ()
583.IR pthread_mutexattr_getpshared ()
584.IR pthread_mutexattr_setpshared ()
585.IR pthread_rwlockattr_getpshared ()
586.IR pthread_rwlockattr_setpshared ()
408731d4 587.in
fea681da 588.fi
73d8cece 589.SS TSF - _POSIX_THREAD_SAFE_FUNCTIONS - _SC_THREAD_SAFE_FUNCTIONS
17282a58
MK
590The following functions are affected:
591.PP
592.nf
593.in +4n
594.IR readdir_r ()
595.IR getgrgid_r ()
596.IR getgrnam_r ()
597.IR getpwnam_r ()
598.IR getpwuid_r ()
599.IR flockfile ()
600.IR ftrylockfile ()
601.IR funlockfile ()
602.IR getc_unlocked ()
603.IR getchar_unlocked ()
604.IR putc_unlocked ()
605.IR putchar_unlocked ()
606.IR rand_r ()
607.IR strerror_r ()
608.IR strtok_r ()
609.IR asctime_r ()
610.IR ctime_r ()
611.IR gmtime_r ()
612.IR localtime_r ()
408731d4 613.in
fea681da 614.fi
73d8cece 615.SS TSP - _POSIX_THREAD_SPORADIC_SERVER - _SC_THREAD_SPORADIC_SERVER
8c4f34f8
MK
616This option implies the
617.B _POSIX_THREAD_PRIORITY_SCHEDULING
618option.
17282a58 619The following functions are affected:
408731d4 620.PP
fea681da 621.nf
408731d4 622.in +4n
17282a58
MK
623.IR sched_getparam ()
624.IR sched_setparam ()
625.IR sched_setscheduler ()
408731d4 626.in
fea681da 627.fi
73d8cece 628.SS THR - _POSIX_THREADS - _SC_THREADS
c13182ef 629Basic support for POSIX threads is available.
949f13d2 630The following functions are present:
408731d4 631.PP
fea681da 632.nf
408731d4 633.in +4n
17282a58
MK
634.IR pthread_atfork ()
635.IR pthread_attr_destroy ()
636.IR pthread_attr_getdetachstate ()
637.IR pthread_attr_getschedparam ()
638.IR pthread_attr_init ()
639.IR pthread_attr_setdetachstate ()
640.IR pthread_attr_setschedparam ()
641.IR pthread_cancel ()
642.IR pthread_cleanup_push ()
643.IR pthread_cleanup_pop ()
644.IR pthread_cond_broadcast ()
645.IR pthread_cond_destroy ()
646.IR pthread_cond_init ()
647.IR pthread_cond_signal ()
648.IR pthread_cond_timedwait ()
649.IR pthread_cond_wait ()
650.IR pthread_condattr_destroy ()
651.IR pthread_condattr_init ()
652.IR pthread_create ()
653.IR pthread_detach ()
654.IR pthread_equal ()
655.IR pthread_exit ()
656.IR pthread_getspecific ()
657.IR pthread_join ()
658.IR pthread_key_create ()
659.IR pthread_key_delete ()
660.IR pthread_mutex_destroy ()
661.IR pthread_mutex_init ()
662.IR pthread_mutex_lock ()
663.IR pthread_mutex_trylock ()
664.IR pthread_mutex_unlock ()
665.IR pthread_mutexattr_destroy ()
666.IR pthread_mutexattr_init ()
667.IR pthread_once ()
668.IR pthread_rwlock_destroy ()
669.IR pthread_rwlock_init ()
670.IR pthread_rwlock_rdlock ()
671.IR pthread_rwlock_tryrdlock ()
672.IR pthread_rwlock_trywrlock ()
673.IR pthread_rwlock_unlock ()
674.IR pthread_rwlock_wrlock ()
675.IR pthread_rwlockattr_destroy ()
676.IR pthread_rwlockattr_init ()
677.IR pthread_self ()
678.IR pthread_setcancelstate ()
679.IR pthread_setcanceltype ()
680.IR pthread_setspecific ()
681.IR pthread_testcancel ()
408731d4 682.in
fea681da 683.fi
73d8cece 684.SS TMO - _POSIX_TIMEOUTS - _SC_TIMEOUTS
949f13d2 685The following functions are present:
408731d4 686.PP
fea681da 687.nf
408731d4 688.in +4n
17282a58
MK
689.IR mq_timedreceive ()
690.IR mq_timedsend ()
691.IR pthread_mutex_timedlock ()
692.IR pthread_rwlock_timedrdlock ()
693.IR pthread_rwlock_timedwrlock ()
694.IR sem_timedwait ()
695.IR posix_trace_timedgetnext_event ()
408731d4 696.in
fea681da 697.fi
73d8cece 698.SS TMR - _POSIX_TIMERS - _SC_TIMERS
949f13d2 699The following functions are present:
408731d4 700.PP
fea681da 701.nf
408731d4 702.in +4n
17282a58
MK
703.IR clock_getres ()
704.IR clock_gettime ()
705.IR clock_settime ()
706.IR nanosleep ()
707.IR timer_create ()
708.IR timer_delete ()
709.IR timer_gettime ()
710.IR timer_getoverrun ()
711.IR timer_settime ()
408731d4 712.in
fea681da 713.fi
73d8cece 714.SS TRC - _POSIX_TRACE - _SC_TRACE
c13182ef 715POSIX tracing is available.
949f13d2 716The following functions are present:
408731d4 717.PP
fea681da 718.nf
408731d4 719.in +4n
17282a58
MK
720.IR posix_trace_attr_destroy ()
721.IR posix_trace_attr_getclockres ()
722.IR posix_trace_attr_getcreatetime ()
723.IR posix_trace_attr_getgenversion ()
724.IR posix_trace_attr_getmaxdatasize ()
725.IR posix_trace_attr_getmaxsystemeventsize ()
726.IR posix_trace_attr_getmaxusereventsize ()
727.IR posix_trace_attr_getname ()
728.IR posix_trace_attr_getstreamfullpolicy ()
729.IR posix_trace_attr_getstreamsize ()
730.IR posix_trace_attr_init ()
731.IR posix_trace_attr_setmaxdatasize ()
732.IR posix_trace_attr_setname ()
733.IR posix_trace_attr_setstreamsize ()
734.IR posix_trace_attr_setstreamfullpolicy ()
735.IR posix_trace_clear ()
736.IR posix_trace_create ()
737.IR posix_trace_event ()
738.IR posix_trace_eventid_equal ()
739.IR posix_trace_eventid_get_name ()
740.IR posix_trace_eventid_open ()
741.IR posix_trace_eventtypelist_getnext_id ()
742.IR posix_trace_eventtypelist_rewind ()
743.IR posix_trace_flush ()
744.IR posix_trace_get_attr ()
745.IR posix_trace_get_status ()
746.IR posix_trace_getnext_event ()
747.IR posix_trace_shutdown ()
748.IR posix_trace_start ()
749.IR posix_trace_stop ()
750.IR posix_trace_trygetnext_event ()
408731d4 751.in
fea681da 752.fi
73d8cece 753.SS TEF - _POSIX_TRACE_EVENT_FILTER - _SC_TRACE_EVENT_FILTER
8c4f34f8
MK
754This option implies the
755.B _POSIX_TRACE
756option.
949f13d2 757The following functions are present:
408731d4 758.PP
fea681da 759.nf
408731d4 760.in +4n
17282a58
MK
761.IR posix_trace_eventset_add ()
762.IR posix_trace_eventset_del ()
763.IR posix_trace_eventset_empty ()
764.IR posix_trace_eventset_fill ()
765.IR posix_trace_eventset_ismember ()
766.IR posix_trace_get_filter ()
767.IR posix_trace_set_filter ()
768.IR posix_trace_trid_eventid_open ()
408731d4 769.in
fea681da 770.fi
73d8cece 771.SS TRI - _POSIX_TRACE_INHERIT - _SC_TRACE_INHERIT
fea681da 772Tracing children of the traced process is supported.
8c4f34f8
MK
773This option implies the
774.B _POSIX_TRACE
775option.
949f13d2 776The following functions are present:
408731d4 777.PP
fea681da 778.nf
408731d4 779.in +4n
17282a58
MK
780.IR posix_trace_attr_getinherited ()
781.IR posix_trace_attr_setinherited ()
408731d4 782.in
fea681da 783.fi
73d8cece 784.SS TRL - _POSIX_TRACE_LOG - _SC_TRACE_LOG
8c4f34f8
MK
785This option implies the
786.B _POSIX_TRACE
787option.
949f13d2 788The following functions are present:
408731d4 789.PP
fea681da 790.nf
408731d4 791.in +4n
17282a58
MK
792.IR posix_trace_attr_getlogfullpolicy ()
793.IR posix_trace_attr_getlogsize ()
794.IR posix_trace_attr_setlogfullpolicy ()
795.IR posix_trace_attr_setlogsize ()
796.IR posix_trace_close ()
797.IR posix_trace_create_withlog ()
798.IR posix_trace_open ()
799.IR posix_trace_rewind ()
408731d4 800.in
fea681da 801.fi
73d8cece 802.SS TYM - _POSIX_TYPED_MEMORY_OBJECTS - _SC_TYPED_MEMORY_OBJECT
949f13d2 803The following functions are present:
408731d4 804.PP
fea681da 805.nf
408731d4 806.in +4n
17282a58
MK
807.IR posix_mem_offset ()
808.IR posix_typed_mem_get_info ()
809.IR posix_typed_mem_open ()
408731d4 810.in
fea681da 811.fi
73d8cece 812.SS --- - _POSIX_VDISABLE
c13182ef
MK
813Always present (probably 0).
814Value to set a changeable special control
1954b6a9 815character to indicate that it is disabled.
742ce8dd 816.SH X/OPEN SYSTEM INTERFACE EXTENSIONS
233b0395
CD
817.SS XSI - _XOPEN_CRYPT - _SC_XOPEN_CRYPT
818The following functions are present:
819.PP
820.nf
821.in +4n
17282a58
MK
822.IR crypt ()
823.IR encrypt ()
824.IR setkey ()
50c70746 825.fi
233b0395 826.SS XSI - _XOPEN_REALTIME - _SC_XOPEN_REALTIME
11e9d8f8
MK
827This option implies the following options:
828.PP
829.PD 0
830.TP
831.BR _POSIX_ASYNCHRONOUS_IO == 200112L
832.TP
833.B _POSIX_FSYNC
834.TP
835.B _POSIX_MAPPED_FILES
836.TP
837.BR _POSIX_MEMLOCK == 200112L
838.TP
839.BR _POSIX_MEMLOCK_RANGE == 200112L
840.TP
841.B _POSIX_MEMORY_PROTECTION
842.TP
843.BR _POSIX_MESSAGE_PASSING == 200112L
844.TP
845.B _POSIX_PRIORITIZED_IO
846.TP
847.BR _POSIX_PRIORITY_SCHEDULING == 200112L
848.TP
849.BR _POSIX_REALTIME_SIGNALS == 200112L
850.TP
851.BR _POSIX_SEMAPHORES == 200112L
852.TP
853.BR _POSIX_SHARED_MEMORY_OBJECTS == 200112L
854.TP
855.BR _POSIX_SYNCHRONIZED_IO == 200112L
856.TP
857.BR _POSIX_TIMERS == 200112L
858.PD
859.\"
233b0395 860.SS ADV - --- - ---
11e9d8f8
MK
861The Advanced Realtime option group implies that the following options
862are all defined to 200112L:
863.PP
864.PD 0
865.TP
866.B _POSIX_ADVISORY_INFO
867.TP
45adee31
MK
868.B _POSIX_CLOCK_SELECTION
869(implies
11e9d8f8
MK
870.BR _POSIX_TIMERS )
871.TP
45adee31
MK
872.B _POSIX_CPUTIME
873(implies
11e9d8f8
MK
874.BR _POSIX_TIMERS )
875.TP
45adee31
MK
876.B _POSIX_MONOTONIC_CLOCK
877(implies
11e9d8f8
MK
878.BR _POSIX_TIMERS )
879.TP
880.B _POSIX_SPAWN
881.TP
45adee31
MK
882.B _POSIX_SPORADIC_SERVER
883(implies
11e9d8f8
MK
884.BR _POSIX_PRIORITY_SCHEDULING )
885.TP
886.B _POSIX_TIMEOUTS
887.TP
233b0395 888.B _POSIX_TYPED_MEMORY_OBJECTS
11e9d8f8
MK
889.PD
890.\"
233b0395 891.SS XSI - _XOPEN_REALTIME_THREADS - _SC_XOPEN_REALTIME_THREADS
11e9d8f8
MK
892This option implies that the following options
893are all defined to 200112L:
894.PP
895.PD 0
896.TP
897.B _POSIX_THREAD_PRIO_INHERIT
898.TP
899.B _POSIX_THREAD_PRIO_PROTECT
900.TP
233b0395 901.B _POSIX_THREAD_PRIORITY_SCHEDULING
11e9d8f8 902.PD
233b0395 903.SS ADVANCED REALTIME THREADS - --- - ---
11e9d8f8
MK
904This option implies that the following options
905are all defined to 200112L:
906.PP
907.PD 0
908.TP
45adee31
MK
909.B _POSIX_BARRIERS
910(implies
911.BR _POSIX_THREADS ,
11e9d8f8
MK
912.BR _POSIX_THREAD_SAFE_FUNCTIONS )
913.TP
45adee31
MK
914.B _POSIX_SPIN_LOCKS
915(implies
916.BR _POSIX_THREADS ,
11e9d8f8
MK
917.BR _POSIX_THREAD_SAFE_FUNCTIONS )
918.TP
45adee31
MK
919.B _POSIX_THREAD_CPUTIME
920(implies
11e9d8f8
MK
921.BR _POSIX_TIMERS )
922.TP
45adee31
MK
923.B _POSIX_THREAD_SPORADIC_SERVER
924(implies
925.BR _POSIX_THREAD_PRIORITY_SCHEDULING )
11e9d8f8
MK
926.PD
927.\"
233b0395 928.SS TRACING - --- - ---
11e9d8f8
MK
929This option implies that the following options
930are all defined to 200112L:
931.PP
932.PD 0
933.TP
934.B _POSIX_TRACE
935.TP
936.B _POSIX_TRACE_EVENT_FILTER
937.TP
938.B _POSIX_TRACE_LOG
939.TP
233b0395 940.B _POSIX_TRACE_INHERIT
11e9d8f8 941.PD
233b0395
CD
942.SS STREAMS - _XOPEN_STREAMS - _SC_XOPEN_STREAMS
943The following functions are present:
944.PP
945.nf
946.in +4n
947.IR fattach ()
948.IR fdetach ()
949.IR getmsg ()
950.IR getpmsg ()
951.IR ioctl ()
873727f4 952.IR isastream ()
233b0395 953.IR putmsg ()
17282a58
MK
954.IR putpmsg ()
955.in
956.fi
233b0395
CD
957.SS XSI - _XOPEN_LEGACY - _SC_XOPEN_LEGACY
958Functions included in the legacy option group were previously mandatory,
959but are now optional in this version.
960The following functions are present:
961.PP
962.nf
963.in +4n
17282a58
MK
964.IR bcmp ()
965.IR bcopy ()
966.IR bzero ()
967.IR ecvt ()
968.IR fcvt ()
969.IR ftime ()
970.IR gcvt ()
971.IR getcwd ()
972.IR index ()
973.IR mktemp ()
974.IR rindex ()
975.IR utimes ()
976.IR wcswcs ()
977.in
978.fi
233b0395
CD
979.SS XSI - _XOPEN_UNIX - _SC_XOPEN_UNIX
980The following functions are present:
981.PP
982.nf
983.in +4n
17282a58
MK
984.IR mmap ()
985.IR munmap ()
986.IR msync ()
987.in
233b0395
CD
988.fi
989.PP
11e9d8f8
MK
990This option implies the following options:
991.PP
992.PD 0
993.TP
994.B _POSIX_FSYNC
995.TP
996.B _POSIX_MAPPED_FILES
997.TP
998.B _POSIX_MEMORY_PROTECTION
999.TP
1000.B _POSIX_THREAD_ATTR_STACKADDR
1001.TP
1002.B _POSIX_THREAD_ATTR_STACKSIZE
1003.TP
1004.B _POSIX_THREAD_PROCESS_SHARED
1005.TP
1006.B _POSIX_THREAD_SAFE_FUNCTIONS
1007.TP
233b0395 1008.B _POSIX_THREADS
11e9d8f8 1009.PD
233b0395 1010.PP
11e9d8f8
MK
1011This option may imply the following options from the XSI option groups:
1012.PP
1013.PD 0
1014.TP
1015.RB "Encryption (" _XOPEN_CRYPT )
1016.TP
1017.RB "Realtime (" _XOPEN_REALTIME )
1018.TP
1019.RB "Advanced Realtime (" ADB )
1020.TP
1021.RB "Realtime Threads (" _XOPEN_REALTIME_THREADS )
1022.TP
1023.RB "Advanced Realtime Threads (" "ADVANCED REALTIME THREADS" )
1024.TP
1025.RB "Tracing (" TRACING )
1026.TP
1027.RB "XSI Streams (" STREAMS )
1028.TP
1029.RB "Legacy (" _XOPEN_LEGACY )
1030.PD
47297adb 1031.SH SEE ALSO
2229c7ae
MK
1032.BR sysconf (3),
1033.BR standards (7)