Open System Services Programmer's Guide

Table 13 OSS Process-Management Functions (continued)
Guardian NotesOSS NotesOSS Function
Sets Guardian trap number 5 when
called from a Guardian process.
If the parent process terminates or the
calling process was created by a
Guardian process, it returns a parent
process ID of 1.
getppid()
Gets the OSS parent process ID of the
calling process.
Sets errno to the ENOTOSS value and
sets Guardian trap number 5 when
called from a Guardian process.
Can return extended errors.getsid()
Gets the group ID of the process that
is the session leader of the specified
process
A process’s real user ID is not always
numerically equal to its creator access
ID.
getuid()
Gets the real user ID of the calling
process.
Cannot send signals to Guardian
processes.Sets errno to the ENOTOSS
Can return extended errors.
Applications should not count on all
system processes receiving signals.
kill()
Sends a signal to a process or group
of processes. value when called from a Guardian
process.
There are several constraints in
sending signals if there is Safeguard
protection on OSS processes.
longjmp()
Performs a nonlocal goto.
Guardian files that are visible to the
opendir() function can be traversed.
Can return extended errors.nftw64()
can access both small files and large
files.
nftw()
nftw64()
Security controls on Guardian objects
Traverses a file tree.
do not affect the outcome of a call to
nftw().
Two Guardian file system file numbers
(not necessarily the next two available)
are allocated for the root directory and
the current working directory.
The current working directory is
assigned from the VOLUME attribute of
the Guardian environment =_DEFAULTS
DEFINE.
The use of static memory by the process
increases slightly.
Sets errno to the ENOTOSS value
when called from a Guardian TNS
process.
Can return extended errors.pause()
Suspends the calling process until a
signal is received.
putenv()
Sets an environment variable.
Sets errno to the ENOTOSS value
when called from a Guardian TNS
process.
Can return extended errors.raise()
Sends a signal to the calling process.
setgid()
Sets the group ID of the calling
process.
setjmp()
Saves the current execution context.
Sets errno to the ENOTOSS value and
sets Guardian trap number 5 when
called from a Guardian process.
Can return extended errors.setpgid()
Sets the process group ID of the calling
process.
152 Managing Processes