reserving constants
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
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 */
#defineO_DIRECT00040000 /* direct disk access hint - currently
ignored */
Quoted 16 lines
#define
O_DIRECTORY00010000 /* must be a directory */
#defineO_NOFOLLOW00000200 /* don't follow links */Linux doesn't distinguish between
O_NONBLOCKandO_NDELAYso I also defined:#define
O_NONBLOCK00200004 /* HPUX has separate NDELAY & NONBLOCK */
#defineO_NDELAYO_NONBLOCKSignature · 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