00001 // Header File to define Operating-System specific functions 00002 // Written by: Henning Maas 00003 00004 // Copyright (C) 2001 - , Henning Maas <maash@gmx.net> 00005 // 00006 // This program is free software; you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation; either version 1, or (at your option) 00009 // any later version. 00010 // 00011 // This program is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 00016 #ifndef __OSSPECIFIC_INCLUDED 00017 #define __OSSPECIFIC_INCLUDED 00018 00019 00020 #include <sys/types.h> 00021 00022 00023 /* Makes a new directory, which name and path is taken from 'path', 00024 * while the file-permission bits are set with mode_t, a short integer. 00025 * Unix: The function calls the unix mkdir() from sys/stat.h with the given 00026 * parameters. 00027 * Windows: The function calls the windows mkdir() from direct.h with only the 00028 * path/name-information. 00029 */ 00030 int osSpecificMkdir(const char *path, mode_t mode); 00031 00032 #endif // __OSSPECIFIC_INCLUDED