#define BUFSIZ 8192 main( argc, argv) char **argv; { char buf[BUFSIZ]; int i, j; j = open(argv[1], 0); for (i = 0; i < 1024; i++) read(j, buf, BUFSIZ); }
#define BUFSIZ 4096 main( argc, argv) char **argv; { char buf[BUFSIZ]; int i, j; j = creat(argv[1], 0666); for (i = 0; i < 2048; i++) write(j, buf, BUFSIZ); }
#define BUFSIZ 8192 main( argc, argv) char **argv; { char buf[BUFSIZ]; int i, j; j = creat(argv[1], 0666); for (i = 0; i < 1024; i++) write(j, buf, BUFSIZ); }
#define BUFSIZ 8192 main( argc, argv) char **argv; { char buf[BUFSIZ]; int i, j; j = open(argv[1], 2); for (i = 0; i < 1024; i++) write(j, buf, BUFSIZ); }