source: MondoRescue/branches/3.3/mondo/src/include/mr_sys.h@ 3753

Last change on this file since 3753 was 3708, checked in by Bruno Cornec, 6 years ago

daptation for gcc 5 (inline funcs mngt)

  • Property svn:eol-style set to native
File size: 650 bytes
Line 
1/*
2 * $Id$
3 *
4 * Header file of mr_sys: a set of function manipulating system
5 * Provided under the GPL v2
6 */
7
8#ifndef MR_SYS_H
9#define MR_SYS_H
10
11#ifndef _GNU_SOURCE
12#define _GNU_SOURCE
13#endif
14#include <stdarg.h>
15#include <stdio.h>
16#include "mr_msg.h"
17#include "mr_std.h"
18
19/* Internal function bringing debuging info
20 * called indirectly through macros */
21MR_EXTERN int mr_system_int(int line, char *file, const char *fmt, ...);
22
23/* functions (public methods) */
24#define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args)
25
26/* Global variables */
27
28extern int mr_loglevel;
29extern char *mr_logfile;
30
31#endif /* MR_SYS_H */
Note: See TracBrowser for help on using the repository browser.