12 #include <sys/types.h> 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){
37 int main(
int argc,
char *argv[]) {
39 fdout = fileno(stdout);
41 for (x = 1; x < argc ; x++) {
static int deliver_file(char *path, int fdout)
int error(const char *format,...)
int main(int argc, char *argv[])