2018-05-02 12:20:06 +09:00
|
|
|
#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>
|
2018-05-02 12:20:06 +09:00
|
|
|
|
2021-05-31 10:47:02 +09:00
|
|
|
DEFN_SYSCALL2(stat, SYS_STAT, int, void *);
|
2018-05-02 12:20:06 +09:00
|
|
|
|
|
|
|
int fstat(int file, struct stat *st) {
|
2021-05-31 10:47:02 +09:00
|
|
|
__sets_errno(syscall_stat(file, st));
|
2018-05-02 12:20:06 +09:00
|
|
|
}
|