Back to index

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

Go to the source code of this file.

Functions

const char * mach_error_string (mach_error_t error_value)
void mach_error (char *str, mach_error_t error_value)
const char * mach_error_type (mach_error_t error_value)

Function Documentation

void mach_error ( char *  str,
mach_error_t  error_value 
)

Definition at line 66 of file mach_error.c.

{
       char * err_str;
       char buf[1024];
       boolean_t diag;

       err_str=mach_error_string_int(err, &diag);

       if ( diag ) {
              sprintf( buf, "%s %s (%x)", mach_error_type(err), err_str, err );
              err_str = buf;
       }

       fprintf(stderr, "%s %s\n", str, err_str);
}

Here is the call graph for this function:

const char* mach_error_string ( mach_error_t  error_value)

Definition at line 89 of file errstring.c.

{
       boolean_t diag;

       return mach_error_string_int( err, &diag );

}

Here is the call graph for this function:

const char* mach_error_type ( mach_error_t  error_value)

Definition at line 49 of file errstring.c.

{
       int sub, system;

       __mach_error_map_compat( &err );

       sub = err_get_sub(err);
       system = err_get_system(err);

       if (system > err_max_system
       ||  sub >= errors[system].max_sub ) return( "(?/?)" );
       return( errors[system].subsystem[sub].subsys_name );
}

Here is the call graph for this function:

Here is the caller graph for this function: