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