2
Copyright (C) 2003-2004 Douglas Thain and the University of Wisconsin
3
Copyright (C) 2005- The University of Notre Dame
4
This software is distributed under the GNU General Public License.
5
See the file COPYING for details.
13
#include <sys/types.h>
20
int create_dir( const char *path, int mode )
27
temp = alloca(strlen(path)+1);
32
while( (delim = strchr(delim,'/')) ) {
42
result = mkdir(temp,mode);
45
/* no problem, keep going */
50
/* ok, made it successfully */
57
/* Now, last chance */
59
result = mkdir(temp,mode);