asashofpid(3x)asashofpid(3x)NAMEasashofpid - obtain the array session handle of a process
SYNOPSIS
#include <sys/types.h>
#include <arraysvcs.h>
ash_t *asashofpid(pid_t PID);
DESCRIPTION
The asashofpid function returns the array session handle of the process
with process id PID. The process is assumed to run on the local machine.
If PID is negative, then the array session handle of the current process
is returned.
NOTESasashofpid is found in the library "libarray.so", and will be loaded if
the option "-larray" is used with cc(1) or ld(1).
SEE ALSOgetash(2), asashisglobal(3X), aserrorcode(3X), aspidsinash(3X),
array_sessions(5).
DIAGNOSTICSasashofpid returns the array session handle of the specified process if
successful, or -1LL if not. If unsuccessful, aserrorcode(3X) will be set
appropriately.
Page 1