Skip to contentSkip to conversation

reserving constants

parisc-linux Matthew Wilcox 2 participants 2 messages Aug 5, 1999 – Aug 14, 1999

lore
Share & tools
lore
#0 lore raw

I have some more constants which need reserving. These are in the O_* numberspace:

#define FASYNC          00020000 /* fcntl, for BSD compatibility */
#define O_DIRECT        00040000 /* direct disk access hint - currently ignored */
#define O_DIRECTORY     00010000 /* must be a directory */
#define O_NOFOLLOW      00000200 /* don't follow links */

Linux doesn't distinguish between O_NONBLOCK and O_NDELAY so I also defined:

#define O_NONBLOCK 00200004 /* HPUX has separate NDELAY & NONBLOCK */
#define O_NDELAY O_NONBLOCK

Signature · 4 lines
Matthew Wilcox <[email protected]>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson
#1 lore raw

Working...-Larry

Quoted 6 lines · Matthew Wilcox

I have some more constants which need reserving. These are in the O_* numberspace:

#define FASYNC 00020000 /* fcntl, for BSD compatibility */
#define O_DIRECT 00040000 /* direct disk access hint - currently

ignored */

Quoted 16 lines

#define O_DIRECTORY 00010000 /* must be a directory */
#define O_NOFOLLOW 00000200 /* don't follow links */

Linux doesn't distinguish between O_NONBLOCK and O_NDELAY so I also defined:

#define O_NONBLOCK 00200004 /* HPUX has separate NDELAY & NONBLOCK */
#define O_NDELAY O_NONBLOCK

Signature · 4 lines
Matthew Wilcox <[email protected]>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson