summaryrefslogtreecommitdiff
path: root/lib/libc/include/io.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
commit8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch)
treeae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/include/io.h
parentfc00c656c96528112d05cf0edf8631bd5eaea446 (diff)
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code.
Diffstat (limited to 'lib/libc/include/io.h')
-rw-r--r--lib/libc/include/io.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libc/include/io.h b/lib/libc/include/io.h
index 675a3cc3..ebda4b22 100644
--- a/lib/libc/include/io.h
+++ b/lib/libc/include/io.h
@@ -14,25 +14,6 @@ typedef __SIZE_TYPE__ size_t;
#define _IO_EOF 0x8
#define _IO_WIDE 0x10
-/* Buffering modes */
-#define _IOFBF 0 /* Full buffering */
-#define _IOLBF 1 /* Line buffering */
-#define _IONBF 2 /* No buffering */
-
-/* File access modes */
-#ifndef O_RDONLY
-#define O_RDONLY 0
-#define O_WRONLY 1
-#define O_RDWR 2
-#define O_ACCMODE 3
-#endif
-
-/* Atomic operations for threading */
-#define LIBC_LOCK(x) \
- while (atomic_flag_test_and_set(&(x))) { \
- }
-#define LIBC_UNLOCK(x) atomic_flag_clear(&(x))
-
struct __FILE {
int fd;
uint32_t flags;