diff options
Diffstat (limited to 'lib/libc/stat/fstat.c')
| -rw-r--r-- | lib/libc/stat/fstat.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/stat/fstat.c b/lib/libc/stat/fstat.c new file mode 100644 index 00000000..7a9fb4e4 --- /dev/null +++ b/lib/libc/stat/fstat.c @@ -0,0 +1,8 @@ +#include <fcntl.h> +#include <sys/stat.h> +#include <syscall.h> + +int fstat(int fildes, struct stat *buf) +{ + return fstatat(fildes, "", buf, 0); +} |
