| 1 | |
| 2 | |
| 3 | |
| 4 | static int |
| 5 | mygetdents(int fd, struct dirent *buf, int n) |
| 6 | { |
| 7 | - off_t off; |
| 8 | - int nn; |
| 9 | - |
| 10 | - /* This doesn't match the man page, but it works in Debian with a 2.2 kernel */ |
| 11 | - off = p9seek(fd, 0, 1); |
| 12 | - nn = getdirentries(fd, (void*)buf, n, &off); |
| 13 | - return nn; |
| 14 | + return getdents(fd, buf, n); |
| 15 | } |
| 16 | #elif defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) |
| 17 | static int |