slightly more accurate and verbose sanity checking
[minix3.git] / lib / other / _getdents.c
blob698ec2b09673cf7c926b7998f9d3515b376bb14f
1 #include <lib.h>
2 #define getdents _getdents
3 #include <dirent.h>
5 PUBLIC ssize_t getdents(fd, buffer, nbytes)
6 int fd;
7 struct dirent *buffer;
8 size_t nbytes;
10 message m;
12 m.m1_i1 = fd;
13 m.m1_i2 = nbytes;
14 m.m1_p1 = (char *) buffer;
15 return _syscall(FS, GETDENTS, &m);