/* sys/sys.cc This file is part of the Osirion project and is distributed under the terms of the GNU General Public License version 2 */ // project headers #include "sys/sys.h" // system headers #include #include #include namespace sys { bool mkdir(const char *path) { #ifdef _WIN32 ::mkdir(path); // FIXME check return value return true; #else return (::mkdir(path, 0777) == 0); #endif } void signal(int signum, signalfunc handler) { #ifndef _WIN32 struct sigaction sa; sa.sa_handler = handler; sa.sa_flags = 0; sigaction(signum, &sa, 0); #endif } }