Some functions aren't defined in Linux
Implemented, but may be incorrect, poor coverage, or only supports the current environment
uint64_t mach_absolute_time() {
return clock();
}
int host_info(int host, int flavor,
struct __darwin_host_basic_info* info, int* info_cnt) {
if (flavor != 1) {
fprintf(stderr, "host_info with flavor=%d isn't supported yet.\n", flavor);
abort();
}
...
NXArchInfo __darwin_local_arch_info = { "i486", 7, 4, 1, "Intel 80486" };
const NXArchInfo* NXGetLocalArchInfo() {
return &__darwin_local_arch_info;
}