X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..d26ffc64f583ab2d29df48f13518685602bc8832:/libsyscall/mach/error_codes.c?ds=inline diff --git a/libsyscall/mach/error_codes.c b/libsyscall/mach/error_codes.c index 4fdf8306c..085f468dc 100644 --- a/libsyscall/mach/error_codes.c +++ b/libsyscall/mach/error_codes.c @@ -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@ * @@ -64,6 +64,7 @@ #include #include "errorlib.h" +#include "err_libkern.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" -__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), @@ -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, - /* 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 */ {