/[path-sandbox]/trunk/sandbox.h
Gentoo

Diff of /trunk/sandbox.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 143 Revision 144
52 52
53#if !HAVE_DLVSYM 53#if !HAVE_DLVSYM
54# define dlvsym(lib, sym, ver) dlsym(lib, sym) 54# define dlvsym(lib, sym, ver) dlsym(lib, sym)
55#endif 55#endif
56 56
57/* Gentoo style e* printing macro's */
58#define EINFO(_color, _hilight, _args...) \
59 do { \
60 int old_errno = errno; \
61 if (_color) \
62 printf("\033[32;01m" _hilight "\033[0m" _args); \
63 else \
64 printf(_hilight _args); \
65 errno = old_errno; \
66 } while (0)
67
68#define EWARN(_color, _hilight, _args...) \
69 do { \
70 int old_errno = errno; \
71 if (_color) \
72 printf("\033[33;01m" _hilight "\033[0m" _args); \
73 else \
74 printf(_hilight _args); \
75 errno = old_errno; \
76 } while (0)
77
78#define EERROR(_color, _hilight, _args...) \
79 do { \
80 int old_errno = errno; \
81 if (_color) \
82 fprintf(stderr, "\033[31;01m" _hilight "\033[0m" _args); \
83 else \
84 fprintf(stderr, _hilight _args); \
85 errno = old_errno; \
86 } while (0)
87
57SB_STATIC void get_sandbox_lib(char *path); 88SB_STATIC void get_sandbox_lib(char *path);
58#ifdef OUTSIDE_LIBSANDBOX 89#ifdef OUTSIDE_LIBSANDBOX
59SB_STATIC void get_sandbox_rc(char *path); 90SB_STATIC void get_sandbox_rc(char *path);
60SB_STATIC void get_sandbox_log(char *path); 91SB_STATIC void get_sandbox_log(char *path);
61SB_STATIC void get_sandbox_debug_log(char *path); 92SB_STATIC void get_sandbox_debug_log(char *path);

Legend:
Removed from v.143  
changed lines
  Added in v.144

  ViewVC Help
Powered by ViewVC 1.1.20