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:

S_DEFFILEMODE - not available (CrUn275)

KN Impacts

Problem description

The S_DEFFILEMODE constant exists on Tru64 UNIX, but not on HP-UX.

S_DEFFILEMODE specifies a default file mode for use in calls to creat and open. Tru64 UNIX defines it in the <sys/mode.h> file.

Identifiers

C/C++ Misc. IdentifiersS_DEFFILEMODE    

See also

  • Background information on kernel impacts

Solution description

Copy the S_DEFFILEMODE definition from the Tru64 UNIX <sys/mode.h> file.

New behavior

#include <sys/fcntl.h>
#ifndef S_DEFFILEMODE
#define S_DEFFILEMODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP|S_IROTH|S_IWOTH)
#endif

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.