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