/* 
 * $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 <stdarg.h>
#include <stdio.h>
#include "mr_msg.h"
#include "mr_std.h"

/* Internal function bringing debuging info 
 * called indirectly through macros */
MR_EXTERN int mr_system_int(int line, const 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 */
