]> git.lyx.org Git - lyx.git/blob - src/support/mkdir.C
* lyxfunctional.h: delete compare_memfun and helper classes
[lyx.git] / src / support / mkdir.C
1 /**
2  * \file mkdir.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include <sys/stat.h>
14 #include <sys/types.h>
15 #include <fcntl.h>
16 #include <unistd.h>
17
18 #include "lyxlib.h"
19
20 int lyx::support::mkdir(std::string const & pathname, unsigned long int mode)
21 {
22         // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
23         return ::mkdir(pathname.c_str(), mode_t(mode));
24 }