source: MondoRescue/branches/3.2/mondo/src/include/mr_sys.h @ 3498

Last change on this file since 3498 was 3498, checked in by Bruno Cornec, 4 years ago
  • Adds a mr_sys module for the mr_system function and a unit test
  • Property svn:eol-style set to native
File size: 540 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
17/* functions (public methods) */
18
19#define mr_system(y,args...) mr_system_int(__LINE__,__FILE__,y,## args)
20
21/* Internal function bringing debuging info
22 * called indirectly through macros */
23extern inline int mr_system_int(int line, char *file, const char *fmt, ...);
24
25#endif                          /* MR_SYS_H */
Note: See TracBrowser for help on using the repository browser.