/* confdefs.h. */ #define PACKAGE_NAME "" #define PACKAGE_TARNAME "" #define PACKAGE_VERSION "" #define PACKAGE_STRING "" #define PACKAGE_BUGREPORT "" #define return_void return #define STDC_HEADERS 1 #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1 #define HAVE_GETPAGESIZE #define RETGETPAGESIZETYPE int #define HAVE_SYS_FILE_H 1 #define HAVE_MMAP #define HAVE_MMAP_ANON #define HAVE_MMAP_DEVZERO #define HAVE_MPROTECT 1 #define HAVE_WORKING_MPROTECT #define HAVE_SYS_SHM_H 1 #define HAVE_SYS_IPC_H 1 #define HAVE_SHM #ifndef __x86_64__ #define __x86_64__ 1 #endif /* end confdefs.h. */ #include /* declare malloc() */ #include int fun () { return 31415926; } int main () { long size = (char*)&main - (char*)&fun; char* funcopy = (char*) malloc(size); int i; for (i = 0; i < size; i++) { funcopy[i] = ((char*)&fun)[i]; } exit(!((*(int(*)())funcopy)() == 31415926)); }