Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C/C++ v10.0 : C library - these functions deal with process creation, execution and termination, http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
These functions deal with process creation, execution and termination,
signal handling, and timer operations.

When a new process is started, it may replace the existing process

 *  P_OVERLAY is specified with the  spawn...  functions
 *  the  exec...  routines are invoked

or the existing process may be suspended while the new process executes
(control continues at the point following the place where the new process
was started)

 *  P_WAIT is specified with the  spawn...  functions
 *  system is used

The following functions are defined:

abort
    immediate termination of process, return code 3

atexit
    register exit routine

_beginthread
    start a new thread of execution

cwait
    wait for a child process to terminate

delay
    delay for number of milliseconds

_endthread
    end the current thread

execl
    chain to program

execle
    chain to program, pass environment

execlp
    chain to program

execlpe
    chain to program, pass environment

execv
    chain to program

execve
    chain to program, pass environment

execvp
    chain to program

execvpe
    chain to program, pass environment

exit
    exit process, set return code

_exit
    exit process, set return code

onexit
    register exit routine

raise
    signal an exceptional condition

signal
    set handling for exceptional condition

sleep
    delay for number of seconds

spawnl
    create process

spawnle
    create process, set environment

spawnlp
    create process

spawnlpe
    create process, set environment

spawnv
    create process

spawnve
    create process, set environment

spawnvp
    create process

spawnvpe
    create process, set environment

system
    execute system command

wait
    wait for any child process to terminate

There are eight  spawn...  and  exec...  functions each.  The "..." is one
to three letters:

 *  "l" or "v" (one is required) to indicate the way the process parameters
    are passed
 *  "p" (optional) to indicate whether the PATH environment variable is
    searched to locate the program for the process
 *  "e" (optional) to indicate that the environment variables are being
    passed

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson