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


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

critical impact:

table function - not available; use pstat (CrUn177)

KN Impacts

Problem description

The table function exists on Tru64 UNIX but not on HP-UX.

The table function examines or updates elements from a system table.


C/C++ Functionstable            

See also

Solution description

Use the pstat functions to achieve similar results.

The pstat functions are not a complete replacement for table. The table function allows users to modify kernel parameters, but pstat provides only read access to those parameters. There might also be table elements that do not match any of the retrievable pstat system information.

Review your code and the applicable manpages for more information on the pstat functions.

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.

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.