Guardian Procedure Calls Reference Manual

MYPID Procedure (Superseded by PROCESSHANDLE_GETMINE_ Procedure
and PROCESSHANDLE_DECOMPOSE_ Procedure)
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Returned Value
Considerations
Summary
NOTE: This procedure is supported for compatibility with previous software and should not be
used for new development.
The MYPID procedure provides a process with its own processor and PIN number. This one-word
quantity has been called the PID of a process, with no connection to the four-word process ID.
Syntax for C Programmers
This procedure does not have a C syntax, because it is superseded and should not be used for
new development. This procedure is supported only for compatibility with previous software.
Syntax for TAL Programmers
cpu,pin := MYPID;
Returned Value
INT
Caller's processor (bits <4:7>) and PIN number (bits <8:15>). Note that bits <0:3> are always
0.
Considerations
If the caller of the MYPID procedure is a high-PIN process, the call to MYPID fails: a TNS Guardian
process terminates with a limits exceeded trap (trap 5); an OSS or native process receives a
SIGLIMIT signal.
842 Guardian Procedure Calls (M)