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