History

20070714-1055

Charles.Forsyth committed 19 years ago

Commit 8bfab541 parent 61ffbe22 files · +15 −1Browse files

Unified · Split

2 files
  1. CHANGES +1 −1
  2. man/2/sys-read +14 −0
CHANGES+1−1
@@ -1,5 +1,5 @@
11 20070714
2− add Sys->readn
2+ add Sys->readn, update sys-read(2)
33 copy two repairs from emu/port/inferno.c to os/port/inferno.c
44 20070619
55 remembered to include /appl/cmd/trfs.b /dis/trfs.dis
man/2/sys-read+14−0
@@ -7,6 +7,7 @@ include "sys.m"; · 6 unmodified lines
77 sys := load Sys Sys->PATH;
88
99 read: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
10+readn: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
1011 write: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
1112
1213 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. · 23 unmodified lines
3637 A return value of
3738 0 is conventionally interpreted as end of file.
3839 .PP
40+.B Readn
41+continues to
42+.B read
43+from
44+.I fd
45+sequentially into
46+.IR buf ,
47+until
48+.I nbytes
49+have been read, or
50+.B read
51+returns a non-positive count.
52+.PP
3953 .B Write
4054 writes
4155 .I nbytes