diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:48:12 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:48:12 +0100 |
| commit | 3a369468f7daae5b3a60feaa50c6050b240be6d4 (patch) | |
| tree | ea3f5b1859c3cea91fb432c75c0920a0697347f3 /lib/sys/stat.h | |
| parent | 7a98e998c5cda484611d19854649ab8535f503d4 (diff) | |
add colors to ls
Diffstat (limited to 'lib/sys/stat.h')
| -rw-r--r-- | lib/sys/stat.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/sys/stat.h b/lib/sys/stat.h index 0e02295..9fc5eda 100644 --- a/lib/sys/stat.h +++ b/lib/sys/stat.h @@ -60,4 +60,17 @@ static int stat(const char * filename, struct stat * statbuf) return syscall(STAT, filename, statbuf); } + +static int fstat(int fd, struct stat * statbuf) +{ + return syscall(FSTAT, fd, statbuf); +} + + +static int fstatat(int dirfd, const char *pathname, struct stat * statbuf, int flags) +{ + return syscall(NEWFSTATAT, dirfd, pathname, statbuf, flags); +} + + #endif |