]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/mach/error_codes.c
xnu-4570.71.2.tar.gz
[apple/xnu.git] / libsyscall / mach / error_codes.c
index 4fdf8306ccead7a4adc9169c7e262772673dc12e..085f468dc6831023787cfb5d1d5fab199438124b 100644 (file)
@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2003-2010 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  * 
@@ -64,6 +64,7 @@
 
 #include <mach/error.h>
 #include "errorlib.h"
 
 #include <mach/error.h>
 #include "errorlib.h"
+#include "err_libkern.sub"
 #include "err_iokit.sub"
 #include "err_ipc.sub"
 #include "err_kern.sub"
 #include "err_iokit.sub"
 #include "err_ipc.sub"
 #include "err_kern.sub"
@@ -71,7 +72,7 @@
 #include "err_server.sub"
 #include "err_us.sub"
 
 #include "err_server.sub"
 #include "err_us.sub"
 
-__private_extern__ struct error_system _mach_errors[err_max_system+1] = {
+const struct error_system _mach_errors[err_max_system+1] = {
        /* 0; err_kern */
        {
                errlib_count(err_os_sub),
        /* 0; err_kern */
        {
                errlib_count(err_os_sub),
@@ -131,7 +132,14 @@ __private_extern__ struct error_system _mach_errors[err_max_system+1] = {
        /* 0x30 */ errorlib_system_null, /* 0x31 */ errorlib_system_null,
        /* 0x32 */ errorlib_system_null, /* 0x33 */ errorlib_system_null,
        /* 0x34 */ errorlib_system_null, /* 0x35 */ errorlib_system_null,
        /* 0x30 */ errorlib_system_null, /* 0x31 */ errorlib_system_null,
        /* 0x32 */ errorlib_system_null, /* 0x33 */ errorlib_system_null,
        /* 0x34 */ errorlib_system_null, /* 0x35 */ errorlib_system_null,
-       /* 0x36 */ errorlib_system_null, /* 0x37 */ errorlib_system_null,
+       /* 0x36 */ errorlib_system_null,
+
+       /* 0x37; err_libkern */
+       {
+               errlib_count(err_libkern_sub),
+               "(libkern/?) unknown subsystem error",
+               err_libkern_sub,
+       },
 
        /* 0x38; err_iokit */
        {
 
        /* 0x38; err_iokit */
        {