Process-Related APIs

APIs that perform process-related or other general operations are discussed here. These APIs are C language functions that can be used in ILE C/400 programs.

Figure 1-1. Process-Related Functions
Function Description
getopt() Get flag letters from argument vector
getpgrp() Get process group ID
getpid() Get process ID
getppid() Get process ID of parent process
pipe() Create interprocess channel
Qp0wChkChld() Check status for child processes
Qp0wChkPgrp() Check status for process group
Qp0wChkPid() Check status for process ID
Qp0wGetJobID() Get qualified job name and ID for process ID
Qp0wGetPgrp() Get process group ID
Qp0wGetPid() Get process ID
Qp0wGetPidNoInit Get process ID without initializing for signals
Qp0wGetPPid() Get process ID of parent process
Qp0zEndTerminal() End a generic terminal
Qp0zGetTerminalPid() Get process ID for a generic terminal
Qp0zIsATerminal() Determine whether descriptor is connected to a generic terminal
Qp0zRunTerminal() Run a generic terminal
Qp0zStartTerminal() Start a generic terminal
Qp0zSystem() Run a CL command
setpgid() Set process group ID for job control
spawn() Spawn process
spawnp() Spawn process with path
wait() Wait for child process to end
waitpid() Wait for specific child process

Note: These functions use header (include) files from the library QSYSINC, which is optionally installable. Make sure QSYSINC is installed on your system before using any of the functions. See Header Files for UNIX-Type Functions for the file and member name of each header file.


Top | About Shell Scripts | UNIX-Type APIs
APIs by category


[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]