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
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
|
.\"
.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
.\" permission to reproduce portions of its copyrighted documentation.
.\" Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\"
.\" The Institute of Electrical and Electronics Engineers and The Open
.\" Group, have given us permission to reprint portions of their
.\" documentation.
.\"
.\" In the following statement, the phrase ``this text'' refers to portions
.\" of the system documentation.
.\"
.\" Portions of this text are reprinted and reproduced in electronic form
.\" in the SunOS Reference Manual, from IEEE Std 1003.1, 2004 Edition,
.\" Standard for Information Technology -- Portable Operating System
.\" Interface (POSIX), The Open Group Base Specifications Issue 6,
.\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
.\" Engineers, Inc and The Open Group. In the event of any discrepancy
.\" between these versions and the original IEEE and The Open Group
.\" Standard, the original IEEE and The Open Group Standard is the referee
.\" document. The original Standard can be obtained online at
.\" http://www.opengroup.org/unix/online.html.
.\"
.\" This notice shall appear on any product containing this material.
.\"
.\" The contents of this file are subject to the terms of the
.\" Common Development and Distribution License (the "License").
.\" You may not use this file except in compliance with the License.
.\"
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
.\" or http://www.opensolaris.org/os/licensing.
.\" See the License for the specific language governing permissions
.\" and limitations under the License.
.\"
.\" When distributing Covered Code, include this CDDL HEADER in each
.\" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
.\" If applicable, add the following below this CDDL HEADER, with the
.\" fields enclosed by brackets "[]" replaced with your own identifying
.\" information: Portions Copyright [yyyy] [name of copyright owner]
.\"
.\"
.\" Copyright 1989 AT&T
.\" Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
.\"
.TH UNISTD.H 3HEAD "Sep 1, 2009"
.SH NAME
unistd.h, unistd \- standard symbolic constants and types
.SH SYNOPSIS
.LP
.nf
#include <unistd.h>
.fi
.SH DESCRIPTION
.sp
.LP
The <\fBunistd.h\fR> header defines the symbolic constants and structures which
are not already defined or declared in some other header. The contents of this
header are shown below.
.SS "Version Test Macros"
.sp
.LP
The following symbolic constants are defined (with fixed values):
.sp
.ne 2
.na
\fB\fB_POSIX_VERSION\fR\fR
.ad
.RS 22n
Integer value indicating version of the POSIX standard (C language binding).
See \fBstandards\fR(5).
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_VERSION\fR\fR
.ad
.RS 22n
Integer value indicating version of the POSIX.2 standard (Commands).
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_C_VERSION\fR\fR
.ad
.RS 22n
Integer value indicating version of the POSIX.2 standard (C language binding).
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_VERSION\fR\fR
.ad
.RS 22n
Integer value indicating version of the XPG to which system conforms.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_XCU_VERSION\fR\fR
.ad
.RS 22n
Integer value indicating the version of the XCU specification to which the
implementation conforms. If this constant is not defined, use the
\fBsysconf\fR(3C) function to determine which features are supported. This
constant is not defined for the SUSv3 environment.
.RE
.SS "Mandatory Symbolic Constants"
.sp
.LP
The following symbolic constants, if defined in <\fBunistd.h\fR>, have a value
of -1, 0, or greater, unless otherwise specified below. If these are undefined,
the \fBfpathconf\fR(2), \fBpathconf\fR(2), or \fBsysconf\fR(3C) functions can
be used to determine whether the option is provided for a particular invocation
of the application.
.sp
.LP
If a symbolic constant is defined with the value -1, the option is not
supported. Headers, data types, and function interfaces required only for the
option need not be supplied. An application that attempts to use anything
associated only with the option is considered to be requiring an extension.
.sp
.LP
If a symbolic constant is defined with a value greater than zero, the option is
always supported when the application is executed. All headers, data types, and
functions are present and operate as specified.
.sp
.LP
If a symbolic constant is defined with the value zero, all headers, data types,
and functions are present. The application can check at runtime to see whether
the option is supported by calling \fBfpathconf()\fR, \fBpathconf()\fR, or
\fBsysconf()\fR with the indicated \fIname\fR parameter.
.sp
.LP
Unless explicitly specified otherwise, the behavior of functions associated
with an unsupported option is unspecified, and an application that uses such
functions without first checking \fBfpathconf()\fR, \fBpathconf()\fR, or
\fBsysconf()\fR is considered to be requiring an extension.
.sp
.ne 2
.na
\fB\fB_POSIX_ADVISORY_INFO\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Advisory Information option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_ASYNCHRONOUS_IO\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Asynchronous Input and Output option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_BARRIERS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Barriers option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_CLOCK_SELECTION\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Clock Selection option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_CPUTIME\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Process CPU-Time Clocks option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_FSYNC\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the File Synchronisation option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_IPV6\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the IPv6 option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_JOB_CONTROL\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports job control.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MAPPED_FILES\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Memory Mapped Files option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MEMLOCK\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Process Memory Locking option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MEMLOCK_RANGE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Range Memory Locking option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MEMORY_PROTECTION\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Memory Protection option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MESSAGE_PASSING\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Message Passing option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_MONOTONIC_CLOCK\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Monotonic Clock option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_PRIORITY_SCHEDULING\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Process Scheduling option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_RAW_SOCKETS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Raw Sockets option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_READER_WRITER_LOCKS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Read-Write Locks option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_REALTIME_SIGNALS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Realtime Signals Extension option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_REGEXP\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Regular Expression Handling option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SAVED_IDS\fR\fR
.ad
.sp .6
.RS 4n
The exec functions (see \fBexec\fR(2)) save the effective user and group.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SEMAPHORES\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Semaphores option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SHARED_MEMORY_OBJECTS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Shared Memory Objects option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SHELL\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the POSIX shell.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SPAWN\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Spawn option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SPIN_LOCKS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Spin Locks option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SPORADIC_SERVER\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Process Sporadic Server option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SYNCHRONIZED_IO\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Synchronized Input and Output option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_ATTR_STACKADDR\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the thread stack address attribute option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_ATTR_STACKSIZE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the thread stack size attribute option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_CPUTIME\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Thread CPU-Time Clocks option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_PROCESS_SHARED\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the process-shared synchronization option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_SAFE_FUNCTIONS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the thread-safe functions option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREAD_SPORADIC_SERVER\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Thread Sporadic Server option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_THREADS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the threads option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TIMERS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Timers option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TIMEOUTS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Timeouts option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TRACE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Trace option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TRACE_EVENT_FILTER\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Trace Event Filter option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TRACE_INHERIT\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Trace Inherit option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TRACE_LOG\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Trace Log option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_TYPED_MEMORY_OBJECTS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Typed Memory Objects option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_V6_ILP32_OFF32\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR, \fBlong\fR, and \fBpointer\fR types and an \fBoff_t\fR type using at
least 64 bits.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_V6_ILP32_OFFBIG\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR, long\fB\fR, and \fBpointer\fR types and an \fBoff_t\fR type using at
least 64 bits.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_V6_LP64_OFF64\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR and 64-bit \fBlong\fR, \fBpointer\fR, and \fBoff_t\fR types.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_V6_LPBIG_OFFBIG\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with an \fBint\fR
type using at least 32 bits and \fBlong\fR, \fBpointer\fR, and \fBoff_t\fR
types using at least 64 bits.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_XOPEN_STREAMS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the XSI STREAMS Option Group.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_C_BIND\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the C Language Binding option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_C_DEV\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the C Language Development Utilities option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_CHAR_TERM\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports at least one terminal type.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_LOCALEDEF\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the creation of locales by the \fBlocaledef\fR(1)
utility.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Batch Environment Services and Utilities option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS_ACCOUNTING\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Batch Accounting option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS_CHECKPOINT\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Batch Checkpoint/Restart option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS_LOCATE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Locate Batch Job Request option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS_MESSAGE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Batch Job Message Request option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_PBS_TRACK\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Track Batch Job Request option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_SW_DEV\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Software Development Utilities option.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX2_UPE\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the User Portability Utilities option.
.RE
.sp
.ne 2
.na
\fB\fB_XBS5_ILP32_OFF32\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR, \fBlong\fR, \fBpointer\fR and \fBoff_t\fR types.
.RE
.sp
.ne 2
.na
\fB\fB_XBS5_ILP32_OFFBIG\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR, \fBlong\fR and \fBpointer\fR types and an \fBoff_t\fR type using at
least 64 bits.
.RE
.sp
.ne 2
.na
\fB\fB_XBS5_LP64_OFF64\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with 32-bit
\fBint\fR and 64-bit \fBlong\fR, \fBpointer\fR and \fBoff_t\fR types.
.RE
.sp
.ne 2
.na
\fB\fB_XBS5_LPBIG_OFFBIG\fR\fR
.ad
.sp .6
.RS 4n
Implementation provides a C-language compilation environment with an \fBint\fR
type using at least 32 bits and \fBlong\fR, \fBpointer\fR and \fBoff_t\fR types
using at least 64 bits.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_ENH_I18N\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Issue 4, Version 2 Enhanced Internationalization
Feature Group.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_LEGACY\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Legacy Feature Group.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_REALTIME\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the X/Open Realtime Feature Group.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_SHM\fR\fR
.ad
.sp .6
.RS 4n
Implementation supports the Issue 4, Version 2 Shared Memory Feature Group.
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_UNIX\fR\fR
.ad
.sp .6
.RS 4n
X/Open CAE Specification, January 1997, System Interfaces and Headers, Issue 5
(ISBN: 1-85912-181-0, C606).
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_XPG3\fR\fR
.ad
.sp .6
.RS 4n
X/Open Specification, February 1992, System Interfaces and Headers, Issue 3
(ISBN: 1-872630-37-5, C212); this specification was formerly X/Open Portability
Guide, Issue 3, Volume 2, January 1989, XSI System Interface and Headers (ISBN:
0-13-685843-0, XO/XPG/89/003).
.RE
.sp
.ne 2
.na
\fB\fB_XOPEN_XPG4\fR\fR
.ad
.sp .6
.RS 4n
X/Open CAE Specification, July 1992, System Interfaces and Headers, Issue 4
(ISBN: 1-872630-47-2, C202).
.RE
.SS "Execution-time Symbolic Constants"
.sp
.LP
If any of the following constants are not defined in the header
\fB<unistd.h>\fR, the value varies depending on the file to which it is
applied.
.sp
.LP
If any of the following constants are defined to have value \(mi1 in the header
\fB<unistd.h>\fR, the implementation will not provide the option on any file;
if any are defined to have a value other than \(mi1 in the header
\fB<unistd.h>\fR, the implementation will provide the option on all applicable
files.
.sp
.LP
All of the following constants, whether defined in \fB<unistd.h>\fR or not, can
be queried with respect to a specific file using the \fBpathconf()\fR or
\fBfpathconf()\fR functions.
.sp
.ne 2
.na
\fB\fB_POSIX_ASYNC_IO\fR\fR
.ad
.RS 19n
Asynchronous input or output operations can be performed for the associated
file.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_PRIO_IO\fR\fR
.ad
.RS 19n
Prioritized input or output operations can be performed for the associated
file.
.RE
.sp
.ne 2
.na
\fB\fB_POSIX_SYNC_IO\fR\fR
.ad
.RS 19n
Synchronized input or output operations can be performed for the associated
file.
.RE
.SS "Constants for Functions"
.sp
.LP
The following constant is defined:
.sp
.ne 2
.na
\fB\fINULL\fR\fR
.ad
.RS 8n
Null pointer.
.RE
.sp
.LP
The following symbolic constants are defined for the \fBaccess\fR(2) function:
.sp
.ne 2
.na
\fB\fBR_OK\fR\fR
.ad
.RS 8n
Test for read permission.
.RE
.sp
.ne 2
.na
\fB\fBW_OK\fR\fR
.ad
.RS 8n
Test for write permission.
.RE
.sp
.ne 2
.na
\fB\fBX_OK\fR\fR
.ad
.RS 8n
Test for execute (search) permission.
.RE
.sp
.ne 2
.na
\fB\fBF_OK\fR\fR
.ad
.RS 8n
Test for existence of file.
.RE
.sp
.LP
The constants \fBF_OK\fR, \fBR_OK\fR, \fBW_OK\fR, and \fBX_OK\fR, and the
expressions \fBR_OK\||\|W_OK\fR, \fBR_OK\||\|X_OK\fR, and
\fBR_OK\||\|W_OK\||\|X_OK\fR all have distinct values.
.sp
.LP
The following symbolic constants are defined for the \fBlockf\fR(3C) function:
.sp
.ne 2
.na
\fB\fBF_ULOCK\fR\fR
.ad
.RS 11n
Unlock a previously locked region.
.RE
.sp
.ne 2
.na
\fB\fBF_LOCK\fR\fR
.ad
.RS 11n
Lock a region for exclusive use.
.RE
.sp
.ne 2
.na
\fB\fBF_TLOCK\fR\fR
.ad
.RS 11n
Test and lock a region for exclusive use.
.RE
.sp
.ne 2
.na
\fB\fBF_TEST\fR\fR
.ad
.RS 11n
Test a region for other processes locks.
.RE
.sp
.LP
The following symbolic constants are defined for the \fBlseek\fR(2) and
\fBfcntl\fR(2) functions (they have distinct values):
.sp
.ne 2
.na
\fB\fBSEEK_SET\fR\fR
.ad
.RS 12n
Set file offset to \fIoffset\fR.
.RE
.sp
.ne 2
.na
\fB\fBSEEK_CUR\fR\fR
.ad
.RS 12n
Set file offset to current plus \fIoffset\fR.
.RE
.sp
.ne 2
.na
\fB\fBSEEK_END\fR\fR
.ad
.RS 12n
Set file offset to EOF plus \fIoffset\fR.
.RE
.sp
.LP
The following symbolic constants are defined for the \fBconfstr\fR(3C) function
for both SPARC and x86:
.sp
.sp
.TS
l l
l l .
\fB_CS_LFS64_CFLAGS\fR \fB_CS_LFS64_LDFLAGS\fR
\fB_CS_LFS64_LIBS\fR \fB_CS_LFS64_LINTFLAGS\fR
\fB_CS_LFS_CFLAGS\fR \fB_CS_LFS_LDFLAGS\fR
\fB_CS_LFS_LIBS\fR \fB_CS_LFS_LINTFLAGS\fR
\fB_CS_PATH\fR \fB_CS_POSIX_V6_ILP32_OFF32_CFLAGS\fR
\fB_CS_POSIX_V6_ILP32_OFF32_LDFLAGS\fR \fB_CS_POSIX_V6_ILP32_OFF32_LIBS\fR
\fB_CS_POSIX_V6_ILP32_OFF32_LINTFLAGS\fR \fB_CS_POSIX_V6_ILP32_OFFBIG_CFLAGS\fR
\fB_CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS\fR \fB_CS_POSIX_V6_ILP32_OFFBIG_LIBS\fR
\fB_CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS\fR \fB_CS_POSIX_V6_WIDTH_RESTRICTED_ENV\fR
\fB_CS_XBS5_ILP32_OFF32_CFLAGS\fR \fB_CS_XBS5_ILP32_OFF32_LDFLAGS\fR
\fB_CS_XBS5_ILP32_OFF32_LIBS\fR \fB_CS_XBS5_ILP32_OFF32_LINTFLAGS\fR
\fB_CS_XBS5_ILP32_OFFBIG_CFLAGS\fR \fB_CS_XBS5_ILP32_OFFBIG_LDFLAGS\fR
\fB_CS_XBS5_ILP32_OFFBIG_LIBS\fR \fB_CS_XBS5_ILP32_OFFBIG_LINTFLAGS\fR
.TE
.sp
.LP
The followwing symbolic constants are defined for the \fBconfstr()\fR function
for SPARC only:
.sp
.sp
.TS
l l
l l .
\fB_CS_POSIX_V6_LP64_OFF64_CFLAGS\fR \fB_CS_POSIX_V6_LP64_OFF64_LDFLAGS\fR
\fB_CS_POSIX_V6_LP64_OFF64_LIBS\fR \fB_CS_POSIX_V6_LP64_OFF64_LINTFLAGS\fR
\fB_CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS\fR \fB_CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS\fR
\fB_CS_POSIX_V6_LPBIG_OFFBIG_LIBS\fR \fB_CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS\fR
\fB_CS_XBS5_LP64_OFF64_CFLAGS\fR \fB_CS_XBS5_LP64_OFF64_LDFLAGS\fR
\fB_CS_XBS5_LP64_OFF64_LIBS\fR \fB_CS_XBS5_LP64_OFF64_LINTFLAGS\fR
\fB_CS_XBS5_LPBIG_OFFBIG_CFLAGS\fR \fB_CS_XBS5_LPBIG_OFFBIG_LDFLAGS\fR
\fB_CS_XBS5_LPBIG_OFFBIG_LIBS\fR \fB_CS_XBS5_LPBIG_OFFBIG_LINTFLAGS\fR
.TE
.sp
.LP
The following symbolic constants are defined for the \fBsysconf\fR(3C)
function:
.sp
.sp
.TS
l l
l l .
\fB_SC_2_C_BIND\fR \fB_SC_2_C_DEV\fR
\fB_SC_2_C_VERSION\fR \fB_SC_2_FORT_DEV\fR
\fB_SC_2_FORT_RUN\fR \fB_SC_2_LOCALEDEF\fR
\fB_SC_2_PBS\fR \fB_SC_2_PBS_ACCOUNTING\fR
\fB_SC_2_PBS_CHECKPOINT\fR \fB_SC_2_PBS_LOCATE\fR
\fB_SC_2_PBS_MESSAGE\fR \fB_SC_2_PBS_TRACK\fR
\fB_SC_2_SW_DEV\fR \fB_SC_2_UPE\fR
\fB_SC_2_VERSION\fR \fB_SC_ADVISORY_INFO\fR
\fB_SC_AIO_LISTIO_MAX\fR \fB_SC_AIO_MAX\fR
\fB_SC_AIO_PRIO_DELTA_MAX\fR \fB_SC_ARG_MAX\fR
\fB_SC_ASYNCHRONOUS_IO\fR \fB_SC_ATEXIT_MAX\fR
\fB_SC_AVPHYS_PAGES\fR \fB_SC_BARRIERS\fR
\fB_SC_BC_BASE_MAX\fR \fB_SC_BC_DIM_MAX\fR
\fB_SC_BC_SCALE_MAX\fR \fB_SC_BC_STRING_MAX\fR
\fB_SC_CHILD_MAX\fR \fB_SC_CLK_TCK\fR
\fB_SC_CLOCK_SELECTION\fR \fB_SC_COLL_WEIGHTS_MAX\fR
\fB_SC_CPUTIME\fR \fB_SC_DELAYTIMER_MAX\fR
\fB_SC_EXPR_NEST_MAX\fR \fB_SC_FSYNC\fR
\fB_SC_GETGR_R_SIZE_MAX\fR \fB_SC_GETPW_R_SIZE_MAX\fR
\fB_SC_HOST_NAME_MAX\fR \fB_SC_IOV_MAX\fR
\fB_SC_IPV6\fR \fB_SC_JOB_CONTROL\fR
\fB_SC_LINE_MAX\fR \fB_SC_LOGIN_NAME_MAX\fR
\fB_SC_LOGNAME_MAX\fR \fB_SC_MAPPED_FILES\fR
\fB_SC_MEMLOCK\fR \fB_SC_MEMLOCK_RANGE\fR
\fB_SC_MEMORY_PROTECTION\fR \fB_SC_MESSAGE_PASSING\fR
\fB_SC_MONOTONIC_CLOCK\fR \fB_SC_MQ_OPEN_MAX\fR
\fB_SC_MQ_PRIO_MAX\fR \fB_SC_NGROUPS_MAX\fR
\fB_SC_NPROCESSORS_CONF\fR \fB_SC_NPROCESSORS_ONLN\fR
\fB_SC_OPEN_MAX\fR \fB_SC_PAGESIZE\fR
\fB_SC_PAGE_SIZE\fR \fB_SC_PASS_MAX\fR
\fB_SC_PHYS_PAGES\fR \fB_SC_PRIORITIZED_IO\fR
\fB_SC_PRIORITY_SCHEDULING\fR \fB_SC_RAW_SOCKETS\fR
\fB_SC_READER_WRITER_LOCKS\fR \fB_SC_REALTIME_SIGNALS\fR
\fB_SC_REGEXP\fR \fB_SC_RE_DUP_MAX\fR
\fB_SC_RTSIG_MAX\fR \fB_SC_SAVED_IDS\fR
\fB_SC_SEMAPHORES\fR \fB_SC_SEM_NSEMS_MAX\fR
\fB_SC_SEM_VALUE_MAX\fR \fB_SC_SHARED_MEMORY_OBJECTS\fR
\fB_SC_SHELL\fR \fB_SC_SIGQUEUE_MAX\fR
\fB_SC_SPAWN\fR \fB_SC_SPIN_LOCKS\fR
\fB_SC_SPORADIC_SERVER\fR \fB_SC_SS_REPL_MAX\fR
\fB_SC_STREAM_MAX\fR \fB_SC_SYMLOOP_MAX\fR
\fB_SC_SYNCHRONIZED_IO\fR \fB_SC_THREAD_ATTR_STACKADDR\fR
\fB_SC_THREAD_ATTR_STACKSIZE\fR \fB_SC_THREAD_CPUTIME\fR
\fB_SC_THREAD_DESTRUCTOR_ITERATIONS\fR \fB_SC_THREAD_KEYS_MAX\fR
\fB_SC_THREAD_PRIO_INHERIT\fR \fB_SC_THREAD_PRIO_PROTECT\fR
\fB_SC_THREAD_PRIORITY_SCHEDULING\fR \fB_SC_THREAD_PROCESS_SHARED\fR
\fB_SC_THREAD_SPORADIC_SERVER\fR \fB_SC_THREADS\fR
\fB_SC_THREAD_SAFE_FUNCTIONS\fR \fB_SC_THREAD_STACK_MIN\fR
\fB_SC_THREAD_THREADS_MAX\fR \fB_SC_TIMEOUTS\fR
\fB_SC_TIMER_MAX\fR \fB_SC_TIMERS\fR
\fB_SC_TRACE\fR \fB_SC_TRACE_EVENT_FILTER\fR
\fB_SC_TRACE_EVENT_NAME_MAX\fR \fB_SC_TRACE_INHERIT\fR
\fB_SC_TRACE_LOG\fR \fB_SC_TRACE_NAME_MAX\fR
\fB_SC_TRACE_SYS_MAX\fR \fB_SC_TRACE_USER_EVENT_MAX\fR
\fB_SC_TTY_NAME_MAX\fR \fB_SC_TYPED_MEMORY_OBJECTS\fR
\fB_SC_TZNAME_MAX\fR \fB_SC_V6_ILP32_OFF32\fR
\fB_SC_V6_ILP32_OFFBIG\fR \fB_SC_V6_LP64_OFF64\fR
\fB_SC_V6_LPBIG_OFFBIG\fR \fB_SC_VERSION\fR
\fB_SC_XBS5_ILP32_OFF32\fR \fB_SC_XBS5_ILP32_OFFBIG\fR
\fB_SC_XBS5_LP64_OFF64\fR \fB_SC_XBS5_LPBIG_OFFBIG\fR
\fB_SC_XOPEN_CRYPT\fR \fB_SC_XOPEN_ENH_I18N\fR
\fB_SC_XOPEN_SHM\fR \fB_SC_XOPEN_STREAMS\fR
\fB_SC_XOPEN_UNIX\fR \fB_SC_XOPEN_VERSION\fR
\fB_SC_XOPEN_XCU_VERSION\fR
.TE
.sp
.LP
The constants \fB_SC_PAGESIZE\fR and \fB_SC_PAGE_SIZE\fR can be defined to have
the same value.
.sp
.LP
The following symbolic constants are defined for the \fBfpathconf\fR(2)
function:
.sp
.sp
.TS
l l
l l .
\fB_PC_2_SYMLINKS\fR \fB_PC_ALLOC_SIZE_MIN\fR
\fB_PC_ASYNC_IO\fR \fB_PC_CHOWN_RESTRICTED\fR
\fB_PC_FILESIZEBITS\fR \fB_PC_LINK_MAX\fR
\fB_PC_MAX_CANON\fR \fB_PC_MAX_INPUT\fR
\fB_PC_NAME_MAX\fR \fB_PC_NO_TRUNC\fR
\fB_PC_PATH_MAX\fR \fB_PC_PIPE_BUF\fR
\fB_PC_PRIO_IO\fR \fB_PC_REC_INCR_XFER_SIZE\fR
\fB_PC_REC_MAX_XFER_SIZE\fR \fB_PC_REC_MIN_XFER_SIZE\fR
\fB_PC_REC_XFER_ALIGN\fR \fB_PC_SYMLINK_MAX\fR
\fB_PC_SYNC_IO\fR \fB_PC_TIMESTAMP_RESOLUTION\fR
\fB_PC_VDISABLE\fR \fB_PC_XATTR_ENABLED\fR
\fB_PC_XATTR_EXISTS\fR
.TE
.sp
.LP
The following symbolic constants are defined for file streams:
.sp
.ne 2
.na
\fB\fBSTDIN_FILENO\fR\fR
.ad
.RS 17n
File number (\fB0\fR) of \fBstdin\fR.
.RE
.sp
.ne 2
.na
\fB\fBSTDOUT_FILENO\fR\fR
.ad
.RS 17n
File number (\fB1\fR) of \fBstout\fR.
.RE
.sp
.ne 2
.na
\fB\fBSTDERR_FILENO\fR\fR
.ad
.RS 17n
File number (\fB2\fR) of \fBstderr\fR.
.RE
.sp
.LP
The following pathnames are defined:
.sp
.ne 2
.na
\fB\fBGF_PATH\fR\fR
.ad
.RS 11n
Pathname of the group file.
.RE
.sp
.ne 2
.na
\fB\fBPF_PATH\fR\fR
.ad
.RS 11n
Pathname of the passwd file.
.RE
.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE ATTRIBUTE VALUE
_
Interface Stability Committed
_
Standard See \fBstandards\fR(5).
.TE
.SH SEE ALSO
.sp
.LP
\fBaccess\fR(2), \fBexec\fR(2), \fBfcntl\fR(2), \fBfpathconf\fR(2),
\fBlseek\fR(2), \fBconfstr\fR(3C), \fBlockf\fR(3C), \fBsysconf\fR(3C),
\fBtermios\fR(3C), \fBgroup\fR(4), \fBpasswd\fR(4), \fBattributes\fR(5),
\fBstandards\fR(5), \fBtermio\fR(7I)
|