Back to index

glibc  2.9
Defines | Typedefs
error.h File Reference
#include <mach/kern_return.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define err_none   (mach_error_t)0
#define ERR_SUCCESS   (mach_error_t)0
#define ERR_ROUTINE_NIL   (mach_error_fn_t)0
#define err_system(x)   (((x)&0x3f)<<26)
#define err_sub(x)   (((x)&0xfff)<<14)
#define err_get_system(err)   (((err)>>26)&0x3f)
#define err_get_sub(err)   (((err)>>14)&0xfff)
#define err_get_code(err)   ((err)&0x3fff)
#define system_emask   (err_system(0x3f))
#define sub_emask   (err_sub(0xfff))
#define code_emask   (0x3fff)
#define err_kern   err_system(0x0) /* kernel */
#define err_us   err_system(0x1) /* user space library */
#define err_server   err_system(0x2) /* user space servers */
#define err_ipc   err_system(0x3) /* old ipc errors */
#define err_mach_ipc   err_system(0x4) /* mach-ipc errors */
#define err_bootstrap   err_system(0x5) /* bootstrap errors */
#define err_hurd   err_system(0x10) /* GNU Hurd server errors */
#define err_local   err_system(0x3e) /* user defined errors */
#define err_ipc_compat   err_system(0x3f) /* (compatibility) mach-ipc errors */
#define err_max_system   0x3f
#define unix_err(errno)   (err_kern|err_sub(3)|errno)

Typedefs

typedef kern_return_t mach_error_t

Define Documentation

#define code_emask   (0x3fff)

Definition at line 114 of file error.h.

#define err_bootstrap   err_system(0x5) /* bootstrap errors */

Definition at line 123 of file error.h.

#define err_get_code (   err)    ((err)&0x3fff)

Definition at line 110 of file error.h.

#define err_get_sub (   err)    (((err)>>14)&0xfff)

Definition at line 109 of file error.h.

#define err_get_system (   err)    (((err)>>26)&0x3f)

Definition at line 108 of file error.h.

#define err_hurd   err_system(0x10) /* GNU Hurd server errors */

Definition at line 124 of file error.h.

#define err_ipc   err_system(0x3) /* old ipc errors */

Definition at line 121 of file error.h.

#define err_ipc_compat   err_system(0x3f) /* (compatibility) mach-ipc errors */

Definition at line 126 of file error.h.

#define err_kern   err_system(0x0) /* kernel */

Definition at line 118 of file error.h.

#define err_local   err_system(0x3e) /* user defined errors */

Definition at line 125 of file error.h.

#define err_mach_ipc   err_system(0x4) /* mach-ipc errors */

Definition at line 122 of file error.h.

#define err_max_system   0x3f

Definition at line 128 of file error.h.

#define err_none   (mach_error_t)0

Definition at line 100 of file error.h.

#define ERR_ROUTINE_NIL   (mach_error_fn_t)0

Definition at line 102 of file error.h.

#define err_server   err_system(0x2) /* user space servers */

Definition at line 120 of file error.h.

#define err_sub (   x)    (((x)&0xfff)<<14)

Definition at line 106 of file error.h.

#define ERR_SUCCESS   (mach_error_t)0

Definition at line 101 of file error.h.

#define err_system (   x)    (((x)&0x3f)<<26)

Definition at line 105 of file error.h.

#define err_us   err_system(0x1) /* user space library */

Definition at line 119 of file error.h.

#define sub_emask   (err_sub(0xfff))

Definition at line 113 of file error.h.

#define system_emask   (err_system(0x3f))

Definition at line 112 of file error.h.

#define unix_err (   errno)    (err_kern|err_sub(3)|errno)

Definition at line 132 of file error.h.


Typedef Documentation

typedef kern_return_t mach_error_t

Definition at line 134 of file error.h.