Luna/libc/include/fcntl.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

21 lines
278 B
C

/* fcntl.h: File control. */
#ifndef _FCNTL_H
#define _FCNTL_H
#include <bits/open-flags.h>
#ifdef __cplusplus
extern "C"
{
#endif
/* Open a file path and return a file descriptor to it. */
int open(const char* path, int flags);
#ifdef __cplusplus
}
#endif
#endif