摘要:
/* cp1.c * version 1 of cp - uses read and write with tunable buffer size * usage:cp1 src dest */#include<stdio.h>#include<unistd.h>#include<fcntl.h>#include<stdlib.h>#define BUFFERSIZE 4096#define COPYMODE 0644void oops(char *s1,char *s2);main(int ac,char *av[]){ int in_fd,o 阅读全文