| … | |
… | |
| 14 | /* #define SB_MEM_DEBUG 1 */ |
14 | /* #define SB_MEM_DEBUG 1 */ |
| 15 | |
15 | |
| 16 | #define open xxx_open |
16 | #define open xxx_open |
| 17 | #define open64 xxx_open64 |
17 | #define open64 xxx_open64 |
| 18 | |
18 | |
| 19 | #include <errno.h> |
19 | #include "headers.h" |
| 20 | #include <libgen.h> |
|
|
| 21 | #include <limits.h> |
|
|
| 22 | #include <stdio.h> |
|
|
| 23 | #include <stdlib.h> |
|
|
| 24 | #include <string.h> |
|
|
| 25 | #include <sys/stat.h> |
|
|
| 26 | #include <sys/types.h> |
|
|
| 27 | #include <signal.h> |
|
|
| 28 | #include <unistd.h> |
|
|
| 29 | #include <fcntl.h> |
|
|
| 30 | |
20 | |
| 31 | #ifdef SB_MEM_DEBUG |
21 | #ifdef SB_MEM_DEBUG |
| 32 | # include <mcheck.h> |
22 | # include <mcheck.h> |
| 33 | #endif |
23 | #endif |
| 34 | |
24 | |
| 35 | #undef open |
25 | #undef open |
| 36 | #undef open64 |
26 | #undef open64 |
| 37 | |
27 | |
| 38 | #include "config.h" |
|
|
| 39 | #include "localdecls.h" |
|
|
| 40 | #include "sbutil.h" |
28 | #include "sbutil.h" |
| 41 | |
|
|
| 42 | #include "libsandbox.h" |
29 | #include "libsandbox.h" |
| 43 | #include "wrappers.h" |
30 | #include "wrappers.h" |
| 44 | |
31 | |
| 45 | #define LOG_VERSION "1.0" |
32 | #define LOG_VERSION "1.0" |
| 46 | #define LOG_STRING "VERSION " LOG_VERSION "\n" |
33 | #define LOG_STRING "VERSION " LOG_VERSION "\n" |