From 2277c5d7bbe1f9595fad512d8f790708473a9bf1 Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 21 Mar 2004 04:33:13 +0000 Subject: Small tweaks Lots of new code imported. --- src/libfs/read.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/libfs/read.c') diff --git a/src/libfs/read.c b/src/libfs/read.c index c05d40d1..f868e123 100644 --- a/src/libfs/read.c +++ b/src/libfs/read.c @@ -52,3 +52,21 @@ fsread(Fid *fid, void *buf, long n) { return fspread(fid, buf, n, -1); } + +long +fsreadn(Fid *fid, void *buf, long n) +{ + long tot, nn; + + for(tot=0; tot