Skip to content

Elaborate documentation of file-related system calls #122

Open
@mortbopet

Description

@mortbopet

As described in #121, the system call menu help->system calls has lacking documentation for the usage and meaning of file-related system calls, such as open.

These descriptions should be elaborated, such as by including the semantics of the various flags for open:

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.e.

image

"Opens a file from a path" is pretty non-informative, and could easily also explain something about the flags.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions