From 604f6997119f88c5058a10ec1f00ae295886c836 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Thu, 4 Apr 2019 10:35:50 -0600 Subject: [PATCH] Fixed R_OK/X_OK definitions to match POSIX. --- include/unistd.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/unistd.h b/include/unistd.h index 1918c87ac7..715256684e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -63,9 +63,9 @@ /* Bit values for the second argument to access */ #define F_OK 0 /* Test existence */ -#define R_OK 1 /* Test read permission */ +#define X_OK 1 /* Test execute permission */ #define W_OK 2 /* Test write permission */ -#define X_OK 4 /* Test execute permission */ +#define R_OK 4 /* Test read permission */ /* POSIX feature set macros */