getpgrp (BPX1GPG, BPX4GPG) — Get the process group ID
Function
The getpgrp callable service gets the process group ID (PGID) of the calling process.
Requirements
Operation | Environment |
---|---|
Authorization: | Supervisor state or problem state, any PSW key |
Dispatchable unit mode: | Task |
Cross memory mode: | PASN = HASN |
AMODE (BPX1GPG): | 31-bit |
AMODE (BPX4GPG): | 64-bit |
ASC mode: | Primary mode |
Interrupt status: | Enabled for interrupts |
Locks: | Unlocked |
Control parameters: | All parameters must be addressable by the caller and in the primary address space. |
Format
The syntax format is as follows:
|
Parameters
- Group_ID
- Returned parameter
- Type:
- Integer
- Length:
- Fullword
The name of a fullword in which the getpgrp service places the caller's process group ID.
Usage notes
If getpgrp fails, the process ends abnormally.
Related services
Characteristics and restrictions
There are no restrictions on the use of the getpgrp service.
Examples
For an example using this callable service, see BPX1GPG (getpgrp) example.