toaruos/libc/unistd/fstat.c

12 lines
234 B
C
Raw Normal View History

#include <unistd.h>
#include <sys/stat.h>
#include <syscall.h>
2018-07-18 10:45:42 +09:00
#include <syscall_nums.h>
#include <errno.h>
2021-05-31 10:47:02 +09:00
DEFN_SYSCALL2(stat, SYS_STAT, int, void *);
int fstat(int file, struct stat *st) {
2021-05-31 10:47:02 +09:00
__sets_errno(syscall_stat(file, st));
}