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 return syscall(SYS_getdents, fd, buf, len); |
7 » return syscall(SYS_getdents, fd, buf, len); | |
8 } | 7 } |
9 | 8 |
10 weak_alias(__getdents, getdents); | 9 weak_alias(__getdents, getdents); |
11 | 10 |
12 weak_alias(__getdents, getdents64); | 11 weak_alias(__getdents, getdents64); |
OLD | NEW |