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 __i386__ 10 return CPU_TYPE_I386; 11#endif /* __i386__ */ 12#if __x86_64__ 13 return CPU_TYPE_X86_64; 14#endif /* __x86_64__ */ 15 /* unrecognized type */ 16 return -1; 17} 18