*_OK constants should be in unistd, and F_OK should be 0

This commit is contained in:
K. Lange 2019-08-08 09:42:25 +09:00
parent a8a3b90520
commit 1ff1175bce
2 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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);