/proc - not supported; use pstat and ttrace (CrUn350)
The /proc file system exists on Tru64 UNIX but not on HP-UX.
However, a replacement exists in the pstat functions and the ttrace
system call on HP-UX.
The /proc file system enables running processes to be accessed as
files by the open, close, read, write, lseek, poll/select,
and ioctl system calls. This allows any process with the correct
permissions to get information about another process or to control the
Use the pstat functions and the ttrace system call on HP-UX.
The pstat functions are a set of wrappers (pstat_get*) around the
pstat system call and are used to get information from the kernel.
For example, the pstat_getproc function gets information about a
specific process or all active processes in the system. It returns
much of the same information that the PIOCPSINFO ioctl request returns from
the /proc file system on Tru64 UNIX.
Warning: Applications that use the pstat functions should compile with
the -D_PSTAT64 flag if they are compiling in 32-bit mode (the default
compilation environment). That flag selects the 64-bit versions of the
functions and their structures. The 32-bit versions, which are the
default, will have an overflow situation if the kernel is not able to
fit a 64-bit value into their 32-bit fields.
The ttrace system call allows a process to control another running
process. Its primary use is for the implementation of breakpoint and
event driven debugging.
||any HP-UX 11i version