toaruos/libc/unistd/fstat.c
2018-07-18 10:45:42 +09:00

12 lines
236 B
C

#include <unistd.h>
#include <sys/stat.h>
#include <syscall.h>
#include <syscall_nums.h>
#include <errno.h>
DEFN_SYSCALL2(fstat, SYS_STAT, int, void *);
int fstat(int file, struct stat *st) {
__sets_errno(syscall_fstat(file, st));
}