Newly created files

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2765 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
Meep-Eep
2007-05-31 02:03:10 +00:00
parent 2e2d793569
commit 6db566e8a8
4 changed files with 628 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
/*
* 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 2 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, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _UTIL_H
#define _UTIL_H
#include <stdarg.h>
#include <stdbool.h>
#include <sys/types.h>
void logError(bool useErrno, const char *format, ...)
__attribute__((format(printf, 2, 3)));
void vLogError(bool useErrno, const char *format, va_list args);
void fatal(bool useErrno, const char *format, ...)
__attribute__((format(printf, 2, 3))) __attribute__((noreturn));
int mmapOpen(const char *fileName, int flags, void **buf, size_t *len);
#endif /* _UTIL_H */