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

tdm_execve(2) OSS System Calls Reference Manual
NAME
tdm_execve - Executes a file with HP extensions
LIBRARY
G-series native OSS processes: /G/system/sysnn/zossksrl
H-series OSS processes: /G/system/zdllnnn/zosskdll
SYNOPSIS
#include <tdmext.h>
[ extern char **environ; ]
int tdm_execve(
const char path,
char const argv[],
char const envp[],
const struct process_extension pe_parms,
struct process_extension_results
pr_results);
PARAMETERS
**environ Points to an array of character pointers to environment strings. The environment
strings dene the OSS environment for the calling process. The environ array is
terminated by a null pointer.
path Points to a null-terminated string containing a pathname that identifies the new
process image file. The pathname is absolute if it starts with a slash (/) character.
Otherwise, the pathname is relative and is resolved by prexing the current
working directory.
argv[] Specifies an array of character pointers to null-terminated strings containing
arguments to be passed to the main function of the new program. argv[0] should
point to the null-terminated string containing the filename of the new process
image. The last member of this array must be a null pointer.
envp[] Species an array of character pointers to null-terminated strings that describe
the environment for the new process.
pe_parms Points to the input structure containing Guardian process attributes to be
assigned to the new process. The structure must be defined locally to match the
definition in the tdmext.h header file. The local structure must be initialized
before its first use. Initialization can be done by using the #define
DEFAULT_PROCESS_EXTENSION, as defined in the tdmext.h header file.
The initialized values can then be modified as appropriate for the call. When
this parameter contains a null pointer, the tdm_execve() function assumes
default Guardian attributes.
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 must be defined locally to match the denition in the tdmext.h header file.
The local structure must be initialized before its first use. Initialization can be
done using the #define DEFAULT_PROCESS_EXTENSION_RESULTS,as
defined in the tdmext.h header file. |
See the process_extension_results(5) reference page for information about the |
content of the structure. The tdmext.h header file 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 |
82 Hewlett-Packard Company 527186-003