149540Sbostic /*- 2*63341Sbostic * Copyright (c) 1991, 1993 3*63341Sbostic * The Regents of the University of California. All rights reserved. 449540Sbostic * 549540Sbostic * %sccs.include.redist.c% 649540Sbostic * 7*63341Sbostic * @(#)mkdir.c 8.1 (Berkeley) 06/11/93 849540Sbostic */ 949540Sbostic 1049540Sbostic int eval; 1149540Sbostic main(argc,argv)1249540Sbosticmain(argc, argv) 1349540Sbostic int argc; 1449540Sbostic char **argv; 1549540Sbostic { 1649540Sbostic if (*++argv && **argv == '-') { 1749540Sbostic err("no options available", 0); 1849540Sbostic _exit(1); 1949540Sbostic } 2049540Sbostic for (eval = 0; *argv; ++argv) 2149540Sbostic if (mkdir(*argv, 0777) < 0) 2249540Sbostic err(*argv, 1); 2349540Sbostic _exit(eval); 2449540Sbostic } 2549540Sbostic 2649540Sbostic #define PROGNAME "mkdir: " 2749540Sbostic #include "errfunction" 28