| #ifdef __GNUC__ | |
| #pragma GCC system_header | |
| #endif | |
| #include <sys/types.h> | |
| #undef __errordecl | |
| #define __errordecl(name,msg) | |
| #define __open_too_many_args() return open("/dev/mem", O_RDWR) | |
| #define __open_missing_mode() open("/dev/urandom", O_RDONLY) | |
| #include_next <fcntl.h> | |
| #ifndef _PIAO_FCNTL_H | |
| #define _PIAO_FCNTL_H | |
| #undef fcntl | |
| #define fcntl(fd,...) fcntl(fcntl((fd),F_DUPFD,(fd)+1),__VA_ARGS__) | |
| #undef creat | |
| #define creat(path,mode) (1) | |
| #endif |