Os9fork
create a process
os9fork
char *modname
int paramsize
char *paramptr
int type
int lang
int datasize
Assembler Equivalent
os9 F$FORK
Description
The action of F$FORK is desribed fully in the OS-9 System
Programmer's Manual. Os9fork will create a process that will
run concurrently with the calling process. When the forked
process terminates, it will return to the calling process.
"Modname" should point to the name of the desired module.
"Paramsize" is the length of the parameter string which should
normally be terminated with a '\n', and "paramptr" points to
the parameter string. "Type" is the module type as found in
the header(normally 1: program), and "lang" should match the
language nibble in the module header (C programs have 1 for
6809 machine code here). "Datasize" may be zero, or it may
contain the number of 256 byte pages to give to the new process
as initial allocation of memory.
Diagnostics
-1 will be returned on error, or the ID number of the child
process will be returned on success.