*_OK constants should be in unistd, and F_OK should be 0
This commit is contained in:
parent
a8a3b90520
commit
1ff1175bce
@ -17,11 +17,6 @@ _Begin_C_Header
|
||||
#define O_NONBLOCK 0x4000
|
||||
#define O_DIRECTORY 0x8000
|
||||
|
||||
#define F_OK 1
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
#define X_OK 1
|
||||
|
||||
#define F_GETFD 1
|
||||
#define F_SETFD 2
|
||||
|
||||
|
@ -81,6 +81,11 @@ extern char * getlogin(void);
|
||||
#define SEEK_CUR 1
|
||||
#define SEEK_END 2
|
||||
|
||||
#define F_OK 0
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
#define X_OK 1
|
||||
|
||||
extern int gethostname(char * name, size_t len);
|
||||
extern int sethostname(const char * name, size_t len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user