Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

/proc - not supported; use pstat and ttrace (CrUn350)

KN Impacts

Problem description

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 process.

Identifiers

Path Names/proc C/C++ Header Filesprocfs.h      

See also

Solution description

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.

See also


Problem summary

classifications source types OS release severity type
KN C, C++ any HP-UX 11i version critical unavailable
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.