fstat.c 236 B

1234567891011
  1. #include <unistd.h>
  2. #include <sys/stat.h>
  3. #include <syscall.h>
  4. #include <syscall_nums.h>
  5. #include <errno.h>
  6. DEFN_SYSCALL2(fstat, SYS_STAT, int, void *);
  7. int fstat(int file, struct stat *st) {
  8. __sets_errno(syscall_fstat(file, st));
  9. }