]> git.lyx.org Git - lyx.git/blob - src/support/mkdir.C
Replace LString.h with support/std_string.h,
[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 "support/std_string.h"
19
20 #include "lyxlib.h"
21
22 int lyx::support::mkdir(string const & pathname, unsigned long int mode)
23 {
24         // FIXME: why don't we have mode_t in lyx::mkdir prototype ??
25         return ::mkdir(pathname.c_str(), mode_t(mode));
26 }