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