Guardian Procedure Calls Reference Manual
PROCESS_SPAWN_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Returned Value
Structure Definitions for fdinfo
Structure Definitions for inheritance
Structure Definitions for process-extension
Structure Definitions for process-results
Nowait Considerations
64-bit Considerations
Considerations for Resolving File Names
Considerations for Resolving External References
Considerations for Reserved Names
Keeping Track of OSS Child Processes
Creator Access ID and Process Access ID
Compatibility Considerations
DEFINE Considerations
Batch Processing Considerations
Safeguard Considerations
File Privileges Considerations
OSS Process Pair Considerations
OSS SEEP Considerations
Related Programming Manuals
Summary
NOTE: The TAL or pTAL syntax for this procedure is declared only in the EXTDECS0 file.
The PROCESS_SPAWN_ procedure creates a new Open System Services (OSS) process and,
optionally, assigns a number of process attributes. You can use this procedure to create only OSS
processes, although you can call it from either a Guardian process or an OSS process. To create
a Guardian process, call the PROCESS_LAUNCH_ procedure.
The PROCESS_SPAWN_ procedure can be used to create a 32-bit or 64-bit OSS process when
called by a Guardian process or a 32-bit OSS process.
The PROCESS_SPAWN_ procedure cannot be called unconditionally from a 64-bit OSS process.
However, this procedure can be called by a 64-bit process in a mixed-mode programming
environment if the passed parameters are allocated from 32-bit addressable memory using
malloc32(). For more information, see the 64-bit Considerations (page 1115).
DEFINEs can be propagated to the new process. The DEFINEs can come from the caller's context
or from a buffer of DEFINEs saved by the DEFINESAVE procedure.
PROCESS_SPAWN_ differs from the OSS functions that create OSS processes in these ways:
• You can specify that the new process be created in either a waited or nowait manner. When
it is created in a waited manner, identification for the new process is returned directly to the
PROCESS_SPAWN_ Procedure 1095