#include <spawn.h> #include <qlg.h> pid_t QlgSpawnp(const Qlg_Path_Name_T *file, const int fd_count, const int fd_map[], const struct inheritance *inherit, char * const argv[], char * const envp[]);
The QlgSpawnp() function, like the spawnp() function, creates a child process that inherits specific attributes from the parent. The difference is that for the file parameter, the QlgSpawnp() function takes a pointer to a Qlg_Path_Name_T structure, while the spawnp() function takes a pointer to a character string in the ccsid of the job.
Limited information about the file parameter is provided here. For more information about the file parameter and for a discussion of other parameters, authorities required, and return values, see spawnp()--Spawn Process with Path.
See spawnp()--Spawn Process with Path for a complete discussion of usage information for QlgSpawnp(). In addition, the following should be noted specifically for QlgSpawnp().
Note: All of the related information for spawnp() applies to QlgSpawn().
For an example of using this function, see the example in the QlgSpawn--Spawn Process (using NLS-enabled path name) API.