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

tdm_spawnp(2) OSS System Calls Reference Manual
NAME
tdm_spawnp - Executes a new process with HP extensions
LIBRARY
G-series native OSS processes: /G/system/sysnn/zossksrl
H-series OSS processes: /G/system/zdllnnn/zosskdll
SYNOPSIS
#include <spawn.h>
#include <tdmext.h>
[ extern char **environ; ]
pid_t tdm_spawnp(
const char le,
const int fd_count,
const int fd_map[],
const struct inheritance inherit,
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 parent process. The environ array is
terminated by a null pointer.
file Points to a pathname that identies the new process image le. If the pathname:
Starts with a slash ( / ) character; it is the absolute pathname.
Does not start with a slash but does contain a slash; the pathname
resolves relative to the current working directory.
Contains no slash, the system searches the directories listed in the PATH
environment variable for the le and prexes the directory in which the
le is found.
fd_count Species the number of le descriptors designated by the fd_map[]parameter.
All le descriptors higher than fd_count are closed in the child process. This
parameter can take values from 0 (zero) through POSIX_OPEN_MAX.
fd_map[] Maps le descriptors from the parent process to the child process. File descrip-
tors identied with the value SPAWN_FDCLOSED are closed in the child pro-
cess.
If this parameter is a null pointer, all open OSS le descriptors of the parent pro-
cess (except for les opened by Guardian function or procedure calls and those
with the FD_CLOEXEC attribute ag set) are inherited by the child process.
Such inherited le descriptors behave here as they do for the tdm_execvep()
function.
856 Hewlett-Packard Company 527186-003