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

non-critical impact:

O_NDELAY - different usage (NcWn123)

IO Impacts

Problem description

The open, creat, read, readv, pread, write, writev, and pwrite system calls all deal with aspects of file manipulation. However, there are some differences regarding the use of the O_NDELAY flag.

When attempting to read a file (other than a pipe) that supports nonblocking reads and that has no data currently available, the read and pread calls have different behavior on Tru64 UNIX and HP-UX. On Tru64 UNIX, if O_NDELAY is set and the file is a serial device, the function returns -1 and sets errno to [EAGAIN]. On HP-UX, the function returns 0 and sets errno to 0.


C/C++ Misc. IdentifiersO_NDELAY        

See also

Solution description

Review the applicable manpages and code.

Applications that use O_NDELAY may or may not work properly depending on how the flag is used. Review the applicable manpages and your code to determine if unexpected behavior will result.

See also

Problem summary

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