This commit is contained in:
K. Lange 2018-02-25 18:22:40 +09:00 committed by Kevin Lange
parent c0e5bd7d26
commit 019f9749e2
2 changed files with 7 additions and 0 deletions

View File

@ -73,3 +73,5 @@ struct stat {
extern int stat(const char *file, struct stat *st);
extern int lstat(const char *path, struct stat *st);
extern int fstat(int fd, struct stat *st);

View File

@ -156,3 +156,8 @@ int usleep(useconds_t usec) {
syscall_nanosleep(0, usec / 10000);
return 0;
}
int fstat(int file, struct stat *st) {
syscall_fstat(file, st);
return 0;
}