3
static int inerror=FALSE;
6
* A reasonable interface to the system calls
22
errstr(buf, sizeof buf);
29
Read(int f, void *a, int n)
33
if(read(f, (char *)a, n)!=n) {
35
lastfile->rescuing = 1;
36
errstr(buf, sizeof buf);
38
fprint(2, "read error: %s\n", buf);
46
Write(int f, void *a, int n)
50
if((m=write(f, (char *)a, n))!=n)
56
Seek(int f, long n, int w)