repo.or.cz
/
minix.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
libutil: add O_NOCTTY back to old pty open code
[minix.git]
/
lib
/
libc
/
sys-minix
/
getdents.c
blob
6e258e9f5dd6a2b8f3c220e1ef5372d9632548ca
1
#include <sys/cdefs.h>
2
#include
"namespace.h"
3
#include <lib.h>
4
5
#include <dirent.h>
6
7
ssize_t
getdents
(
int
fd
,
char
*
buffer
,
size_t
nbytes
)
8
{
9
message m
;
10
11
m
.
m1_i1
=
fd
;
12
m
.
m1_i2
=
nbytes
;
13
m
.
m1_p1
= (
char
*)
buffer
;
14
return
_syscall
(
VFS_PROC_NR
,
GETDENTS
, &
m
);
15
}