diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-17 17:27:57 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2022-12-17 17:27:57 +0100 |
| commit | 0e0f22cde8fa9a8c9e0ff509a90727092e0af58b (patch) | |
| tree | ce32216649fa8651d3ae29a4429427ed033f9c37 /lib/sys/io.h | |
| parent | 48ab221a6d6e4d71e00e0258dd26d63f35bb6f38 (diff) | |
add errno and file support
Diffstat (limited to 'lib/sys/io.h')
| -rw-r--r-- | lib/sys/io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sys/io.h b/lib/sys/io.h index 8086869..4222c4d 100644 --- a/lib/sys/io.h +++ b/lib/sys/io.h @@ -3,9 +3,15 @@ #include "write.h" #include "read.h" +#include "open.h" +#include "close.h" #define STDIN_FD 0 #define STDOUT_FD 1 #define STDERR_FD 2 +#define FILE_READ_ONLY 0 +#define FILE_WRITE_ONLY 1 +#define FILE_READ_WRITE 2 + #endif |