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:

getvfsbynumber - not supported; use sysfs (CrUn30)

UN Impacts

Problem description

The getvfsbynumber function exists on Tru64 UNIX, but not on HP-UX. However, the sysfs function provides similar results.

The getvfsbynumber function returns the symbolic name for the virtual file system type identified by the typeno parameter.

Identifiers

C/C++ Functionsgetvfsbynumber    

See also

Solution description

Use the sysfs function to achieve similar results.

The correct way for applications to get the virtual file system type name is to call sysfs. Note that sysfs may not behave exactly the same as getvfsbynumber. Review your code and the applicable manpages for more information.

New behavior

 #include < sys/fstyp.h >

int error, typeno; /* typno = a file system type index */
char name[FSTYPSZ]; /* buffer contains the returned  
                    a null-terminated file-system type identifier */
...
error = sysfs(GETFSTYP, typeno, name);
...

See also


Problem summary

classifications source types OS release severity type
UN 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.