Annotation of Net2/tests/fstests/write_4096.c, revision 1.1.1.1

1.1       root        1: #define        BUFSIZ 4096
                      2: 
                      3: main(argc, argv)
                      4:        int argc;
                      5:        char *argv[];
                      6: {
                      7:        char buf[BUFSIZ];
                      8:        int i, j;
                      9: 
                     10:        if (argc < 2) {
                     11:                printf("Usage: write_4096 file\n");
                     12:                exit(1);
                     13:        }
                     14:        j = creat(argv[1], 0666);
                     15:        if (j < 0) {
                     16:                perror(argv[1]);
                     17:                exit(2);
                     18:        }
                     19:        for (i = 0; i < 2048; i++)
                     20:                write(j, buf, BUFSIZ);
                     21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.