1#include <spawn.h> 2#include <mach/machine.h> 3 4/* 5 * Helper function for posix_spawn test: returns binary type as exit code. 6 */ 7int main() 8{ 9#if __ppc__ 10 return CPU_TYPE_POWERPC; 11#endif /* __ppc__ */ 12#if __ppc64__ 13 return CPU_TYPE_POWERPC64; 14#endif /* __ppc64__ */ 15#if __i386__ 16 return CPU_TYPE_I386; 17#endif /* __i386__ */ 18#if __x86_64__ 19 return CPU_TYPE_X86_64; 20#endif /* __x86_64__ */ 21 /* unrecognized type */ 22 return -1; 23} 24