LibC: add fcntl.h with some defines

This commit is contained in:
Bananymous 2023-03-17 21:18:11 +02:00
parent e2707b9416
commit ceb53533be
1 changed files with 8 additions and 0 deletions

8
libc/include/fcntl.h Normal file
View File

@ -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)