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 Primitives |
---|
10 | |
---|
11 | @section Process Creation and Execution |
---|
12 | |
---|
13 | @subsection Process Creation |
---|
14 | |
---|
15 | @example |
---|
16 | fork(), Function, Unimplementable |
---|
17 | @end example |
---|
18 | |
---|
19 | |
---|
20 | @subsection Execute a File |
---|
21 | |
---|
22 | @example |
---|
23 | execl(), Function, Unimplementable, Requires Processes |
---|
24 | execv(), Function, Unimplementable, Requires Processes |
---|
25 | execle(), Function, Unimplementable, Requires Processes |
---|
26 | execve(), Function, Unimplementable, Requires Processes |
---|
27 | execlp(), Function, Unimplementable, Requires Processes |
---|
28 | execvp(), Function, Unimplementable, Requires Processes |
---|
29 | @end example |
---|
30 | |
---|
31 | @subsection Register Fork Handlers |
---|
32 | |
---|
33 | @example |
---|
34 | pthread_atfork(), Function, Unimplementable, Requires Processes |
---|
35 | @end example |
---|
36 | |
---|
37 | @section Process Termination |
---|
38 | |
---|
39 | @subsection Wait for Process Termination |
---|
40 | |
---|
41 | @example |
---|
42 | wait(), Function, Unimplementable, Requires Processes |
---|
43 | waitpid(), Function, Unimplementable, Requires Processes |
---|
44 | WNOHANG, Constant, Unimplementable, Requires Processes |
---|
45 | WUNTRACED, Constant, Unimplementable, Requires Processes |
---|
46 | WIFEXITED(), Function, Unimplementable, Requires Processes |
---|
47 | WEXITSTATUS(), Function, Unimplementable, Requires Processes |
---|
48 | WIFSIGNALED(), Function, Unimplementable, Requires Processes |
---|
49 | WTERMSIG(), Function, Unimplementable, Requires Processes |
---|
50 | WIFSTOPPED(), Function, Unimplementable, Requires Processes |
---|
51 | WSTOPSIG(), Function, Unimplementable, Requires Processes |
---|
52 | @end example |
---|
53 | |
---|
54 | @subsection Terminate a Process |
---|
55 | |
---|
56 | @example |
---|
57 | _exit(), Function, Unimplemented |
---|
58 | @end example |
---|
59 | |
---|
60 | @section Signals |
---|
61 | |
---|
62 | @subsection Signal Concepts |
---|
63 | |
---|
64 | @subsubsection Signal Names |
---|
65 | |
---|
66 | @example |
---|
67 | sigset_t, Type, Implemented |
---|
68 | SIG_DFL, Constant, Implemented |
---|
69 | SIG_IGN, Constant, Implemented |
---|
70 | SIG_ERR, Constant, Implemented |
---|
71 | SIGABRT, Constant, Implemented |
---|
72 | SIGALRM, Constant, Implemented |
---|
73 | SIGFPE, Constant, Implemented |
---|
74 | SIGHUP, Constant, Implemented |
---|
75 | SIGILL, Constant, Implemented |
---|
76 | SIGINT, Constant, Implemented |
---|
77 | SIGKILL, Constant, Implemented |
---|
78 | SIGPIPE, Constant, Implemented |
---|
79 | SIGQUIT, Constant, Implemented |
---|
80 | SIGSEGV, Constant, Implemented |
---|
81 | SIGTERM, Constant, Implemented |
---|
82 | SIGUSR1, Constant, Implemented |
---|
83 | SIGUSR2, Constant, Implemented |
---|
84 | SIGCHLD, Constant, Unimplemented |
---|
85 | SIGCONT, Constant, Unimplemented |
---|
86 | SIGSTOP, Constant, Unimplemented |
---|
87 | SIGTSTP, Constant, Unimplemented |
---|
88 | SIGTTIN, Constant, Unimplemented |
---|
89 | SIGTTOU, Constant, Unimplemented |
---|
90 | SIGBUS, Constant, Implemented |
---|
91 | SIGRTMIN, Constant, Implemented |
---|
92 | SIGRTMAX, Constant, Implemented |
---|
93 | @end example |
---|
94 | |
---|
95 | NOTE: SIG_ERR is technically an extension to the C Library which is |
---|
96 | not documented anywhere else according to the index. |
---|
97 | @subsubsection Signal Generation and Delivery |
---|
98 | |
---|
99 | @example |
---|
100 | struct sigevent, Type, Implemented |
---|
101 | union sigval, Type, Implemented |
---|
102 | SIGEV_NONE, Constant, Implemented |
---|
103 | SIGEV_SIGNAL, Constant, Implemented |
---|
104 | SIGEV_THREAD, Constant, Implemented |
---|
105 | @end example |
---|
106 | |
---|
107 | @subsubsection Signal Actions |
---|
108 | |
---|
109 | @example |
---|
110 | siginfo_t, Type, Implemented |
---|
111 | SI_USER, Constant, Implemented |
---|
112 | SI_QUEUE, Constant, Implemented |
---|
113 | SI_TIMER, Constant, Implemented |
---|
114 | SI_ASYNCIO, Constant, Implemented |
---|
115 | SI_MESGQ, Constant, Implemented |
---|
116 | @end example |
---|
117 | |
---|
118 | @subsection Send a Signal to a Process |
---|
119 | |
---|
120 | @example |
---|
121 | kill(), Function, Implemented |
---|
122 | @end example |
---|
123 | |
---|
124 | @subsection Manipulate Signal Sets |
---|
125 | |
---|
126 | @example |
---|
127 | sigemptyset(), Function, Implemented |
---|
128 | sigfillset(), Function, Implemented |
---|
129 | sigaddset(), Function, Implemented |
---|
130 | sigdelset(), Function, Implemented |
---|
131 | sigismember(), Function, Implemented |
---|
132 | @end example |
---|
133 | |
---|
134 | @subsection Examine and Change Signal Action |
---|
135 | |
---|
136 | @example |
---|
137 | sigaction(), Function, Implemented |
---|
138 | sigaction, Type, Implemented |
---|
139 | SA_NOCLDSTOP, Constant, Implemented |
---|
140 | SA_SIGINFO, Constant, Implemented |
---|
141 | @end example |
---|
142 | |
---|
143 | @subsection Examine and Change Blocked Signals |
---|
144 | |
---|
145 | @example |
---|
146 | pthread_sigmask(), Function, Implemented |
---|
147 | sigprocmask(), Function, Implemented |
---|
148 | SIG_BLOCK, Constant, Implemented |
---|
149 | SIG_UNBLOCK, Constant, Implemented |
---|
150 | SIG_SETMASK, Constant, Implemented |
---|
151 | @end example |
---|
152 | |
---|
153 | @subsection Examine Pending Signals |
---|
154 | |
---|
155 | @example |
---|
156 | sigpending(), Function, Implemented |
---|
157 | @end example |
---|
158 | |
---|
159 | @subsection Wait for a Signal |
---|
160 | |
---|
161 | @example |
---|
162 | sigsuspend(), Function, Implemented |
---|
163 | @end example |
---|
164 | |
---|
165 | @subsection Synchronously Accept a Signal |
---|
166 | |
---|
167 | @example |
---|
168 | sigwait(), Function, Implemented |
---|
169 | sigwaitinfo(), Function, Implemented |
---|
170 | sigtimedwait(), Function, Implemented |
---|
171 | @end example |
---|
172 | |
---|
173 | @subsection Queue a Signal to a Process |
---|
174 | |
---|
175 | @example |
---|
176 | sigqueue(), Function, Implemented |
---|
177 | @end example |
---|
178 | |
---|
179 | @subsection Send a Signal to a Thread |
---|
180 | |
---|
181 | @example |
---|
182 | pthread_kill(), Function, Implemented |
---|
183 | @end example |
---|
184 | |
---|
185 | @section Timer Operations |
---|
186 | |
---|
187 | @subsection Schedule Alarm |
---|
188 | |
---|
189 | @example |
---|
190 | alarm(), Function, Implemented |
---|
191 | @end example |
---|
192 | |
---|
193 | @subsection Suspend Process Execution |
---|
194 | |
---|
195 | @example |
---|
196 | pause(), Function, Implemented |
---|
197 | @end example |
---|
198 | |
---|
199 | @subsection Delay Process Execution |
---|
200 | |
---|
201 | @example |
---|
202 | sleep(), Function, Implemented |
---|
203 | @end example |
---|