HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)
p
pstat(2) pstat(2)
* Ask for multiple pathname information.
*/
count = pstat_getmpathname(mpath_buf, sizeof(struct pst_mpathnode),
20, 0, &(psf.psf_id.psf_fsid));
if (count > 0) {
for (i = 0; i < count; i++) {
printf("component %d: %s\n",
i, mpath_buf[i].psr_name);
}
} else if (count == 0) {
printf("pathnames not found in system cache\n");
} else {
perror("pstat_getmpathname()");
}
} else {
perror("pstat_getfile2");
}
close(fd);
}
WARNINGS
Some parts of the program status may not get updated when a process becomes a zombie. An example is
that the cpu percentage is not updated because the process is not expected to be scheduled to run after
entering the zombie state.
AUTHOR
The pstat routines were developed by HP.
FILES
/usr/include/sys/pstat.h
Contains detailed descriptions of context data structures and fields.
SEE ALSO
iostat(1), ps(1), top(1), vmstat(1), crashconf(1M), fuser(1M), vgdisplay(1M), crashconf(2), msgctl(2),
semctl(2), shmctl(2), stat(2), sysconf(2), fileno(3S)
HP-UX 11i Version 1: September 2005 − 16 − Hewlett-Packard Company Section 2−−253