X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..4ba76501152d51ccb5647018f3192c6096367d48:/bsd/machine/exec.h diff --git a/bsd/machine/exec.h b/bsd/machine/exec.h index f93f56bcf..cdbf3a2e3 100644 --- a/bsd/machine/exec.h +++ b/bsd/machine/exec.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2007 Apple Inc. All rights reserved. + * Copyright (c) 2000-2018 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -32,6 +32,7 @@ #define _BSD_MACHINE_EXEC_H_ #include +#include struct exec_info { char path[MAXPATHLEN]; @@ -41,15 +42,7 @@ struct exec_info { char **ev; }; -int grade_binary(cpu_type_t, cpu_subtype_t); +int grade_binary(cpu_type_t, cpu_subtype_t, bool allow_simulator_binary); boolean_t pie_required(cpu_type_t, cpu_subtype_t); -#if defined (__i386__) || defined(__x86_64__) -#include "i386/exec.h" -#elif defined (__arm__) || defined (__arm64__) -#include "arm/exec.h" -#else -#error architecture not supported -#endif - #endif /* _BSD_MACHINE_EXEC_H_ */