Lines Matching refs:err
40 kern_return_t err; in uv_exepath() local
51 err = proc_get_exe(getproc(), getpid(), exepath); in uv_exepath()
53 if (err) in uv_exepath()
54 return UV__ERR(err); in uv_exepath()
66 kern_return_t err; in uv_resident_set_memory() local
71 err = task_info(mach_task_self(), TASK_BASIC_INFO, in uv_resident_set_memory()
74 if (err) in uv_resident_set_memory()
75 return UV__ERR(err); in uv_resident_set_memory()
83 kern_return_t err; in uv_get_free_memory() local
86 err = vm_statistics(mach_task_self(), &vmstats); in uv_get_free_memory()
88 if (err) in uv_get_free_memory()
96 kern_return_t err; in uv_get_total_memory() local
101 err = host_info(mach_host_self(), HOST_BASIC_INFO, (host_info_t) &hbi, &cnt); in uv_get_total_memory()
103 if (err) in uv_get_total_memory()
135 kern_return_t err; in uv_cpu_info() local
141 err = host_info(mach_host_self(), HOST_BASIC_INFO, (host_info_t) &hbi, &cnt); in uv_cpu_info()
143 if (err) { in uv_cpu_info()
144 err = UV__ERR(err); in uv_cpu_info()
151 err = UV_ENOMEM; in uv_cpu_info()
162 return err; in uv_cpu_info()