Open System Services System Calls Reference Manual (G06.25+, H06.03+)

tdm_fork(2) OSS System Calls Reference Manual
NAME
tdm_fork - Creates a new process with HP extensions
LIBRARY
G-series native OSS processes: system library
H-series OSS processes: implicit libraries
SYNOPSIS
#include <tdmext.h>
pid_t tdm_fork(
const struct process_extension *pe_parms,
struct process_extension_results
*pr_results);
PARAMETERS
pe_parms Points to the input structure containing Guardian process attributes to be
assigned to the child process. The structure is dened in the tdmext.h header
le.
When this parameter contains a null pointer, the tdm_fork() function assumes
default Guardian attributes. Otherwise, the structure must be dened locally and
initialized before its rst use. Initialization is done using the #dene
DEFAULT_PROCESS_EXTENSION,asdened in the tdmext.h header le.
The initialized values can then be modied as appropriate for the call.
pr_results Points to the output structure containing optional process identication and error
information. On successful return, this information includes the Guardian pro-
cess handle and OSS process ID (PID) of the process. If the call is not successful,
the OSS error number and Guardian PROCESS_LAUNCH_ procedure error and
error detail are returned in this structure. The structure is dened in the
tdmext.h header le.
The structure must be dened locally and initialized before its rst use. Initiali-
zation is done using the #dene
DEFAULT_PROCESS_EXTENSION_RESULTS,asdened in the tdmext.h
header le.
See the process_extension_results(5) reference page for information about the |
content of the structure. The tdmext.h header le is not kept current when new |
error codes are dened for process creation functions. The list of _TPC_ macros |
described in that reference page is not complete; for a current description of error |
macros and error codes, see the Guardian header le |
$SYSTEM.ZSPIDEF.ZGRDC or the summary of process-creation errors in the |
Guardian Procedure Calls Reference Manual (see the table entitled "Summary |
of Process Creation Errors").
DESCRIPTION
The tdm_fork() function creates a child OSS process. The created process is referred to as the
child and the caller as the parent. The child process executes the same program le as the parent.
The child process retains many of its parents OSS process attributes and obtains system-derived
values for others. For Guardian process attributes, the child process can retain default values or
can have values specied in the tdm_fork() call.
830 Hewlett-Packard Company 527186-003