summaryrefslogtreecommitdiffstats
path: root/doc/posix_users/process.t
diff options
context:
space:
mode:
Diffstat (limited to 'doc/posix_users/process.t')
-rw-r--r--doc/posix_users/process.t132
1 files changed, 99 insertions, 33 deletions
diff --git a/doc/posix_users/process.t b/doc/posix_users/process.t
index 7b5bece910..b4a7e5b692 100644
--- a/doc/posix_users/process.t
+++ b/doc/posix_users/process.t
@@ -1,9 +1,9 @@
@c
-@c COPYRIGHT (c) 1988-1998.
-@c On-Line Applications Research Corporation (OAR).
-@c All rights reserved.
+@c COPYRIGHT (c) 1988-1998.
+@c On-Line Applications Research Corporation (OAR).
+@c All rights reserved.
@c
-@c $Id$
+@c $Id$
@c
@chapter Process Creation and Execution Manager
@@ -15,7 +15,7 @@ The process creation and execution manager is ...
The directives provided by the process creation and execution manager are:
@itemize @bullet
-@item @code{fork} - Create a Process
+@item @code{fork} - Create a Process
@item @code{execl} - Execute a File
@item @code{execv} - Execute a File
@item @code{execle} - Execute a File
@@ -43,9 +43,15 @@ A subsection is dedicated to each of this manager's directives
and describes the calling sequence, related constants, usage,
and status codes.
+@c
+@c
+@c
@page
@subsection fork - Create a Process
+@findex fork
+@cindex create a process
+
@subheading CALLING SEQUENCE:
@ifset is-C
@@ -75,17 +81,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execl - Execute a File
+@findex execl
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execl(
- const char *path,
- const char *arg,
- ...
+const char *path,
+const char *arg,
+...
);
@end example
@end ifset
@@ -109,17 +121,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execv - Execute a File
+@findex execv
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execv(
- const char *path,
- char const *argv[],
- ...
+const char *path,
+char const *argv[],
+...
);
@end example
@end ifset
@@ -143,17 +161,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execle - Execute a File
+@findex execle
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execle(
- const char *path,
- const char *arg,
- ...
+const char *path,
+const char *arg,
+...
);
@end example
@end ifset
@@ -177,17 +201,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execve - Execute a File
+@findex execve
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execve(
- const char *path,
- char *const argv[],
- char *const envp[]
+const char *path,
+char *const argv[],
+char *const envp[]
);
@end example
@end ifset
@@ -211,17 +241,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execlp - Execute a File
+@findex execlp
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execlp(
- const char *file,
- const char *arg,
- ...
+const char *file,
+const char *arg,
+...
);
@end example
@end ifset
@@ -245,17 +281,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection execvp - Execute a File
+@findex execvp
+@cindex execute a file
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int execvp(
- const char *file,
- char *const argv[]
- ...
+const char *file,
+char *const argv[]
+...
);
@end example
@end ifset
@@ -279,9 +321,15 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection pthread_atfork - Register Fork Handlers
+@findex pthread_atfork
+@cindex register fork handlers
+
@subheading CALLING SEQUENCE:
@ifset is-C
@@ -289,9 +337,9 @@ NONE
#include <sys/types.h>
int pthread_atfork(
- void (*prepare)(void),
- void (*parent)(void),
- void (*child)(void)
+void (*prepare)(void),
+void (*parent)(void),
+void (*child)(void)
);
@end example
@end ifset
@@ -315,18 +363,24 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection wait - Wait for Process Termination
+@findex wait
+@cindex wait for process termination
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
#include <sys/types.h>
#include <sys/wait.h>
-
+
int wait(
- int *stat_loc
+int *stat_loc
);
@end example
@end ifset
@@ -350,17 +404,23 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection waitpid - Wait for Process Termination
+@findex waitpid
+@cindex wait for process termination
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
int wait(
- pid_t pid,
- int *stat_loc,
- int options
+pid_t pid,
+int *stat_loc,
+int options
);
@end example
@end ifset
@@ -384,15 +444,21 @@ This routine is not supported by RTEMS.
NONE
+@c
+@c
+@c
@page
@subsection _exit - Terminate a Process
+@findex _exit
+@cindex terminate a process
+
@subheading CALLING SEQUENCE:
@ifset is-C
@example
void _exit(
- int status
+int status
);
@end example
@end ifset
@@ -411,4 +477,4 @@ The @code{_exit()} function terminates the calling process.
@subheading NOTES:
In RTEMS, a process is equivalent to the entire application on a single
-processor. Invoking this service terminates the application.
+processor. Invoking this service terminates the application.