 import Foundation
 
 // Via <mach/machine.h>
+// TODO: Public or private? Depends if we decide to return cpu_type to user
 
 let CPU_TYPE_X86       : cpu_type_t = 7
 let CPU_TYPE_I386      : cpu_type_t = CPU_TYPE_X86

            
            result = pid_for_task(process, &pid)
            
            var kinfo_sk = kinfo_proc_systemkit(__p_starttime: timeval(tv_sec: 0, tv_usec: 0),
                                                p_flag: 0, p_stat: 0,
                                                p_comm: (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0),

    // Assuming x86 for now
    
    public func isProcforeign(procCPUType: cpu_type_t) -> Bool {
        // "The arch(arm) build configuration does not return true for ARM 64
        //  devices. The arch(i386) build configuration returns true when code
        //  is compiled for the 32–bit iOS simulator." ...
//        #if arch(i386) || arch(x86_64)
            return procCPUType == CPU_TYPE_X86_64 || procCPUType == CPU_TYPE_X86
//        #elseif arch(arm) || arch(arm64)
//            return procCPUType == CPU_TYPE_ARM || procCPUType == CPU_TYPE_ARM_64
//        #endif
    }
    
    
