X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/4452a7af2eac33dbad800bcc91f2399d62c18f53..3903760236c30e3b5ace7a4eefac3a269d68957c:/bsd/machine/exec.h?ds=sidebyside diff --git a/bsd/machine/exec.h b/bsd/machine/exec.h index 6dd16564a..a5712128a 100644 --- a/bsd/machine/exec.h +++ b/bsd/machine/exec.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2000-2007 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -33,23 +33,21 @@ #include -struct exec_archhandler { - char path[MAXPATHLEN]; - uint32_t fsid; - long fileid; +struct exec_info { + char path[MAXPATHLEN]; + int ac; + int ec; + char **av; + char **ev; }; -extern struct exec_archhandler exec_archhandler_ppc; -extern int set_archhandler(struct proc *p, int arch); -extern int grade_binary(cpu_type_t exectype, cpu_subtype_t execsubtype); +int grade_binary(cpu_type_t, cpu_subtype_t); +boolean_t pie_required(cpu_type_t, cpu_subtype_t); -#if defined (__ppc__) || defined (__ppc64__) -#include "ppc/exec.h" -#elif defined (__i386__) || defined(__x86_64__) +#if defined (__i386__) || defined(__x86_64__) #include "i386/exec.h" #else #error architecture not supported #endif - #endif /* _BSD_MACHINE_EXEC_H_ */