"Fossies" - the Fresh Open Source Software archive

Member "fstransform-0.9.3-src/fsremap/src/io/util.cc" of archive fstransform-0.9.3-src.tar.gz:


/*
 * fstransform - transform a file-system to another file-system type,
 *               preserving its contents and without the need for a backup
 *
 * Copyright (C) 2011-2012 Massimiliano Ghilardi
 * 
 *     This program is free software: you can redistribute it and/or modify
 *     it under the terms of the GNU General Public License as published by
 *     the Free Software Foundation, either version 3 of the License, or
 *     (at your option) any later version.
 * 
 *     This program is distributed in the hope that it will be useful,
 *     but WITHOUT ANY WARRANTY; without even the implied warranty of
 *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *     GNU General Public License for more details.
 * 
 *     You should have received a copy of the GNU General Public License
 *     along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * io/util.cc
 *
 *  Created on: Mar 6, 2011
 *      Author: max
 */
#include "../first.hh"

#if defined(FT_HAVE_ERRNO_H)
# include <errno.h>        // for ENOSYS
#elif defined(FT_HAVE_CERRNO)
# include <cerrno>         // for ENOSYS
#endif

#include "../types.hh"   // for ft_mode
#include "util_posix.hh" // for ff_posix_mkdir()


FT_IO_NAMESPACE_BEGIN


/** create a directory */
int ff_mkdir(const char * path)
{
#ifdef __USE_POSIX
    return ff_posix_mkdir(path);
#else
    return ENOSYS;
#endif
}

FT_IO_NAMESPACE_END