From ceb53533bed936ec61cfd38e3a4a6865556dc02d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Fri, 17 Mar 2023 21:18:11 +0200 Subject: [PATCH] LibC: add fcntl.h with some defines --- libc/include/fcntl.h | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libc/include/fcntl.h diff --git a/libc/include/fcntl.h b/libc/include/fcntl.h new file mode 100644 index 000000000..db343f6ea --- /dev/null +++ b/libc/include/fcntl.h @@ -0,0 +1,8 @@ +#pragma once + +#define O_RDONLY (1 << 0) +#define O_WRONLY (1 << 1) +#define O_RDWR (O_RDONLY | O_WRONLY) +#define O_ACCMODE (O_RDONLY | O_WRONLY) +#define O_EXCL (1 << 2) +#define O_CREAT (1 << 3)