3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
8 * Full author contact details are available in file CREDITS.
13 #include "support/lyxlib.h"
16 #include <sys/types.h>
22 int lyx::support::mkdir(std::string const & pathname, unsigned long int mode)
24 // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
26 # if MKDIR_TAKES_ONE_ARG
28 return ::mkdir(pathname.c_str());
31 return ::mkdir(pathname.c_str(), mode_t(mode));
36 return ::_mkdir(pathname.c_str());
38 # error "Don't know how to create a directory on this system."