Annotation of researchv8dc/cmd/inet/etc/ftpd/mkdir.c, revision 1.1

1.1     ! root        1: #include  "sys/types.h"
        !             2: #include  "sys/stat.h"
        !             3: 
        !             4: mkdir(f, mode)
        !             5: char *f;
        !             6: {
        !             7:        int status, i, mode;
        !             8:         struct stat st;
        !             9: 
        !            10:         if (!stat(f, &st))
        !            11:                return(-1);
        !            12:         while((i=fork()) == -1)
        !            13:                sleep(3);
        !            14:        if(i) {
        !            15:                wait(&status);
        !            16:                return(stat(f, &st));
        !            17:        }
        !            18:        execl("/bin/mkdir", "mkdir", f, 0);
        !            19:        exit(1);
        !            20: }

unix.superglobalmegacorp.com

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