1 /** 2 * D header file for Darwin. 3 * 4 * Copyright: Copyright Sean Kelly 2008 - 2009. 5 * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). 6 * Authors: Sean Kelly 7 */ 8 9 /* Copyright Sean Kelly 2008 - 2009. 10 * Distributed under the Boost Software License, Version 1.0. 11 * (See accompanying file LICENSE or copy at 12 * http://www.boost.org/LICENSE_1_0.txt) 13 */ 14 module core.sys.darwin.mach.kern_return; 15 16 version (OSX) 17 version = Darwin; 18 else version (iOS) 19 version = Darwin; 20 else version (TVOS) 21 version = Darwin; 22 else version (WatchOS) 23 version = Darwin; 24 25 version (Darwin): 26 extern (C): 27 28 alias int kern_return_t; 29 30 enum : kern_return_t 31 { 32 KERN_SUCCESS = 0, 33 KERN_INVALID_ADDRESS = 1, 34 KERN_PROTECTION_FAILURE = 2, 35 KERN_NO_SPACE = 3, 36 KERN_INVALID_ARGUMENT = 4, 37 KERN_FAILURE = 5, 38 KERN_RESOURCE_SHORTAGE = 6, 39 KERN_NOT_RECEIVER = 7, 40 KERN_NO_ACCESS = 8, 41 KERN_MEMORY_FAILURE = 9, 42 KERN_MEMORY_ERROR = 10, 43 KERN_ALREADY_IN_SET = 11, 44 KERN_NOT_IN_SET = 12, 45 KERN_NAME_EXISTS = 13, 46 KERN_ABORTED = 14, 47 KERN_INVALID_NAME = 15, 48 KERN_INVALID_TASK = 16, 49 KERN_INVALID_RIGHT = 17, 50 KERN_INVALID_VALUE = 18, 51 KERN_UREFS_OVERFLOW = 19, 52 KERN_INVALID_CAPABILITY = 20, 53 KERN_RIGHT_EXISTS = 21, 54 KERN_INVALID_HOST = 22, 55 KERN_MEMORY_PRESENT = 23, 56 KERN_MEMORY_DATA_MOVED = 24, 57 KERN_MEMORY_RESTART_COPY = 25, 58 KERN_INVALID_PROCESSOR_SET = 26, 59 KERN_POLICY_LIMIT = 27, 60 KERN_INVALID_POLICY = 28, 61 KERN_INVALID_OBJECT = 29, 62 KERN_ALREADY_WAITING = 30, 63 KERN_DEFAULT_SET = 31, 64 KERN_EXCEPTION_PROTECTED = 32, 65 KERN_INVALID_LEDGER = 33, 66 KERN_INVALID_MEMORY_CONTROL = 34, 67 KERN_INVALID_SECURITY = 35, 68 KERN_NOT_DEPRESSED = 36, 69 KERN_TERMINATED = 37, 70 KERN_LOCK_SET_DESTROYED = 38, 71 KERN_LOCK_UNSTABLE = 39, 72 KERN_LOCK_OWNED = 40, 73 KERN_LOCK_OWNED_SELF = 41, 74 KERN_SEMAPHORE_DESTROYED = 42, 75 KERN_RPC_SERVER_TERMINATED = 43, 76 KERN_RPC_TERMINATE_ORPHAN = 44, 77 KERN_RPC_CONTINUE_ORPHAN = 45, 78 KERN_NOT_SUPPORTED = 46, 79 KERN_NODE_DOWN = 47, 80 KERN_OPERATION_TIMED_OUT = 49, 81 KERN_RETURN_MAX = 0x100, 82 }