banan-os/libc/include/fcntl.h

19 lines
333 B
C
Raw Normal View History

2023-03-17 21:18:11 +02:00
#pragma once
2023-04-23 14:32:37 +03:00
#include <sys/cdefs.h>
2023-03-17 21:18:11 +02:00
#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)
2023-04-23 14:32:37 +03:00
#define O_TRUNC (1 << 4)
#define O_APPEND (1 << 5)
__BEGIN_DECLS
int open(const char*, int, ...);
__END_DECLS