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

Miscellaneous process_extension_results(5)
NAME
process_extension_results
- Contains the status of a process creation attempt
SYNOPSIS
#include <tdmext.h>
struct process_extension_results
pr_results;
PARAMETERS
pr_results Points to the output structure containing optional process identication and error
information. In case of error, this structure provides additional information
including the PROCESS_LAUNCH_ procedure error and error detail. The struc-
ture 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.
DESCRIPTION
The process_extension_results structure contains status information after a call to the
tdm_execve(), tdm_execvep(), tdm_fork(), tdm_spawn(),ortdm_spawnp() function. This
output structure is also used by Guardian environment procedures such as PROCESS_SPAWN_;
therefore, some returned values dened in the tdmext.h header le are not returned to an OSS
process and are not described in this reference page.
Not all of the returned values described in the following subsection are returned for a call to a
specic OSS function.
The tdmext.h header le is not kept current when new error codes are dened for process crea-
tion functions. The list of _TPC_ macros described in this 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 Pro- |
cedure Calls Reference Manual (see the table entitled "Summary of Process Creation Errors").
Output Structure Information
If the pr_results parameter does not contain a null pointer, it points to an output structure dened
in the tdmext.h header le. This structure can contain elds that vary from release to release,
including reserved and ller elds.
First, the output structure must be initialized using the #dene
DEFAULT_PROCESS_EXTENSION_RESULTS. This initialization sets the value of the
pr_len eld to the correct value for the current release. The value of the pr_len eld should not
be modied after being set by #dene DEFAULT_PROCESS_EXTENSION_RESULTS.
The following elds are meaningful in the current release:
typedef struct process_extension_results {
long pr_len;
short pr_phandle[10];
long pr_pid;
long pr_errno;
short pr_TPCerror;
short pr_TPCdetail;
} process_extension_results_def;
527186-003 Hewlett-Packard Company 1239