1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | Process Environment |
---|
4 | ################### |
---|
5 | |
---|
6 | Process Identification |
---|
7 | ====================== |
---|
8 | |
---|
9 | Get Process and Parent Process IDs |
---|
10 | ---------------------------------- |
---|
11 | |
---|
12 | .. code:: c |
---|
13 | |
---|
14 | getpid(), Function, Implemented, SUSP Functionality |
---|
15 | getppid(), Function, Implemented, SUSP Functionality |
---|
16 | |
---|
17 | User Identification |
---|
18 | =================== |
---|
19 | |
---|
20 | Get Real User Effective User Real Group and Effective Group IDs |
---|
21 | --------------------------------------------------------------- |
---|
22 | |
---|
23 | .. code:: c |
---|
24 | |
---|
25 | getuid(), Function, Implemented, SUSP Functionality |
---|
26 | geteuid(), Function, Implemented, SUSP Functionality |
---|
27 | getgid(), Function, Implemented, SUSP Functionality |
---|
28 | getegid(), Function, Implemented, SUSP Functionality |
---|
29 | |
---|
30 | Set User and Group IDs |
---|
31 | ---------------------- |
---|
32 | |
---|
33 | .. code:: c |
---|
34 | |
---|
35 | setuid(), Function, Implemented, SUSP Functionality |
---|
36 | setgid(), Function, Implemented, SUSP Functionality |
---|
37 | |
---|
38 | Get Supplementary Group IDs |
---|
39 | --------------------------- |
---|
40 | |
---|
41 | .. code:: c |
---|
42 | |
---|
43 | getgroups(), Function, Implemented, SUSP Functionality |
---|
44 | |
---|
45 | Get User Name |
---|
46 | ------------- |
---|
47 | |
---|
48 | .. code:: c |
---|
49 | |
---|
50 | getlogin(), Function, Implemented, SUSP Functionality |
---|
51 | getlogin_r(), Function, Implemented, SUSP Functionality |
---|
52 | |
---|
53 | Process Groups |
---|
54 | ============== |
---|
55 | |
---|
56 | Get Process Group ID |
---|
57 | -------------------- |
---|
58 | |
---|
59 | .. code:: c |
---|
60 | |
---|
61 | getpgrp(), Function, Implemented, SUSP Functionality |
---|
62 | |
---|
63 | Create Session and Set Process Group ID |
---|
64 | --------------------------------------- |
---|
65 | |
---|
66 | .. code:: c |
---|
67 | |
---|
68 | setsid(), Function, Implemented, SUSP Functionality |
---|
69 | |
---|
70 | Set Process Group ID for Job Control |
---|
71 | ------------------------------------ |
---|
72 | |
---|
73 | .. code:: c |
---|
74 | |
---|
75 | setpgid(), Function, Dummy Implementation |
---|
76 | |
---|
77 | System Identification |
---|
78 | ===================== |
---|
79 | |
---|
80 | Get System Name |
---|
81 | --------------- |
---|
82 | |
---|
83 | .. code:: c |
---|
84 | |
---|
85 | struct utsname, Type, Implemented |
---|
86 | uname(), Function, Implemented |
---|
87 | |
---|
88 | Time |
---|
89 | ==== |
---|
90 | |
---|
91 | Get System Time |
---|
92 | --------------- |
---|
93 | |
---|
94 | .. code:: c |
---|
95 | |
---|
96 | time(), Function, Implemented |
---|
97 | |
---|
98 | Get Process Times |
---|
99 | ----------------- |
---|
100 | |
---|
101 | .. code:: c |
---|
102 | |
---|
103 | struct tms, Type, Implemented |
---|
104 | times(), Function, Implemented |
---|
105 | |
---|
106 | NOTE: ``times`` always returns 0 for tms_stime, tms_cutime, and |
---|
107 | tms_cstime fields of the ``struct tms`` returned. |
---|
108 | |
---|
109 | Environment Variables |
---|
110 | ===================== |
---|
111 | |
---|
112 | Environment Access |
---|
113 | ------------------ |
---|
114 | |
---|
115 | .. code:: c |
---|
116 | |
---|
117 | getenv(), Function, Implemented |
---|
118 | |
---|
119 | Terminal Identification |
---|
120 | ======================= |
---|
121 | |
---|
122 | Generate Terminal Pathname |
---|
123 | -------------------------- |
---|
124 | |
---|
125 | .. code:: c |
---|
126 | |
---|
127 | ctermid(), Function, Implemented |
---|
128 | |
---|
129 | Determine Terminal Device Name |
---|
130 | ------------------------------ |
---|
131 | |
---|
132 | .. code:: c |
---|
133 | |
---|
134 | ttyname(), Function, Implemented, untested |
---|
135 | ttyname_r(), Function, Implemented, untested |
---|
136 | isatty(), Function, Implemented |
---|
137 | |
---|
138 | Configurable System Variables |
---|
139 | ============================= |
---|
140 | |
---|
141 | Get Configurable System Variables |
---|
142 | --------------------------------- |
---|
143 | |
---|
144 | .. code:: c |
---|
145 | |
---|
146 | sysconf(), Function, Dummy Implementation |
---|
147 | _SC_AIO_LISTIO_MAX, Constant, Implemented |
---|
148 | _SC_AIO_MAX, Constant, Implemented |
---|
149 | _SC_AIO_PRIO_DELTA_MAX, Constant, Implemented |
---|
150 | _SC_ARG_MAX, Constant, Implemented |
---|
151 | _SC_CHILD_MAX, Constant, Implemented |
---|
152 | _SC_CLK_TCK, Constant, Implemented |
---|
153 | CLK_TCK, Constant, Implemented |
---|
154 | _SC_DELAYTIMER_MAX, Constant, Implemented |
---|
155 | _SC_GETGR_R_SIZE_MAX, Constant, Implemented |
---|
156 | _SC_GETPW_R_SIZE_MAX, Constant, Implemented |
---|
157 | _SC_LOGIN_NAME_MAX, Constant, Implemented |
---|
158 | _SC_MQ_OPEN_MAX, Constant, Implemented |
---|
159 | _SC_MQ_PRIO_MAX, Constant, Implemented |
---|
160 | _SC_NGROUPS_MAX, Constant, Implemented |
---|
161 | _SC_OPEN_MAX, Constant, Implemented |
---|
162 | _SC_PAGESIZE, Constant, Implemented |
---|
163 | _SC_RTSIG_MAX, Constant, Implemented |
---|
164 | _SC_SEM_NSEMS_MAX, Constant, Implemented |
---|
165 | _SC_SEM_VALUE_MAX, Constant, Implemented |
---|
166 | _SC_SIGQUEUE_MAX, Constant, Implemented |
---|
167 | _SC_STREAM_MAX, Constant, Implemented |
---|
168 | _SC_THREAD_DESTRUCTOR_ITERATIONS, Constant, Implemented |
---|
169 | _SC_THREAD_KEYS_MAX, Constant, Implemented |
---|
170 | _SC_THREAD_STACK_MIN, Constant, Implemented |
---|
171 | _SC_THREAD_THREADS_MAX, Constant, Implemented |
---|
172 | _SC_TIMER_MAX, Constant, Implemented |
---|
173 | _SC_TTY_NAME_MAX, Constant, Implemented |
---|
174 | _SC_TZNAME_MAX, Constant, Implemented |
---|
175 | _SC_ASYNCHRONOUS_IO, Constant, Implemented |
---|
176 | _SC_FSYNC, Constant, Implemented |
---|
177 | _SC_JOB_CONROL, Constant, Implemented |
---|
178 | _SC_MAPPED_FILES, Constant, Implemented |
---|
179 | _SC_MEMLOCK, Constant, Implemented |
---|
180 | _SC_MEMLOCK_RANGE, Constant, Implemented |
---|
181 | _SC_MEMORY_PROTECTION, Constant, Implemented |
---|
182 | _SC_MESSAGE_PASSING, Constant, Implemented |
---|
183 | _SC_PRIORITIZED_IO, Constant, Implemented |
---|
184 | _SC_PRIORITY_SCHEDULING, Constant, Unimplemented |
---|
185 | _SC_REALTIME_SIGNALS, Constant, Implemented |
---|
186 | _SC_SAVED_IDS, Constant, Implemented |
---|
187 | _SC_SEMAPHORES, Constant, Implemented |
---|
188 | _SC_SHARED_MEMORY_OBJECTS, Constant, Implemented |
---|
189 | _SC_SYNCHRONIZED_IO, Constant, Implemented |
---|
190 | _SC_TIMERS, Constant, Implemented |
---|
191 | _SC_THREADS, Constant, Implemented |
---|
192 | _SC_THREAD_ATTR_STACKADDR, Constant, Implemented |
---|
193 | _SC_THREAD_ATTR_STACKSIZE, Constant, Implemented |
---|
194 | _SC_THREAD_PRIORITY_SCHEDULING, Constant, Implemented |
---|
195 | _SC_THREAD_PRIO_INHERIT, Constant, Implemented |
---|
196 | _SC_THREAD_PRIO_PROTECT, Constant, Unimplemented |
---|
197 | _SC_THREAD_PROCESS_SHARED, Constant, Implemented |
---|
198 | _SC_THREAD_SAFE_FUNCTIONS, Constant, Implemented |
---|
199 | _SC_VERSION, Constant, Implemented |
---|
200 | |
---|
201 | .. COMMENT: COPYRIGHT (c) 1988-2002. |
---|
202 | |
---|
203 | .. COMMENT: On-Line Applications Research Corporation (OAR). |
---|
204 | |
---|
205 | .. COMMENT: All rights reserved. |
---|
206 | |
---|