Skip to content

More info on system calls? #121

Answered by mortbopet
jnoche asked this question in Q&A
Sep 29, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

The flags are intended to follow values generally used in a unix environment, but I agree that this is not really communicated in the system call dialog.

The flags are defined here:

static constexpr int O_RDONLY = 0x00000000;
static constexpr int O_WRONLY = 0x00000001;
static constexpr int O_RDWR = 0x00000002;
static constexpr int O_APPEND = 0x00000008;
static constexpr int O_CREAT = 0x00000200; // 512
static constexpr int O_TRUNC = 0x00000400; // 1024
static constexpr int O_EXCL = 0x00000800; // 2048

I'll add some issues to address this.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jnoche
Comment options

@matsievskiysv
Comment options

Answer selected by jnoche
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants