Annotation of 43BSDReno/sys/nfs/TEST/unix-tests/special/touchn.c, revision 1.1.1.1

1.1       root        1: /*     @(#)touchn.c    1.1 88/10/12 NFS Rev 2 Testsuite        */
                      2: /*
                      3:  *  touch n files
                      4:  */
                      5: main(argc,argv)
                      6: char **argv;
                      7: {
                      8:        int n;
                      9:        char buf[1024];
                     10: 
                     11:        if (argc != 2) {
                     12:                printf("usage: %s count\n", argv[0]);
                     13:                exit(1);
                     14:        }
                     15:        n = atoi(argv[1]);
                     16:        for (; n; n--) {
                     17:                sprintf(buf, "name%d", n);
                     18:                close(creat(buf, 0666));
                     19:        }
                     20:        exit(0);
                     21: }

unix.superglobalmegacorp.com

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