Back to index

glibc  2.9
Functions
error_compat.c File Reference
#include <mach/error.h>
#include <mach_error.h>
#include <errorlib.h>

Go to the source code of this file.

Functions

void __mach_error_map_compat (mach_error_t *org_err)

Function Documentation

Definition at line 40 of file error_compat.c.

{
       mach_error_t         err = *org_err;

       /*
        * map old error numbers to
        * to new error sys & subsystem
        */

       if ((-200 < err) && (err <= -100))
              err = -(err + 100) | IPC_SEND_MOD;
       else if ((-300 < err) && (err <= -200))
              err = -(err + 200) | IPC_RCV_MOD;
       else if ((-400 < err) && (err <= -300))
              err = -(err + 300) | MACH_IPC_MIG_MOD;
       else if ((1000 <= err) && (err < 1100))
              err = (err - 1000) | SERV_NETNAME_MOD;
       else if ((1600 <= err) && (err < 1700))
              err = (err - 1600) | SERV_ENV_MOD;
       else if ((27600 <= err) && (err < 27700))
              err = (err - 27600) | SERV_EXECD_MOD;
       else if ((2500 <= err) && (err < 2600))
              err = (err - 2500) | KERN_DEVICE_MOD;
       else if ((5000 <= err) && (err < 5100))
              err = (err - 5000) | BOOTSTRAP_FS_MOD;

       *org_err = err;
}

Here is the call graph for this function:

Here is the caller graph for this function: