source: rtems/doc/posix_users/process.t @ c4dddee

4.104.114.84.95
Last change on this file since c4dddee was c4dddee, checked in by Joel Sherrill <joel.sherrill@…>, on 11/19/98 at 16:06:46

Major update/merge of POSIX manual.

  • Property mode set to 100644
File size: 5.6 KB
Line 
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 Creation and Execution Manager
10
11@section Introduction
12
13The process creation and execution manager is ...
14
15The directives provided by the process creation and execution manager are:
16
17@itemize @bullet
18@item @code{fork} - Create a Process
19@item @code{execl} - Execute a File
20@item @code{execv} - Execute a File
21@item @code{execle} - Execute a File
22@item @code{execve} - Execute a File
23@item @code{execlp} - Execute a File
24@item @code{execvp} - Execute a File
25@item @code{pthread_atfork} - Register Fork Handlers
26@item @code{wait} - Wait for Process Termination
27@item @code{waitpid} - Wait for Process Termination
28@item @code{_exit} - Terminate a Process
29@end itemize
30
31@section Background
32
33There is currently no text in this section.
34
35@section Operations
36
37There is currently no text in this section.
38
39@section Directives
40
41This section details the process creation and execution manager's directives.
42A subsection is dedicated to each of this manager's directives
43and describes the calling sequence, related constants, usage,
44and status codes.
45
46@page
47@subsection fork - Create a Process
48
49@subheading CALLING SEQUENCE:
50
51@ifset is-C
52@example
53#include <sys/types.h>
54
55int fork( void );
56@end example
57@end ifset
58
59@ifset is-Ada
60@end ifset
61
62@subheading STATUS CODES:
63
64@table @b
65@item ENOSYS
66This routine is not supported by RTEMS.
67
68@end table
69
70@subheading DESCRIPTION:
71
72This routine is not supported by RTEMS.
73
74@subheading NOTES:
75
76NONE
77
78@page
79@subsection execl - Execute a File
80
81@subheading CALLING SEQUENCE:
82
83@ifset is-C
84@example
85int execl(
86  const char *path,
87  const char *arg,
88  ...
89);
90@end example
91@end ifset
92
93@ifset is-Ada
94@end ifset
95
96@subheading STATUS CODES:
97
98@table @b
99@item ENOSYS
100This routine is not supported by RTEMS.
101
102@end table
103
104@subheading DESCRIPTION:
105
106This routine is not supported by RTEMS.
107
108@subheading NOTES:
109
110NONE
111
112@page
113@subsection execv - Execute a File
114
115@subheading CALLING SEQUENCE:
116
117@ifset is-C
118@example
119int execv(
120  const char *path,
121  char const *argv[],
122  ...
123);
124@end example
125@end ifset
126
127@ifset is-Ada
128@end ifset
129
130@subheading STATUS CODES:
131
132@table @b
133@item ENOSYS
134This routine is not supported by RTEMS.
135
136@end table
137
138@subheading DESCRIPTION:
139
140This routine is not supported by RTEMS.
141
142@subheading NOTES:
143
144NONE
145
146@page
147@subsection execle - Execute a File
148
149@subheading CALLING SEQUENCE:
150
151@ifset is-C
152@example
153int execle(
154  const char *path,
155  const char *arg,
156  ...
157);
158@end example
159@end ifset
160
161@ifset is-Ada
162@end ifset
163
164@subheading STATUS CODES:
165
166@table @b
167@item ENOSYS
168This routine is not supported by RTEMS.
169
170@end table
171
172@subheading DESCRIPTION:
173
174This routine is not supported by RTEMS.
175
176@subheading NOTES:
177
178NONE
179
180@page
181@subsection execve - Execute a File
182
183@subheading CALLING SEQUENCE:
184
185@ifset is-C
186@example
187int execve(
188  const char *path,
189  char *const argv[],
190  char *const envp[]
191);
192@end example
193@end ifset
194
195@ifset is-Ada
196@end ifset
197
198@subheading STATUS CODES:
199
200@table @b
201@item ENOSYS
202This routine is not supported by RTEMS.
203
204@end table
205
206@subheading DESCRIPTION:
207
208This routine is not supported by RTEMS.
209
210@subheading NOTES:
211
212NONE
213
214@page
215@subsection execlp - Execute a File
216
217@subheading CALLING SEQUENCE:
218
219@ifset is-C
220@example
221int execlp(
222  const char *file,
223  const char *arg,
224  ...
225);
226@end example
227@end ifset
228
229@ifset is-Ada
230@end ifset
231
232@subheading STATUS CODES:
233
234@table @b
235@item ENOSYS
236This routine is not supported by RTEMS.
237
238@end table
239
240@subheading DESCRIPTION:
241
242This routine is not supported by RTEMS.
243
244@subheading NOTES:
245
246NONE
247
248@page
249@subsection execvp - Execute a File
250
251@subheading CALLING SEQUENCE:
252
253@ifset is-C
254@example
255int execvp(
256  const char *file,
257  char *const argv[]
258  ...
259);
260@end example
261@end ifset
262
263@ifset is-Ada
264@end ifset
265
266@subheading STATUS CODES:
267
268@table @b
269@item ENOSYS
270This routine is not supported by RTEMS.
271
272@end table
273
274@subheading DESCRIPTION:
275
276This routine is not supported by RTEMS.
277
278@subheading NOTES:
279
280NONE
281
282@page
283@subsection pthread_atfork - Register Fork Handlers
284
285@subheading CALLING SEQUENCE:
286
287@ifset is-C
288@example
289#include <sys/types.h>
290
291int pthread_atfork(
292  void (*prepare)(void),
293  void (*parent)(void),
294  void (*child)(void)
295);
296@end example
297@end ifset
298
299@ifset is-Ada
300@end ifset
301
302@subheading STATUS CODES:
303
304@table @b
305@item ENOSYS
306This routine is not supported by RTEMS.
307
308@end table
309
310@subheading DESCRIPTION:
311
312This routine is not supported by RTEMS.
313
314@subheading NOTES:
315
316NONE
317
318@page
319@subsection wait - Wait for Process Termination
320
321@subheading CALLING SEQUENCE:
322
323@ifset is-C
324@example
325#include <sys/types.h>
326#include <sys/wait.h>
327 
328int wait(
329  int *stat_loc
330);
331@end example
332@end ifset
333
334@ifset is-Ada
335@end ifset
336
337@subheading STATUS CODES:
338
339@table @b
340@item ENOSYS
341This routine is not supported by RTEMS.
342
343@end table
344
345@subheading DESCRIPTION:
346
347This routine is not supported by RTEMS.
348
349@subheading NOTES:
350
351NONE
352
353@page
354@subsection waitpid - Wait for Process Termination
355
356@subheading CALLING SEQUENCE:
357
358@ifset is-C
359@example
360int wait(
361  pid_t  pid,
362  int   *stat_loc,
363  int    options
364);
365@end example
366@end ifset
367
368@ifset is-Ada
369@end ifset
370
371@subheading STATUS CODES:
372
373@table @b
374@item ENOSYS
375This routine is not supported by RTEMS.
376
377@end table
378
379@subheading DESCRIPTION:
380
381This routine is not supported by RTEMS.
382
383@subheading NOTES:
384
385NONE
386
387@page
388@subsection _exit - Terminate a Process
389
390@subheading CALLING SEQUENCE:
391
392@ifset is-C
393@example
394void _exit(
395  int status
396);
397@end example
398@end ifset
399
400@ifset is-Ada
401@end ifset
402
403@subheading STATUS CODES:
404
405NONE
406
407@subheading DESCRIPTION:
408
409The @code{_exit()} function terminates the calling process.
410
411@subheading NOTES:
412
413In RTEMS, a process is equivalent to the entire application on a single
414processor.  Invoking this service terminates the application.
Note: See TracBrowser for help on using the repository browser.