We give the name of the POSIX abbreviation, the option, the name of the
R sysconf ()
parameter used to inquire about the option, and possibly
a very short description.
Much more precise detail can be found in the POSIX standard itself,
versions of which can nowadays be accessed freely on the web.
ADV - _POSIX_ADVISORY_INFO - _SC_ADVISORY_INFO
The advisory functions
R posix_fadvise (),
R posix_fallocate (),
R posix_memalign (),
R posix_madvise ()
are present.
AIO - _POSIX_ASYNCHRONOUS_IO - _SC_ASYNCHRONOUS_IO
The header
<aio.h>
is present.
The functions
R aio_cancel (),
R aio_error (),
R aio_fsync (),
R aio_read (),
R aio_return (),
R aio_suspend (),
R aio_write (),
R lio_listio ()
are present.
BAR - _POSIX_BARRIERS - _SC_BARRIERS
This option implies the _POSIX_THREADS and
_POSIX_THREAD_SAFE_FUNCTIONS options.
The functions
R pthread_barrier_destroy (),
R pthread_barrier_init (),
R pthread_barrier_wait (),
R pthread_barrierattr_destroy (),
R pthread_barrierattr_init ()
are present.
--- - POSIX_CHOWN_RESTRICTED
If this option is in effect (as it always is under POSIX.1-2001)
then only root may change the owner of a file, and non-root can only
set the group of a file to one of the groups it belongs to.
This affects the functions
R chown (),
R fchown ().
CS - _POSIX_CLOCK_SELECTION - _SC_CLOCK_SELECTION
This option implies the _POSIX_TIMERS option.
The functions
R pthread_condattr_getclock (),
R pthread_condattr_setclock (),
R clock_nanosleep ()
are present.
If CLOCK_REALTIME is changed by the function
R clock_settime (),
then this affects all timers set for an absolute time.
CPT - _POSIX_CPUTIME - _SC_CPUTIME
The clockID CLOCK_PROCESS_CPUTIME_ID is supported.
The initial value of this clock is 0 for each process.
This option implies the _POSIX_TIMERS option.
The function
R clock_getcpuclockid ()
is present.
--- - _POSIX_FILE_LOCKING - _SC_FILE_LOCKING
This option has been deleted.
Not in final XPG6.
FSC - _POSIX_FSYNC - _SC_FSYNC
The function
R fsync ()
is present.
IP6 - _POSIX_IPV6 - _SC_IPV6
Internet Protocol Version 6 is supported.
--- - _POSIX_JOB_CONTROL - _SC_JOB_CONTROL
If this option is in effect (as it always is under POSIX.1-2001)
then the system implements POSIX-style job control, and the functions
R setpgid (),
R tcdrain (),
R tcflush (),
R tcgetpgrp (),
R tcsendbreak (),
R tcsetattr (),
R tcsetpgrp ()
are present.
MF - _POSIX_MAPPED_FILES - _SC_MAPPED_FILES
Shared memory is supported.
The include file
<sys/mman.h>
is present.
The functions
R mmap (),
R msync (),
R munmap ()
are present.
ML - _POSIX_MEMLOCK - _SC_MEMLOCK
Shared memory can be locked into core.
The functions
R mlockall (),
R munlockall ()
are present.
MR/MLR - _POSIX_MEMLOCK_RANGE - _SC_MEMLOCK_RANGE
More precisely, ranges can be locked into core.
The functions
R mlock (),
R munlock ()
are present.
MPR - _POSIX_MEMORY_PROTECTION - _SC_MEMORY_PROTECTION
The function
R mprotect ()
is present.
MSG - _POSIX_MESSAGE_PASSING - _SC_MESSAGE_PASSING
The include file
R <mqueue.h>
is present.
The functions
R mq_close (),
R mq_getattr (),
R mq_notify (),
R mq_open (),
R mq_receive (),
R mq_send (),
R mq_setattr (),
R mq_unlink ()
are present.
MON - _POSIX_MONOTONIC_CLOCK - _SC_MONOTONIC_CLOCK
CLOCK_MONOTONIC is supported.
This option implies the _POSIX_TIMERS option.
Affected functions are
R aio_suspend (),
R clock_getres (),
R clock_gettime (),
R clock_settime (),
R timer_create ().
--- - _POSIX_MULTI_PROCESS - _SC_MULTI_PROCESS
This option has been deleted.
Not in final XPG6.
--- - _POSIX_NO_TRUNC
If this option is in effect (as it always is under POSIX.1-2001)
then pathname components longer than NAME_MAX are not truncated,
but give an error.
This property may be dependent on the path prefix of the component.
PIO - _POSIX_PRIORITIZED_IO - _SC_PRIORITIZED_IO
This option says that one can specify priorities for asynchronous I/O.
This affects the functions
R aio_read (),
R aio_write ().
PS - _POSIX_PRIORITY_SCHEDULING - _SC_PRIORITY_SCHEDULING
The include file
<sched.h>
is present.
The functions
R sched_get_priority_max (),
R sched_get_priority_min (),
R sched_getparam (),
R sched_getscheduler (),
R sched_rr_get_interval (),
R sched_setparam (),
R sched_setscheduler (),
R sched_yield ()
are present.
If also _POSIX_SPAWN is in effect, then the functions
R posix_spawnattr_getschedparam (),
R posix_spawnattr_getschedpolicy (),
R posix_spawnattr_setschedparam (),
R posix_spawnattr_setschedpolicy ()
are present.
RS - _POSIX_RAW_SOCKETS
Raw sockets are supported.
Affected functions are
R getsockopt (),
R setsockopt ().
--- - _POSIX_READER_WRITER_LOCKS - _SC_READER_WRITER_LOCKS
This option implies the _POSIX_THREADS option.
Conversely,
under POSIX.1-2001 the _POSIX_THREADS option implies this option.
The functions
R pthread_rwlock_destroy (),
R pthread_rwlock_init (),
R pthread_rwlock_rdlock (),
R pthread_rwlock_tryrdlock (),
R pthread_rwlock_trywrlock (),
R pthread_rwlock_unlock (),
R pthread_rwlock_wrlock (),
R pthread_rwlockattr_destroy (),
R pthread_rwlockattr_init ()
are present.
RTS - _POSIX_REALTIME_SIGNALS - _SC_REALTIME_SIGNALS
Realtime signals are supported.
The functions
R sigqueue (),
R sigtimedwait (),
R sigwaitinfo ()
are present.
--- - _POSIX_REGEXP - _SC_REGEXP
If this option is in effect (as it always is under POSIX.1-2001)
then POSIX regular expressions are supported and the functions
R regcomp (),
R regerror (),
R regexec (),
R regfree ()
are present.
--- - _POSIX_SAVED_IDS - _SC_SAVED_IDS
If this option is in effect (as it always is under POSIX.1-2001)
then a process has a saved set-user-ID and a saved set-group-ID.
Affected functions are
R exec (),
R kill (),
R seteuid (),
R setegid (),
R setgid (),
R setuid ().
SEM - _POSIX_SEMAPHORES - _SC_SEMAPHORES
The include file
<semaphore.h>
is present.
The functions
R sem_close (),
R sem_destroy (),
R sem_getvalue (),
R sem_init (),
R sem_open (),
R sem_post (),
R sem_trywait (),
R sem_unlink (),
R sem_wait ()
are present.
SHM - _POSIX_SHARED_MEMORY_OBJECTS - _SC_SHARED_MEMORY_OBJECTS
The functions
R mmap (),
R munmap (),
R shm_open (),
R shm_unlink ()
are present.
--- - _POSIX_SHELL - _SC_SHELL
If this option is in effect (as it always is under POSIX.1-2001),
the function
R system ()
is present.
SPN - _POSIX_SPAWN - _SC_SPAWN
This option describes support for process creation in a context where
it is difficult or impossible to use
R fork (),
for example, because no MMU is present.
If _POSIX_SPAWN is in effect, then the include file
<spawn.h>
and the functions
R posix_spawn (),
R posix_spawn_file_actions_addclose (),
R posix_spawn_file_actions_adddup2 (),
R posix_spawn_file_actions_addopen (),
R posix_spawn_file_actions_destroy (),
R posix_spawn_file_actions_init (),
R posix_spawnattr_destroy (),
R posix_spawnattr_getsigdefault (),
R posix_spawnattr_getflags (),
R posix_spawnattr_getpgroup (),
R posix_spawnattr_getsigmask (),
R posix_spawnattr_init (),
R posix_spawnattr_setsigdefault (),
R posix_spawnattr_setflags (),
R posix_spawnattr_setpgroup (),
R posix_spawnattr_setsigmask (),
R posix_spawnp ()
are present.
If also _POSIX_PRIORITY_SCHEDULING is in effect, then
the functions
R posix_spawnattr_getschedparam (),
R posix_spawnattr_getschedpolicy (),
R posix_spawnattr_setschedparam (),
R posix_spawnattr_setschedpolicy ()
are present.
SPI - _POSIX_SPIN_LOCKS - _SC_SPIN_LOCKS
This option implies the _POSIX_THREADS and
_POSIX_THREAD_SAFE_FUNCTIONS options.
The functions
R pthread_spin_destroy (),
R pthread_spin_init (),
R pthread_spin_lock (),
R pthread_spin_trylock (),
R pthread_spin_unlock ()
are present.
SS - _POSIX_SPORADIC_SERVER - _SC_SPORADIC_SERVER
The scheduling policy SCHED_SPORADIC is supported.
This option implies the _POSIX_PRIORITY_SCHEDULING option.
Affected functions are
R sched_setparam (),
R sched_setscheduler ().
SIO - _POSIX_SYNCHRONIZED_IO - _SC_SYNCHRONIZED_IO
Affected functions are
R open (),
R msync (),
R fsync (),
R fdatasync ().
TSA - _POSIX_THREAD_ATTR_STACKADDR - _SC_THREAD_ATTR_STACKADDR
Affected functions are
R pthread_attr_getstack (),
R pthread_attr_getstackaddr (),
R pthread_attr_setstack (),
R pthread_attr_setstackaddr ().
TSS - _POSIX_THREAD_ATTR_STACKSIZE - _SC_THREAD_ATTR_STACKSIZE
Affected functions are
R pthread_attr_getstack (),
R pthread_attr_getstacksize (),
R pthread_attr_setstack (),
R pthread_attr_setstacksize ().
TCT - _POSIX_THREAD_CPUTIME - _SC_THREAD_CPUTIME
The clockID CLOCK_THREAD_CPUTIME_ID is supported.
This option implies the _POSIX_TIMERS option.
Affected functions are
R pthread_getcpuclockid (),
R clock_getres (),
R clock_gettime (),
R clock_settime (),
R timer_create ().
TPI - _POSIX_THREAD_PRIO_INHERIT - _SC_THREAD_PRIO_INHERIT
Affected functions are
R pthread_mutexattr_getprotocol (),
R pthread_mutexattr_setprotocol ().
TPP - _POSIX_THREAD_PRIO_PROTECT - _SC_THREAD_PRIO_PROTECT
Affected functions are
R pthread_mutex_getprioceiling (),
R pthread_mutex_setprioceiling (),
R pthread_mutexattr_getprioceiling (),
R pthread_mutexattr_getprotocol (),
R pthread_mutexattr_setprioceiling (),
R pthread_mutexattr_setprotocol ().
TPS - _POSIX_THREAD_PRIORITY_SCHEDULING - _SC_THREAD_PRIORITY_SCHEDULING
If this option is in effect, the different threads inside a process
can run with different priorities and/or different schedulers.
Affected functions are
R pthread_attr_getinheritsched (),
R pthread_attr_getschedpolicy (),
R pthread_attr_getscope (),
R pthread_attr_setinheritsched (),
R pthread_attr_setschedpolicy (),
R pthread_attr_setscope (),
R pthread_getschedparam (),
R pthread_setschedparam (),
R pthread_setschedprio ().
TSH - _POSIX_THREAD_PROCESS_SHARED - _SC_THREAD_PROCESS_SHARED
Affected functions are
R pthread_barrierattr_getpshared (),
R pthread_barrierattr_setpshared (),
R pthread_condattr_getpshared (),
R pthread_condattr_setpshared (),
R pthread_mutexattr_getpshared (),
R pthread_mutexattr_setpshared (),
R pthread_rwlockattr_getpshared (),
R pthread_rwlockattr_setpshared ().
TSF - _POSIX_THREAD_SAFE_FUNCTIONS - _SC_THREAD_SAFE_FUNCTIONS
Affected functions are
R readdir_r (),
R getgrgid_r (),
R getgrnam_r (),
R getpwnam_r (),
R getpwuid_r (),
R flockfile (),
R ftrylockfile (),
R funlockfile (),
R getc_unlocked (),
R getchar_unlocked (),
R putc_unlocked (),
R putchar_unlocked (),
R rand_r (),
R strerror_r (),
R strtok_r (),
R asctime_r (),
R ctime_r (),
R gmtime_r (),
R localtime_r ().
TSP - _POSIX_THREAD_SPORADIC_SERVER - _SC_THREAD_SPORADIC_SERVER
This option implies the _POSIX_THREAD_PRIORITY_SCHEDULING option.
Affected functions are
R sched_getparam (),
R sched_setparam (),
R sched_setscheduler ().
THR - _POSIX_THREADS - _SC_THREADS
Basic support for POSIX threads is available.
The functions
R pthread_atfork (),
R pthread_attr_destroy (),
R pthread_attr_getdetachstate (),
R pthread_attr_getschedparam (),
R pthread_attr_init (),
R pthread_attr_setdetachstate (),
R pthread_attr_setschedparam (),
R pthread_cancel (),
R pthread_cleanup_push (),
R pthread_cleanup_pop (),
R pthread_cond_broadcast (),
R pthread_cond_destroy (),
R pthread_cond_init (),
R pthread_cond_signal (),
R pthread_cond_timedwait (),
R pthread_cond_wait (),
R pthread_condattr_destroy (),
R pthread_condattr_init (),
R pthread_create (),
R pthread_detach (),
R pthread_equal (),
R pthread_exit (),
R pthread_getspecific (),
R pthread_join (),
R pthread_key_create (),
R pthread_key_delete (),
R pthread_mutex_destroy (),
R pthread_mutex_init (),
R pthread_mutex_lock (),
R pthread_mutex_trylock (),
R pthread_mutex_unlock (),
R pthread_mutexattr_destroy (),
R pthread_mutexattr_init (),
R pthread_once (),
R pthread_rwlock_destroy (),
R pthread_rwlock_init (),
R pthread_rwlock_rdlock (),
R pthread_rwlock_tryrdlock (),
R pthread_rwlock_trywrlock (),
R pthread_rwlock_unlock (),
R pthread_rwlock_wrlock (),
R pthread_rwlockattr_destroy (),
R pthread_rwlockattr_init (),
R pthread_self (),
R pthread_setcancelstate (),
R pthread_setcanceltype (),
R pthread_setspecific (),
R pthread_testcancel ()
are present.
TMO - _POSIX_TIMEOUTS - _SC_TIMEOUTS
The functions
R mq_timedreceive (),
R mq_timedsend (),
R pthread_mutex_timedlock (),
R pthread_rwlock_timedrdlock (),
R pthread_rwlock_timedwrlock (),
R sem_timedwait (),
R posix_trace_timedgetnext_event ()
are present.
TMR - _POSIX_TIMERS - _SC_TIMERS
The functions
R clock_getres (),
R clock_gettime (),
R clock_settime (),
R nanosleep (),
R timer_create (),
R timer_delete (),
R timer_gettime (),
R timer_getoverrun (),
R timer_settime ()
are present.
TRC - _POSIX_TRACE - _SC_TRACE
POSIX tracing is available.
The functions
R posix_trace_attr_destroy (),
R posix_trace_attr_getclockres (),
R posix_trace_attr_getcreatetime (),
R posix_trace_attr_getgenversion (),
R posix_trace_attr_getmaxdatasize (),
R posix_trace_attr_getmaxsystemeventsize (),
R posix_trace_attr_getmaxusereventsize (),
R posix_trace_attr_getname (),
R posix_trace_attr_getstreamfullpolicy (),
R posix_trace_attr_getstreamsize (),
R posix_trace_attr_init (),
R posix_trace_attr_setmaxdatasize (),
R posix_trace_attr_setname (),
R posix_trace_attr_setstreamsize (),
R posix_trace_attr_setstreamfullpolicy (),
R posix_trace_clear (),
R posix_trace_create (),
R posix_trace_event (),
R posix_trace_eventid_equal (),
R posix_trace_eventid_get_name (),
R posix_trace_eventid_open (),
R posix_trace_eventtypelist_getnext_id (),
R posix_trace_eventtypelist_rewind (),
R posix_trace_flush (),
R posix_trace_get_attr (),
R posix_trace_get_status (),
R posix_trace_getnext_event (),
R posix_trace_shutdown (),
R posix_trace_start (),
R posix_trace_stop (),
R posix_trace_trygetnext_event ()
are present.
TEF - _POSIX_TRACE_EVENT_FILTER - _SC_TRACE_EVENT_FILTER
This option implies the _POSIX_TRACE option.
The functions
R posix_trace_eventset_add (),
R posix_trace_eventset_del (),
R posix_trace_eventset_empty (),
R posix_trace_eventset_fill (),
R posix_trace_eventset_ismember (),
R posix_trace_get_filter (),
R posix_trace_set_filter (),
R posix_trace_trid_eventid_open ()
are present.
TRI - _POSIX_TRACE_INHERIT - _SC_TRACE_INHERIT
Tracing children of the traced process is supported.
This option implies the _POSIX_TRACE option.
The functions
R posix_trace_attr_getinherited (),
R posix_trace_attr_setinherited ()
are present.
TRL - _POSIX_TRACE_LOG - _SC_TRACE_LOG
This option implies the _POSIX_TRACE option.
The functions
R posix_trace_attr_getlogfullpolicy (),
R posix_trace_attr_getlogsize (),
R posix_trace_attr_setlogfullpolicy (),
R posix_trace_attr_setlogsize (),
R posix_trace_close (),
R posix_trace_create_withlog (),
R posix_trace_open (),
R posix_trace_rewind ()
are present.
TYM - _POSIX_TYPED_MEMORY_OBJECTS - _SC_TYPED_MEMORY_OBJECT
The functions
R posix_mem_offset (),
R posix_typed_mem_get_info (),
R posix_typed_mem_open ()
are present.
--- - _POSIX_VDISABLE
Always present (probably 0).
Value to set a changeable special control
character to indicate that it is disabled.