1 /*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)mkdir.c 8.1 (Berkeley) 06/11/93 8 */ 9 10 int eval; 11 main(argc,argv)12main(argc, argv) 13 int argc; 14 char **argv; 15 { 16 if (*++argv && **argv == '-') { 17 err("no options available", 0); 18 _exit(1); 19 } 20 for (eval = 0; *argv; ++argv) 21 if (mkdir(*argv, 0777) < 0) 22 err(*argv, 1); 23 _exit(eval); 24 } 25 26 #define PROGNAME "mkdir: " 27 #include "errfunction" 28