Home
last modified time | relevance | path

Searched refs:err (Results 1 – 6 of 6) sorted by relevance

/mach/
A Derror_compat.c49 if ((-200 < err) && (err <= -100)) in __mach_error_map_compat()
50 err = -(err + 100) | IPC_SEND_MOD; in __mach_error_map_compat()
51 else if ((-300 < err) && (err <= -200)) in __mach_error_map_compat()
52 err = -(err + 200) | IPC_RCV_MOD; in __mach_error_map_compat()
53 else if ((-400 < err) && (err <= -300)) in __mach_error_map_compat()
54 err = -(err + 300) | MACH_IPC_MIG_MOD; in __mach_error_map_compat()
55 else if ((1000 <= err) && (err < 1100)) in __mach_error_map_compat()
56 err = (err - 1000) | SERV_NETNAME_MOD; in __mach_error_map_compat()
58 err = (err - 1600) | SERV_ENV_MOD; in __mach_error_map_compat()
60 err = (err - 27600) | SERV_EXECD_MOD; in __mach_error_map_compat()
[all …]
A Derrstring.c49 mach_error_type(mach_error_t err) in mach_error_type() argument
53 __mach_error_map_compat( &err ); in mach_error_type()
55 sub = err_get_sub(err); in mach_error_type()
56 system = err_get_system(err); in mach_error_type()
67 mach_error_string_int(mach_error_t err, in mach_error_string_int() argument
72 __mach_error_map_compat( &err ); in mach_error_string_int()
74 sub = err_get_sub(err); in mach_error_string_int()
75 system = err_get_system(err); in mach_error_string_int()
76 code = err_get_code(err); in mach_error_string_int()
89 mach_error_string(mach_error_t err) in mach_error_string() argument
[all …]
A Dmach_init.c35 kern_return_t err; in weak_alias() local
42 if (err = __host_page_size (__mach_host_self (), &__vm_page_size)) in weak_alias()
43 _exit (err); in weak_alias()
47 if (err = __vm_statistics (__mach_task_self (), &stats)) in weak_alias()
48 _exit (err); in weak_alias()
A Dmach_error.c66 mach_error(char *str, mach_error_t err) in mach_error() argument
72 err_str=mach_error_string_int(err, &diag); in mach_error()
75 sprintf( buf, "%s %s (%x)", mach_error_type(err), err_str, err ); in mach_error()
A Ddevstream.c35 kern_return_t err; in devstream_write() local
45 if (err = device_write_inband (dev, 0, 0, p, thiswrite, &wrote)) in devstream_write()
47 errno = err; in devstream_write()
88 kern_return_t err; in devstream_read() local
91 err = device_read_inband (dev, 0, 0, to_read, buffer, &nread); in devstream_read()
92 if (err) in devstream_read()
94 errno = err; in devstream_read()
/mach/mach/
A Derror.h108 #define err_get_system(err) (((err)>>26)&0x3f) argument
109 #define err_get_sub(err) (((err)>>14)&0xfff) argument
110 #define err_get_code(err) ((err)&0x3fff) argument

Completed in 10 milliseconds