Annotation of 42BSD/bin/mkdir.c, revision 1.1.1.1

1.1       root        1: static char *sccsid = "@(#)mkdir.c     4.4 (Berkeley) 12/19/82";
                      2: /*
                      3:  * make directory
                      4:  */
                      5: #include <stdio.h>
                      6: 
                      7: main(argc, argv)
                      8:        char *argv[];
                      9: {
                     10:        int errors = 0;
                     11: 
                     12:        if (argc < 2) {
                     13:                fprintf(stderr, "mkdir: arg count\n");
                     14:                exit(1);
                     15:        }
                     16:        while (--argc)
                     17:                if (mkdir(*++argv, 0777) < 0) {
                     18:                        fprintf(stderr, "mkdir: ");
                     19:                        perror(*argv);
                     20:                        errors++;
                     21:                }
                     22:        exit(errors != 0);
                     23: }

unix.superglobalmegacorp.com

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