diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-07 22:22:16 +0100 |
| commit | 8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch) | |
| tree | ae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/stat | |
| parent | fc00c656c96528112d05cf0edf8631bd5eaea446 (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/stat')
| -rw-r--r-- | lib/libc/stat/Kbuild | 16 | ||||
| -rw-r--r-- | lib/libc/stat/fstatat.c | 10 |
2 files changed, 21 insertions, 5 deletions
diff --git a/lib/libc/stat/Kbuild b/lib/libc/stat/Kbuild new file mode 100644 index 00000000..edb6dbe0 --- /dev/null +++ b/lib/libc/stat/Kbuild @@ -0,0 +1,16 @@ +obj-y += chmod.o +obj-y += fchmod.o +obj-y += fchmodat.o +obj-y += fstat.o +obj-y += fstatat.o +obj-y += futimens.o +obj-y += lstat.o +obj-y += mkdir.o +obj-y += mkdirat.o +obj-y += mkfifo.o +obj-y += mkfifoat.o +obj-y += mknod.o +obj-y += mknodat.o +obj-y += stat.o +obj-y += umask.o +obj-y += utimensat.o diff --git a/lib/libc/stat/fstatat.c b/lib/libc/stat/fstatat.c index 06b00163..d7aecbc5 100644 --- a/lib/libc/stat/fstatat.c +++ b/lib/libc/stat/fstatat.c @@ -1,7 +1,8 @@ -#include <sys/stat.h> -#include <syscall.h> - #include <linux/stat.h> +#define __BITS_STAT_H_ +#include <bits/stat.h> +#undef __BITS_STAT_H_ +#include <syscall.h> #define makedev(major, minor) \ ((((major) & 0xfffff000ULL) << 32) | \ @@ -37,8 +38,7 @@ int fstatat(int fd, const char *restrict path, struct stat *restrict buf, buf->st_blksize = stx.stx_blksize; buf->st_blocks = stx.stx_blocks; } else { - ret = -1; // Indicate failure if STATX_BASIC_STATS is - // not set + ret = -1; } } |
