OLD | NEW |
1 #include <dirent.h> | 1 #include <dirent.h> |
2 #include "syscall.h" | 2 #include "syscall.h" |
3 #include "libc.h" | 3 #include "libc.h" |
4 | 4 |
5 int __getdents(int fd, struct dirent *buf, size_t len) | 5 int __getdents(int fd, struct dirent *buf, size_t len) |
6 { | 6 { |
7 return syscall(SYS_getdents, fd, buf, len); | 7 return syscall(SYS_getdents, fd, buf, len); |
8 } | 8 } |
9 | 9 |
10 weak_alias(__getdents, getdents); | 10 weak_alias(__getdents, getdents); |
11 | 11 |
12 LFS64(getdents); | 12 weak_alias(__getdents, getdents64); |
OLD | NEW |