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: #ifndef _SYS_UNISTD_H_
36: #define _SYS_UNISTD_H_
37:
38: #include <sys/cdefs.h>
39:
40:
41:
42: #define _POSIX_JOB_CONTROL 1
43:
44: #define _POSIX_SAVED_IDS 1
45:
46: #define _POSIX_VERSION 199009L
47: #define _POSIX2_VERSION 199212L
48:
49:
50:
51: #define _POSIX_CHOWN_RESTRICTED 1
52:
53: #define _POSIX_MONOTONIC_CLOCK 200112L
54:
55: #define _POSIX_NO_TRUNC 1
56:
57: #define _POSIX_VDISABLE (0377)
58:
59: #define _POSIX_FSYNC 1
60:
61:
62: #define F_OK 0
63: #define X_OK 0x01
64: #define W_OK 0x02
65: #define R_OK 0x04
66:
67:
68: #define SEEK_SET 0
69: #define SEEK_CUR 1
70: #define SEEK_END 2
71:
72: #if __BSD_VISIBLE
73:
74: #define L_SET SEEK_SET
75: #define L_INCR SEEK_CUR
76: #define L_XTND SEEK_END
77:
78:
79: struct __tfork {
80: void *tf_tcb;
81: pid_t *tf_tid;
82: int tf_flags;
83: };
84: #endif
85:
86:
87: #define _PC_LINK_MAX 1
88: #define _PC_MAX_CANON 2
89: #define _PC_MAX_INPUT 3
90: #define _PC_NAME_MAX 4
91: #define _PC_PATH_MAX 5
92: #define _PC_PIPE_BUF 6
93: #define _PC_CHOWN_RESTRICTED 7
94: #define _PC_NO_TRUNC 8
95: #define _PC_VDISABLE 9
96:
97:
98: #define _SC_ARG_MAX 1
99: #define _SC_CHILD_MAX 2
100: #define _SC_CLK_TCK 3
101: #define _SC_NGROUPS_MAX 4
102: #define _SC_OPEN_MAX 5
103: #define _SC_JOB_CONTROL 6
104: #define _SC_SAVED_IDS 7
105: #define _SC_VERSION 8
106: #define _SC_BC_BASE_MAX 9
107: #define _SC_BC_DIM_MAX 10
108: #define _SC_BC_SCALE_MAX 11
109: #define _SC_BC_STRING_MAX 12
110: #define _SC_COLL_WEIGHTS_MAX 13
111: #define _SC_EXPR_NEST_MAX 14
112: #define _SC_LINE_MAX 15
113: #define _SC_RE_DUP_MAX 16
114: #define _SC_2_VERSION 17
115: #define _SC_2_C_BIND 18
116: #define _SC_2_C_DEV 19
117: #define _SC_2_CHAR_TERM 20
118: #define _SC_2_FORT_DEV 21
119: #define _SC_2_FORT_RUN 22
120: #define _SC_2_LOCALEDEF 23
121: #define _SC_2_SW_DEV 24
122: #define _SC_2_UPE 25
123: #define _SC_STREAM_MAX 26
124: #define _SC_TZNAME_MAX 27
125: #define _SC_PAGESIZE 28
126: #define _SC_PAGE_SIZE _SC_PAGESIZE
127: #define _SC_FSYNC 29
128: #define _SC_XOPEN_SHM 30
129: #define _SC_SEM_NSEMS_MAX 31
130: #define _SC_SEM_VALUE_MAX 32
131: #define _SC_HOST_NAME_MAX 33
132: #define _SC_MONOTONIC_CLOCK 34
133:
134:
135: #define _SC_GETGR_R_SIZE_MAX 100
136: #define _SC_GETPW_R_SIZE_MAX 101
137: #define _SC_LOGIN_NAME_MAX 102
138: #define _SC_THREAD_SAFE_FUNCTIONS 103
139: #ifdef notyet
140: #define _SC_THREAD_DESTRUCTOR_ITERATIONS
141: #define _SC_THREAD_KEYS_MAX
142: #define _SC_THREAD_STACK_MIN
143: #define _SC_THREAD_THREADS_MAX
144: #define _SC_TTY_NAME_MAX
145: #define _SC_THREADS
146: #define _SC_THREAD_ATTR_STACKADDR
147: #define _SC_THREAD_ATTR_STACKSIZE
148: #define _SC_THREAD_PRIORITY_SCHEDULING
149: #define _SC_THREAD_PRIO_INHERIT
150: #define _SC_THREAD_PRIO_PROTECT
151: #define _SC_THREAD_PROCESS_SHARED
152: #endif
153:
154: #define _SC_PHYS_PAGES 500
155: #define _SC_AVPHYS_PAGES 501
156: #define _SC_NPROCESSORS_CONF 502
157: #define _SC_NPROCESSORS_ONLN 503
158:
159:
160: #define _CS_PATH 1
161:
162: #endif