18 int fd = 0, bytes = 0,
error = 0;
21 if ((fd = open(path,O_RDONLY))) {
22 while ((bytes=read(fd,
buf,
BUFLEN)) > 0) {
23 if(write(fdout,
buf, bytes) < 0){
37int main(
int argc,
char *argv[]) {
39 fdout = fileno(stdout);
41 for (x = 1; x < argc ; x++) {
int main(int argc, char *argv[])
static int deliver_file(char *path, int fdout)
int error(const char *format,...)