GETPROCID [ MPE/iX Intrinsics Reference Manual ] MPE/iX 5.0 Documentation
MPE/iX Intrinsics Reference Manual
GETPROCID
NM and CM callable.
Returns the process identification number (PIN) of a child process.
Process handling (PH) capability is required.
Syntax
_____________________________________
| |
| I16 I16V |
| pin:=GETPROCID(numchild); |
_____________________________________
Functional Return
pin 16-bit signed integer (assigned functional return)
Returns the PIN of the specified child process.
Parameters
numchild 16-bit signed integer by value (required)
Passes a number indicating which child's PIN
GETPROCID returns. The value of numchild
corresponds to the order of creation of the current
children of the calling process, as follows:
Value Meaning
<=1 PIN of the oldest child process
2 PIN of second oldest child process
. .
. .
. .
n PIN of the most recently created child process (where
n is the number of children currently in existence)
>n A value greater than the number of children in
existence, returns a zero.
Related Information
Intrinsics None
Commands None
Manuals Process Management Programmer's Guide (32650-90023)
MPE/iX 5.0 Documentation