libutil: add O_NOCTTY back to old pty open code
[minix.git] / lib / libc / sys-minix / getdents.c
blob6e258e9f5dd6a2b8f3c220e1ef5372d9632548ca
1 #include <sys/cdefs.h>
2 #include "namespace.h"
3 #include <lib.h>
5 #include <dirent.h>
7 ssize_t getdents(int fd, char *buffer, size_t nbytes)
9 message m;
11 m.m1_i1 = fd;
12 m.m1_i2 = nbytes;
13 m.m1_p1 = (char *) buffer;
14 return _syscall(VFS_PROC_NR, GETDENTS, &m);