source: rtems-docs/posix1003_1/process_primitives.rst @ 9aafb39

4.115
Last change on this file since 9aafb39 was 489740f, checked in by Chris Johns <chrisj@…>, on 05/20/16 at 02:47:09

Set SPDX License Identifier in each source file.

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