lyx_mirror/src/support/mkdir.C

17 lines
330 B
C++
Raw Normal View History

#include <config.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include "LString.h"
#include "lyxlib.h"
int lyx::mkdir(string const & pathname, unsigned long int mode)
{
// FIXME: why don't we have mode_t in lyx::mkdir prototype ??
return ::mkdir(pathname.c_str(), mode_t(mode));
}