|
@@ -80,115 +80,114 @@ foreign mach {
|
|
Kern_Return :: enum kern_return_t {
|
|
Kern_Return :: enum kern_return_t {
|
|
Success,
|
|
Success,
|
|
|
|
|
|
- Invalid_Address,
|
|
|
|
/* Specified address is not currently valid.
|
|
/* Specified address is not currently valid.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Address,
|
|
|
|
|
|
- Protection_Failure,
|
|
|
|
/* Specified memory is valid, but does not permit the
|
|
/* Specified memory is valid, but does not permit the
|
|
* required forms of access.
|
|
* required forms of access.
|
|
*/
|
|
*/
|
|
|
|
+ Protection_Failure,
|
|
|
|
|
|
- No_Space,
|
|
|
|
/* The address range specified is already in use, or
|
|
/* The address range specified is already in use, or
|
|
* no address range of the size specified could be
|
|
* no address range of the size specified could be
|
|
* found.
|
|
* found.
|
|
*/
|
|
*/
|
|
|
|
+ No_Space,
|
|
|
|
|
|
- Invalid_Argument,
|
|
|
|
/* The function requested was not applicable to this
|
|
/* The function requested was not applicable to this
|
|
* type of argument, or an argument is invalid
|
|
* type of argument, or an argument is invalid
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Argument,
|
|
|
|
|
|
- Failure,
|
|
|
|
/* The function could not be performed. A catch-all.
|
|
/* The function could not be performed. A catch-all.
|
|
*/
|
|
*/
|
|
|
|
+ Failure,
|
|
|
|
|
|
- Resource_Shortage,
|
|
|
|
/* A system resource could not be allocated to fulfill
|
|
/* A system resource could not be allocated to fulfill
|
|
* this request. This failure may not be permanent.
|
|
* this request. This failure may not be permanent.
|
|
*/
|
|
*/
|
|
|
|
+ Resource_Shortage,
|
|
|
|
|
|
- Not_Receiver,
|
|
|
|
/* The task in question does not hold receive rights
|
|
/* The task in question does not hold receive rights
|
|
* for the port argument.
|
|
* for the port argument.
|
|
*/
|
|
*/
|
|
|
|
+ Not_Receiver,
|
|
|
|
|
|
- No_Access,
|
|
|
|
/* Bogus access restriction.
|
|
/* Bogus access restriction.
|
|
*/
|
|
*/
|
|
|
|
+ No_Access,
|
|
|
|
|
|
- Memory_Failure,
|
|
|
|
/* During a page fault, the target address refers to a
|
|
/* During a page fault, the target address refers to a
|
|
* memory object that has been destroyed. This
|
|
* memory object that has been destroyed. This
|
|
* failure is permanent.
|
|
* failure is permanent.
|
|
*/
|
|
*/
|
|
|
|
+ Memory_Failure,
|
|
|
|
|
|
- Memory_Error,
|
|
|
|
/* During a page fault, the memory object indicated
|
|
/* During a page fault, the memory object indicated
|
|
* that the data could not be returned. This failure
|
|
* that the data could not be returned. This failure
|
|
* may be temporary; future attempts to access this
|
|
* may be temporary; future attempts to access this
|
|
* same data may succeed, as defined by the memory
|
|
* same data may succeed, as defined by the memory
|
|
* object.
|
|
* object.
|
|
*/
|
|
*/
|
|
|
|
+ Memory_Error,
|
|
|
|
|
|
- Already_In_Set,
|
|
|
|
/* The receive right is already a member of the portset.
|
|
/* The receive right is already a member of the portset.
|
|
*/
|
|
*/
|
|
|
|
+ Already_In_Set,
|
|
|
|
|
|
- Not_In_Set,
|
|
|
|
/* The receive right is not a member of a port set.
|
|
/* The receive right is not a member of a port set.
|
|
*/
|
|
*/
|
|
|
|
+ Not_In_Set,
|
|
|
|
|
|
- Name_Exists,
|
|
|
|
/* The name already denotes a right in the task.
|
|
/* The name already denotes a right in the task.
|
|
*/
|
|
*/
|
|
|
|
+ Name_Exists,
|
|
|
|
|
|
- Aborted,
|
|
|
|
/* The operation was aborted. Ipc code will
|
|
/* The operation was aborted. Ipc code will
|
|
* catch this and reflect it as a message error.
|
|
* catch this and reflect it as a message error.
|
|
*/
|
|
*/
|
|
|
|
+ Aborted,
|
|
|
|
|
|
- Invalid_Name,
|
|
|
|
/* The name doesn't denote a right in the task.
|
|
/* The name doesn't denote a right in the task.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Name,
|
|
|
|
|
|
- Invalid_Task,
|
|
|
|
/* Target task isn't an active task.
|
|
/* Target task isn't an active task.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Task,
|
|
|
|
|
|
- Invalid_Right,
|
|
|
|
/* The name denotes a right, but not an appropriate right.
|
|
/* The name denotes a right, but not an appropriate right.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Right,
|
|
|
|
|
|
- Invalid_Value,
|
|
|
|
/* A blatant range error.
|
|
/* A blatant range error.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Value,
|
|
|
|
|
|
- URefs_Overflow,
|
|
|
|
/* Operation would overflow limit on user-references.
|
|
/* Operation would overflow limit on user-references.
|
|
*/
|
|
*/
|
|
|
|
+ URefs_Overflow,
|
|
|
|
|
|
- Invalid_Capability,
|
|
|
|
/* The supplied (port) capability is improper.
|
|
/* The supplied (port) capability is improper.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Capability,
|
|
|
|
|
|
- Right_Exists,
|
|
|
|
/* The task already has send or receive rights
|
|
/* The task already has send or receive rights
|
|
* for the port under another name.
|
|
* for the port under another name.
|
|
*/
|
|
*/
|
|
|
|
+ Right_Exists,
|
|
|
|
|
|
- Invalid_Host,
|
|
|
|
/* Target host isn't actually a host.
|
|
/* Target host isn't actually a host.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Host,
|
|
|
|
|
|
- Memory_Present,
|
|
|
|
/* An attempt was made to supply "precious" data
|
|
/* An attempt was made to supply "precious" data
|
|
* for memory that is already present in a
|
|
* for memory that is already present in a
|
|
* memory object.
|
|
* memory object.
|
|
*/
|
|
*/
|
|
|
|
+ Memory_Present,
|
|
|
|
|
|
- Memory_Data_Moved,
|
|
|
|
/* A page was requested of a memory manager via
|
|
/* A page was requested of a memory manager via
|
|
* memory_object_data_request for an object using
|
|
* memory_object_data_request for an object using
|
|
* a MEMORY_OBJECT_COPY_CALL strategy, with the
|
|
* a MEMORY_OBJECT_COPY_CALL strategy, with the
|
|
@@ -203,154 +202,155 @@ Kern_Return :: enum kern_return_t {
|
|
* kernel to restart the fault). It will not be
|
|
* kernel to restart the fault). It will not be
|
|
* seen by users.
|
|
* seen by users.
|
|
*/
|
|
*/
|
|
|
|
+ Memory_Data_Moved,
|
|
|
|
|
|
- Memory_Restart_Copy,
|
|
|
|
/* A strategic copy was attempted of an object
|
|
/* A strategic copy was attempted of an object
|
|
* upon which a quicker copy is now possible.
|
|
* upon which a quicker copy is now possible.
|
|
* The caller should retry the copy using
|
|
* The caller should retry the copy using
|
|
* vm_object_copy_quickly. This error code
|
|
* vm_object_copy_quickly. This error code
|
|
* is seen only by the kernel.
|
|
* is seen only by the kernel.
|
|
*/
|
|
*/
|
|
|
|
+ Memory_Restart_Copy,
|
|
|
|
|
|
- Invalid_Processor_Set,
|
|
|
|
/* An argument applied to assert processor set privilege
|
|
/* An argument applied to assert processor set privilege
|
|
* was not a processor set control port.
|
|
* was not a processor set control port.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Processor_Set,
|
|
|
|
|
|
- Policy_Limit,
|
|
|
|
/* The specified scheduling attributes exceed the thread's
|
|
/* The specified scheduling attributes exceed the thread's
|
|
* limits.
|
|
* limits.
|
|
*/
|
|
*/
|
|
|
|
+ Policy_Limit,
|
|
|
|
|
|
- Invalid_Policy,
|
|
|
|
/* The specified scheduling policy is not currently
|
|
/* The specified scheduling policy is not currently
|
|
* enabled for the processor set.
|
|
* enabled for the processor set.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Policy,
|
|
|
|
|
|
- Invalid_Object,
|
|
|
|
/* The external memory manager failed to initialize the
|
|
/* The external memory manager failed to initialize the
|
|
* memory object.
|
|
* memory object.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Object,
|
|
|
|
|
|
- Already_Waiting,
|
|
|
|
/* A thread is attempting to wait for an event for which
|
|
/* A thread is attempting to wait for an event for which
|
|
* there is already a waiting thread.
|
|
* there is already a waiting thread.
|
|
*/
|
|
*/
|
|
|
|
+ Already_Waiting,
|
|
|
|
|
|
- Default_Set,
|
|
|
|
/* An attempt was made to destroy the default processor
|
|
/* An attempt was made to destroy the default processor
|
|
* set.
|
|
* set.
|
|
*/
|
|
*/
|
|
|
|
+ Default_Set,
|
|
|
|
|
|
- Exception_Protected,
|
|
|
|
/* An attempt was made to fetch an exception port that is
|
|
/* An attempt was made to fetch an exception port that is
|
|
* protected, or to abort a thread while processing a
|
|
* protected, or to abort a thread while processing a
|
|
* protected exception.
|
|
* protected exception.
|
|
*/
|
|
*/
|
|
|
|
+ Exception_Protected,
|
|
|
|
|
|
- Invalid_Ledger,
|
|
|
|
/* A ledger was required but not supplied.
|
|
/* A ledger was required but not supplied.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Ledger,
|
|
|
|
|
|
- Invalid_Memory_Control,
|
|
|
|
/* The port was not a memory cache control port.
|
|
/* The port was not a memory cache control port.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Memory_Control,
|
|
|
|
|
|
- Invalid_Security,
|
|
|
|
/* An argument supplied to assert security privilege
|
|
/* An argument supplied to assert security privilege
|
|
* was not a host security port.
|
|
* was not a host security port.
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_Security,
|
|
|
|
|
|
- Not_Depressed,
|
|
|
|
/* thread_depress_abort was called on a thread which
|
|
/* thread_depress_abort was called on a thread which
|
|
* was not currently depressed.
|
|
* was not currently depressed.
|
|
*/
|
|
*/
|
|
|
|
+ Not_Depressed,
|
|
|
|
|
|
- Terminated,
|
|
|
|
/* Object has been terminated and is no longer available
|
|
/* Object has been terminated and is no longer available
|
|
*/
|
|
*/
|
|
|
|
+ Terminated,
|
|
|
|
|
|
- Lock_Set_Destroyed,
|
|
|
|
/* Lock set has been destroyed and is no longer available.
|
|
/* Lock set has been destroyed and is no longer available.
|
|
*/
|
|
*/
|
|
|
|
+ Lock_Set_Destroyed,
|
|
|
|
|
|
- Lock_Unstable,
|
|
|
|
/* The thread holding the lock terminated before releasing
|
|
/* The thread holding the lock terminated before releasing
|
|
* the lock
|
|
* the lock
|
|
*/
|
|
*/
|
|
|
|
+ Lock_Unstable,
|
|
|
|
|
|
- Lock_Owned,
|
|
|
|
/* The lock is already owned by another thread
|
|
/* The lock is already owned by another thread
|
|
*/
|
|
*/
|
|
|
|
+ Lock_Owned,
|
|
|
|
|
|
- Lock_Owned_Self,
|
|
|
|
/* The lock is already owned by the calling thread
|
|
/* The lock is already owned by the calling thread
|
|
*/
|
|
*/
|
|
|
|
+ Lock_Owned_Self,
|
|
|
|
|
|
- Semaphore_Destroyed,
|
|
|
|
/* Semaphore has been destroyed and is no longer available.
|
|
/* Semaphore has been destroyed and is no longer available.
|
|
*/
|
|
*/
|
|
|
|
+ Semaphore_Destroyed,
|
|
|
|
|
|
- Rpc_Server_Terminated,
|
|
|
|
/* Return from RPC indicating the target server was
|
|
/* Return from RPC indicating the target server was
|
|
* terminated before it successfully replied
|
|
* terminated before it successfully replied
|
|
*/
|
|
*/
|
|
|
|
+ Rpc_Server_Terminated,
|
|
|
|
|
|
- RPC_Terminate_Orphan,
|
|
|
|
/* Terminate an orphaned activation.
|
|
/* Terminate an orphaned activation.
|
|
*/
|
|
*/
|
|
|
|
+ RPC_Terminate_Orphan,
|
|
|
|
|
|
- RPC_Continue_Orphan,
|
|
|
|
/* Allow an orphaned activation to continue executing.
|
|
/* Allow an orphaned activation to continue executing.
|
|
*/
|
|
*/
|
|
|
|
+ RPC_Continue_Orphan,
|
|
|
|
|
|
- Not_Supported,
|
|
|
|
/* Empty thread activation (No thread linked to it)
|
|
/* Empty thread activation (No thread linked to it)
|
|
*/
|
|
*/
|
|
|
|
+ Not_Supported,
|
|
|
|
|
|
- Node_Down,
|
|
|
|
/* Remote node down or inaccessible.
|
|
/* Remote node down or inaccessible.
|
|
*/
|
|
*/
|
|
|
|
+ Node_Down,
|
|
|
|
|
|
- Not_Waiting,
|
|
|
|
/* A signalled thread was not actually waiting. */
|
|
/* A signalled thread was not actually waiting. */
|
|
|
|
+ Not_Waiting,
|
|
|
|
|
|
- Operation_Timed_Out,
|
|
|
|
/* Some thread-oriented operation (semaphore_wait) timed out
|
|
/* Some thread-oriented operation (semaphore_wait) timed out
|
|
*/
|
|
*/
|
|
|
|
+ Operation_Timed_Out,
|
|
|
|
|
|
- Codesign_Error,
|
|
|
|
/* During a page fault, indicates that the page was rejected
|
|
/* During a page fault, indicates that the page was rejected
|
|
* as a result of a signature check.
|
|
* as a result of a signature check.
|
|
*/
|
|
*/
|
|
|
|
+ Codesign_Error,
|
|
|
|
|
|
- Policy_Static,
|
|
|
|
/* The requested property cannot be changed at this time.
|
|
/* The requested property cannot be changed at this time.
|
|
*/
|
|
*/
|
|
|
|
+ Policy_Static,
|
|
|
|
|
|
- Insufficient_Buffer_Size,
|
|
|
|
/* The provided buffer is of insufficient size for the requested data.
|
|
/* The provided buffer is of insufficient size for the requested data.
|
|
*/
|
|
*/
|
|
|
|
+ Insufficient_Buffer_Size,
|
|
|
|
|
|
- Denied,
|
|
|
|
/* Denied by security policy
|
|
/* Denied by security policy
|
|
*/
|
|
*/
|
|
|
|
+ Denied,
|
|
|
|
|
|
- Missing_KC,
|
|
|
|
/* The KC on which the function is operating is missing
|
|
/* The KC on which the function is operating is missing
|
|
*/
|
|
*/
|
|
|
|
+ Missing_KC,
|
|
|
|
|
|
- Invalid_KC,
|
|
|
|
/* The KC on which the function is operating is invalid
|
|
/* The KC on which the function is operating is invalid
|
|
*/
|
|
*/
|
|
|
|
+ Invalid_KC,
|
|
|
|
|
|
- Not_Found,
|
|
|
|
/* A search or query operation did not return a result
|
|
/* A search or query operation did not return a result
|
|
*/
|
|
*/
|
|
|
|
+ Not_Found,
|
|
|
|
|
|
- Return_Max = 0x100,
|
|
|
|
/* Maximum return value allowable
|
|
/* Maximum return value allowable
|
|
*/
|
|
*/
|
|
|
|
+ Return_Max = 0x100,
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|