X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..4a3eedf9ecc9bbe3f3a5c6ce5e53ad199d639d32:/bsd/machine/exec.h diff --git a/bsd/machine/exec.h b/bsd/machine/exec.h index dbdaf3053..fc8a27279 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@ * @@ -31,14 +31,32 @@ #ifndef _BSD_MACHINE_EXEC_H_ #define _BSD_MACHINE_EXEC_H_ +#include + +struct exec_info { + char path[MAXPATHLEN]; + int ac; + int ec; + char **av; + char **ev; +}; + +struct exec_archhandler { + char path[MAXPATHLEN]; + uint32_t fsid; + long fileid; +}; + +extern struct exec_archhandler exec_archhandler_ppc; +int set_archhandler(struct proc *, int); +int grade_binary(cpu_type_t, cpu_subtype_t); #if defined (__ppc__) || defined (__ppc64__) #include "ppc/exec.h" -#elif defined (__i386__) +#elif defined (__i386__) || defined(__x86_64__) #include "i386/exec.h" #else #error architecture not supported #endif - #endif /* _BSD_MACHINE_EXEC_H_ */