/* * $Id$ * * Header file of mr_sys: a set of function manipulating system * Provided under the GPL v2 */ #ifndef MR_SYS_H #define MR_SYS_H #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include #include #include "mr_msg.h" /* Internal function bringing debuging info * called indirectly through macros */ extern inline int mr_system_int(int line, char *file, const char *fmt, ...); /* functions (public methods) */ #define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args) /* Global variables */ extern int mr_loglevel; extern char *mr_logfile; #endif /* MR_SYS_H */