Define __intptr_t.
[kopensolaris-gnu/glibc.git] / mach / errorlib.h
index 3b87086..7fe6350 100644 (file)
 /*
  * HISTORY
  * $Log$
- * Revision 1.1  1992/10/06 18:29:53  roland
- * Initial revision
+ * Revision 1.5  1995/03/10 23:57:44  roland
+ * (errors): Use const for decl.
+ *
+ * Revision 1.4  1993/12/17  21:56:16  roland
+ * entered into RCS
  *
  * Revision 2.3  92/03/31  15:18:52  rpd
  *     Added KERN_DEVICE_MOD for device errors.
 #define        NO_SUCH_ERROR           "unknown error code"
 
 struct error_subsystem {
-       char                    * subsys_name;
+       const char              * subsys_name;
        int                     max_code;
-       char                    * * codes;
+       const char              * const * codes;
 };
 
 struct error_system {
        int                     max_sub;
-       char                    * bad_sub;
-       struct error_subsystem  * subsystem;
+       const char              * bad_sub;
+       const struct error_subsystem    * subsystem;
 };
 
-extern struct error_system     errors[err_max_system+1];
+#define errors __mach_error_systems
+extern const struct error_system       errors[err_max_system+1];
 
 #define        errlib_count(s)         (sizeof(s)/sizeof(s[0]))