11 while ((n
= read(f
, buf
, (long)sizeof(buf
))) > 0)
12 if ((r
= write(1, buf
, n
)) != n
)
13 panic("write error copying %s: %e", s
, r
);
15 panic("error reading %s: %e", s
, n
);
19 umain(int argc
, char **argv
)
27 for (i
= 1; i
< argc
; i
++) {
28 f
= open(argv
[i
], O_RDONLY
);
30 panic("can't open %s: %e", argv
[i
], f
);