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 @@
120070714120070714
2 add Sys->readn2 add Sys->readn, update sys-read(2)
3 copy two repairs from emu/port/inferno.c to os/port/inferno.c3 copy two repairs from emu/port/inferno.c to os/port/inferno.c
420070619420070619
5 remembered to include /appl/cmd/trfs.b /dis/trfs.dis5 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
7sys := load Sys Sys->PATH;7sys := load Sys Sys->PATH;
8 8
9read: fn(fd: ref FD, buf: array of byte, nbytes: int): int;9read: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
10readn: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
10write: fn(fd: ref FD, buf: array of byte, nbytes: int): int;11write: fn(fd: ref FD, buf: array of byte, nbytes: int): int;
11 12
12pread: fn(fd: ref FD, buf: array of byte, nbytes: int,13pread: 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
36A return value of37A return value of
370 is conventionally interpreted as end of file.380 is conventionally interpreted as end of file.
38.PP39.PP
40.B Readn
41continues to
42.B read
43from
44.I fd
45sequentially into
46.IR buf ,
47until
48.I nbytes
49have been read, or
50.B read
51returns a non-positive count.
52.PP
39.B Write53.B Write
40writes54writes
41.I nbytes55.I nbytes