projects/aports·blob master · refs

17 lines · 448 B

1--- 9base-6/lib9/dirread.c
2+++ 9base-6/lib9/dirread.c
3@@ -10,13 +10,7 @@
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