critical impact:
getvfsbyname - not supported; use sysfs (CrUn27)
Problem description
The getvfsbyname function exists on Tru64 UNIX, but not on HP-UX. However, the sysfs function provides similar results.
The getvfsbyname function returns the type
number of the virtual system type identified by the typename parameter. Identifiers
 getvfsbyname |
|
|
|
See also
Solution description
Use the sysfs function
to achieve similar results.
The correct way for applications to get the virtual file
system type number is to call sysfs. Note that sysfs may
not behave exactly the same as getvfsbyname. Review your code
and the applicable manpages for more information. New behavior
#include < sys/fstyp.h >
int typno; /* typno = a file system type index */
char fsname[FSTYPSZ]; /* contains a null-terminated file-system type identifier */
...
typno = sysfs(GETFSIND, fsname); ... See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| UN |
C, C++ |
any HP-UX 11i version |
critical |
unavailable |
|