summaryrefslogtreecommitdiff
path: root/man/2/sys-read
diff options
context:
space:
mode:
Diffstat (limited to 'man/2/sys-read')
-rw-r--r--man/2/sys-read14
1 files changed, 14 insertions, 0 deletions
diff --git a/man/2/sys-read b/man/2/sys-read
index 38df696d..81ee5341 100644
--- a/man/2/sys-read
+++ b/man/2/sys-read
@@ -7,6 +7,7 @@ include "sys.m";
sys := load Sys Sys->PATH;
read: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
+readn: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
write: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
pread: fn(fd: ref FD, buf: array of byte, nbytes: int,
@@ -36,6 +37,19 @@ In any event the number of bytes read is returned.
A return value of
0 is conventionally interpreted as end of file.
.PP
+.B Readn
+continues to
+.B read
+from
+.I fd
+sequentially into
+.IR buf ,
+until
+.I nbytes
+have been read, or
+.B read
+returns a non-positive count.
+.PP
.B Write
writes
.I nbytes