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
vm: include no-caching bits in PTF_ALLFLAGS for flags sanity check.
[minix.git]
/
lib
/
libc
/
posix
/
_read.c
blob
ac4ceb0f642fdc645c6a8e14267b612e12fade0e
1
#include <lib.h>
2
#define read _read
3
#include <unistd.h>
4
5
PUBLIC ssize_t
read
(
fd
,
buffer
,
nbytes
)
6
int
fd
;
7
void
*
buffer
;
8
size_t
nbytes
;
9
{
10
message m
;
11
12
m
.
m1_i1
=
fd
;
13
m
.
m1_i2
=
nbytes
;
14
m
.
m1_p1
= (
char
*)
buffer
;
15
return
(
_syscall
(
FS
,
READ
, &
m
));
16
}