Browse Source

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

K. Lange 2 years ago
parent
commit
1ff1175bce
2 changed files with 5 additions and 5 deletions
  1. 0 5
      base/usr/include/fcntl.h
  2. 5 0
      base/usr/include/unistd.h

+ 0 - 5
base/usr/include/fcntl.h

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

+ 5 - 0
base/usr/include/unistd.h

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