Annotation of Net2/tests/fstests/write_8192.c, revision 1.1

1.1     ! root        1: #define        BUFSIZ 8192
        !             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_8192 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 < 1024; 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.