2003-06-18 09:56:10 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file mkdir.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
2003-07-28 22:37:28 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
2003-06-18 09:56:10 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-06-18 09:56:10 +00:00
|
|
|
|
*/
|
|
|
|
|
|
2000-01-20 01:41:55 +00:00
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
|
|
#include <sys/stat.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
2003-09-05 17:23:11 +00:00
|
|
|
|
#include "support/std_string.h"
|
2000-09-26 13:54:57 +00:00
|
|
|
|
|
2000-01-20 01:41:55 +00:00
|
|
|
|
#include "lyxlib.h"
|
|
|
|
|
|
2003-06-30 23:56:22 +00:00
|
|
|
|
int lyx::support::mkdir(string const & pathname, unsigned long int mode)
|
2000-01-20 01:41:55 +00:00
|
|
|
|
{
|
2002-12-01 22:59:25 +00:00
|
|
|
|
// FIXME: why don't we have mode_t in lyx::mkdir prototype ??
|
2000-10-19 10:04:36 +00:00
|
|
|
|
return ::mkdir(pathname.c_str(), mode_t(mode));
|
2000-01-20 01:41:55 +00:00
|
|
|
|
}
|