2016-08-24 06:49:14 +00:00
|
|
|
#ifndef ___FIXES_H
|
|
|
|
#define ___FIXES_H
|
|
|
|
|
2017-04-03 16:40:20 +00:00
|
|
|
#include <linux/limits.h>
|
|
|
|
#include <string.h>
|
2016-08-24 06:49:14 +00:00
|
|
|
#include <sys/ptrace.h>
|
|
|
|
|
|
|
|
#ifndef PTRACE_GETSIGINFO
|
|
|
|
#define PTRACE_GETSIGINFO 0x4202
|
|
|
|
#endif
|
|
|
|
|
2017-03-06 16:36:29 +00:00
|
|
|
static inline
|
2017-04-03 16:40:20 +00:00
|
|
|
char *fakepath(const char *path, char *resolved_path) {
|
|
|
|
if (resolved_path) {
|
|
|
|
strncpy(resolved_path, path, PATH_MAX);
|
|
|
|
return resolved_path;
|
|
|
|
} else {
|
|
|
|
return strdup(path);
|
|
|
|
}
|
2017-03-06 16:36:29 +00:00
|
|
|
}
|
|
|
|
|
2016-08-24 06:49:14 +00:00
|
|
|
#endif
|