Skip to content

Redefine the access bits to be compatible with other systems #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions expected/wasm32-wasi/predefined-macros.txt
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@
#define F_GETFD (1)
#define F_GETFL (3)
#define F_LOCK 1
#define F_OK 0
#define F_OK (0)
#define F_SETFD (2)
#define F_SETFL (4)
#define F_TEST 3
Expand Down Expand Up @@ -1464,7 +1464,7 @@
#define RS_HIPRI 0x01
#define RUSAGE_CHILDREN 2
#define RUSAGE_SELF 1
#define R_OK 1
#define R_OK (4)
#define SARMAG 8
#define SB 250
#define SCHAR_MAX 127
Expand Down Expand Up @@ -1940,8 +1940,8 @@
#define WONT 252
#define WORD_BIT 32
#define WRQ 02
#define W_OK 2
#define X_OK 4
#define W_OK (2)
#define X_OK (1)
#define YESEXPR 0x50000
#define YESSTR 0x50002
#define YXDOMAIN ns_r_yxdomain
Expand Down
8 changes: 4 additions & 4 deletions libc-bottom-half/headers/public/__header_unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ struct stat;

#include <__seek.h>

#define F_OK 0
#define R_OK 1
#define W_OK 2
#define X_OK 4
#define F_OK (0)
#define X_OK (1)
#define W_OK (2)
#define R_OK (4)

#ifdef __cplusplus
extern "C" {
Expand Down