From d42218ac2785e9e4bea53ec499f563cab5747959 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 14 Jul 2007 09:55:29 +0000 Subject: 20070714-1055 --- CHANGES | 2 +- man/2/sys-read | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5cebc86a..496f060e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,5 @@ 20070714 - add Sys->readn + add Sys->readn, update sys-read(2) copy two repairs from emu/port/inferno.c to os/port/inferno.c 20070619 remembered to include /appl/cmd/trfs.b /dis/trfs.dis 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 -- cgit v1.2.3