S_* flags in sys/stat are wrong! spent quite a while searching for this problem. disassembly reports S_IWRITE is 0x80, header says 0x100.
fixes aio_open warning tossed when file was created by file_open This was SVN commit r629.
This commit is contained in:
parent
1f9ac488cd
commit
66e202afa5
@ -176,6 +176,13 @@ extern int mkdir(const char*, mode_t);
|
||||
// currently only sets st_mode (file or dir) and st_size.
|
||||
extern int stat(const char*, struct stat*);
|
||||
|
||||
#define S_IRWXO 0xffff
|
||||
// stat.h _S_* values are wrong! disassembly shows _S_IWRITE is 0x80,
|
||||
// instead of 0x100. define christmas-tree value to be safe.
|
||||
|
||||
#define S_ISDIR(m) (m & S_IFDIR)
|
||||
#define S_ISREG(m) (m & S_IFREG)
|
||||
|
||||
|
||||
//
|
||||
// dirent.h
|
||||
|
Loading…
Reference in New Issue
Block a user