Luna/libc/include/bits/open-flags.h
apio b54a7f3a80
All checks were successful
continuous-integration/drone/push Build is passing
kernel+libc: Add O_* flags and parse them in open()
O_RDONLY, O_WRONLY, O_RDWR, O_TRUNC, O_CREAT and O_EXCL are fully implemented.

O_APPEND is partially implemented.

Other flags are not here yet.
2023-03-12 14:43:58 +01:00

15 lines
244 B
C

/* bits/open-flags.h: O_* constants for open(). */
#ifndef _BITS_OPEN_FLAGS_H
#define _BITS_OPEN_FLAGS_H
#define O_RDONLY 1
#define O_WRONLY 2
#define O_RDWR 3
#define O_APPEND 4
#define O_CREAT 8
#define O_EXCL 16
#define O_TRUNC 32
#endif