[Midnightbsd-cvs] src [7396] trunk/include: add apple/mach headers
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Jan 3 12:33:39 EST 2016
Revision: 7396
http://svnweb.midnightbsd.org/src/?rev=7396
Author: laffer1
Date: 2016-01-03 12:33:38 -0500 (Sun, 03 Jan 2016)
Log Message:
-----------
add apple/mach headers
Added Paths:
-----------
trunk/include/apple/
trunk/include/apple/Makefile
trunk/include/apple/System/
trunk/include/apple/System/sys
trunk/include/apple/libproc.h
trunk/include/apple/libproc_internal.h
trunk/include/apple/spawn.h
trunk/include/apple/spawn_private.h
trunk/include/apple/sys/
trunk/include/apple/sys/Makefile
trunk/include/apple/sys/_posix_availability.h
trunk/include/apple/sys/_pthread/
trunk/include/apple/sys/_pthread/Makefile
trunk/include/apple/sys/_pthread/_pthread_attr_t.h
trunk/include/apple/sys/_pthread/_pthread_cond_t.h
trunk/include/apple/sys/_pthread/_pthread_condattr_t.h
trunk/include/apple/sys/_pthread/_pthread_key_t.h
trunk/include/apple/sys/_pthread/_pthread_mutex_t.h
trunk/include/apple/sys/_pthread/_pthread_mutexattr_t.h
trunk/include/apple/sys/_pthread/_pthread_once_t.h
trunk/include/apple/sys/_pthread/_pthread_rwlock_t.h
trunk/include/apple/sys/_pthread/_pthread_rwlockattr_t.h
trunk/include/apple/sys/_pthread/_pthread_t.h
trunk/include/apple/sys/_pthread/_pthread_types.h
trunk/include/apple/sys/_symbol_aliasing.h
trunk/include/apple/sys/_types/
trunk/include/apple/sys/_types/Makefile
trunk/include/apple/sys/_types/_blkcnt_t.h
trunk/include/apple/sys/_types/_blksize_t.h
trunk/include/apple/sys/_types/_clock_t.h
trunk/include/apple/sys/_types/_ct_rune_t.h
trunk/include/apple/sys/_types/_dev_t.h
trunk/include/apple/sys/_types/_errno_t.h
trunk/include/apple/sys/_types/_fd_clr.h
trunk/include/apple/sys/_types/_fd_copy.h
trunk/include/apple/sys/_types/_fd_def.h
trunk/include/apple/sys/_types/_fd_isset.h
trunk/include/apple/sys/_types/_fd_set.h
trunk/include/apple/sys/_types/_fd_setsize.h
trunk/include/apple/sys/_types/_fd_zero.h
trunk/include/apple/sys/_types/_filesec_t.h
trunk/include/apple/sys/_types/_fsblkcnt_t.h
trunk/include/apple/sys/_types/_fsfilcnt_t.h
trunk/include/apple/sys/_types/_fsid_t.h
trunk/include/apple/sys/_types/_gid_t.h
trunk/include/apple/sys/_types/_guid_t.h
trunk/include/apple/sys/_types/_id_t.h
trunk/include/apple/sys/_types/_in_addr_t.h
trunk/include/apple/sys/_types/_in_port_t.h
trunk/include/apple/sys/_types/_ino64_t.h
trunk/include/apple/sys/_types/_ino_t.h
trunk/include/apple/sys/_types/_int16_t.h
trunk/include/apple/sys/_types/_int32_t.h
trunk/include/apple/sys/_types/_int64_t.h
trunk/include/apple/sys/_types/_int8_t.h
trunk/include/apple/sys/_types/_intptr_t.h
trunk/include/apple/sys/_types/_iovec_t.h
trunk/include/apple/sys/_types/_key_t.h
trunk/include/apple/sys/_types/_mach_port_t.h
trunk/include/apple/sys/_types/_mbstate_t.h
trunk/include/apple/sys/_types/_mode_t.h
trunk/include/apple/sys/_types/_nlink_t.h
trunk/include/apple/sys/_types/_null.h
trunk/include/apple/sys/_types/_o_dsync.h
trunk/include/apple/sys/_types/_o_sync.h
trunk/include/apple/sys/_types/_off_t.h
trunk/include/apple/sys/_types/_offsetof.h
trunk/include/apple/sys/_types/_os_inline.h
trunk/include/apple/sys/_types/_pid_t.h
trunk/include/apple/sys/_types/_posix_vdisable.h
trunk/include/apple/sys/_types/_ptrdiff_t.h
trunk/include/apple/sys/_types/_rsize_t.h
trunk/include/apple/sys/_types/_rune_t.h
trunk/include/apple/sys/_types/_s_ifmt.h
trunk/include/apple/sys/_types/_sa_family_t.h
trunk/include/apple/sys/_types/_seek_set.h
trunk/include/apple/sys/_types/_sigaltstack.h
trunk/include/apple/sys/_types/_sigset_t.h
trunk/include/apple/sys/_types/_size_t.h
trunk/include/apple/sys/_types/_socklen_t.h
trunk/include/apple/sys/_types/_ssize_t.h
trunk/include/apple/sys/_types/_suseconds_t.h
trunk/include/apple/sys/_types/_time_t.h
trunk/include/apple/sys/_types/_timespec.h
trunk/include/apple/sys/_types/_timeval.h
trunk/include/apple/sys/_types/_timeval32.h
trunk/include/apple/sys/_types/_ucontext.h
trunk/include/apple/sys/_types/_ucontext64.h
trunk/include/apple/sys/_types/_uid_t.h
trunk/include/apple/sys/_types/_uintptr_t.h
trunk/include/apple/sys/_types/_useconds_t.h
trunk/include/apple/sys/_types/_uuid_t.h
trunk/include/apple/sys/_types/_va_list.h
trunk/include/apple/sys/_types/_wchar_t.h
trunk/include/apple/sys/_types/_wint_t.h
trunk/include/apple/sys/appleapiopts.h
trunk/include/apple/sys/fileport.h
trunk/include/apple/sys/kdebug.h
trunk/include/apple/sys/kern_control.h
trunk/include/apple/sys/kern_event.h
trunk/include/apple/sys/kern_memorystatus.h
trunk/include/apple/sys/proc_info.h
trunk/include/apple/sys/process_policy.h
trunk/include/apple/sys/resource.h
trunk/include/apple/sys/spawn.h
trunk/include/apple/sys/spawn_internal.h
trunk/include/apple/sys/sys_domain.h
trunk/include/apple/uuid/
trunk/include/apple/uuid/Makefile
trunk/include/apple/uuid/uuid.h
trunk/include/mach/
trunk/include/mach/Makefile
trunk/include/mach/boolean.h
trunk/include/mach/clock.h
trunk/include/mach/clock_types.defs
trunk/include/mach/clock_types.h
trunk/include/mach/device/
trunk/include/mach/device/Makefile
trunk/include/mach/device/device_types.h
trunk/include/mach/error.h
trunk/include/mach/exception.h
trunk/include/mach/exception_types.h
trunk/include/mach/host_info.h
trunk/include/mach/host_notify.h
trunk/include/mach/host_priv.h
trunk/include/mach/host_reboot.h
trunk/include/mach/host_special_ports.h
trunk/include/mach/i386/
trunk/include/mach/i386/Makefile
trunk/include/mach/i386/thread_state.h
trunk/include/mach/ipc_common.h
trunk/include/mach/ipc_types.h
trunk/include/mach/kern_return.h
trunk/include/mach/mach.h
trunk/include/mach/mach_error.h
trunk/include/mach/mach_host.h
trunk/include/mach/mach_init.h
trunk/include/mach/mach_interface.h
trunk/include/mach/mach_port.h
trunk/include/mach/mach_time.h
trunk/include/mach/mach_traps.h
trunk/include/mach/mach_types.defs
trunk/include/mach/mach_types.h
trunk/include/mach/mach_vm.h
trunk/include/mach/machine.h
trunk/include/mach/memory_object.h
trunk/include/mach/memory_object_types.h
trunk/include/mach/message.h
trunk/include/mach/mig.h
trunk/include/mach/mig_errors.h
trunk/include/mach/ndr.h
trunk/include/mach/notify.h
trunk/include/mach/policy.h
trunk/include/mach/port.h
trunk/include/mach/processor_info.h
trunk/include/mach/prof_types.h
trunk/include/mach/rpc.h
trunk/include/mach/std_types.defs
trunk/include/mach/std_types.h
trunk/include/mach/task.h
trunk/include/mach/task_info.h
trunk/include/mach/task_policy.h
trunk/include/mach/task_special_ports.h
trunk/include/mach/thread_info.h
trunk/include/mach/thread_special_ports.h
trunk/include/mach/thread_status.h
trunk/include/mach/time_value.h
trunk/include/mach/vm_attributes.h
trunk/include/mach/vm_behavior.h
trunk/include/mach/vm_inherit.h
trunk/include/mach/vm_map.h
trunk/include/mach/vm_prot.h
trunk/include/mach/vm_region.h
trunk/include/mach/vm_statistics.h
trunk/include/mach/vm_sync.h
trunk/include/mach/vm_types.h
trunk/include/mach_debug/
trunk/include/mach_debug/Makefile
trunk/include/mach_debug/hash_info.h
trunk/include/mach_debug/ipc_info.h
trunk/include/mach_debug/lockgroup_info.h
trunk/include/mach_debug/mach_debug_types.defs
trunk/include/mach_debug/mach_debug_types.h
trunk/include/mach_debug/page_info.h
trunk/include/mach_debug/vm_info.h
trunk/include/mach_debug/zone_info.h
Added: trunk/include/apple/Makefile
===================================================================
--- trunk/include/apple/Makefile (rev 0)
+++ trunk/include/apple/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,13 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+NO_OBJ=
+INCS= spawn.h \
+ spawn_private.h \
+ libproc.h \
+ libproc_internal.h
+INCSDIR=${INCLUDEDIR}/apple
+SUBDIR=uuid sys
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/apple/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/System/sys
===================================================================
--- trunk/include/apple/System/sys (rev 0)
+++ trunk/include/apple/System/sys 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+link ../sys
\ No newline at end of file
Property changes on: trunk/include/apple/System/sys
___________________________________________________________________
Added: svn:special
## -0,0 +1 ##
+*
\ No newline at end of property
Added: trunk/include/apple/libproc.h
===================================================================
--- trunk/include/apple/libproc.h (rev 0)
+++ trunk/include/apple/libproc.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,131 @@
+/*
+ * Copyright (c) 2006, 2007, 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_LICENSE_HEADER_END@
+ */
+#ifndef _LIBPROC_H_
+#define _LIBPROC_H_
+
+#include <sys/cdefs.h>
+#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/mount.h>
+#include <sys/resource.h>
+#include <stdint.h>
+#include <stdbool.h>
+
+#include <sys/proc_info.h>
+
+#include <Availability.h>
+
+/*
+ * This header file contains private interfaces to obtain process information.
+ * These interfaces are subject to change in future releases.
+ */
+
+/*!
+ @define PROC_LISTPIDSPATH_PATH_IS_VOLUME
+ @discussion This flag indicates that all processes that hold open
+ file references on the volume associated with the specified
+ path should be returned.
+ */
+#define PROC_LISTPIDSPATH_PATH_IS_VOLUME 1
+
+
+/*!
+ @define PROC_LISTPIDSPATH_EXCLUDE_EVTONLY
+ @discussion This flag indicates that file references that were opened
+ with the O_EVTONLY flag should be excluded from the matching
+ criteria.
+ */
+#define PROC_LISTPIDSPATH_EXCLUDE_EVTONLY 2
+
+__BEGIN_DECLS
+
+
+/*!
+ @function proc_listpidspath
+ @discussion A function which will search through the current
+ processes looking for open file references which match
+ a specified path or volume.
+ @param type types of processes to be searched (see proc_listpids)
+ @param typeinfo adjunct information for type
+ @param path file or volume path
+ @param pathflags flags to control which files should be considered
+ during the process search.
+ @param buffer a C array of int-sized values to be filled with
+ process identifiers that hold an open file reference
+ matching the specified path or volume. Pass NULL to
+ obtain the minimum buffer size needed to hold the
+ currently active processes.
+ @param buffersize the size (in bytes) of the provided buffer.
+ @result the number of bytes of data returned in the provided buffer;
+ -1 if an error was encountered;
+ */
+int proc_listpidspath(uint32_t type,
+ uint32_t typeinfo,
+ const char *path,
+ uint32_t pathflags,
+ void *buffer,
+ int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+
+int proc_listpids(uint32_t type, uint32_t typeinfo, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_listallpids(void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
+int proc_listpgrppids(pid_t pgrpid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
+int proc_listchildpids(pid_t ppid, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_1);
+int proc_pidinfo(int pid, int flavor, uint64_t arg, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_pidfdinfo(int pid, int fd, int flavor, void * buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_pidfileportinfo(int pid, uint32_t fileport, int flavor, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
+int proc_name(int pid, void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_regionfilename(int pid, uint64_t address, void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_kmsgbuf(void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_pidpath(int pid, void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int proc_libversion(int *major, int * minor) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+
+/*
+ * Return resource usage information for the given pid, which can be a live process or a zombie.
+ *
+ * Returns 0 on success; or -1 on failure, with errno set to indicate the specific error.
+ */
+int proc_pid_rusage(int pid, int flavor, rusage_info_t *buffer) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+
+/*
+ * A process can use the following api to set its own process control
+ * state on resoure starvation. The argument can have one of the PROC_SETPC_XX values
+ */
+#define PROC_SETPC_NONE 0
+#define PROC_SETPC_THROTTLEMEM 1
+#define PROC_SETPC_SUSPEND 2
+#define PROC_SETPC_TERMINATE 3
+
+int proc_setpcontrol(const int control) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
+int proc_setpcontrol(const int control);
+
+int proc_track_dirty(pid_t pid, uint32_t flags);
+int proc_set_dirty(pid_t pid, bool dirty);
+int proc_get_dirty(pid_t pid, uint32_t *flags);
+int proc_clear_dirty(pid_t pid, uint32_t flags);
+
+int proc_terminate(pid_t pid, int *sig);
+
+__END_DECLS
+
+#endif /*_LIBPROC_H_ */
Property changes on: trunk/include/apple/libproc.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/libproc_internal.h
===================================================================
--- trunk/include/apple/libproc_internal.h (rev 0)
+++ trunk/include/apple/libproc_internal.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,111 @@
+/*
+ * Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_LICENSE_HEADER_END@
+ */
+#ifndef _LIBPROC_INTERNALH_
+#define _LIBPROC_INTERNALH_
+
+#include <TargetConditionals.h>
+
+#include <sys/cdefs.h>
+#include <libproc.h>
+
+__BEGIN_DECLS
+
+
+/* resume the process suspend due to low VM resource */
+int proc_clear_vmpressure(pid_t pid);
+/* set self as the one who is going to resume suspended processes due to low VM. Need to be root */
+int proc_set_owner_vmpressure(void);
+
+/* mark yourself to delay idle sleep on disk IO */
+int proc_set_delayidlesleep(void);
+/* Reset yourself to delay idle sleep on disk IO, if already set */
+int proc_clear_delayidlesleep(void);
+
+
+/* sub policies for PROC_POLICY_APPTYPE */
+#define PROC_POLICY_OSX_APPTYPE_NONE 0
+#define PROC_POLICY_OSX_APPTYPE_TAL 1 /* TAL based launched */
+#define PROC_POLICY_OSX_APPTYPE_WIDGET 2 /* for dashboard client */
+#define PROC_POLICY_OSX_APPTYPE_DASHCLIENT 2 /* rename to move away from widget */
+
+/*
+ * Resumes the backgrounded TAL or dashboard client. Only priv users can disable TAL apps.
+ * Valid apptype are PROC_POLICY_OSX_APPTYPE_DASHCLIENT and PROC_POLICY_OSX_APPTYPE_TAL.
+ * Returns 0 on success otherwise appropriate error code.
+ */
+int proc_disable_apptype(pid_t pid, int apptype);
+int proc_enable_apptype(pid_t pid, int apptype);
+
+
+/* mark process as importance donating */
+int proc_donate_importance_boost(void);
+
+/* DEPRECATED: supported for backward compatibility only */
+/* check the message for an importance boost and take an assertion on it */
+int proc_importance_assertion_begin_with_msg(mach_msg_header_t *msg,
+ mach_msg_trailer_t *trailer,
+ uint64_t *assertion_token) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_8, __MAC_10_10, __IPHONE_6_0, __IPHONE_8_0);
+
+/* DEPRECATED: supported for backward compatibility only */
+/* drop an assertion */
+int proc_importance_assertion_complete(uint64_t assertion_handle);
+
+/* check the message for a App De-Nap boost and take an assertion on it */
+int proc_denap_assertion_begin_with_msg(mach_msg_header_t *msg,
+ uint64_t *assertion_token);
+
+/* drop a de-nap assertion */
+int proc_denap_assertion_complete(uint64_t assertion_handle);
+
+int proc_set_cpumon_params(pid_t pid, int percentage, int interval) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int proc_get_cpumon_params(pid_t pid, int *percentage, int *interval) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int proc_set_cpumon_defaults(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int proc_disable_cpumon(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+
+int proc_set_wakemon_params(pid_t pid, int rate_hz, int flags) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+int proc_get_wakemon_params(pid_t pid, int *rate_hz, int *flags) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+int proc_set_wakemon_defaults(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+int proc_disable_wakemon(pid_t pid) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+
+int proc_set_cpumon_params_fatal(pid_t pid, int percentage, int interval) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+/* request trace buffer collection */
+int proc_trace_log(pid_t pid, uint64_t uniqueid) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+/* proc_info call to get the originator information */
+int proc_pidoriginatorinfo(int flavor, void *buffer, int buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+#if !TARGET_IPHONE_SIMULATOR
+
+#define PROC_SUPPRESS_SUCCESS (0)
+#define PROC_SUPPRESS_BAD_ARGUMENTS (-1)
+#define PROC_SUPPRESS_OLD_GENERATION (-2)
+#define PROC_SUPPRESS_ALREADY_SUPPRESSED (-3)
+
+int proc_suppress(pid_t pid, uint64_t *generation);
+#endif /* !TARGET_IPHONE_SIMULATOR */
+
+__END_DECLS
+
+#endif /* _LIBPROC_INTERNALH_ */
+
Property changes on: trunk/include/apple/libproc_internal.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/spawn.h
===================================================================
--- trunk/include/apple/spawn.h (rev 0)
+++ trunk/include/apple/spawn.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,152 @@
+/*
+ * Copyright (c) 2006, 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_LICENSE_HEADER_END@
+ */
+
+
+#ifndef _SPAWN_H_
+#define _SPAWN_H_
+
+/*
+ * [SPN] Support for _POSIX_SPAWN
+ */
+
+#include <sys/cdefs.h>
+#include <_types.h>
+#include <sys/spawn.h> /* shared types */
+
+#include <Availability.h>
+
+/*
+ * [SPN] Inclusion of the <spawn.h> header may make visible symbols defined
+ * in the <sched.h>, <signal.h>, and <sys/types.h> headers.
+ */
+#ifndef __FreeBSD__
+#ifndef _PID_T
+typedef __darwin_pid_t pid_t;
+#define _PID_T
+#endif
+
+#ifndef _SIGSET_T
+#define _SIGSET_T
+typedef __darwin_sigset_t sigset_t;
+#endif
+
+#ifndef _MODE_T
+typedef __darwin_mode_t mode_t;
+#define _MODE_T
+#endif
+#endif
+
+/*
+ * Opaque types for use with posix_spawn() family functions. Internals are
+ * not defined, and should not be accessed directly. Types are defined as
+ * mandated by POSIX.
+ */
+typedef void *posix_spawnattr_t;
+typedef void *posix_spawn_file_actions_t;
+
+__BEGIN_DECLS
+/*
+ * gcc under c99 mode won't compile "[ __restrict]" by itself. As a workaround,
+ * a dummy argument name is added.
+ */
+int posix_spawn(pid_t * __restrict, const char * __restrict,
+ const posix_spawn_file_actions_t *,
+ const posix_spawnattr_t * __restrict,
+ char *const __argv[ __restrict],
+ char *const __envp[ __restrict]) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnp(pid_t * __restrict, const char * __restrict,
+ const posix_spawn_file_actions_t *,
+ const posix_spawnattr_t * __restrict,
+ char *const __argv[ __restrict],
+ char *const __envp[ __restrict]) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t *, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t *, int,
+ int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_addopen(
+ posix_spawn_file_actions_t * __restrict, int,
+ const char * __restrict, int, mode_t) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_destroy(posix_spawn_file_actions_t *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_init(posix_spawn_file_actions_t *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_destroy(posix_spawnattr_t *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_getsigdefault(const posix_spawnattr_t * __restrict,
+ sigset_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_getflags(const posix_spawnattr_t * __restrict,
+ short * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_getpgroup(const posix_spawnattr_t * __restrict,
+ pid_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_getsigmask(const posix_spawnattr_t * __restrict,
+ sigset_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_init(posix_spawnattr_t *) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setsigdefault(posix_spawnattr_t * __restrict,
+ const sigset_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setflags(posix_spawnattr_t *, short) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setpgroup(posix_spawnattr_t *, pid_t) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setsigmask(posix_spawnattr_t * __restrict,
+ const sigset_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+
+#if 0 /* _POSIX_PRIORITY_SCHEDULING [PS] : not supported */
+int posix_spawnattr_setschedparam(posix_spawnattr_t * __restrict,
+ const struct sched_param * __restrict);
+int posix_spawnattr_setschedpolicy(posix_spawnattr_t *, int);
+int posix_spawnattr_getschedparam(const posix_spawnattr_t * __restrict,
+ struct sched_param * __restrict);
+int posix_spawnattr_getschedpolicy(const posix_spawnattr_t * __restrict,
+ int * __restrict);
+#endif /* 0 */
+
+__END_DECLS
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+/*
+ * Darwin-specific extensions below
+ */
+#include <mach/exception_types.h>
+#include <mach/machine.h>
+#include <mach/port.h>
+
+#ifndef __FreeBSD__
+#ifndef _SIZE_T
+typedef __darwin_size_t size_t;
+#define _SIZE_T
+#endif
+#endif
+__BEGIN_DECLS
+
+int posix_spawnattr_getbinpref_np(const posix_spawnattr_t * __restrict,
+ size_t, cpu_type_t *__restrict, size_t *__restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setauditsessionport_np(posix_spawnattr_t *__restrict,
+ mach_port_t) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
+int posix_spawnattr_setbinpref_np(posix_spawnattr_t * __restrict,
+ size_t, cpu_type_t *__restrict, size_t *__restrict) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setexceptionports_np(posix_spawnattr_t *__restrict,
+ exception_mask_t, mach_port_t,
+ exception_behavior_t, thread_state_flavor_t) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawnattr_setspecialport_np(posix_spawnattr_t *__restrict,
+ mach_port_t, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int posix_spawn_file_actions_addinherit_np(posix_spawn_file_actions_t *,
+ int) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
+
+__END_DECLS
+
+#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
+#endif /* _SPAWN_H_ */
Property changes on: trunk/include/apple/spawn.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/spawn_private.h
===================================================================
--- trunk/include/apple/spawn_private.h (rev 0)
+++ trunk/include/apple/spawn_private.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) 2006, 2008 Apple,Inc. All rights reserved.
+ *
+ * @APPLE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this
+ * file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_LICENSE_HEADER_END@
+ */
+
+#ifndef _SPAWN_PRIVATE_H_
+#define _SPAWN_PRIVATE_H_
+
+#include <spawn.h>
+#include <sys/cdefs.h>
+#include <Availability.h>
+#include <TargetConditionals.h>
+
+int posix_spawnattr_getpcontrol_np(const posix_spawnattr_t * __restrict, int * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
+int posix_spawnattr_setpcontrol_np(posix_spawnattr_t *, const int) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_2);
+
+int posix_spawnattr_getprocesstype_np(const posix_spawnattr_t * __restrict, int * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int posix_spawnattr_setprocesstype_np(posix_spawnattr_t *, const int) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+
+int posix_spawnattr_setcpumonitor(posix_spawnattr_t * __restrict, uint64_t, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int posix_spawnattr_getcpumonitor(posix_spawnattr_t * __restrict, uint64_t *, uint64_t *) __OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_6_0);
+int posix_spawnattr_setcpumonitor_default(posix_spawnattr_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_6_0);
+
+
+#define POSIX_SPAWN_IMPORTANCE_PORT_COUNT 32
+int posix_spawnattr_set_importancewatch_port_np(posix_spawnattr_t * __restrict attr,
+ int count, mach_port_t portarray[]) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_6_0);
+
+#define POSIX_SPAWN_MACPOLICYINFO_WITHSIZE 1
+int posix_spawnattr_getmacpolicyinfo_np(const posix_spawnattr_t * __restrict, const char *, void **, size_t *) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+int posix_spawnattr_setmacpolicyinfo_np(posix_spawnattr_t * __restrict, const char *, void *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_9, __IPHONE_7_0);
+
+int posix_spawnattr_setcoalition_np(const posix_spawnattr_t * __restrict, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+int posix_spawnattr_set_qos_clamp_np(const posix_spawnattr_t * __restrict, uint64_t) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+int posix_spawnattr_get_qos_clamp_np(const posix_spawnattr_t * __restrict, uint64_t * __restrict) __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);
+
+#endif /* !defined _SPAWN_PRIVATE_H_*/
Property changes on: trunk/include/apple/spawn_private.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/Makefile
===================================================================
--- trunk/include/apple/sys/Makefile (rev 0)
+++ trunk/include/apple/sys/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+NO_OBJ=
+INCS= _posix_availability.h \
+ _symbol_aliasing.h \
+ appleapiopts.h \
+ fileport.h \
+ kdebug.h \
+ kern_control.h \
+ kern_event.h \
+ kern_memorystatus.h \
+ proc_info.h \
+ process_policy.h \
+ resource.h \
+ spawn.h \
+ spawn_internal.h \
+ sys_domain.h \
+
+INCSDIR=${INCLUDEDIR}/apple/sys
+SUBDIR= _pthread _types
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/apple/sys/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_posix_availability.h
===================================================================
--- trunk/include/apple/sys/_posix_availability.h (rev 0)
+++ trunk/include/apple/sys/_posix_availability.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,73 @@
+/* Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _CDEFS_H_
+# error "Never use <sys/_posix_availability.h> directly. Use <sys/cdefs.h> instead."
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 198808L
+#define ___POSIX_C_DEPRECATED_STARTING_198808L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_198808L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199009L
+#define ___POSIX_C_DEPRECATED_STARTING_199009L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_199009L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199209L
+#define ___POSIX_C_DEPRECATED_STARTING_199209L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_199209L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199309L
+#define ___POSIX_C_DEPRECATED_STARTING_199309L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_199309L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 199506L
+#define ___POSIX_C_DEPRECATED_STARTING_199506L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_199506L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L
+#define ___POSIX_C_DEPRECATED_STARTING_200112L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_200112L
+#endif
+
+#if !defined(_DARWIN_C_SOURCE) && defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200809L
+#define ___POSIX_C_DEPRECATED_STARTING_200809L __deprecated
+#else
+#define ___POSIX_C_DEPRECATED_STARTING_200809L
+#endif
+
Property changes on: trunk/include/apple/sys/_posix_availability.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/Makefile
===================================================================
--- trunk/include/apple/sys/_pthread/Makefile (rev 0)
+++ trunk/include/apple/sys/_pthread/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,20 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+NO_OBJ=
+INCS= _pthread_attr_t.h \
+ _pthread_cond_t.h \
+ _pthread_condattr_t.h \
+ _pthread_key_t.h \
+ _pthread_mutex_t.h \
+ _pthread_mutexattr_t.h \
+ _pthread_once_t.h \
+ _pthread_rwlock_t.h \
+ _pthread_rwlockattr_t.h \
+ _pthread_t.h \
+ _pthread_types.h
+
+INCSDIR=${INCLUDEDIR}/apple/sys/_pthread
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/apple/sys/_pthread/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_attr_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_attr_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_attr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_ATTR_T
+#define _PTHREAD_ATTR_T
+typedef __darwin_pthread_attr_t pthread_attr_t;
+#endif /* _PTHREAD_ATTR_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_attr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_cond_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_cond_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_cond_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_COND_T
+#define _PTHREAD_COND_T
+typedef __darwin_pthread_cond_t pthread_cond_t;
+#endif /* _PTHREAD_COND_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_cond_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_condattr_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_condattr_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_condattr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_CONDATTR_T
+#define _PTHREAD_CONDATTR_T
+typedef __darwin_pthread_condattr_t pthread_condattr_t;
+#endif /* _PTHREAD_CONDATTR_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_condattr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_key_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_key_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_key_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_KEY_T
+#define _PTHREAD_KEY_T
+typedef __darwin_pthread_key_t pthread_key_t;
+#endif /* _PTHREAD_KEY_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_key_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_mutex_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_mutex_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_mutex_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_MUTEX_T
+#define _PTHREAD_MUTEX_T
+typedef __darwin_pthread_mutex_t pthread_mutex_t;
+#endif /*_PTHREAD_MUTEX_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_mutex_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_mutexattr_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_mutexattr_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_mutexattr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_MUTEXATTR_T
+#define _PTHREAD_MUTEXATTR_T
+typedef __darwin_pthread_mutexattr_t pthread_mutexattr_t;
+#endif /* _PTHREAD_MUTEXATTR_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_mutexattr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_once_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_once_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_once_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_ONCE_T
+#define _PTHREAD_ONCE_T
+typedef __darwin_pthread_once_t pthread_once_t;
+#endif /* _PTHREAD_ONCE_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_once_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_rwlock_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_rwlock_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_rwlock_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_RWLOCK_T
+#define _PTHREAD_RWLOCK_T
+typedef __darwin_pthread_rwlock_t pthread_rwlock_t;
+#endif /* _PTHREAD_RWLOCK_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_rwlock_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_rwlockattr_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_rwlockattr_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_rwlockattr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_RWLOCKATTR_T
+#define _PTHREAD_RWLOCKATTR_T
+typedef __darwin_pthread_rwlockattr_t pthread_rwlockattr_t;
+#endif /* _PTHREAD_RWLOCKATTR_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_rwlockattr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_t.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_t.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PTHREAD_T
+#define _PTHREAD_T
+typedef __darwin_pthread_t pthread_t;
+#endif /* _PTHREAD_T */
Property changes on: trunk/include/apple/sys/_pthread/_pthread_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_pthread/_pthread_types.h
===================================================================
--- trunk/include/apple/sys/_pthread/_pthread_types.h (rev 0)
+++ trunk/include/apple/sys/_pthread/_pthread_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,120 @@
+/*
+ * Copyright (c) 2003-2013 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _SYS__PTHREAD_TYPES_H_
+#define _SYS__PTHREAD_TYPES_H_
+
+#include <sys/cdefs.h>
+
+// pthread opaque structures
+#if defined(__LP64__)
+#define __PTHREAD_SIZE__ 8176
+#define __PTHREAD_ATTR_SIZE__ 56
+#define __PTHREAD_MUTEXATTR_SIZE__ 8
+#define __PTHREAD_MUTEX_SIZE__ 56
+#define __PTHREAD_CONDATTR_SIZE__ 8
+#define __PTHREAD_COND_SIZE__ 40
+#define __PTHREAD_ONCE_SIZE__ 8
+#define __PTHREAD_RWLOCK_SIZE__ 192
+#define __PTHREAD_RWLOCKATTR_SIZE__ 16
+#else // !__LP64__
+#define __PTHREAD_SIZE__ 4088
+#define __PTHREAD_ATTR_SIZE__ 36
+#define __PTHREAD_MUTEXATTR_SIZE__ 8
+#define __PTHREAD_MUTEX_SIZE__ 40
+#define __PTHREAD_CONDATTR_SIZE__ 4
+#define __PTHREAD_COND_SIZE__ 24
+#define __PTHREAD_ONCE_SIZE__ 4
+#define __PTHREAD_RWLOCK_SIZE__ 124
+#define __PTHREAD_RWLOCKATTR_SIZE__ 12
+#endif // !__LP64__
+
+struct __darwin_pthread_handler_rec {
+ void (*__routine)(void *); // Routine to call
+ void *__arg; // Argument to pass
+ struct __darwin_pthread_handler_rec *__next;
+};
+
+struct _opaque_pthread_attr_t {
+ long __sig;
+ char __opaque[__PTHREAD_ATTR_SIZE__];
+};
+
+struct _opaque_pthread_cond_t {
+ long __sig;
+ char __opaque[__PTHREAD_COND_SIZE__];
+};
+
+struct _opaque_pthread_condattr_t {
+ long __sig;
+ char __opaque[__PTHREAD_CONDATTR_SIZE__];
+};
+
+struct _opaque_pthread_mutex_t {
+ long __sig;
+ char __opaque[__PTHREAD_MUTEX_SIZE__];
+};
+
+struct _opaque_pthread_mutexattr_t {
+ long __sig;
+ char __opaque[__PTHREAD_MUTEXATTR_SIZE__];
+};
+
+struct _opaque_pthread_once_t {
+ long __sig;
+ char __opaque[__PTHREAD_ONCE_SIZE__];
+};
+
+struct _opaque_pthread_rwlock_t {
+ long __sig;
+ char __opaque[__PTHREAD_RWLOCK_SIZE__];
+};
+
+struct _opaque_pthread_rwlockattr_t {
+ long __sig;
+ char __opaque[__PTHREAD_RWLOCKATTR_SIZE__];
+};
+
+struct _opaque_pthread_t {
+ long __sig;
+ struct __darwin_pthread_handler_rec *__cleanup_stack;
+ char __opaque[__PTHREAD_SIZE__];
+};
+
+typedef struct _opaque_pthread_attr_t __darwin_pthread_attr_t;
+typedef struct _opaque_pthread_cond_t __darwin_pthread_cond_t;
+typedef struct _opaque_pthread_condattr_t __darwin_pthread_condattr_t;
+typedef unsigned long __darwin_pthread_key_t;
+typedef struct _opaque_pthread_mutex_t __darwin_pthread_mutex_t;
+typedef struct _opaque_pthread_mutexattr_t __darwin_pthread_mutexattr_t;
+typedef struct _opaque_pthread_once_t __darwin_pthread_once_t;
+typedef struct _opaque_pthread_rwlock_t __darwin_pthread_rwlock_t;
+typedef struct _opaque_pthread_rwlockattr_t __darwin_pthread_rwlockattr_t;
+typedef struct _opaque_pthread_t *__darwin_pthread_t;
+
+#endif // _SYS__PTHREAD_TYPES_H_
Property changes on: trunk/include/apple/sys/_pthread/_pthread_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_symbol_aliasing.h
===================================================================
--- trunk/include/apple/sys/_symbol_aliasing.h (rev 0)
+++ trunk/include/apple/sys/_symbol_aliasing.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,199 @@
+/* Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _CDEFS_H_
+# error "Never use <sys/_symbol_aliasing.h> directly. Use <sys/cdefs.h> instead."
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 20200
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_2(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_2_2(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 30200
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_2(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_3_2(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40200
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_2(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_2(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 40300
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_3(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_4_3(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 50000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 50100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_5_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 60100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_6_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 70000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 70100
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_7_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ >= 80000
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_8_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_IPHONE___IPHONE_8_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1000
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_0(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1010
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_1(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_1(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1020
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_2(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_2(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1030
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_3(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_3(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1040
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_4(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_4(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1050
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_5(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_5(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1060
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_6(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_6(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1070
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_7(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_7(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1080
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_8(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_8(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 1090
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_9(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_9(x)
+#endif
+
+#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 10100
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_10(x) x
+#else
+#define __DARWIN_ALIAS_STARTING_MAC___MAC_10_10(x)
+#endif
+
Property changes on: trunk/include/apple/sys/_symbol_aliasing.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/Makefile
===================================================================
--- trunk/include/apple/sys/_types/Makefile (rev 0)
+++ trunk/include/apple/sys/_types/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,77 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+NO_OBJ=
+INCS= _blkcnt_t.h \
+ _blksize_t.h \
+ _clock_t.h \
+ _ct_rune_t.h \
+ _dev_t.h \
+ _errno_t.h \
+ _fd_clr.h \
+ _fd_copy.h \
+ _fd_def.h \
+ _fd_isset.h \
+ _fd_set.h \
+ _fd_setsize.h \
+ _fd_zero.h \
+ _filesec_t.h \
+ _fsblkcnt_t.h \
+ _fsfilcnt_t.h \
+ _fsid_t.h \
+ _gid_t.h \
+ _guid_t.h \
+ _id_t.h \
+ _in_addr_t.h \
+ _in_port_t.h \
+ _ino64_t.h \
+ _ino_t.h \
+ _int16_t.h \
+ _int32_t.h \
+ _int64_t.h \
+ _int8_t.h \
+ _intptr_t.h \
+ _iovec_t.h \
+ _key_t.h \
+ _mach_port_t.h \
+ _mbstate_t.h \
+ _mode_t.h \
+ _nlink_t.h \
+ _null.h \
+ _o_dsync.h \
+ _o_sync.h \
+ _off_t.h \
+ _offsetof.h \
+ _os_inline.h \
+ _pid_t.h \
+ _posix_vdisable.h \
+ _ptrdiff_t.h \
+ _rsize_t.h \
+ _rune_t.h \
+ _s_ifmt.h \
+ _sa_family_t.h \
+ _seek_set.h \
+ _sigaltstack.h \
+ _sigset_t.h \
+ _size_t.h \
+ _socklen_t.h \
+ _ssize_t.h \
+ _suseconds_t.h \
+ _time_t.h \
+ _timespec.h \
+ _timeval.h \
+ _timeval32.h \
+ _ucontext.h \
+ _ucontext64.h \
+ _uid_t.h \
+ _uintptr_t.h \
+ _useconds_t.h \
+ _uuid_t.h \
+ _va_list.h \
+ _wchar_t.h \
+ _wint_t.h
+
+INCSDIR=${INCLUDEDIR}/apple/sys/_types
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/apple/sys/_types/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_blkcnt_t.h
===================================================================
--- trunk/include/apple/sys/_types/_blkcnt_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_blkcnt_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _BLKCNT_T
+#define _BLKCNT_T
+typedef __darwin_blkcnt_t blkcnt_t;
+#endif /* _BLKCNT_T */
Property changes on: trunk/include/apple/sys/_types/_blkcnt_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_blksize_t.h
===================================================================
--- trunk/include/apple/sys/_types/_blksize_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_blksize_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _BLKSIZE_T
+#define _BLKSIZE_T
+typedef __darwin_blksize_t blksize_t;
+#endif /* _BLKSIZE_T */
Property changes on: trunk/include/apple/sys/_types/_blksize_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_clock_t.h
===================================================================
--- trunk/include/apple/sys/_types/_clock_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_clock_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _CLOCK_T
+#define _CLOCK_T
+typedef __darwin_clock_t clock_t;
+#endif /* _CLOCK_T */
Property changes on: trunk/include/apple/sys/_types/_clock_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ct_rune_t.h
===================================================================
--- trunk/include/apple/sys/_types/_ct_rune_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_ct_rune_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _CT_RUNE_T
+#define _CT_RUNE_T
+typedef __darwin_ct_rune_t ct_rune_t;
+#endif /* _CT_RUNE_T */
Property changes on: trunk/include/apple/sys/_types/_ct_rune_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_dev_t.h
===================================================================
--- trunk/include/apple/sys/_types/_dev_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_dev_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _DEV_T
+#define _DEV_T
+typedef __darwin_dev_t dev_t; /* device number */
+#endif /* _DEV_T */
Property changes on: trunk/include/apple/sys/_types/_dev_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_errno_t.h
===================================================================
--- trunk/include/apple/sys/_types/_errno_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_errno_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _ERRNO_T
+#define _ERRNO_T
+typedef int errno_t;
+#endif /* _ERRNO_T */
Property changes on: trunk/include/apple/sys/_types/_errno_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_clr.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_clr.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_clr.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_CLR
+#define FD_CLR(n, p) __DARWIN_FD_CLR(n, p)
+#endif /* FD_CLR */
Property changes on: trunk/include/apple/sys/_types/_fd_clr.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_copy.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_copy.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_copy.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_COPY
+#define FD_COPY(f, t) __DARWIN_FD_COPY(f, t)
+#endif /* FD_COPY */
Property changes on: trunk/include/apple/sys/_types/_fd_copy.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_def.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_def.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_def.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,73 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _FD_SET
+#define _FD_SET
+/*
+ * Select uses bit masks of file descriptors in longs. These macros
+ * manipulate such bit fields (the filesystem macros use chars). The
+ * extra protection here is to permit application redefinition above
+ * the default size.
+ */
+#ifdef FD_SETSIZE
+#define __DARWIN_FD_SETSIZE FD_SETSIZE
+#else /* !FD_SETSIZE */
+#define __DARWIN_FD_SETSIZE 1024
+#endif /* FD_SETSIZE */
+#define __DARWIN_NBBY 8 /* bits in a byte */
+#define __DARWIN_NFDBITS (sizeof(__int32_t) * __DARWIN_NBBY) /* bits per mask */
+#define __DARWIN_howmany(x, y) ((((x) % (y)) == 0) ? ((x) / (y)) : (((x) / (y)) + 1)) /* # y's == x bits? */
+
+__BEGIN_DECLS
+typedef struct fd_set {
+ __int32_t fds_bits[__DARWIN_howmany(__DARWIN_FD_SETSIZE, __DARWIN_NFDBITS)];
+} fd_set;
+__END_DECLS
+
+/* This inline avoids argument side-effect issues with FD_ISSET() */
+static __inline int
+__darwin_fd_isset(int _n, const struct fd_set *_p)
+{
+ return (_p->fds_bits[(unsigned long)_n/__DARWIN_NFDBITS] & ((__int32_t)(1<<((unsigned long)_n % __DARWIN_NFDBITS))));
+}
+
+#define __DARWIN_FD_SET(n, p) do { int __fd = (n); ((p)->fds_bits[(unsigned long)__fd/__DARWIN_NFDBITS] |= ((__int32_t)(1<<((unsigned long)__fd % __DARWIN_NFDBITS)))); } while(0)
+#define __DARWIN_FD_CLR(n, p) do { int __fd = (n); ((p)->fds_bits[(unsigned long)__fd/__DARWIN_NFDBITS] &= ~((__int32_t)(1<<((unsigned long)__fd % __DARWIN_NFDBITS)))); } while(0)
+#define __DARWIN_FD_ISSET(n, p) __darwin_fd_isset((n), (p))
+
+#if __GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ >= 3
+/*
+ * Use the built-in bzero function instead of the library version so that
+ * we do not pollute the namespace or introduce prototype warnings.
+ */
+#define __DARWIN_FD_ZERO(p) __builtin_bzero(p, sizeof(*(p)))
+#else
+#define __DARWIN_FD_ZERO(p) bzero(p, sizeof(*(p)))
+#endif
+
+#define __DARWIN_FD_COPY(f, t) bcopy(f, t, sizeof(*(f)))
+#endif /* _FD_SET */
Property changes on: trunk/include/apple/sys/_types/_fd_def.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_isset.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_isset.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_isset.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_ISSET
+#define FD_ISSET(n, p) __DARWIN_FD_ISSET(n, p)
+#endif /* FD_ISSET */
Property changes on: trunk/include/apple/sys/_types/_fd_isset.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_set.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_set.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_set.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_SET
+#define FD_SET(n, p) __DARWIN_FD_SET(n, p)
+#endif /* FD_SET */
Property changes on: trunk/include/apple/sys/_types/_fd_set.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_setsize.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_setsize.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_setsize.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_SETSIZE
+#define FD_SETSIZE __DARWIN_FD_SETSIZE
+#endif /* FD_SETSIZE */
Property changes on: trunk/include/apple/sys/_types/_fd_setsize.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fd_zero.h
===================================================================
--- trunk/include/apple/sys/_types/_fd_zero.h (rev 0)
+++ trunk/include/apple/sys/_types/_fd_zero.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef FD_ZERO
+#define FD_ZERO(p) __DARWIN_FD_ZERO(p)
+#endif /* FD_ZERO */
Property changes on: trunk/include/apple/sys/_types/_fd_zero.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_filesec_t.h
===================================================================
--- trunk/include/apple/sys/_types/_filesec_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_filesec_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _FILESEC_T
+#define _FILESEC_T
+struct _filesec;
+typedef struct _filesec *filesec_t;
+#endif /* _FILESEC_T */
Property changes on: trunk/include/apple/sys/_types/_filesec_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fsblkcnt_t.h
===================================================================
--- trunk/include/apple/sys/_types/_fsblkcnt_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_fsblkcnt_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _FSBLKCNT_T
+#define _FSBLKCNT_T
+typedef __darwin_fsblkcnt_t fsblkcnt_t;
+#endif /* _FSBLKCNT_T */
Property changes on: trunk/include/apple/sys/_types/_fsblkcnt_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fsfilcnt_t.h
===================================================================
--- trunk/include/apple/sys/_types/_fsfilcnt_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_fsfilcnt_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _FSFILCNT_T
+#define _FSFILCNT_T
+typedef __darwin_fsfilcnt_t fsfilcnt_t;
+#endif /* _FSFILCNT_T */
Property changes on: trunk/include/apple/sys/_types/_fsfilcnt_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_fsid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_fsid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_fsid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2014 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _FSID_T
+#define _FSID_T
+typedef struct fsid { int32_t val[2]; } fsid_t; /* file system id type */
+#endif /* _FSID_T */
Property changes on: trunk/include/apple/sys/_types/_fsid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_gid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_gid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_gid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _GID_T
+#define _GID_T
+typedef __darwin_gid_t gid_t;
+#endif
Property changes on: trunk/include/apple/sys/_types/_gid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_guid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_guid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_guid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _KAUTH_GUID
+#define _KAUTH_GUID
+/* Apple-style globally unique identifier */
+typedef struct {
+#define KAUTH_GUID_SIZE 16 /* 128-bit identifier */
+ unsigned char g_guid[KAUTH_GUID_SIZE];
+} guid_t;
+#define _GUID_T
+#endif /* _KAUTH_GUID */
Property changes on: trunk/include/apple/sys/_types/_guid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_id_t.h
===================================================================
--- trunk/include/apple/sys/_types/_id_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_id_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _ID_T
+#define _ID_T
+typedef __darwin_id_t id_t; /* can hold pid_t, gid_t, or uid_t */
+#endif /* _ID_T */
Property changes on: trunk/include/apple/sys/_types/_id_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_in_addr_t.h
===================================================================
--- trunk/include/apple/sys/_types/_in_addr_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_in_addr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _IN_ADDR_T
+#define _IN_ADDR_T
+typedef __uint32_t in_addr_t; /* base type for internet address */
+#endif /* _IN_ADDR_T */
Property changes on: trunk/include/apple/sys/_types/_in_addr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_in_port_t.h
===================================================================
--- trunk/include/apple/sys/_types/_in_port_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_in_port_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _IN_PORT_T
+#define _IN_PORT_T
+typedef __uint16_t in_port_t;
+#endif /* _IN_PORT_T */
Property changes on: trunk/include/apple/sys/_types/_in_port_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ino64_t.h
===================================================================
--- trunk/include/apple/sys/_types/_ino64_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_ino64_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INO64_T
+#define _INO64_T
+typedef __darwin_ino64_t ino64_t; /* 64bit inode number */
+#endif /* _INO64_T */
Property changes on: trunk/include/apple/sys/_types/_ino64_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ino_t.h
===================================================================
--- trunk/include/apple/sys/_types/_ino_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_ino_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INO_T
+#define _INO_T
+typedef __darwin_ino_t ino_t; /* inode number */
+#endif /* _INO_T */
Property changes on: trunk/include/apple/sys/_types/_ino_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_int16_t.h
===================================================================
--- trunk/include/apple/sys/_types/_int16_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_int16_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INT16_T
+#define _INT16_T
+typedef short int16_t;
+#endif /* _INT16_T */
Property changes on: trunk/include/apple/sys/_types/_int16_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_int32_t.h
===================================================================
--- trunk/include/apple/sys/_types/_int32_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_int32_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INT32_T
+#define _INT32_T
+typedef int int32_t;
+#endif /* _INT32_T */
Property changes on: trunk/include/apple/sys/_types/_int32_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_int64_t.h
===================================================================
--- trunk/include/apple/sys/_types/_int64_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_int64_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INT64_T
+#define _INT64_T
+typedef long long int64_t;
+#endif /* _INT64_T */
Property changes on: trunk/include/apple/sys/_types/_int64_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_int8_t.h
===================================================================
--- trunk/include/apple/sys/_types/_int8_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_int8_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INT8_T
+#define _INT8_T
+typedef __signed char int8_t;
+#endif /* _INT8_T */
Property changes on: trunk/include/apple/sys/_types/_int8_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_intptr_t.h
===================================================================
--- trunk/include/apple/sys/_types/_intptr_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_intptr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _INTPTR_T
+#define _INTPTR_T
+typedef __darwin_intptr_t intptr_t;
+#endif /* _INTPTR_T */
Property changes on: trunk/include/apple/sys/_types/_intptr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_iovec_t.h
===================================================================
--- trunk/include/apple/sys/_types/_iovec_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_iovec_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_IOVEC
+#define _STRUCT_IOVEC
+struct iovec {
+ void * iov_base; /* [XSI] Base address of I/O memory region */
+ size_t iov_len; /* [XSI] Size of region iov_base points to */
+};
+#endif /* _STRUCT_IOVEC */
Property changes on: trunk/include/apple/sys/_types/_iovec_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_key_t.h
===================================================================
--- trunk/include/apple/sys/_types/_key_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_key_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _KEY_T
+#define _KEY_T
+typedef __int32_t key_t; /* IPC key (for Sys V IPC) */
+#endif /* _KEY_T */
Property changes on: trunk/include/apple/sys/_types/_key_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_mach_port_t.h
===================================================================
--- trunk/include/apple/sys/_types/_mach_port_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_mach_port_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/*
+ * mach_port_t - a named port right
+ *
+ * In user-space, "rights" are represented by the name of the
+ * right in the Mach port namespace. Even so, this type is
+ * presented as a unique one to more clearly denote the presence
+ * of a right coming along with the name.
+ *
+ * Often, various rights for a port held in a single name space
+ * will coalesce and are, therefore, be identified by a single name
+ * [this is the case for send and receive rights]. But not
+ * always [send-once rights currently get a unique name for
+ * each right].
+ *
+ * This definition of mach_port_t is only for user-space.
+ *
+ */
+
+#ifndef _MACH_PORT_T
+#define _MACH_PORT_T
+typedef uint32_t __darwin_natural_t;
+typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
+typedef __darwin_mach_port_name_t __darwin_mach_port_t;
+typedef __darwin_mach_port_t mach_port_t;
+#endif /* _MACH_PORT_T */
Property changes on: trunk/include/apple/sys/_types/_mach_port_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_mbstate_t.h
===================================================================
--- trunk/include/apple/sys/_types/_mbstate_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_mbstate_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _MBSTATE_T
+#define _MBSTATE_T
+typedef __darwin_mbstate_t mbstate_t;
+#endif /* _MBSTATE_T */
Property changes on: trunk/include/apple/sys/_types/_mbstate_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_mode_t.h
===================================================================
--- trunk/include/apple/sys/_types/_mode_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_mode_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _MODE_T
+#define _MODE_T
+typedef __darwin_mode_t mode_t;
+#endif /* _MODE_T */
Property changes on: trunk/include/apple/sys/_types/_mode_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_nlink_t.h
===================================================================
--- trunk/include/apple/sys/_types/_nlink_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_nlink_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _NLINK_T
+#define _NLINK_T
+typedef __uint16_t nlink_t; /* link count */
+#endif /* _NLINK_T */
Property changes on: trunk/include/apple/sys/_types/_nlink_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_null.h
===================================================================
--- trunk/include/apple/sys/_types/_null.h (rev 0)
+++ trunk/include/apple/sys/_types/_null.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef NULL
+#define NULL __DARWIN_NULL
+#endif /* NULL */
Property changes on: trunk/include/apple/sys/_types/_null.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_o_dsync.h
===================================================================
--- trunk/include/apple/sys/_types/_o_dsync.h (rev 0)
+++ trunk/include/apple/sys/_types/_o_dsync.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef O_DSYNC
+#define O_DSYNC 0x400000 /* synch I/O data integrity */
+#endif /* O_DSYNC */
Property changes on: trunk/include/apple/sys/_types/_o_dsync.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_o_sync.h
===================================================================
--- trunk/include/apple/sys/_types/_o_sync.h (rev 0)
+++ trunk/include/apple/sys/_types/_o_sync.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef O_SYNC
+#define O_SYNC 0x0080 /* synch I/O file integrity */
+#endif /* O_SYNC */
Property changes on: trunk/include/apple/sys/_types/_o_sync.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_off_t.h
===================================================================
--- trunk/include/apple/sys/_types/_off_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_off_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _OFF_T
+#define _OFF_T
+typedef __darwin_off_t off_t;
+#endif /* _OFF_T */
Property changes on: trunk/include/apple/sys/_types/_off_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_offsetof.h
===================================================================
--- trunk/include/apple/sys/_types/_offsetof.h (rev 0)
+++ trunk/include/apple/sys/_types/_offsetof.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef offsetof
+#define offsetof(type, field) __offsetof(type, field)
+#endif /* offsetof */
Property changes on: trunk/include/apple/sys/_types/_offsetof.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_os_inline.h
===================================================================
--- trunk/include/apple/sys/_types/_os_inline.h (rev 0)
+++ trunk/include/apple/sys/_types/_os_inline.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#if !defined(OS_INLINE)
+# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
+# define OS_INLINE static inline
+# else
+# define OS_INLINE static __inline__
+# endif
+#endif /* OS_INLINE */
Property changes on: trunk/include/apple/sys/_types/_os_inline.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_pid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_pid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_pid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _PID_T
+#define _PID_T
+typedef __darwin_pid_t pid_t;
+#endif /* _PID_T */
Property changes on: trunk/include/apple/sys/_types/_pid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_posix_vdisable.h
===================================================================
--- trunk/include/apple/sys/_types/_posix_vdisable.h (rev 0)
+++ trunk/include/apple/sys/_types/_posix_vdisable.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _POSIX_VDISABLE
+#define _POSIX_VDISABLE ((unsigned char)'\377')
+#endif /* POSIX_VDISABLE */
Property changes on: trunk/include/apple/sys/_types/_posix_vdisable.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ptrdiff_t.h
===================================================================
--- trunk/include/apple/sys/_types/_ptrdiff_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_ptrdiff_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _PTRDIFF_T
+#define _PTRDIFF_T
+typedef __darwin_ptrdiff_t ptrdiff_t;
+#endif /* _PTRDIFF_T */
Property changes on: trunk/include/apple/sys/_types/_ptrdiff_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_rsize_t.h
===================================================================
--- trunk/include/apple/sys/_types/_rsize_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_rsize_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _RSIZE_T
+#define _RSIZE_T
+typedef __darwin_size_t rsize_t;
+#endif /* _RSIZE_T */
Property changes on: trunk/include/apple/sys/_types/_rsize_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_rune_t.h
===================================================================
--- trunk/include/apple/sys/_types/_rune_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_rune_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _RUNE_T
+#define _RUNE_T
+typedef __darwin_rune_t rune_t;
+#endif /* _RUNE_T */
Property changes on: trunk/include/apple/sys/_types/_rune_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_s_ifmt.h
===================================================================
--- trunk/include/apple/sys/_types/_s_ifmt.h (rev 0)
+++ trunk/include/apple/sys/_types/_s_ifmt.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,74 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/*
+ * [XSI] The symbolic names for file modes for use as values of mode_t
+ * shall be defined as described in <sys/stat.h>
+ */
+#ifndef S_IFMT
+/* File type */
+#define S_IFMT 0170000 /* [XSI] type of file mask */
+#define S_IFIFO 0010000 /* [XSI] named pipe (fifo) */
+#define S_IFCHR 0020000 /* [XSI] character special */
+#define S_IFDIR 0040000 /* [XSI] directory */
+#define S_IFBLK 0060000 /* [XSI] block special */
+#define S_IFREG 0100000 /* [XSI] regular */
+#define S_IFLNK 0120000 /* [XSI] symbolic link */
+#define S_IFSOCK 0140000 /* [XSI] socket */
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+#define S_IFWHT 0160000 /* OBSOLETE: whiteout */
+#endif
+
+/* File mode */
+/* Read, write, execute/search by owner */
+#define S_IRWXU 0000700 /* [XSI] RWX mask for owner */
+#define S_IRUSR 0000400 /* [XSI] R for owner */
+#define S_IWUSR 0000200 /* [XSI] W for owner */
+#define S_IXUSR 0000100 /* [XSI] X for owner */
+/* Read, write, execute/search by group */
+#define S_IRWXG 0000070 /* [XSI] RWX mask for group */
+#define S_IRGRP 0000040 /* [XSI] R for group */
+#define S_IWGRP 0000020 /* [XSI] W for group */
+#define S_IXGRP 0000010 /* [XSI] X for group */
+/* Read, write, execute/search by others */
+#define S_IRWXO 0000007 /* [XSI] RWX mask for other */
+#define S_IROTH 0000004 /* [XSI] R for other */
+#define S_IWOTH 0000002 /* [XSI] W for other */
+#define S_IXOTH 0000001 /* [XSI] X for other */
+
+#define S_ISUID 0004000 /* [XSI] set user id on execution */
+#define S_ISGID 0002000 /* [XSI] set group id on execution */
+#define S_ISVTX 0001000 /* [XSI] directory restrcted delete */
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+#define S_ISTXT S_ISVTX /* sticky bit: not supported */
+#define S_IREAD S_IRUSR /* backward compatability */
+#define S_IWRITE S_IWUSR /* backward compatability */
+#define S_IEXEC S_IXUSR /* backward compatability */
+#endif
+#endif /* !S_IFMT */
Property changes on: trunk/include/apple/sys/_types/_s_ifmt.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_sa_family_t.h
===================================================================
--- trunk/include/apple/sys/_types/_sa_family_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_sa_family_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SA_FAMILY_T
+#define _SA_FAMILY_T
+typedef __uint8_t sa_family_t;
+#endif /* _SA_FAMILY_T */
Property changes on: trunk/include/apple/sys/_types/_sa_family_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_seek_set.h
===================================================================
--- trunk/include/apple/sys/_types/_seek_set.h (rev 0)
+++ trunk/include/apple/sys/_types/_seek_set.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/* whence values for lseek(2) */
+#ifndef SEEK_SET
+#define SEEK_SET 0 /* set file offset to offset */
+#define SEEK_CUR 1 /* set file offset to current plus offset */
+#define SEEK_END 2 /* set file offset to EOF plus offset */
+#endif /* !SEEK_SET */
Property changes on: trunk/include/apple/sys/_types/_seek_set.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_sigaltstack.h
===================================================================
--- trunk/include/apple/sys/_types/_sigaltstack.h (rev 0)
+++ trunk/include/apple/sys/_types/_sigaltstack.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/* Structure used in sigaltstack call. */
+#ifndef _STRUCT_SIGALTSTACK
+#if __DARWIN_UNIX03
+#define _STRUCT_SIGALTSTACK struct __darwin_sigaltstack
+#else /* !__DARWIN_UNIX03 */
+#define _STRUCT_SIGALTSTACK struct sigaltstack
+#endif /* __DARWIN_UNIX03 */
+_STRUCT_SIGALTSTACK
+{
+ void *ss_sp; /* signal stack base */
+ __darwin_size_t ss_size; /* signal stack length */
+ int ss_flags; /* SA_DISABLE and/or SA_ONSTACK */
+};
+typedef _STRUCT_SIGALTSTACK stack_t; /* [???] signal stack */
+
+#endif /* _STRUCT_SIGALTSTACK */
Property changes on: trunk/include/apple/sys/_types/_sigaltstack.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_sigset_t.h
===================================================================
--- trunk/include/apple/sys/_types/_sigset_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_sigset_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SIGSET_T
+#define _SIGSET_T
+typedef __darwin_sigset_t sigset_t;
+#endif /* _SIGSET_T */
Property changes on: trunk/include/apple/sys/_types/_sigset_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_size_t.h
===================================================================
--- trunk/include/apple/sys/_types/_size_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_size_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SIZE_T
+#define _SIZE_T
+typedef __darwin_size_t size_t;
+#endif /* _SIZE_T */
Property changes on: trunk/include/apple/sys/_types/_size_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_socklen_t.h
===================================================================
--- trunk/include/apple/sys/_types/_socklen_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_socklen_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SOCKLEN_T
+#define _SOCKLEN_T
+typedef __darwin_socklen_t socklen_t;
+#endif
+
Property changes on: trunk/include/apple/sys/_types/_socklen_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ssize_t.h
===================================================================
--- trunk/include/apple/sys/_types/_ssize_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_ssize_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SSIZE_T
+#define _SSIZE_T
+typedef __darwin_ssize_t ssize_t;
+#endif /* _SSIZE_T */
Property changes on: trunk/include/apple/sys/_types/_ssize_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_suseconds_t.h
===================================================================
--- trunk/include/apple/sys/_types/_suseconds_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_suseconds_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _SUSECONDS_T
+#define _SUSECONDS_T
+typedef __darwin_suseconds_t suseconds_t;
+#endif /* _SUSECONDS_T */
Property changes on: trunk/include/apple/sys/_types/_suseconds_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_time_t.h
===================================================================
--- trunk/include/apple/sys/_types/_time_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_time_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _TIME_T
+#define _TIME_T
+typedef __darwin_time_t time_t;
+#endif /* _TIME_T */
Property changes on: trunk/include/apple/sys/_types/_time_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_timespec.h
===================================================================
--- trunk/include/apple/sys/_types/_timespec.h (rev 0)
+++ trunk/include/apple/sys/_types/_timespec.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_TIMESPEC
+#define _STRUCT_TIMESPEC struct timespec
+_STRUCT_TIMESPEC
+{
+ __darwin_time_t tv_sec;
+ long tv_nsec;
+};
+#endif /* _STRUCT_TIMESPEC */
Property changes on: trunk/include/apple/sys/_types/_timespec.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_timeval.h
===================================================================
--- trunk/include/apple/sys/_types/_timeval.h (rev 0)
+++ trunk/include/apple/sys/_types/_timeval.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_TIMEVAL
+#define _STRUCT_TIMEVAL struct timeval
+_STRUCT_TIMEVAL
+{
+ __darwin_time_t tv_sec; /* seconds */
+ __darwin_suseconds_t tv_usec; /* and microseconds */
+};
+#endif /* _STRUCT_TIMEVAL */
Property changes on: trunk/include/apple/sys/_types/_timeval.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_timeval32.h
===================================================================
--- trunk/include/apple/sys/_types/_timeval32.h (rev 0)
+++ trunk/include/apple/sys/_types/_timeval32.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_TIMEVAL32
+#define _STRUCT_TIMEVAL32 struct timeval32
+_STRUCT_TIMEVAL32
+{
+ __int32_t tv_sec; /* seconds */
+ __int32_t tv_usec; /* and microseconds */
+};
+#endif /* _STRUCT_TIMEVAL32 */
Property changes on: trunk/include/apple/sys/_types/_timeval32.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ucontext.h
===================================================================
--- trunk/include/apple/sys/_types/_ucontext.h (rev 0)
+++ trunk/include/apple/sys/_types/_ucontext.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,50 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_UCONTEXT
+#if __DARWIN_UNIX03
+#define _STRUCT_UCONTEXT struct __darwin_ucontext
+#else /* !__DARWIN_UNIX03 */
+#define _STRUCT_UCONTEXT struct ucontext
+#endif /* __DARWIN_UNIX03 */
+_STRUCT_UCONTEXT
+{
+ int uc_onstack;
+ __darwin_sigset_t uc_sigmask; /* signal mask used by this context */
+ _STRUCT_SIGALTSTACK uc_stack; /* stack used by this context */
+ _STRUCT_UCONTEXT *uc_link; /* pointer to resuming context */
+ __darwin_size_t uc_mcsize; /* size of the machine context passed in */
+ _STRUCT_MCONTEXT *uc_mcontext; /* pointer to machine specific context */
+#ifdef _XOPEN_SOURCE
+ _STRUCT_MCONTEXT __mcontext_data;
+#endif /* _XOPEN_SOURCE */
+};
+
+/* user context */
+typedef _STRUCT_UCONTEXT ucontext_t; /* [???] user context */
+
+#endif /* _STRUCT_UCONTEXT */
Property changes on: trunk/include/apple/sys/_types/_ucontext.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_ucontext64.h
===================================================================
--- trunk/include/apple/sys/_types/_ucontext64.h (rev 0)
+++ trunk/include/apple/sys/_types/_ucontext64.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _STRUCT_UCONTEXT64
+#if __DARWIN_UNIX03
+#define _STRUCT_UCONTEXT64 struct __darwin_ucontext64
+#else /* !__DARWIN_UNIX03 */
+#define _STRUCT_UCONTEXT64 struct ucontext64
+#endif /* __DARWIN_UNIX03 */
+_STRUCT_UCONTEXT64
+{
+ int uc_onstack;
+ __darwin_sigset_t uc_sigmask; /* signal mask used by this context */
+ _STRUCT_SIGALTSTACK uc_stack; /* stack used by this context */
+ _STRUCT_UCONTEXT64 *uc_link; /* pointer to resuming context */
+ __darwin_size_t uc_mcsize; /* size of the machine context passed in */
+ _STRUCT_MCONTEXT64 *uc_mcontext64; /* pointer to machine specific context */
+};
+typedef _STRUCT_UCONTEXT64 ucontext64_t; /* [???] user context */
+
+#endif /* _STRUCT_UCONTEXT64 */
Property changes on: trunk/include/apple/sys/_types/_ucontext64.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_uid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_uid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_uid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _UID_T
+#define _UID_T
+typedef __darwin_uid_t uid_t;
+#endif /* _UID_T */
Property changes on: trunk/include/apple/sys/_types/_uid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_uintptr_t.h
===================================================================
--- trunk/include/apple/sys/_types/_uintptr_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_uintptr_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _UINTPTR_T
+#define _UINTPTR_T
+typedef unsigned long uintptr_t;
+#endif /* _UINTPTR_T */
Property changes on: trunk/include/apple/sys/_types/_uintptr_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_useconds_t.h
===================================================================
--- trunk/include/apple/sys/_types/_useconds_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_useconds_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _USECONDS_T
+#define _USECONDS_T
+typedef __darwin_useconds_t useconds_t;
+#endif /* _USECONDS_T */
Property changes on: trunk/include/apple/sys/_types/_useconds_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_uuid_t.h
===================================================================
--- trunk/include/apple/sys/_types/_uuid_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_uuid_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2003-2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+#ifndef _UUID_T
+#define _UUID_T
+typedef char __darwin_uuid_string_t[37];
+typedef unsigned char __darwin_uuid_t[16];
+#ifndef _UUID_T_DEFINED
+#define _UUID_T_DEFINED
+typedef __darwin_uuid_t uuid_t;
+#endif /* _UUID_T_DEFINED */
+#endif /* _UUID_T */
Property changes on: trunk/include/apple/sys/_types/_uuid_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_va_list.h
===================================================================
--- trunk/include/apple/sys/_types/_va_list.h (rev 0)
+++ trunk/include/apple/sys/_types/_va_list.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _VA_LIST_T
+#define _VA_LIST_T
+typedef __darwin_va_list va_list;
+#endif /* _VA_LIST_T */
Property changes on: trunk/include/apple/sys/_types/_va_list.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_wchar_t.h
===================================================================
--- trunk/include/apple/sys/_types/_wchar_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_wchar_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/* wchar_t is a built-in type in C++ */
+#ifndef __cplusplus
+#ifndef _WCHAR_T
+#define _WCHAR_T
+typedef __darwin_wchar_t wchar_t;
+#endif /* _WCHAR_T */
+#endif /* __cplusplus */
Property changes on: trunk/include/apple/sys/_types/_wchar_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/_types/_wint_t.h
===================================================================
--- trunk/include/apple/sys/_types/_wint_t.h (rev 0)
+++ trunk/include/apple/sys/_types/_wint_t.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2012 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _WINT_T
+#define _WINT_T
+typedef __darwin_wint_t wint_t;
+#endif /* _WINT_T */
Property changes on: trunk/include/apple/sys/_types/_wint_t.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/appleapiopts.h
===================================================================
--- trunk/include/apple/sys/appleapiopts.h (rev 0)
+++ trunk/include/apple/sys/appleapiopts.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,62 @@
+/*
+ * Copyright (c) 2002 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef __SYS_APPLEAPIOPTS_H__
+#define __SYS_APPLEAPIOPTS_H__
+
+
+#ifndef __APPLE_API_STANDARD
+#define __APPLE_API_STANDARD
+#endif /* __APPLE_API_STANDARD */
+
+#ifndef __APPLE_API_STABLE
+#define __APPLE_API_STABLE
+#endif /* __APPLE_API_STABLE */
+
+#ifndef __APPLE_API_STRICT_CONFORMANCE
+
+#ifndef __APPLE_API_EVOLVING
+#define __APPLE_API_EVOLVING
+#endif /* __APPLE_API_EVOLVING */
+
+#ifndef __APPLE_API_UNSTABLE
+#define __APPLE_API_UNSTABLE
+#endif /* __APPLE_API_UNSTABLE */
+
+#ifndef __APPLE_API_PRIVATE
+#define __APPLE_API_PRIVATE
+#endif /* __APPLE_API_PRIVATE */
+
+#ifndef __APPLE_API_OBSOLETE
+#define __APPLE_API_OBSOLETE
+#endif /* __APPLE_API_OBSOLETE */
+
+#endif /* __APPLE_API_STRICT_CONFORMANCE */
+
+#endif /* __SYS_APPLEAPIOPTS_H__ */
+
Property changes on: trunk/include/apple/sys/appleapiopts.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/fileport.h
===================================================================
--- trunk/include/apple/sys/fileport.h (rev 0)
+++ trunk/include/apple/sys/fileport.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2010 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _SYS_FILEPORT_H_
+#define _SYS_FILEPORT_H_
+
+#include <sys/_types.h>
+#include <sys/cdefs.h>
+#include <sys/mach/port.h>
+
+#ifndef KERNEL
+
+__BEGIN_DECLS
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+
+#ifndef _FILEPORT_T
+#define _FILEPORT_T
+typedef mach_port_t fileport_t;
+#define FILEPORT_NULL ((fileport_t)-1)
+#endif /* _FILEPORT_T */
+
+int fileport_makeport(int, fileport_t *);
+int fileport_makefd(fileport_t);
+
+#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
+
+__END_DECLS
+
+#endif /* !KERNEL */
+
+#endif /* !_SYS_FILEPORT_H_ */
Property changes on: trunk/include/apple/sys/fileport.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/kdebug.h
===================================================================
--- trunk/include/apple/sys/kdebug.h (rev 0)
+++ trunk/include/apple/sys/kdebug.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,736 @@
+/*
+ * Copyright (c) 2000-2014 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/* Copyright (c) 1997 Apple Computer, Inc. All rights reserved.
+ *
+ * kdebug.h - kernel_debug definitions
+ *
+ */
+
+#ifndef BSD_SYS_KDEBUG_H
+#define BSD_SYS_KDEBUG_H
+
+#include <sys/appleapiopts.h>
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+#ifdef __APPLE_API_UNSTABLE
+
+#include <mach/clock_types.h>
+#include <stdint.h>
+#if defined(KERNEL_BUILD)
+#include <kdebug.h>
+#endif /* KERNEL_BUILD */
+
+
+typedef enum
+{
+ KD_CALLBACK_KDEBUG_ENABLED, // Trace is now enabled. No arguments
+ KD_CALLBACK_KDEBUG_DISABLED, // Trace is now disabled. No arguments
+ KD_CALLBACK_SYNC_FLUSH, // Request the latest entries from the IOP, and block until complete. No arguments
+ KD_CALLBACK_TYPEFILTER_CHANGED, // Typefilter is enabled. A read-only pointer to the typefilter is provided, but is only valid while in the callback.
+} kd_callback_type;
+typedef void (*kd_callback_fn) (void* context, kd_callback_type reason, void* arg);
+
+struct kd_callback {
+ kd_callback_fn func;
+ void* context;
+ char iop_name[8]; // null-terminated string with name of core.
+};
+
+typedef struct kd_callback kd_callback_t;
+
+/*
+ * Registers an IOP for participation in tracing.
+ *
+ * The registered callback function will be called with the
+ * supplied context as the first argument, followed by a
+ * kd_callback_type and an associated void* argument.
+ *
+ * The return value is a nonzero coreid that shall be used in
+ * kernel_debug_enter() to refer to your IOP. If the allocation
+ * failed, then 0 will be returned.
+ *
+ *
+ * Caveats:
+ * Note that not all callback calls will indicate a change in
+ * state (e.g. disabling trace twice would send two disable
+ * notifications).
+ *
+ */
+extern int kernel_debug_register_callback(kd_callback_t callback);
+
+extern void kernel_debug_enter(
+ uint32_t coreid,
+ uint32_t debugid,
+ uint64_t timestamp,
+ uintptr_t arg1,
+ uintptr_t arg2,
+ uintptr_t arg3,
+ uintptr_t arg4,
+ uintptr_t threadid
+ );
+
+
+/*
+ * state bits for hfs_update event
+ */
+#define DBG_HFS_UPDATE_ACCTIME 0x01
+#define DBG_HFS_UPDATE_MODTIME 0x02
+#define DBG_HFS_UPDATE_CHGTIME 0x04
+#define DBG_HFS_UPDATE_MODIFIED 0x08
+#define DBG_HFS_UPDATE_FORCE 0x10
+#define DBG_HFS_UPDATE_DATEADDED 0x20
+
+
+/*
+ * types of faults that vm_fault handles
+ * and creates trace entries for
+ */
+#define DBG_ZERO_FILL_FAULT 1
+#define DBG_PAGEIN_FAULT 2
+#define DBG_COW_FAULT 3
+#define DBG_CACHE_HIT_FAULT 4
+#define DBG_NZF_PAGE_FAULT 5
+#define DBG_GUARD_FAULT 6
+#define DBG_PAGEINV_FAULT 7
+#define DBG_PAGEIND_FAULT 8
+#define DBG_COMPRESSOR_FAULT 9
+#define DBG_COMPRESSOR_SWAPIN_FAULT 10
+
+
+/* The debug code consists of the following
+*
+* ----------------------------------------------------------------------
+*| | | |Func |
+*| Class (8) | SubClass (8) | Code (14) |Qual(2)|
+* ----------------------------------------------------------------------
+* The class specifies the higher level
+*/
+
+/* The Function qualifiers */
+#define DBG_FUNC_START 1
+#define DBG_FUNC_END 2
+#define DBG_FUNC_NONE 0
+
+
+/* The Kernel Debug Classes */
+#define DBG_MACH 1
+#define DBG_NETWORK 2
+#define DBG_FSYSTEM 3
+#define DBG_BSD 4
+#define DBG_IOKIT 5
+#define DBG_DRIVERS 6
+#define DBG_TRACE 7
+#define DBG_DLIL 8
+#define DBG_WORKQUEUE 9
+#define DBG_CORESTORAGE 10
+#define DBG_CG 11
+#define DBG_MISC 20
+#define DBG_SECURITY 30
+#define DBG_DYLD 31
+#define DBG_QT 32
+#define DBG_APPS 33
+#define DBG_LAUNCHD 34
+#define DBG_PERF 37
+#define DBG_IMPORTANCE 38
+#define DBG_BANK 40
+#define DBG_XPC 41
+#define DBG_ATM 42
+
+#define DBG_MIG 255
+
+/* **** The Kernel Debug Sub Classes for Mach (DBG_MACH) **** */
+#define DBG_MACH_EXCP_KTRAP_x86 0x02 /* Kernel Traps on x86 */
+#define DBG_MACH_EXCP_DFLT 0x03 /* Data Translation Fault */
+#define DBG_MACH_EXCP_IFLT 0x04 /* Inst Translation Fault */
+#define DBG_MACH_EXCP_INTR 0x05 /* Interrupts */
+#define DBG_MACH_EXCP_ALNG 0x06 /* Alignment Exception */
+#define DBG_MACH_EXCP_UTRAP_x86 0x07 /* User Traps on x86 */
+#define DBG_MACH_EXCP_FP 0x08 /* FP Unavail */
+#define DBG_MACH_EXCP_DECI 0x09 /* Decrementer Interrupt */
+#define DBG_MACH_CHUD 0x0A /* CHUD */
+#define DBG_MACH_EXCP_SC 0x0C /* System Calls */
+#define DBG_MACH_EXCP_TRACE 0x0D /* Trace exception */
+#define DBG_MACH_EXCP_EMUL 0x0E /* Instruction emulated */
+#define DBG_MACH_IHDLR 0x10 /* Interrupt Handlers */
+#define DBG_MACH_IPC 0x20 /* Inter Process Comm */
+#define DBG_MACH_VM 0x30 /* Virtual Memory */
+#define DBG_MACH_LEAKS 0x31 /* alloc/free */
+#define DBG_MACH_SCHED 0x40 /* Scheduler */
+#define DBG_MACH_MSGID_INVALID 0x50 /* Messages - invalid */
+#define DBG_MACH_LOCKS 0x60 /* new lock APIs */
+#define DBG_MACH_PMAP 0x70 /* pmap */
+/* #define unused 0x80 */
+#define DBG_MACH_MP 0x90 /* MP related */
+#define DBG_MACH_VM_PRESSURE 0xA0 /* Memory Pressure Events */
+#define DBG_MACH_STACKSHOT 0xA1 /* Stackshot/Microstackshot subsystem */
+#define DBG_MACH_SFI 0xA2 /* Selective Forced Idle (SFI) */
+#define DBG_MACH_ENERGY_PERF 0xA3 /* Energy/performance resource stats */
+
+/* Codes for Scheduler (DBG_MACH_SCHED) */
+#define MACH_SCHED 0x0 /* Scheduler */
+#define MACH_STACK_ATTACH 0x1 /* stack_attach() */
+#define MACH_STACK_HANDOFF 0x2 /* stack_handoff() */
+#define MACH_CALL_CONT 0x3 /* call_continuation() */
+#define MACH_CALLOUT 0x4 /* callouts */
+#define MACH_STACK_DETACH 0x5
+#define MACH_MAKE_RUNNABLE 0x6 /* make thread runnable */
+#define MACH_PROMOTE 0x7 /* promoted due to resource */
+#define MACH_DEMOTE 0x8 /* promotion undone */
+#define MACH_IDLE 0x9 /* processor idling */
+#define MACH_STACK_DEPTH 0xa /* stack depth at switch */
+#define MACH_MOVED 0xb /* did not use original scheduling decision */
+#define MACH_FAIRSHARE_ENTER 0xc /* move to fairshare band */
+#define MACH_FAIRSHARE_EXIT 0xd /* exit fairshare band */
+#define MACH_FAILSAFE 0xe /* tripped fixed-pri/RT failsafe */
+#define MACH_BLOCK 0xf /* thread block */
+#define MACH_WAIT 0x10 /* thread wait assertion */
+#define MACH_GET_URGENCY 0x14 /* Urgency queried by platform */
+#define MACH_URGENCY 0x15 /* Urgency (RT/BG/NORMAL) communicated
+ * to platform
+ */
+#define MACH_REDISPATCH 0x16 /* "next thread" thread redispatched */
+#define MACH_REMOTE_AST 0x17 /* AST signal issued to remote processor */
+
+#define MACH_SCHED_CHOOSE_PROCESSOR 0x18 /* Result of choose_processor */
+#define MACH_DEEP_IDLE 0x19 /* deep idle on master processor */
+#define MACH_SCHED_DECAY_PRIORITY 0x1a /* timeshare thread priority decayed/restored */
+#define MACH_CPU_THROTTLE_DISABLE 0x1b /* Global CPU Throttle Disable */
+#define MACH_RW_PROMOTE 0x1c /* promoted due to RW lock promotion */
+#define MACH_RW_DEMOTE 0x1d /* promotion due to RW lock undone */
+#define MACH_SCHED_MAINTENANCE 0x1f /* periodic maintenance thread */
+#define MACH_DISPATCH 0x20 /* context switch completed */
+#define MACH_QUANTUM_HANDOFF 0x21 /* quantum handoff occurred */
+#define MACH_MULTIQ_DEQUEUE 0x22 /* Result of multiq dequeue */
+#define MACH_SCHED_THREAD_SWITCH 0x23 /* attempt direct context switch to hinted thread */
+#define MACH_SCHED_SMT_BALANCE 0x24 /* SMT load balancing ASTs */
+
+/* Variants for MACH_MULTIQ_DEQUEUE */
+#define MACH_MULTIQ_BOUND 1
+#define MACH_MULTIQ_GROUP 2
+#define MACH_MULTIQ_GLOBAL 3
+
+/* Codes for IPC (DBG_MACH_IPC) */
+#define MACH_TASK_SUSPEND 0x0 /* Suspended a task */
+#define MACH_TASK_RESUME 0x1 /* Resumed a task */
+#define MACH_THREAD_SET_VOUCHER 0x2
+#define MACH_IPC_MSG_SEND 0x3 /* mach msg send, uniq msg info */
+#define MACH_IPC_MSG_RECV 0x4 /* mach_msg receive */
+#define MACH_IPC_MSG_RECV_VOUCHER_REFUSED 0x5 /* mach_msg receive, voucher refused */
+#define MACH_IPC_KMSG_FREE 0x6 /* kernel free of kmsg data */
+#define MACH_IPC_VOUCHER_CREATE 0x7 /* Voucher added to global voucher hashtable */
+#define MACH_IPC_VOUCHER_CREATE_ATTR_DATA 0x8 /* Attr data for newly created voucher */
+#define MACH_IPC_VOUCHER_DESTROY 0x9 /* Voucher removed from global voucher hashtable */
+
+/* Codes for pmap (DBG_MACH_PMAP) */
+#define PMAP__CREATE 0x0
+#define PMAP__DESTROY 0x1
+#define PMAP__PROTECT 0x2
+#define PMAP__PAGE_PROTECT 0x3
+#define PMAP__ENTER 0x4
+#define PMAP__REMOVE 0x5
+#define PMAP__NEST 0x6
+#define PMAP__UNNEST 0x7
+#define PMAP__FLUSH_TLBS 0x8
+#define PMAP__UPDATE_INTERRUPT 0x9
+#define PMAP__ATTRIBUTE_CLEAR 0xa
+#define PMAP__REUSABLE 0xb
+#define PMAP__QUERY_RESIDENT 0xc
+#define PMAP__FLUSH_KERN_TLBS 0xd
+#define PMAP__FLUSH_DELAYED_TLBS 0xe
+#define PMAP__FLUSH_TLBS_TO 0xf
+
+/* Codes for Stackshot/Microstackshot (DBG_MACH_STACKSHOT) */
+#define MICROSTACKSHOT_RECORD 0x0
+#define MICROSTACKSHOT_GATHER 0x1
+
+/* Codes for Selective Forced Idle (DBG_MACH_SFI) */
+#define SFI_SET_WINDOW 0x0
+#define SFI_CANCEL_WINDOW 0x1
+#define SFI_SET_CLASS_OFFTIME 0x2
+#define SFI_CANCEL_CLASS_OFFTIME 0x3
+#define SFI_THREAD_DEFER 0x4
+#define SFI_OFF_TIMER 0x5
+#define SFI_ON_TIMER 0x6
+#define SFI_WAIT_CANCELED 0x7
+#define SFI_PID_SET_MANAGED 0x8
+#define SFI_PID_CLEAR_MANAGED 0x9
+
+/* **** The Kernel Debug Sub Classes for Network (DBG_NETWORK) **** */
+#define DBG_NETIP 1 /* Internet Protocol */
+#define DBG_NETARP 2 /* Address Resolution Protocol */
+#define DBG_NETUDP 3 /* User Datagram Protocol */
+#define DBG_NETTCP 4 /* Transmission Control Protocol */
+#define DBG_NETICMP 5 /* Internet Control Message Protocol */
+#define DBG_NETIGMP 6 /* Internet Group Management Protocol */
+#define DBG_NETRIP 7 /* Routing Information Protocol */
+#define DBG_NETOSPF 8 /* Open Shortest Path First */
+#define DBG_NETISIS 9 /* Intermediate System to Intermediate System */
+#define DBG_NETSNMP 10 /* Simple Network Management Protocol */
+#define DBG_NETSOCK 11 /* Socket Layer */
+
+/* For Apple talk */
+#define DBG_NETAARP 100 /* Apple ARP */
+#define DBG_NETDDP 101 /* Datagram Delivery Protocol */
+#define DBG_NETNBP 102 /* Name Binding Protocol */
+#define DBG_NETZIP 103 /* Zone Information Protocol */
+#define DBG_NETADSP 104 /* Name Binding Protocol */
+#define DBG_NETATP 105 /* Apple Transaction Protocol */
+#define DBG_NETASP 106 /* Apple Session Protocol */
+#define DBG_NETAFP 107 /* Apple Filing Protocol */
+#define DBG_NETRTMP 108 /* Routing Table Maintenance Protocol */
+#define DBG_NETAURP 109 /* Apple Update Routing Protocol */
+
+#define DBG_NETIPSEC 128 /* IPsec Protocol */
+#define DBG_NETVMNET 129 /* VMNet */
+
+/* **** The Kernel Debug Sub Classes for IOKIT (DBG_IOKIT) **** */
+#define DBG_IOINTC 0 /* Interrupt controller */
+#define DBG_IOWORKLOOP 1 /* Work from work loop */
+#define DBG_IOINTES 2 /* Interrupt event source */
+#define DBG_IOCLKES 3 /* Clock event source */
+#define DBG_IOCMDQ 4 /* Command queue latencies */
+#define DBG_IOMCURS 5 /* Memory Cursor */
+#define DBG_IOMDESC 6 /* Memory Descriptors */
+#define DBG_IOPOWER 7 /* Power Managerment */
+#define DBG_IOSERVICE 8 /* Matching etc. */
+
+/* **** 9-32 reserved for internal IOKit usage **** */
+
+#define DBG_IOSTORAGE 32 /* Storage layers */
+#define DBG_IONETWORK 33 /* Network layers */
+#define DBG_IOKEYBOARD 34 /* Keyboard */
+#define DBG_IOHID 35 /* HID Devices */
+#define DBG_IOAUDIO 36 /* Audio */
+#define DBG_IOSERIAL 37 /* Serial */
+#define DBG_IOTTY 38 /* TTY layers */
+#define DBG_IOSAM 39 /* SCSI Architecture Model layers */
+#define DBG_IOPARALLELATA 40 /* Parallel ATA */
+#define DBG_IOPARALLELSCSI 41 /* Parallel SCSI */
+#define DBG_IOSATA 42 /* Serial-ATA */
+#define DBG_IOSAS 43 /* SAS */
+#define DBG_IOFIBRECHANNEL 44 /* FiberChannel */
+#define DBG_IOUSB 45 /* USB */
+#define DBG_IOBLUETOOTH 46 /* Bluetooth */
+#define DBG_IOFIREWIRE 47 /* FireWire */
+#define DBG_IOINFINIBAND 48 /* Infiniband */
+#define DBG_IOCPUPM 49 /* CPU Power Management */
+#define DBG_IOGRAPHICS 50 /* Graphics */
+#define DBG_HIBERNATE 51 /* hibernation related events */
+#define DBG_IOTHUNDERBOLT 52 /* Thunderbolt */
+
+
+/* Backwards compatibility */
+#define DBG_IOPOINTING DBG_IOHID /* OBSOLETE: Use DBG_IOHID instead */
+#define DBG_IODISK DBG_IOSTORAGE /* OBSOLETE: Use DBG_IOSTORAGE instead */
+
+/* **** The Kernel Debug Sub Classes for Device Drivers (DBG_DRIVERS) **** */
+#define DBG_DRVSTORAGE 1 /* Storage layers */
+#define DBG_DRVNETWORK 2 /* Network layers */
+#define DBG_DRVKEYBOARD 3 /* Keyboard */
+#define DBG_DRVHID 4 /* HID Devices */
+#define DBG_DRVAUDIO 5 /* Audio */
+#define DBG_DRVSERIAL 7 /* Serial */
+#define DBG_DRVSAM 8 /* SCSI Architecture Model layers */
+#define DBG_DRVPARALLELATA 9 /* Parallel ATA */
+#define DBG_DRVPARALLELSCSI 10 /* Parallel SCSI */
+#define DBG_DRVSATA 11 /* Serial ATA */
+#define DBG_DRVSAS 12 /* SAS */
+#define DBG_DRVFIBRECHANNEL 13 /* FiberChannel */
+#define DBG_DRVUSB 14 /* USB */
+#define DBG_DRVBLUETOOTH 15 /* Bluetooth */
+#define DBG_DRVFIREWIRE 16 /* FireWire */
+#define DBG_DRVINFINIBAND 17 /* Infiniband */
+#define DBG_DRVGRAPHICS 18 /* Graphics */
+#define DBG_DRVSD 19 /* Secure Digital */
+#define DBG_DRVNAND 20 /* NAND drivers and layers */
+#define DBG_SSD 21 /* SSD */
+#define DBG_DRVSPI 22 /* SPI */
+
+/* Backwards compatibility */
+#define DBG_DRVPOINTING DBG_DRVHID /* OBSOLETE: Use DBG_DRVHID instead */
+#define DBG_DRVDISK DBG_DRVSTORAGE /* OBSOLETE: Use DBG_DRVSTORAGE instead */
+
+/* **** The Kernel Debug Sub Classes for the DLIL Layer (DBG_DLIL) **** */
+#define DBG_DLIL_STATIC 1 /* Static DLIL code */
+#define DBG_DLIL_PR_MOD 2 /* DLIL Protocol Module */
+#define DBG_DLIL_IF_MOD 3 /* DLIL Interface Module */
+#define DBG_DLIL_PR_FLT 4 /* DLIL Protocol Filter */
+#define DBG_DLIL_IF_FLT 5 /* DLIL Interface FIlter */
+
+/* The Kernel Debug Sub Classes for File System (DBG_FSYSTEM) */
+#define DBG_FSRW 1 /* reads and writes to the filesystem */
+#define DBG_DKRW 2 /* reads and writes to the disk */
+#define DBG_FSVN 3 /* vnode operations (inc. locking/unlocking) */
+#define DBG_FSLOOOKUP 4 /* namei and other lookup-related operations */
+#define DBG_JOURNAL 5 /* journaling operations */
+#define DBG_IOCTL 6 /* ioctl to the disk */
+#define DBG_BOOTCACHE 7 /* bootcache operations */
+#define DBG_HFS 8 /* HFS-specific events; see bsd/hfs/hfs_kdebug.h */
+#define DBG_EXFAT 0xE /* ExFAT-specific events; see the exfat project */
+#define DBG_MSDOS 0xF /* FAT-specific events; see the msdosfs project */
+#define DBG_ACFS 0x10 /* Xsan-specific events; see the XsanFS project */
+#define DBG_THROTTLE 0x11 /* I/O Throttling events */
+#define DBG_CONTENT_PROT 0xCF /* Content Protection Events: see bsd/sys/cprotect.h */
+
+/* The Kernel Debug Sub Classes for BSD */
+#define DBG_BSD_PROC 0x01 /* process/signals related */
+#define DBG_BSD_MEMSTAT 0x02 /* memorystatus / jetsam operations */
+#define DBG_BSD_EXCP_SC 0x0C /* System Calls */
+#define DBG_BSD_AIO 0x0D /* aio (POSIX async IO) */
+#define DBG_BSD_SC_EXTENDED_INFO 0x0E /* System Calls, extended info */
+#define DBG_BSD_SC_EXTENDED_INFO2 0x0F /* System Calls, extended info */
+
+
+/* The Codes for BSD subcode class DBG_BSD_PROC */
+#define BSD_PROC_EXIT 1 /* process exit */
+#define BSD_PROC_FRCEXIT 2 /* Kernel force termination */
+
+/* Codes for BSD subcode class DBG_BSD_MEMSTAT */
+#define BSD_MEMSTAT_SCAN 1 /* memorystatus thread awake */
+#define BSD_MEMSTAT_JETSAM 2 /* LRU jetsam */
+#define BSD_MEMSTAT_JETSAM_HIWAT 3 /* highwater jetsam */
+#define BSD_MEMSTAT_FREEZE 4 /* freeze process */
+#define BSD_MEMSTAT_LATENCY_COALESCE 5 /* delay imposed to coalesce jetsam reports */
+#define BSD_MEMSTAT_UPDATE 6 /* priority update */
+#define BSD_MEMSTAT_IDLE_DEMOTE 7 /* idle demotion fired */
+#define BSD_MEMSTAT_CLEAR_ERRORS 8 /* reset termination error state */
+#define BSD_MEMSTAT_DIRTY_TRACK 9 /* track the process state */
+#define BSD_MEMSTAT_DIRTY_SET 10 /* set the process state */
+#define BSD_MEMSTAT_DIRTY_CLEAR 11 /* clear the process state */
+
+/* The Kernel Debug Sub Classes for DBG_TRACE */
+#define DBG_TRACE_DATA 0
+#define DBG_TRACE_STRING 1
+#define DBG_TRACE_INFO 2
+
+/*
+ * TRACE_DATA_NEWTHREAD 0x1
+ * TRACE_DATA_EXEC 0x2
+ */
+#define TRACE_DATA_THREAD_TERMINATE 0x3 /* thread has been queued for deallocation and can no longer run */
+
+/* The Kernel Debug Sub Classes for DBG_CORESTORAGE */
+#define DBG_CS_IO 0
+
+/* The Kernel Debug Sub Classes for DBG_SECURITY */
+#define DBG_SEC_KERNEL 0 /* raw entropy collected by the kernel */
+
+/* Sub-class codes for CoreGraphics (DBG_CG) are defined in its component. */
+
+/* The Kernel Debug Sub Classes for DBG_MISC */
+#define DBG_EVENT 0x10
+#define DBG_BUFFER 0x20
+
+/* The Kernel Debug Sub Classes for DBG_DYLD */
+#define DBG_DYLD_STRING 5
+
+/* The Kernel Debug modifiers for the DBG_DKRW sub class */
+#define DKIO_DONE 0x01
+#define DKIO_READ 0x02
+#define DKIO_ASYNC 0x04
+#define DKIO_META 0x08
+#define DKIO_PAGING 0x10
+#define DKIO_THROTTLE 0x20 /* Deprecated, still provided so fs_usage doesn't break */
+#define DKIO_PASSIVE 0x40
+#define DKIO_NOCACHE 0x80
+#define DKIO_TIER_MASK 0xF00
+#define DKIO_TIER_SHIFT 8
+
+/* Kernel Debug Sub Classes for Applications (DBG_APPS) */
+#define DBG_APP_LOGINWINDOW 0x03
+#define DBG_APP_AUDIO 0x04
+#define DBG_APP_SAMBA 0x80
+
+/* Kernel Debug codes for Throttling (DBG_THROTTLE) */
+#define OPEN_THROTTLE_WINDOW 0x1
+#define PROCESS_THROTTLED 0x2
+#define IO_THROTTLE_DISABLE 0x3
+
+
+/* Subclasses for MACH Importance Policies (DBG_IMPORTANCE) */
+/* TODO: Split up boost and task policy? */
+#define IMP_ASSERTION 0x10 /* Task takes/drops a boost assertion */
+#define IMP_BOOST 0x11 /* Task boost level changed */
+#define IMP_MSG 0x12 /* boosting message sent by donating task on donating port */
+#define IMP_WATCHPORT 0x13 /* port marked as watchport, and boost was transferred to the watched task */
+#define IMP_TASK_SUPPRESSION 0x17 /* Task changed suppression behaviors */
+#define IMP_TASK_APPTYPE 0x18 /* Task launched with apptype */
+#define IMP_UPDATE 0x19 /* Requested -> effective calculation */
+#define IMP_USYNCH_QOS_OVERRIDE 0x1A /* Userspace synchronization applied QoS override to resource owning thread */
+#define IMP_DONOR_CHANGE 0x1B /* The iit_donor bit changed */
+#define IMP_MAIN_THREAD_QOS 0x1C /* The task's main thread QoS was set */
+/* DBG_IMPORTANCE subclasses 0x20 - 0x3F reserved for task policy flavors */
+
+/* Codes for IMP_ASSERTION */
+#define IMP_HOLD 0x2 /* Task holds a boost assertion */
+#define IMP_DROP 0x4 /* Task drops a boost assertion */
+#define IMP_EXTERN 0x8 /* boost assertion moved from kernel to userspace responsibility (externalized) */
+
+/* Codes for IMP_BOOST */
+#define IMP_BOOSTED 0x1
+#define IMP_UNBOOSTED 0x2 /* Task drops a boost assertion */
+
+/* Codes for IMP_MSG */
+#define IMP_MSG_SEND 0x1 /* boosting message sent by donating task on donating port */
+#define IMP_MSG_DELV 0x2 /* boosting message delivered to task */
+
+/* Codes for IMP_UPDATE */
+#define IMP_UPDATE_TASK_CREATE 0x1
+
+/* Codes for IMP_USYNCH_QOS_OVERRIDE */
+#define IMP_USYNCH_ADD_OVERRIDE 0x0 /* add override for a contended resource */
+#define IMP_USYNCH_REMOVE_OVERRIDE 0x1 /* remove override for a contended resource */
+
+/* Codes for IMP_DONOR_CHANGE */
+#define IMP_DONOR_UPDATE_LIVE_DONOR_STATE 0x0
+#define IMP_DONOR_INIT_DONOR_STATE 0x1
+
+/* Subclasses for MACH Bank Voucher Attribute Manager (DBG_BANK) */
+#define BANK_ACCOUNT_INFO 0x10 /* Trace points related to bank account struct */
+#define BANK_TASK_INFO 0x11 /* Trace points related to bank task struct */
+
+/* Subclasses for MACH ATM Voucher Attribute Manager (ATM) */
+#define ATM_SUBAID_INFO 0x10
+#define ATM_GETVALUE_INFO 0x20
+#define ATM_UNREGISTER_INFO 0x30
+
+/* Codes for BANK_ACCOUNT_INFO */
+#define BANK_SETTLE_CPU_TIME 0x1 /* Bank ledger(chit) rolled up to tasks. */
+
+/* Codes for ATM_SUBAID_INFO */
+#define ATM_MIN_CALLED 0x1
+#define ATM_MIN_LINK_LIST 0x2
+
+/* Codes for ATM_GETVALUE_INFO */
+#define ATM_VALUE_REPLACED 0x1
+#define ATM_VALUE_ADDED 0x2
+
+/* Codes for ATM_UNREGISTER_INFO */
+#define ATM_VALUE_UNREGISTERED 0x1
+#define ATM_VALUE_DIFF_MAILBOX 0x2
+
+/**********************************************************************/
+
+#define KDBG_CODE(Class, SubClass, code) (((Class & 0xff) << 24) | ((SubClass & 0xff) << 16) | ((code & 0x3fff) << 2))
+
+#define KDBG_MIGCODE(msgid) ((DBG_MIG << 24) | (((msgid) & 0x3fffff) << 2))
+
+#define MACHDBG_CODE(SubClass, code) KDBG_CODE(DBG_MACH, SubClass, code)
+#define NETDBG_CODE(SubClass, code) KDBG_CODE(DBG_NETWORK, SubClass, code)
+#define FSDBG_CODE(SubClass, code) KDBG_CODE(DBG_FSYSTEM, SubClass, code)
+#define BSDDBG_CODE(SubClass, code) KDBG_CODE(DBG_BSD, SubClass, code)
+#define IOKDBG_CODE(SubClass, code) KDBG_CODE(DBG_IOKIT, SubClass, code)
+#define DRVDBG_CODE(SubClass, code) KDBG_CODE(DBG_DRIVERS, SubClass, code)
+#define TRACEDBG_CODE(SubClass,code) KDBG_CODE(DBG_TRACE, SubClass, code)
+#define MISCDBG_CODE(SubClass,code) KDBG_CODE(DBG_MISC, SubClass, code)
+#define DLILDBG_CODE(SubClass,code) KDBG_CODE(DBG_DLIL, SubClass, code)
+#define SECURITYDBG_CODE(SubClass,code) KDBG_CODE(DBG_SECURITY, SubClass, code)
+#define DYLDDBG_CODE(SubClass,code) KDBG_CODE(DBG_DYLD, SubClass, code)
+#define QTDBG_CODE(SubClass,code) KDBG_CODE(DBG_QT, SubClass, code)
+#define APPSDBG_CODE(SubClass,code) KDBG_CODE(DBG_APPS, SubClass, code)
+#define CPUPM_CODE(code) IOKDBG_CODE(DBG_IOCPUPM, code)
+
+#define KMEM_ALLOC_CODE MACHDBG_CODE(DBG_MACH_LEAKS, 0)
+#define KMEM_ALLOC_CODE_2 MACHDBG_CODE(DBG_MACH_LEAKS, 1)
+#define KMEM_FREE_CODE MACHDBG_CODE(DBG_MACH_LEAKS, 2)
+#define KMEM_FREE_CODE_2 MACHDBG_CODE(DBG_MACH_LEAKS, 3)
+#define ZALLOC_CODE MACHDBG_CODE(DBG_MACH_LEAKS, 4)
+#define ZALLOC_CODE_2 MACHDBG_CODE(DBG_MACH_LEAKS, 5)
+#define ZFREE_CODE MACHDBG_CODE(DBG_MACH_LEAKS, 6)
+#define ZFREE_CODE_2 MACHDBG_CODE(DBG_MACH_LEAKS, 7)
+
+#define PMAP_CODE(code) MACHDBG_CODE(DBG_MACH_PMAP, code)
+
+
+#define IMPORTANCE_CODE(SubClass, code) KDBG_CODE(DBG_IMPORTANCE, (SubClass), (code))
+#define BANK_CODE(SubClass, code) KDBG_CODE(DBG_BANK, (SubClass), (code))
+#define ATM_CODE(SubClass, code) KDBG_CODE(DBG_ATM, (SubClass), (code))
+
+/* Usage:
+* kernel_debug((KDBG_CODE(DBG_NETWORK, DNET_PROTOCOL, 51) | DBG_FUNC_START),
+* offset, 0, 0, 0,0)
+*
+* For ex,
+*
+* #include <sys/kdebug.h>
+*
+* #define DBG_NETIPINIT NETDBG_CODE(DBG_NETIP,1)
+*
+*
+* void
+* ip_init()
+* {
+* register struct protosw *pr;
+* register int i;
+*
+* KERNEL_DEBUG(DBG_NETIPINIT | DBG_FUNC_START, 0,0,0,0,0)
+* --------
+* KERNEL_DEBUG(DBG_NETIPINIT, 0,0,0,0,0)
+* --------
+* KERNEL_DEBUG(DBG_NETIPINIT | DBG_FUNC_END, 0,0,0,0,0)
+* }
+*
+
+*/
+
+extern unsigned int kdebug_enable;
+#define KDEBUG_ENABLE_TRACE 0x1
+#define KDEBUG_ENABLE_ENTROPY 0x2 /* Obsolescent */
+#define KDEBUG_ENABLE_CHUD 0x4
+#define KDEBUG_ENABLE_PPT 0x8
+
+/*
+ * Infer the supported kernel debug event level from config option.
+ * Use (KDEBUG_LEVEL >= KDEBUG_LEVEL_STANDARD) as a guard to protect
+ * unaudited debug code.
+ */
+#define KDEBUG_LEVEL_NONE 0
+#define KDEBUG_LEVEL_IST 1
+#define KDEBUG_LEVEL_STANDARD 2
+#define KDEBUG_LEVEL_FULL 3
+
+#if NO_KDEBUG
+#define KDEBUG_LEVEL KDEBUG_LEVEL_NONE
+#elif IST_KDEBUG
+#define KDEBUG_LEVEL KDEBUG_LEVEL_IST
+#elif KDEBUG
+#define KDEBUG_LEVEL KDEBUG_LEVEL_FULL
+#else
+#define KDEBUG_LEVEL KDEBUG_LEVEL_STANDARD
+#endif
+
+#if (KDEBUG_LEVEL >= KDEBUG_LEVEL_STANDARD)
+#define KERNEL_DEBUG_CONSTANT(x,a,b,c,d,e) \
+do { \
+ if (kdebug_enable & ~KDEBUG_ENABLE_PPT) \
+ kernel_debug(x,(uintptr_t)a,(uintptr_t)b,(uintptr_t)c, \
+ (uintptr_t)d,(uintptr_t)e); \
+} while(0)
+
+#define KERNEL_DEBUG_CONSTANT1(x,a,b,c,d,e) \
+do { \
+ if (kdebug_enable & ~KDEBUG_ENABLE_PPT) \
+ kernel_debug1(x,(uintptr_t)a,(uintptr_t)b,(uintptr_t)c, \
+ (uintptr_t)d,(uintptr_t)e); \
+} while(0)
+
+#define KERNEL_DEBUG_EARLY(x,a,b,c,d) \
+do { \
+ kernel_debug_early((uint32_t)x, (uintptr_t)a, (uintptr_t)b, \
+ (uintptr_t)c, (uintptr_t)d); \
+} while(0)
+#else /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_STANDARD) */
+#define KERNEL_DEBUG_CONSTANT(x,a,b,c,d,e) do { } while(0)
+#define KERNEL_DEBUG_CONSTANT1(x,a,b,c,d,e) do { } while(0)
+#define KERNEL_DEBUG_EARLY(x,a,b,c,d) do { } while(0)
+#endif /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_STANDARD) */
+
+/*
+ * Specify KDEBUG_PPT to indicate that the event belongs to the
+ * limited PPT set.
+ */
+#define KDEBUG_COMMON (KDEBUG_ENABLE_TRACE|KDEBUG_ENABLE_CHUD|KDEBUG_ENABLE_PPT)
+#define KDEBUG_TRACE (KDEBUG_ENABLE_TRACE|KDEBUG_ENABLE_CHUD)
+#define KDEBUG_PPT (KDEBUG_ENABLE_PPT)
+
+/*
+ * KERNEL_DEBUG_CONSTANT_IST events provide an audited subset of
+ * tracepoints for userland system tracing tools.
+ */
+#if (KDEBUG_LEVEL >= KDEBUG_LEVEL_IST)
+#define KERNEL_DEBUG_CONSTANT_IST(type,x,a,b,c,d,e) \
+do { \
+ if (kdebug_enable & type) \
+ kernel_debug(x,(uintptr_t)a,(uintptr_t)b,(uintptr_t)c, \
+ (uintptr_t)d,(uintptr_t)e); \
+} while(0)
+#else /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_IST) */
+#define KERNEL_DEBUG_CONSTANT_IST(type,x,a,b,c,d,e) do { } while(0)
+#endif /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_IST) */
+
+#if NO_KDEBUG
+#define __kdebug_constant_only __unused
+#endif
+
+extern void kernel_debug(
+ uint32_t debugid,
+ uintptr_t arg1,
+ uintptr_t arg2,
+ uintptr_t arg3,
+ uintptr_t arg4,
+ uintptr_t arg5);
+
+extern void kernel_debug1(
+ uint32_t debugid,
+ uintptr_t arg1,
+ uintptr_t arg2,
+ uintptr_t arg3,
+ uintptr_t arg4,
+ uintptr_t arg5);
+
+extern void kernel_debug_early(
+ uint32_t debugid,
+ uintptr_t arg1,
+ uintptr_t arg2,
+ uintptr_t arg3,
+ uintptr_t arg4);
+
+extern void kernel_debug_string(
+ const char *message);
+
+#if (KDEBUG_LEVEL >= KDEBUG_LEVEL_FULL)
+#define KERNEL_DEBUG(x,a,b,c,d,e) \
+do { \
+ if (kdebug_enable & ~KDEBUG_ENABLE_PPT) \
+ kernel_debug((uint32_t)x, (uintptr_t)a, (uintptr_t)b, \
+ (uintptr_t)c, (uintptr_t)d, (uintptr_t)e); \
+} while(0)
+
+#define KERNEL_DEBUG1(x,a,b,c,d,e) \
+do { \
+ if (kdebug_enable & ~KDEBUG_ENABLE_PPT) \
+ kernel_debug1((uint32_t)x, (uintptr_t)a, (uintptr_t)b, \
+ (uintptr_t)c, (uintptr_t)d, (uintptr_t)e); \
+} while(0)
+#else /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_FULL) */
+#define KERNEL_DEBUG(x,a,b,c,d,e) do {} while (0)
+#define KERNEL_DEBUG1(x,a,b,c,d,e) do {} while (0)
+
+#define __kdebug_only __unused
+#endif /* (KDEBUG_LEVEL >= KDEBUG_LEVEL_FULL) */
+
+
+
+#endif /* __APPLE_API_UNSTABLE */
+__END_DECLS
+
+
+
+#endif /* !BSD_SYS_KDEBUG_H */
Property changes on: trunk/include/apple/sys/kdebug.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/kern_control.h
===================================================================
--- trunk/include/apple/sys/kern_control.h (rev 0)
+++ trunk/include/apple/sys/kern_control.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,650 @@
+/*
+ * Copyright (c) 2000-2004, 2012-2014 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/*!
+ @header kern_control.h
+ This header defines an API to communicate between a kernel
+ extension and a process outside of the kernel.
+ */
+
+#ifndef KPI_KERN_CONTROL_H
+#define KPI_KERN_CONTROL_H
+
+
+#include <sys/appleapiopts.h>
+
+/*
+ * Define Controller event subclass, and associated events.
+ * Subclass of KEV_SYSTEM_CLASS
+ */
+
+/*!
+ @defined KEV_CTL_SUBCLASS
+ @discussion The kernel event subclass for kernel control events.
+*/
+#define KEV_CTL_SUBCLASS 2
+
+/*!
+ @defined KEV_CTL_REGISTERED
+ @discussion The event code indicating a new controller was
+ registered. The data portion will contain a ctl_event_data.
+*/
+#define KEV_CTL_REGISTERED 1 /* a new controller appears */
+
+/*!
+ @defined KEV_CTL_DEREGISTERED
+ @discussion The event code indicating a controller was unregistered.
+ The data portion will contain a ctl_event_data.
+*/
+#define KEV_CTL_DEREGISTERED 2 /* a controller disappears */
+
+/*!
+ @struct ctl_event_data
+ @discussion This structure is used for KEV_CTL_SUBCLASS kernel
+ events.
+ @field ctl_id The kernel control id.
+ @field ctl_unit The kernel control unit.
+*/
+struct ctl_event_data {
+ u_int32_t ctl_id; /* Kernel Controller ID */
+ u_int32_t ctl_unit;
+};
+
+/*
+ * Controls destined to the Controller Manager.
+ */
+
+/*!
+ @defined CTLIOCGCOUNT
+ @discussion The CTLIOCGCOUNT ioctl can be used to determine the
+ number of kernel controllers registered.
+*/
+#define CTLIOCGCOUNT _IOR('N', 2, int) /* get number of control structures registered */
+
+/*!
+ @defined CTLIOCGINFO
+ @discussion The CTLIOCGINFO ioctl can be used to convert a kernel
+ control name to a kernel control id.
+*/
+#define CTLIOCGINFO _IOWR('N', 3, struct ctl_info) /* get id from name */
+
+
+/*!
+ @defined MAX_KCTL_NAME
+ @discussion Kernel control names must be no longer than
+ MAX_KCTL_NAME.
+*/
+#define MAX_KCTL_NAME 96
+
+/*
+ * Controls destined to the Controller Manager.
+ */
+
+/*!
+ @struct ctl_info
+ @discussion This structure is used with the CTLIOCGINFO ioctl to
+ translate from a kernel control name to a control id.
+ @field ctl_id The kernel control id, filled out upon return.
+ @field ctl_name The kernel control name to find.
+*/
+struct ctl_info {
+ u_int32_t ctl_id; /* Kernel Controller ID */
+ char ctl_name[MAX_KCTL_NAME]; /* Kernel Controller Name (a C string) */
+};
+
+
+/*!
+ @struct sockaddr_ctl
+ @discussion The controller address structure is used to establish
+ contact between a user client and a kernel controller. The
+ sc_id/sc_unit uniquely identify each controller. sc_id is a
+ unique identifier assigned to the controller. The identifier can
+ be assigned by the system at registration time or be a 32-bit
+ creator code obtained from Apple Computer. sc_unit is a unit
+ number for this sc_id, and is privately used by the kernel
+ controller to identify several instances of the controller.
+ @field sc_len The length of the structure.
+ @field sc_family AF_SYSTEM.
+ @field ss_sysaddr AF_SYS_KERNCONTROL.
+ @field sc_id Controller unique identifier.
+ @field sc_unit Kernel controller private unit number.
+ @field sc_reserved Reserved, must be set to zero.
+*/
+struct sockaddr_ctl {
+ u_char sc_len; /* depends on size of bundle ID string */
+ u_char sc_family; /* AF_SYSTEM */
+ u_int16_t ss_sysaddr; /* AF_SYS_KERNCONTROL */
+ u_int32_t sc_id; /* Controller unique identifier */
+ u_int32_t sc_unit; /* Developer private unit number */
+ u_int32_t sc_reserved[5];
+};
+
+#ifdef PRIVATE
+
+struct xkctl_reg {
+ u_int32_t xkr_len;
+ u_int32_t xkr_kind;
+ u_int32_t xkr_id;
+ u_int32_t xkr_reg_unit;
+ u_int32_t xkr_flags;
+ u_int64_t xkr_kctlref;
+ u_int32_t xkr_recvbufsize;
+ u_int32_t xkr_sendbufsize;
+ u_int32_t xkr_lastunit;
+ u_int32_t xkr_pcbcount;
+ u_int64_t xkr_connect;
+ u_int64_t xkr_disconnect;
+ u_int64_t xkr_send;
+ u_int64_t xkr_send_list;
+ u_int64_t xkr_setopt;
+ u_int64_t xkr_getopt;
+ u_int64_t xkr_rcvd;
+ char xkr_name[MAX_KCTL_NAME];
+};
+
+struct xkctlpcb {
+ u_int32_t xkp_len;
+ u_int32_t xkp_kind;
+ u_int64_t xkp_kctpcb;
+ u_int32_t xkp_unit;
+ u_int32_t xkp_kctlid;
+ u_int64_t xkp_kctlref;
+ char xkp_kctlname[MAX_KCTL_NAME];
+};
+
+struct kctlstat {
+ u_int64_t kcs_reg_total __attribute__((aligned(8)));
+ u_int64_t kcs_reg_count __attribute__((aligned(8)));
+ u_int64_t kcs_pcbcount __attribute__((aligned(8)));
+ u_int64_t kcs_gencnt __attribute__((aligned(8)));
+ u_int64_t kcs_connections __attribute__((aligned(8)));
+ u_int64_t kcs_conn_fail __attribute__((aligned(8)));
+ u_int64_t kcs_send_fail __attribute__((aligned(8)));
+ u_int64_t kcs_send_list_fail __attribute__((aligned(8)));
+ u_int64_t kcs_enqueue_fail __attribute__((aligned(8)));
+ u_int64_t kcs_enqueue_fullsock __attribute__((aligned(8)));
+
+};
+
+#endif /* PRIVATE */
+
+#ifdef KERNEL
+
+#include <sys/kpi_mbuf.h>
+
+/*!
+ @typedef kern_ctl_ref
+ @discussion A control reference is used to track an attached kernel
+ control. Registering a kernel control will create a kernel
+ control reference. This reference is required for sending data
+ or removing the kernel control. This reference will be passed to
+ callbacks for that kernel control.
+*/
+typedef void * kern_ctl_ref;
+
+/*!
+ @defined CTL_FLAG_PRIVILEGED
+ @discussion The CTL_FLAG_PRIVILEGED flag is passed in ctl_flags. If
+ this flag is set, only privileged processes may attach to this
+ kernel control.
+*/
+#define CTL_FLAG_PRIVILEGED 0x1
+/*!
+ @defined CTL_FLAG_REG_ID_UNIT
+ @discussion The CTL_FLAG_REG_ID_UNIT flag is passed to indicate that
+ the ctl_id specified should be used. If this flag is not
+ present, a unique ctl_id will be dynamically assigned to your
+ kernel control. The CTLIOCGINFO ioctl can be used by the client
+ to find the dynamically assigned id based on the control name
+ specified in ctl_name.
+*/
+#define CTL_FLAG_REG_ID_UNIT 0x2
+/*!
+ @defined CTL_FLAG_REG_SOCK_STREAM
+ @discussion Use the CTL_FLAG_REG_SOCK_STREAM flag when client need to open
+ socket of type SOCK_STREAM to communicate with the kernel control.
+ By default kernel control sockets are of type SOCK_DGRAM.
+*/
+#define CTL_FLAG_REG_SOCK_STREAM 0x4
+
+#ifdef KERNEL_PRIVATE
+/*!
+ @defined CTL_FLAG_REG_EXTENDED
+ @discussion This flag indicates that this kernel control utilizes the
+ the extended fields within the kern_ctl_reg structure.
+*/
+#define CTL_FLAG_REG_EXTENDED 0x8
+
+/*!
+ @defined CTL_FLAG_REG_CRIT
+ @discussion This flag indicates that this kernel control utilizes the
+ the extended fields within the kern_ctl_reg structure.
+*/
+#define CTL_FLAG_REG_CRIT 0x10
+#endif /* KERNEL_PRIVATE */
+
+/* Data flags for controllers */
+/*!
+ @defined CTL_DATA_NOWAKEUP
+ @discussion The CTL_DATA_NOWAKEUP flag can be used for the enqueue
+ data and enqueue mbuf functions to indicate that the process
+ should not be woken up yet. This is useful when you want to
+ enqueue data using more than one call but only want to wake up
+ the client after all of the data has been enqueued.
+*/
+#define CTL_DATA_NOWAKEUP 0x1
+
+/*!
+ @defined CTL_DATA_EOR
+ @discussion The CTL_DATA_EOR flag can be used for the enqueue
+ data and enqueue mbuf functions to mark the end of a record.
+*/
+#define CTL_DATA_EOR 0x2
+
+#ifdef KERNEL_PRIVATE
+/*!
+ @defined CTL_DATA_CRIT
+ @discussion This flag indicates the data is critical to the client
+ and that it needs to be forced into the socket buffer
+ by resizing it if needed.
+*/
+#define CTL_DATA_CRIT 0x4
+#endif /* KERNEL_PRIVATE */
+
+__BEGIN_DECLS
+
+/*!
+ @typedef ctl_connect_func
+ @discussion The ctl_connect_func is used to receive
+ notification of a client connecting to the kernel control.
+ @param kctlref The control ref for the kernel control the client is
+ connecting to.
+ @param sac The address used to connect to this control. The field sc_unit
+ contains the unit number of the kernel control instance the client is
+ connecting to. If CTL_FLAG_REG_ID_UNIT was set when the kernel control
+ was registered, sc_unit is the ctl_unit of the kern_ctl_reg structure.
+ If CTL_FLAG_REG_ID_UNIT was not set when the kernel control was
+ registered, sc_unit is the dynamically allocated unit number of
+ the new kernel control instance that is used for this connection.
+ @param unitinfo A placeholder for a pointer to the optional user-defined
+ private data associated with this kernel control instance. This
+ opaque info will be provided to the user when the rest of the
+ callback routines are executed. For example, it can be used
+ to pass a pointer to an instance-specific data structure in
+ order for the user to keep track of the states related to this
+ kernel control instance.
+ */
+typedef errno_t (*ctl_connect_func)(kern_ctl_ref kctlref,
+ struct sockaddr_ctl *sac,
+ void **unitinfo);
+
+/*!
+ @typedef ctl_disconnect_func
+ @discussion The ctl_disconnect_func is used to receive notification
+ that a client has disconnected from the kernel control. This
+ usually happens when the socket is closed. If this is the last
+ socket attached to your kernel control, you may unregister your
+ kernel control from this callback.
+ @param kctlref The control ref for the kernel control instance the client has
+ disconnected from.
+ @param unit The unit number of the kernel control instance the client has
+ disconnected from.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ */
+typedef errno_t (*ctl_disconnect_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo);
+
+/*!
+ @typedef ctl_send_func
+ @discussion The ctl_send_func is used to receive data sent from
+ the client to the kernel control.
+ @param kctlref The control ref of the kernel control.
+ @param unit The unit number of the kernel control instance the client has
+ connected to.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ @param m The data sent by the client to the kernel control in an
+ mbuf chain. Your function is responsible for releasing the
+ mbuf chain.
+ @param flags The flags specified by the client when calling
+ send/sendto/sendmsg (MSG_OOB/MSG_DONTROUTE).
+ */
+typedef errno_t (*ctl_send_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
+ mbuf_t m, int flags);
+
+/*!
+ @typedef ctl_setopt_func
+ @discussion The ctl_setopt_func is used to handle set socket option
+ calls for the SYSPROTO_CONTROL option level.
+ @param kctlref The control ref of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ @param opt The socket option.
+ @param data A pointer to the socket option data. The data has
+ already been copied in to the kernel for you.
+ @param len The length of the socket option data.
+ */
+typedef errno_t (*ctl_setopt_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
+ int opt, void *data, size_t len);
+
+/*!
+ @typedef ctl_getopt_func
+ @discussion The ctl_getopt_func is used to handle client get socket
+ option requests for the SYSPROTO_CONTROL option level. A buffer
+ is allocated for storage and passed to your function. The length
+ of that buffer is also passed. Upon return, you should set *len
+ to length of the buffer used. In some cases, data may be NULL.
+ When this happens, *len should be set to the length you would
+ have returned had data not been NULL. If the buffer is too small,
+ return an error.
+ @param kctlref The control ref of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ @param opt The socket option.
+ @param data A buffer to copy the results in to. May be NULL, see
+ discussion.
+ @param len A pointer to the length of the buffer. This should be set
+ to the length of the buffer used before returning.
+ */
+typedef errno_t (*ctl_getopt_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
+ int opt, void *data, size_t *len);
+
+#ifdef KERNEL_PRIVATE
+/*!
+ @typedef ctl_rcvd_func
+ @discussion The ctl_rcvd_func is called when the client reads data from
+ the kernel control socket. The kernel control can use this callback
+ in combination with ctl_getenqueuespace() to avoid overflowing
+ the socket's receive buffer. When ctl_getenqueuespace() returns
+ 0 or ctl_enqueuedata()/ctl_enqueuembuf() return ENOBUFS, the
+ kernel control can wait until this callback is called before
+ trying to enqueue the data again.
+ @param kctlref The control ref of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ @param flags The recv flags. See the recv(2) man page.
+ */
+typedef void (*ctl_rcvd_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
+ int flags);
+
+/*!
+ @typedef ctl_send_list_func
+ @discussion The ctl_send_list_func is used to receive data sent from
+ the client to the kernel control.
+ @param kctlref The control ref of the kernel control.
+ @param unit The unit number of the kernel control instance the client has
+ connected to.
+ @param unitinfo The user-defined private data initialized by the
+ ctl_connect_func callback.
+ @param m The data sent by the client to the kernel control in an
+ mbuf packet chain. Your function is responsible for releasing
+ mbuf packet chain.
+ @param flags The flags specified by the client when calling
+ send/sendto/sendmsg (MSG_OOB/MSG_DONTROUTE).
+ */
+typedef errno_t (*ctl_send_list_func)(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,
+ mbuf_t m, int flags);
+#endif /* KERNEL_PRIVATE */
+
+/*!
+ @struct kern_ctl_reg
+ @discussion This structure defines the properties of a kernel
+ control being registered.
+ @field ctl_name A Bundle ID string of up to MAX_KCTL_NAME bytes (including the ending zero).
+ This string should not be empty.
+ @field ctl_id The control ID may be dynamically assigned or it can be a
+ 32-bit creator code assigned by DTS.
+ For a DTS assigned creator code the CTL_FLAG_REG_ID_UNIT flag must be set.
+ For a dynamically assigned control ID, do not set the CTL_FLAG_REG_ID_UNIT flag.
+ The value of the dynamically assigned control ID is set to this field
+ when the registration succeeds.
+ @field ctl_unit A separate unit number to register multiple units that
+ share the same control ID with DTS assigned creator code when
+ the CTL_FLAG_REG_ID_UNIT flag is set.
+ This field is ignored for a dynamically assigned control ID.
+ @field ctl_flags CTL_FLAG_PRIVILEGED and/or CTL_FLAG_REG_ID_UNIT.
+ @field ctl_sendsize Override the default send size. If set to zero,
+ the default send size will be used, and this default value
+ is set to this field to be retrieved by the caller.
+ @field ctl_recvsize Override the default receive size. If set to
+ zero, the default receive size will be used, and this default value
+ is set to this field to be retrieved by the caller.
+ @field ctl_connect Specify the function to be called whenever a client
+ connects to the kernel control. This field must be specified.
+ @field ctl_disconnect Specify a function to be called whenever a
+ client disconnects from the kernel control.
+ @field ctl_send Specify a function to handle data send from the
+ client to the kernel control.
+ @field ctl_setopt Specify a function to handle set socket option
+ operations for the kernel control.
+ @field ctl_getopt Specify a function to handle get socket option
+ operations for the kernel control.
+*/
+struct kern_ctl_reg
+{
+ /* control information */
+ char ctl_name[MAX_KCTL_NAME];
+ u_int32_t ctl_id;
+ u_int32_t ctl_unit;
+
+ /* control settings */
+ u_int32_t ctl_flags;
+ u_int32_t ctl_sendsize;
+ u_int32_t ctl_recvsize;
+
+ /* Dispatch functions */
+ ctl_connect_func ctl_connect;
+ ctl_disconnect_func ctl_disconnect;
+ ctl_send_func ctl_send;
+ ctl_setopt_func ctl_setopt;
+ ctl_getopt_func ctl_getopt;
+#ifdef KERNEL_PRIVATE
+ ctl_rcvd_func ctl_rcvd; /* Only valid if CTL_FLAG_REG_EXTENDED is set */
+ ctl_send_list_func ctl_send_list; /* Only valid if CTL_FLAG_REG_EXTENDED is set */
+#endif /* KERNEL_PRIVATE */
+};
+
+/*!
+ @function ctl_register
+ @discussion Register a kernel control. This will enable clients to
+ connect to the kernel control using a PF_SYSTEM socket.
+ @param userkctl A structure defining the kernel control to be
+ attached. The ctl_connect callback must be specified, the other callbacks
+ are optional. If ctl_connect is set to zero, ctl_register fails with
+ the error code EINVAL.
+ @param kctlref Upon successful return, the kctlref will contain a
+ reference to the attached kernel control. This reference is used
+ to unregister the kernel control. This reference will also be
+ passed in to the callbacks each time they are called.
+ @result 0 - Kernel control was registered.
+ EINVAL - The registration structure was not valid.
+ ENOMEM - There was insufficient memory.
+ EEXIST - A controller with that id/unit is already registered.
+ */
+errno_t
+ctl_register(struct kern_ctl_reg *userkctl, kern_ctl_ref *kctlref);
+
+/*!
+ @function ctl_deregister
+ @discussion Unregister a kernel control. A kernel extension must
+ unregister it's kernel control(s) before unloading. If a kernel
+ control has clients attached, this call will fail.
+ @param kctlref The control reference of the control to unregister.
+ @result 0 - Kernel control was unregistered.
+ EINVAL - The kernel control reference was invalid.
+ EBUSY - The kernel control has clients still attached.
+ */
+errno_t
+ctl_deregister(kern_ctl_ref kctlref);
+
+/*!
+ @function ctl_enqueuedata
+ @discussion Send data from the kernel control to the client.
+ @param kctlref The control reference of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param data A pointer to the data to send.
+ @param len The length of data to send.
+ @param flags Send flags. CTL_DATA_NOWAKEUP and CTL_DATA_EOR are currently
+ the only supported flags.
+ @result 0 - Data was enqueued to be read by the client.
+ EINVAL - Invalid parameters.
+ EMSGSIZE - The buffer is too large.
+ ENOBUFS - The queue is full or there are no free mbufs.
+ */
+errno_t
+ctl_enqueuedata(kern_ctl_ref kctlref, u_int32_t unit, void *data, size_t len, u_int32_t flags);
+
+/*!
+ @function ctl_enqueuembuf
+ @discussion Send data stored in an mbuf chain from the kernel
+ control to the client. The caller is responsible for freeing
+ the mbuf chain if ctl_enqueuembuf returns an error.
+ @param kctlref The control reference of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param m An mbuf chain containing the data to send to the client.
+ @param flags Send flags. CTL_DATA_NOWAKEUP and CTL_DATA_EOR are currently
+ the only supported flags.
+ @result 0 - Data was enqueued to be read by the client.
+ EINVAL - Invalid parameters.
+ ENOBUFS - The queue is full.
+ */
+errno_t
+ctl_enqueuembuf(kern_ctl_ref kctlref, u_int32_t unit, mbuf_t m, u_int32_t flags);
+
+#ifdef PRIVATE
+/*!
+ @function ctl_enqueuembuf_list
+ @discussion Send data stored in an mbuf packet chain from the kernel
+ control to the client. The caller is responsible for freeing
+ the mbuf chain if ctl_enqueuembuf returns an error.
+ Not valid if ctl_flags contains CTL_FLAG_REG_SOCK_STREAM.
+ @param kctlref The control reference of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param m An mbuf chain containing the data to send to the client.
+ @param flags Send flags. CTL_DATA_NOWAKEUP is
+ the only supported flags.
+ @param m_remain A pointer to the list of mbuf packets in the chain that
+ could not be enqueued.
+ @result 0 - Data was enqueued to be read by the client.
+ EINVAL - Invalid parameters.
+ ENOBUFS - The queue is full.
+ */
+errno_t
+ctl_enqueuembuf_list(kern_ctl_ref kctlref, u_int32_t unit, mbuf_t m_list,
+ u_int32_t flags, mbuf_t *m_remain);
+
+
+#endif
+
+/*!
+ @function ctl_getenqueuespace
+ @discussion Retrieve the amount of space currently available for data to be sent
+ from the kernel control to the client.
+ @param kctlref The control reference of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param space The address where to return the current space available
+ @result 0 - Success; the amount of space is returned to caller.
+ EINVAL - Invalid parameters.
+ */
+errno_t
+ctl_getenqueuespace(kern_ctl_ref kctlref, u_int32_t unit, size_t *space);
+
+/*!
+ @function ctl_getenqueuereadable
+ @discussion Retrieve the difference between enqueued bytes and
+ low-water mark for the socket receive buffer.
+ @param kctlref The control reference of the kernel control.
+ @param unit The unit number of the kernel control instance.
+ @param u_int32_t The address at which to return the current difference
+ between the low-water mark for the socket and the number of bytes
+ enqueued. 0 indicates that the socket is readable by the client
+ (the number of bytes in the buffer is above the low-water mark).
+ @result 0 - Success; the difference is returned to caller.
+ EINVAL - Invalid parameters.
+ */
+errno_t
+ctl_getenqueuereadable(kern_ctl_ref kctlref, u_int32_t unit, u_int32_t *difference);
+
+#ifdef KERNEL_PRIVATE
+
+#include <sys/queue.h>
+#include <libkern/locks.h>
+
+/*
+ * internal structure maintained for each register controller
+ */
+struct ctl_cb;
+struct socket;
+
+struct kctl {
+ TAILQ_ENTRY(kctl) next; /* controller chain */
+
+ /* controller information provided when registering */
+ char name[MAX_KCTL_NAME]; /* unique nke identifier, provided by DTS */
+ u_int32_t id;
+ u_int32_t reg_unit;
+
+ /* misc communication information */
+ u_int32_t flags; /* support flags */
+ u_int32_t recvbufsize; /* request more than the default buffer size */
+ u_int32_t sendbufsize; /* request more than the default buffer size */
+
+ /* Dispatch functions */
+ ctl_connect_func connect; /* Make contact */
+ ctl_disconnect_func disconnect; /* Break contact */
+ ctl_send_func send; /* Send data to nke */
+ ctl_send_list_func send_list; /* Send list of packets */
+ ctl_setopt_func setopt; /* set kctl configuration */
+ ctl_getopt_func getopt; /* get kctl configuration */
+ ctl_rcvd_func rcvd; /* Notify nke when client reads data */
+
+ TAILQ_HEAD(, ctl_cb) kcb_head;
+ u_int32_t lastunit;
+};
+
+struct ctl_cb {
+ TAILQ_ENTRY(ctl_cb) next; /* controller chain */
+ lck_mtx_t *mtx;
+ struct socket *so; /* controlling socket */
+ struct kctl *kctl; /* back pointer to controller */
+ void *userdata;
+ u_int32_t unit;
+ u_int32_t usecount;
+};
+
+u_int32_t ctl_id_by_name(const char *name);
+errno_t ctl_name_by_id(u_int32_t id, char *out_name, size_t maxsize);
+#endif /* KERNEL_PRIVATE */
+
+__END_DECLS
+#endif /* KERNEL */
+
+#endif /* KPI_KERN_CONTROL_H */
+
Property changes on: trunk/include/apple/sys/kern_control.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/kern_event.h
===================================================================
--- trunk/include/apple/sys/kern_event.h (rev 0)
+++ trunk/include/apple/sys/kern_event.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,222 @@
+/*
+ * Copyright (c) 2000-2014 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/* Copyright (c) 1998, 1999 Apple Computer, Inc. All Rights Reserved */
+/*!
+ @header kern_event.h
+ This header defines in-kernel functions for generating kernel events as
+ well as functions for receiving kernel events using a kernel event
+ socket.
+ */
+
+#ifndef SYS_KERN_EVENT_H
+#define SYS_KERN_EVENT_H
+
+#include <sys/appleapiopts.h>
+#include <sys/ioccom.h>
+#include <sys/sys_domain.h>
+
+#define KEV_SNDSPACE (4 * 1024)
+#define KEV_RECVSPACE (32 * 1024)
+
+#define KEV_ANY_VENDOR 0
+#define KEV_ANY_CLASS 0
+#define KEV_ANY_SUBCLASS 0
+
+/*
+ * Vendor Code
+ */
+
+/*!
+ @defined KEV_VENDOR_APPLE
+ @discussion Apple generated kernel events use the hard coded vendor code
+ value of 1. Third party kernel events use a dynamically allocated vendor
+ code. The vendor code can be found using the SIOCGKEVVENDOR ioctl.
+*/
+#define KEV_VENDOR_APPLE 1
+
+/*
+ * Definition of top-level classifications for KEV_VENDOR_APPLE
+ */
+
+/*!
+ @defined KEV_NETWORK_CLASS
+ @discussion Network kernel event class.
+ */
+#define KEV_NETWORK_CLASS 1
+
+/*!
+ @defined KEV_IOKIT_CLASS
+ @discussion IOKit kernel event class.
+ */
+#define KEV_IOKIT_CLASS 2
+
+/*!
+ @defined KEV_SYSTEM_CLASS
+ @discussion System kernel event class.
+ */
+#define KEV_SYSTEM_CLASS 3
+
+/*!
+ @defined KEV_APPLESHARE_CLASS
+ @discussion AppleShare kernel event class.
+ */
+#define KEV_APPLESHARE_CLASS 4
+
+/*!
+ @defined KEV_FIREWALL_CLASS
+ @discussion Firewall kernel event class.
+ */
+#define KEV_FIREWALL_CLASS 5
+
+/*!
+ @defined KEV_IEEE80211_CLASS
+ @discussion IEEE 802.11 kernel event class.
+ */
+#define KEV_IEEE80211_CLASS 6
+
+/*!
+ @struct kern_event_msg
+ @discussion This structure is prepended to all kernel events. This
+ structure is used to determine the format of the remainder of
+ the kernel event. This structure will appear on all messages
+ received on a kernel event socket. To post a kernel event, a
+ slightly different structure is used.
+ @field total_size Total size of the kernel event message including the
+ header.
+ @field vendor_code The vendor code indicates which vendor generated the
+ kernel event. This gives every vendor a unique set of classes
+ and subclasses to use. Use the SIOCGKEVVENDOR ioctl to look up
+ vendor codes for vendors other than Apple. Apple uses
+ KEV_VENDOR_APPLE.
+ @field kev_class The class of the kernel event.
+ @field kev_subclass The subclass of the kernel event.
+ @field id Monotonically increasing value.
+ @field event_code The event code.
+ @field event_data Any additional data about this event. Format will
+ depend on the vendor_code, kev_class, kev_subclass, and
+ event_code. The length of the event_data can be determined
+ using total_size - KEV_MSG_HEADER_SIZE.
+ */
+struct kern_event_msg {
+ u_int32_t total_size; /* Size of entire event msg */
+ u_int32_t vendor_code; /* For non-Apple extensibility */
+ u_int32_t kev_class; /* Layer of event source */
+ u_int32_t kev_subclass; /* Component within layer */
+ u_int32_t id; /* Monotonically increasing value */
+ u_int32_t event_code; /* unique code */
+ u_int32_t event_data[1]; /* One or more data words */
+};
+
+/*!
+ @defined KEV_MSG_HEADER_SIZE
+ @discussion Size of the header portion of the kern_event_msg structure.
+ This accounts for everything right up to event_data. The size
+ of the data can be found by subtracting KEV_MSG_HEADER_SIZE
+ from the total size from the kern_event_msg.
+ */
+#define KEV_MSG_HEADER_SIZE (offsetof(struct kern_event_msg, event_data[0]))
+
+/*!
+ @struct kev_request
+ @discussion This structure is used with the SIOCSKEVFILT and
+ SIOCGKEVFILT to set and get the control filter setting for a
+ kernel control socket.
+ @field total_size Total size of the kernel event message including the
+ header.
+ @field vendor_code All kernel events that don't match this vendor code
+ will be ignored. KEV_ANY_VENDOR can be used to receive kernel
+ events with any vendor code.
+ @field kev_class All kernel events that don't match this class will be
+ ignored. KEV_ANY_CLASS can be used to receive kernel events with
+ any class.
+ @field kev_subclass All kernel events that don't match this subclass
+ will be ignored. KEV_ANY_SUBCLASS can be used to receive kernel
+ events with any subclass.
+ */
+struct kev_request {
+ u_int32_t vendor_code;
+ u_int32_t kev_class;
+ u_int32_t kev_subclass;
+};
+
+/*!
+ @defined KEV_VENDOR_CODE_MAX_STR_LEN
+ @discussion This define sets the maximum length of a string that can be
+ used to identify a vendor or kext when looking up a vendor code.
+ */
+#define KEV_VENDOR_CODE_MAX_STR_LEN 200
+
+/*!
+ @struct kev_vendor_code
+ @discussion This structure is used with the SIOCGKEVVENDOR ioctl to
+ convert from a string identifying a kext or vendor, in the
+ form of a bundle identifier, to a vendor code.
+ @field vendor_code After making the SIOCGKEVVENDOR ioctl call, this will
+ be filled in with the vendor code if there is one.
+ @field vendor_string A bundle style identifier.
+ */
+#pragma pack(4)
+struct kev_vendor_code {
+ u_int32_t vendor_code;
+ char vendor_string[KEV_VENDOR_CODE_MAX_STR_LEN];
+};
+#pragma pack()
+
+/*!
+ @defined SIOCGKEVID
+ @discussion Retrieve the current event id. Each event generated will
+ have a new id. The next event to be generated will have an id
+ of id+1.
+ */
+#define SIOCGKEVID _IOR('e', 1, u_int32_t)
+
+/*!
+ @defined SIOCSKEVFILT
+ @discussion Set the kernel event filter for this socket. Kernel events
+ not matching this filter will not be received on this socket.
+ */
+#define SIOCSKEVFILT _IOW('e', 2, struct kev_request)
+
+/*!
+ @defined SIOCGKEVFILT
+ @discussion Retrieve the kernel event filter for this socket. Kernel
+ events not matching this filter will not be received on this
+ socket.
+ */
+#define SIOCGKEVFILT _IOR('e', 3, struct kev_request)
+
+/*!
+ @defined SIOCGKEVVENDOR
+ @discussion Lookup the vendor code for the specified vendor. ENOENT will
+ be returned if a vendor code for that vendor string does not
+ exist.
+ */
+#define SIOCGKEVVENDOR _IOWR('e', 4, struct kev_vendor_code)
+
+
+#endif /* SYS_KERN_EVENT_H */
Property changes on: trunk/include/apple/sys/kern_event.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/kern_memorystatus.h
===================================================================
--- trunk/include/apple/sys/kern_memorystatus.h (rev 0)
+++ trunk/include/apple/sys/kern_memorystatus.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,331 @@
+/*
+ * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef SYS_MEMORYSTATUS_H
+#define SYS_MEMORYSTATUS_H
+
+#include <stdint.h>
+#include <sys/time.h>
+#if 0
+#include <sys/proc.h>
+#endif
+#include <sys/param.h>
+typedef u_int64_t user_addr_t;
+
+#define JETSAM_PRIORITY_REVISION 2
+
+#define JETSAM_PRIORITY_IDLE_HEAD -2
+/* The value -1 is an alias to JETSAM_PRIORITY_DEFAULT */
+#define JETSAM_PRIORITY_IDLE 0
+#define JETSAM_PRIORITY_IDLE_DEFERRED 1
+#define JETSAM_PRIORITY_BACKGROUND_OPPORTUNISTIC 2
+#define JETSAM_PRIORITY_BACKGROUND 3
+#define JETSAM_PRIORITY_MAIL 4
+#define JETSAM_PRIORITY_PHONE 5
+#define JETSAM_PRIORITY_UI_SUPPORT 8
+#define JETSAM_PRIORITY_FOREGROUND_SUPPORT 9
+#define JETSAM_PRIORITY_FOREGROUND 10
+#define JETSAM_PRIORITY_AUDIO_AND_ACCESSORY 12
+#define JETSAM_PRIORITY_CONDUCTOR 13
+#define JETSAM_PRIORITY_HOME 16
+#define JETSAM_PRIORITY_EXECUTIVE 17
+#define JETSAM_PRIORITY_IMPORTANT 18
+#define JETSAM_PRIORITY_CRITICAL 19
+
+#define JETSAM_PRIORITY_MAX 21
+
+/* TODO - tune. This should probably be lower priority */
+#define JETSAM_PRIORITY_DEFAULT 18
+#define JETSAM_PRIORITY_TELEPHONY 19
+
+/* Compatibility */
+#define DEFAULT_JETSAM_PRIORITY 18
+
+#define DEFERRED_IDLE_EXIT_TIME_SECS 10
+
+#define KEV_MEMORYSTATUS_SUBCLASS 3
+
+enum {
+ kMemorystatusLevelNote = 1,
+ kMemorystatusSnapshotNote = 2,
+ kMemorystatusFreezeNote = 3,
+ kMemorystatusPressureNote = 4
+};
+
+enum {
+ kMemorystatusLevelAny = -1,
+ kMemorystatusLevelNormal = 0,
+ kMemorystatusLevelWarning = 1,
+ kMemorystatusLevelUrgent = 2,
+ kMemorystatusLevelCritical = 3
+};
+
+typedef struct memorystatus_priority_entry {
+ pid_t pid;
+ int32_t priority;
+ uint64_t user_data;
+ int32_t limit;
+ uint32_t state;
+} memorystatus_priority_entry_t;
+
+typedef struct memorystatus_kernel_stats {
+ uint32_t free_pages;
+ uint32_t active_pages;
+ uint32_t inactive_pages;
+ uint32_t throttled_pages;
+ uint32_t purgeable_pages;
+ uint32_t wired_pages;
+ uint32_t speculative_pages;
+ uint32_t filebacked_pages;
+ uint32_t anonymous_pages;
+ uint32_t compressor_pages;
+ uint64_t compressions;
+ uint64_t decompressions;
+ uint64_t total_uncompressed_pages_in_compressor;
+} memorystatus_kernel_stats_t;
+
+/*
+** This is a variable-length struct.
+** Allocate a buffer of the size returned by the sysctl, cast to a memorystatus_snapshot_t *
+*/
+
+typedef struct jetsam_snapshot_entry {
+ pid_t pid;
+ char name[MAXCOMLEN+1];
+ int32_t priority;
+ uint32_t pages;
+ uint32_t max_pages;
+ uint32_t state;
+ uint32_t killed;
+ uint64_t user_data;
+ uint8_t uuid[16];
+ uint32_t fds;
+ uint32_t max_pages_lifetime;
+ uint32_t purgeable_pages;
+ struct timeval cpu_time;
+} memorystatus_jetsam_snapshot_entry_t;
+
+typedef struct jetsam_snapshot {
+ uint64_t snapshot_time;
+ uint64_t notification_time;
+ memorystatus_kernel_stats_t stats;
+ size_t entry_count;
+ memorystatus_jetsam_snapshot_entry_t entries[];
+} memorystatus_jetsam_snapshot_t;
+
+typedef struct memorystatus_freeze_entry {
+ int32_t pid;
+ uint32_t flags;
+ uint32_t pages;
+} memorystatus_freeze_entry_t;
+
+/* TODO - deprecate; see <rdar://problem/12969599> */
+#define kMaxSnapshotEntries 192
+
+/* State */
+#define kMemorystatusSuspended 0x01
+#define kMemorystatusFrozen 0x02
+#define kMemorystatusWasThawed 0x04
+#define kMemorystatusTracked 0x08
+#define kMemorystatusSupportsIdleExit 0x10
+#define kMemorystatusDirty 0x20
+
+/* Cause */
+enum {
+ kMemorystatusKilled = 1,
+ kMemorystatusKilledHiwat,
+ kMemorystatusKilledVnodes,
+ kMemorystatusKilledVMPageShortage,
+ kMemorystatusKilledVMThrashing,
+ kMemorystatusKilledFCThrashing,
+ kMemorystatusKilledPerProcessLimit,
+ kMemorystatusKilledDiagnostic,
+ kMemorystatusKilledIdleExit
+};
+
+/* Temporary, to prevent the need for a linked submission of ReportCrash */
+/* Remove when <rdar://problem/13210532> has been integrated */
+enum {
+ kMemorystatusKilledVM = kMemorystatusKilledVMPageShortage
+};
+
+/* Memorystatus control */
+#define MEMORYSTATUS_BUFFERSIZE_MAX 65536
+
+#ifndef KERNEL
+int memorystatus_get_level(user_addr_t level);
+int memorystatus_control(uint32_t command, int32_t pid, uint32_t flags, void *buffer, size_t buffersize);
+#endif
+
+/* Commands */
+#define MEMORYSTATUS_CMD_GET_PRIORITY_LIST 1
+#define MEMORYSTATUS_CMD_SET_PRIORITY_PROPERTIES 2
+#define MEMORYSTATUS_CMD_GET_JETSAM_SNAPSHOT 3
+#define MEMORYSTATUS_CMD_GET_PRESSURE_STATUS 4
+#define MEMORYSTATUS_CMD_SET_JETSAM_HIGH_WATER_MARK 5
+#define MEMORYSTATUS_CMD_SET_JETSAM_TASK_LIMIT 6
+
+/* Group Commands */
+#define MEMORYSTATUS_CMD_GRP_SET_PROPERTIES 7
+
+#if PRIVATE
+/* Test commands */
+
+/* Trigger forced jetsam */
+#define MEMORYSTATUS_CMD_TEST_JETSAM 1000
+
+/* Panic on jetsam options */
+typedef struct memorystatus_jetsam_panic_options {
+ uint32_t data;
+ uint32_t mask;
+} memorystatus_jetsam_panic_options_t;
+
+#define MEMORYSTATUS_CMD_SET_JETSAM_PANIC_BITS 1001
+#endif /* PRIVATE */
+
+typedef struct memorystatus_priority_properties {
+ int32_t priority;
+ uint64_t user_data;
+} memorystatus_priority_properties_t;
+
+#ifdef XNU_KERNEL_PRIVATE
+
+/* p_memstat_state flags */
+
+#define P_MEMSTAT_SUSPENDED 0x00000001
+#define P_MEMSTAT_FROZEN 0x00000002
+#define P_MEMSTAT_NORECLAIM 0x00000004
+#define P_MEMSTAT_ERROR 0x00000008
+#define P_MEMSTAT_LOCKED 0x00000010
+#define P_MEMSTAT_TERMINATED 0x00000020
+#define P_MEMSTAT_NOTFIED 0x00000040
+#define P_MEMSTAT_PRIORITYUPDATED 0x00000080
+#define P_MEMSTAT_FOREGROUND 0x00000100
+#define P_MEMSTAT_DIAG_SUSPENDED 0x00000200
+#define P_MEMSTAT_PRIOR_THAW 0x00000400
+#define P_MEMSTAT_MEMLIMIT_BACKGROUND 0x00000800 /* Task has a memory limit for when it's in the background. Used for a process' "high water mark".*/
+#define P_MEMSTAT_INTERNAL 0x00001000
+#define P_MEMSTAT_FATAL_MEMLIMIT 0x00002000 /* cross this limit and the process is killed. Types: system-wide default task memory limit and per-task custom memory limit. */
+
+extern void memorystatus_init(void) __attribute__((section("__TEXT, initcode")));
+
+extern int memorystatus_add(proc_t p, boolean_t locked);
+extern int memorystatus_update(proc_t p, int priority, uint64_t user_data, boolean_t effective, boolean_t update_memlimit, int32_t memlimit, boolean_t memlimit_background, boolean_t is_fatal_limit);
+extern int memorystatus_remove(proc_t p, boolean_t locked);
+
+extern int memorystatus_dirty_track(proc_t p, uint32_t pcontrol);
+extern int memorystatus_dirty_set(proc_t p, boolean_t self, uint32_t pcontrol);
+extern int memorystatus_dirty_get(proc_t p);
+extern int memorystatus_dirty_clear(proc_t p, uint32_t pcontrol);
+
+extern int memorystatus_on_terminate(proc_t p);
+
+extern void memorystatus_on_suspend(proc_t p);
+extern void memorystatus_on_resume(proc_t p);
+extern void memorystatus_on_inactivity(proc_t p);
+
+extern void memorystatus_on_pageout_scan_end(void);
+
+/* Memorystatus kevent */
+
+void memorystatus_kevent_init(lck_grp_t *grp, lck_attr_t *attr);
+
+int memorystatus_knote_register(struct knote *kn);
+void memorystatus_knote_unregister(struct knote *kn);
+
+#if CONFIG_JETSAM
+
+typedef enum memorystatus_policy {
+ kPolicyDefault = 0x0,
+ kPolicyMoreFree = 0x1,
+ kPolicyDiagnoseAll = 0x2,
+ kPolicyDiagnoseFirst = 0x4,
+ kPolicyDiagnoseActive = (kPolicyDiagnoseAll | kPolicyDiagnoseFirst),
+} memorystatus_policy_t;
+
+extern int memorystatus_jetsam_wakeup;
+extern unsigned int memorystatus_jetsam_running;
+
+boolean_t memorystatus_kill_on_VM_page_shortage(boolean_t async);
+boolean_t memorystatus_kill_on_VM_thrashing(boolean_t async);
+boolean_t memorystatus_kill_on_FC_thrashing(boolean_t async);
+boolean_t memorystatus_kill_on_vnode_limit(void);
+
+void memorystatus_on_ledger_footprint_exceeded(int warning, const int max_footprint_mb);
+void jetsam_on_ledger_cpulimit_exceeded(void);
+
+void memorystatus_pages_update(unsigned int pages_avail);
+
+#else /* CONFIG_JETSAM */
+
+boolean_t memorystatus_idle_exit_from_VM(void);
+
+#endif /* !CONFIG_JETSAM */
+
+#ifdef CONFIG_FREEZE
+
+#define FREEZE_PAGES_MIN ( 1 * 1024 * 1024 / PAGE_SIZE)
+#define FREEZE_PAGES_MAX (16 * 1024 * 1024 / PAGE_SIZE)
+
+#define FREEZE_SUSPENDED_THRESHOLD_LOW 2
+#define FREEZE_SUSPENDED_THRESHOLD_DEFAULT 4
+
+#define FREEZE_DAILY_MB_MAX 1024
+#define FREEZE_DAILY_PAGEOUTS_MAX (FREEZE_DAILY_MB_MAX * (1024 * 1024 / PAGE_SIZE))
+
+typedef struct throttle_interval_t {
+ uint32_t mins;
+ uint32_t burst_multiple;
+ uint32_t pageouts;
+ uint32_t max_pageouts;
+ mach_timespec_t ts;
+ boolean_t throttle;
+} throttle_interval_t;
+
+extern boolean_t memorystatus_freeze_enabled;
+extern int memorystatus_freeze_wakeup;
+
+extern void memorystatus_freeze_init(void) __attribute__((section("__TEXT, initcode")));
+
+#endif /* CONFIG_FREEZE */
+
+#if VM_PRESSURE_EVENTS
+
+extern kern_return_t memorystatus_update_vm_pressure(boolean_t);
+
+#if CONFIG_MEMORYSTATUS
+extern int memorystatus_send_pressure_note(int pid);
+extern boolean_t memorystatus_is_foreground_locked(proc_t p);
+extern boolean_t memorystatus_bg_pressure_eligible(proc_t p);
+#endif /* CONFIG_MEMORYSTATUS */
+
+#endif /* VM_PRESSURE_EVENTS */
+
+#endif /* XNU_KERNEL_PRIVATE */
+
+#endif /* SYS_MEMORYSTATUS_H */
Property changes on: trunk/include/apple/sys/kern_memorystatus.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/proc_info.h
===================================================================
--- trunk/include/apple/sys/proc_info.h (rev 0)
+++ trunk/include/apple/sys/proc_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,843 @@
+/*
+ * Copyright (c) 2005 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _SYS_PROC_INFO_H
+#define _SYS_PROC_INFO_H
+
+#include <sys/cdefs.h>
+#include <sys/param.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/mount.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <System/sys/kern_control.h>
+#include <net/if.h>
+#include <net/route.h>
+#include <netinet/in.h>
+#include <netinet/tcp.h>
+#ifdef __FreeBSD__
+#include <sys/mach/machine.h>
+#else
+#include <mach/machine.h>
+#endif
+__BEGIN_DECLS
+
+
+#define PROC_ALL_PIDS 1
+#define PROC_PGRP_ONLY 2
+#define PROC_TTY_ONLY 3
+#define PROC_UID_ONLY 4
+#define PROC_RUID_ONLY 5
+#define PROC_PPID_ONLY 6
+
+struct proc_bsdinfo {
+ uint32_t pbi_flags; /* 64bit; emulated etc */
+ uint32_t pbi_status;
+ uint32_t pbi_xstatus;
+ uint32_t pbi_pid;
+ uint32_t pbi_ppid;
+ uid_t pbi_uid;
+ gid_t pbi_gid;
+ uid_t pbi_ruid;
+ gid_t pbi_rgid;
+ uid_t pbi_svuid;
+ gid_t pbi_svgid;
+ uint32_t rfu_1; /* reserved */
+ char pbi_comm[MAXCOMLEN];
+ char pbi_name[2*MAXCOMLEN]; /* empty if no name is registered */
+ uint32_t pbi_nfiles;
+ uint32_t pbi_pgid;
+ uint32_t pbi_pjobc;
+ uint32_t e_tdev; /* controlling tty dev */
+ uint32_t e_tpgid; /* tty process group id */
+ int32_t pbi_nice;
+ uint64_t pbi_start_tvsec;
+ uint64_t pbi_start_tvusec;
+};
+
+
+struct proc_bsdshortinfo {
+ uint32_t pbsi_pid; /* process id */
+ uint32_t pbsi_ppid; /* process parent id */
+ uint32_t pbsi_pgid; /* process perp id */
+ uint32_t pbsi_status; /* p_stat value, SZOMB, SRUN, etc */
+ char pbsi_comm[MAXCOMLEN]; /* upto 16 characters of process name */
+ uint32_t pbsi_flags; /* 64bit; emulated etc */
+ uid_t pbsi_uid; /* current uid on process */
+ gid_t pbsi_gid; /* current gid on process */
+ uid_t pbsi_ruid; /* current ruid on process */
+ gid_t pbsi_rgid; /* current tgid on process */
+ uid_t pbsi_svuid; /* current svuid on process */
+ gid_t pbsi_svgid; /* current svgid on process */
+ uint32_t pbsi_rfu; /* reserved for future use*/
+};
+
+
+#ifdef PRIVATE
+struct proc_uniqidentifierinfo {
+ uint8_t p_uuid[16]; /* UUID of the main executable */
+ uint64_t p_uniqueid; /* 64 bit unique identifier for process */
+ uint64_t p_puniqueid; /* unique identifier for process's parent */
+ uint64_t p_reserve2; /* reserved for future use */
+ uint64_t p_reserve3; /* reserved for future use */
+ uint64_t p_reserve4; /* reserved for future use */
+};
+
+
+struct proc_bsdinfowithuniqid {
+ struct proc_bsdinfo pbsd;
+ struct proc_uniqidentifierinfo p_uniqidentifier;
+};
+
+struct proc_archinfo {
+ cpu_type_t p_cputype;
+ cpu_subtype_t p_cpusubtype;
+};
+
+struct proc_pidcoalitioninfo {
+ uint64_t coalition_id;
+ uint64_t reserved1;
+ uint64_t reserved2;
+ uint64_t reserved3;
+};
+
+#endif
+
+
+/* pbi_flags values */
+#define PROC_FLAG_SYSTEM 1 /* System process */
+#define PROC_FLAG_TRACED 2 /* process currently being traced, possibly by gdb */
+#define PROC_FLAG_INEXIT 4 /* process is working its way in exit() */
+#define PROC_FLAG_PPWAIT 8
+#define PROC_FLAG_LP64 0x10 /* 64bit process */
+#define PROC_FLAG_SLEADER 0x20 /* The process is the session leader */
+#define PROC_FLAG_CTTY 0x40 /* process has a control tty */
+#define PROC_FLAG_CONTROLT 0x80 /* Has a controlling terminal */
+#define PROC_FLAG_THCWD 0x100 /* process has a thread with cwd */
+/* process control bits for resource starvation */
+#define PROC_FLAG_PC_THROTTLE 0x200 /* In resource starvation situations, this process is to be throttled */
+#define PROC_FLAG_PC_SUSP 0x400 /* In resource starvation situations, this process is to be suspended */
+#define PROC_FLAG_PC_KILL 0x600 /* In resource starvation situations, this process is to be terminated */
+#define PROC_FLAG_PC_MASK 0x600
+/* process action bits for resource starvation */
+#define PROC_FLAG_PA_THROTTLE 0x800 /* The process is currently throttled due to resource starvation */
+#define PROC_FLAG_PA_SUSP 0x1000 /* The process is currently suspended due to resource starvation */
+#define PROC_FLAG_PSUGID 0x2000 /* process has set privileges since last exec */
+#define PROC_FLAG_EXEC 0x4000 /* process has called exec */
+#ifdef PRIVATE
+#define PROC_FLAG_DARWINBG 0x8000 /* process in darwin background */
+#define PROC_FLAG_EXT_DARWINBG 0x10000 /* process in darwin background - external enforcement */
+#define PROC_FLAG_IOS_APPLEDAEMON 0x20000 /* Process is apple daemon */
+#define PROC_FLAG_DELAYIDLESLEEP 0x40000 /* Process is marked to delay idle sleep on disk IO */
+#define PROC_FLAG_IOS_IMPPROMOTION 0x80000 /* Process is daemon which receives importane donation */
+#define PROC_FLAG_ADAPTIVE 0x100000 /* Process is adaptive */
+#define PROC_FLAG_ADAPTIVE_IMPORTANT 0x200000 /* Process is adaptive, and is currently important */
+#define PROC_FLAG_IMPORTANCE_DONOR 0x400000 /* Process is marked as an importance donor */
+#define PROC_FLAG_SUPPRESSED 0x800000 /* Process is suppressed */
+#define PROC_FLAG_APPLICATION 0x1000000 /* Process is an application */
+#define PROC_FLAG_IOS_APPLICATION PROC_FLAG_APPLICATION /* Process is an application */
+#endif
+
+
+struct proc_taskinfo {
+ uint64_t pti_virtual_size; /* virtual memory size (bytes) */
+ uint64_t pti_resident_size; /* resident memory size (bytes) */
+ uint64_t pti_total_user; /* total time */
+ uint64_t pti_total_system;
+ uint64_t pti_threads_user; /* existing threads only */
+ uint64_t pti_threads_system;
+ int32_t pti_policy; /* default policy for new threads */
+ int32_t pti_faults; /* number of page faults */
+ int32_t pti_pageins; /* number of actual pageins */
+ int32_t pti_cow_faults; /* number of copy-on-write faults */
+ int32_t pti_messages_sent; /* number of messages sent */
+ int32_t pti_messages_received; /* number of messages received */
+ int32_t pti_syscalls_mach; /* number of mach system calls */
+ int32_t pti_syscalls_unix; /* number of unix system calls */
+ int32_t pti_csw; /* number of context switches */
+ int32_t pti_threadnum; /* number of threads in the task */
+ int32_t pti_numrunning; /* number of running threads */
+ int32_t pti_priority; /* task priority*/
+};
+
+struct proc_taskallinfo {
+ struct proc_bsdinfo pbsd;
+ struct proc_taskinfo ptinfo;
+};
+
+#define MAXTHREADNAMESIZE 64
+
+struct proc_threadinfo {
+ uint64_t pth_user_time; /* user run time */
+ uint64_t pth_system_time; /* system run time */
+ int32_t pth_cpu_usage; /* scaled cpu usage percentage */
+ int32_t pth_policy; /* scheduling policy in effect */
+ int32_t pth_run_state; /* run state (see below) */
+ int32_t pth_flags; /* various flags (see below) */
+ int32_t pth_sleep_time; /* number of seconds that thread */
+ int32_t pth_curpri; /* cur priority*/
+ int32_t pth_priority; /* priority*/
+ int32_t pth_maxpriority; /* max priority*/
+ char pth_name[MAXTHREADNAMESIZE]; /* thread name, if any */
+};
+
+struct proc_regioninfo {
+ uint32_t pri_protection;
+ uint32_t pri_max_protection;
+ uint32_t pri_inheritance;
+ uint32_t pri_flags; /* shared, external pager, is submap */
+ uint64_t pri_offset;
+ uint32_t pri_behavior;
+ uint32_t pri_user_wired_count;
+ uint32_t pri_user_tag;
+ uint32_t pri_pages_resident;
+ uint32_t pri_pages_shared_now_private;
+ uint32_t pri_pages_swapped_out;
+ uint32_t pri_pages_dirtied;
+ uint32_t pri_ref_count;
+ uint32_t pri_shadow_depth;
+ uint32_t pri_share_mode;
+ uint32_t pri_private_pages_resident;
+ uint32_t pri_shared_pages_resident;
+ uint32_t pri_obj_id;
+ uint32_t pri_depth;
+ uint64_t pri_address;
+ uint64_t pri_size;
+};
+
+#define PROC_REGION_SUBMAP 1
+#define PROC_REGION_SHARED 2
+
+#define SM_COW 1
+#define SM_PRIVATE 2
+#define SM_EMPTY 3
+#define SM_SHARED 4
+#define SM_TRUESHARED 5
+#define SM_PRIVATE_ALIASED 6
+#define SM_SHARED_ALIASED 7
+#define SM_LARGE_PAGE 8
+
+
+/*
+ * Thread run states (state field).
+ */
+
+#define TH_STATE_RUNNING 1 /* thread is running normally */
+#define TH_STATE_STOPPED 2 /* thread is stopped */
+#define TH_STATE_WAITING 3 /* thread is waiting normally */
+#define TH_STATE_UNINTERRUPTIBLE 4 /* thread is in an uninterruptible
+ wait */
+#define TH_STATE_HALTED 5 /* thread is halted at a
+ clean point */
+
+/*
+ * Thread flags (flags field).
+ */
+#define TH_FLAGS_SWAPPED 0x1 /* thread is swapped out */
+#define TH_FLAGS_IDLE 0x2 /* thread is an idle thread */
+
+
+struct proc_workqueueinfo {
+ uint32_t pwq_nthreads; /* total number of workqueue threads */
+ uint32_t pwq_runthreads; /* total number of running workqueue threads */
+ uint32_t pwq_blockedthreads; /* total number of blocked workqueue threads */
+ uint32_t pwq_state;
+};
+
+/*
+ * workqueue state (pwq_state field)
+ */
+#define WQ_EXCEEDED_CONSTRAINED_THREAD_LIMIT 0x1
+#define WQ_EXCEEDED_TOTAL_THREAD_LIMIT 0x2
+
+
+struct proc_fileinfo {
+ uint32_t fi_openflags;
+ uint32_t fi_status;
+ off_t fi_offset;
+ int32_t fi_type;
+ uint32_t fi_guardflags;
+};
+
+/* stats flags in proc_fileinfo */
+#define PROC_FP_SHARED 1 /* shared by more than one fd */
+#define PROC_FP_CLEXEC 2 /* close on exec */
+#define PROC_FP_GUARDED 4 /* guarded fd */
+
+#define PROC_FI_GUARD_CLOSE (1u << 0)
+#define PROC_FI_GUARD_DUP (1u << 1)
+#define PROC_FI_GUARD_SOCKET_IPC (1u << 2)
+#define PROC_FI_GUARD_FILEPORT (1u << 3)
+
+/*
+ * A copy of stat64 with static sized fields.
+ */
+struct vinfo_stat {
+ uint32_t vst_dev; /* [XSI] ID of device containing file */
+ uint16_t vst_mode; /* [XSI] Mode of file (see below) */
+ uint16_t vst_nlink; /* [XSI] Number of hard links */
+ uint64_t vst_ino; /* [XSI] File serial number */
+ uid_t vst_uid; /* [XSI] User ID of the file */
+ gid_t vst_gid; /* [XSI] Group ID of the file */
+ int64_t vst_atime; /* [XSI] Time of last access */
+ int64_t vst_atimensec; /* nsec of last access */
+ int64_t vst_mtime; /* [XSI] Last data modification time */
+ int64_t vst_mtimensec; /* last data modification nsec */
+ int64_t vst_ctime; /* [XSI] Time of last status change */
+ int64_t vst_ctimensec; /* nsec of last status change */
+ int64_t vst_birthtime; /* File creation time(birth) */
+ int64_t vst_birthtimensec; /* nsec of File creation time */
+ off_t vst_size; /* [XSI] file size, in bytes */
+ int64_t vst_blocks; /* [XSI] blocks allocated for file */
+ int32_t vst_blksize; /* [XSI] optimal blocksize for I/O */
+ uint32_t vst_flags; /* user defined flags for file */
+ uint32_t vst_gen; /* file generation number */
+ uint32_t vst_rdev; /* [XSI] Device ID */
+ int64_t vst_qspare[2]; /* RESERVED: DO NOT USE! */
+};
+
+struct vnode_info {
+ struct vinfo_stat vi_stat;
+ int vi_type;
+ int vi_pad;
+ fsid_t vi_fsid;
+};
+
+struct vnode_info_path {
+ struct vnode_info vip_vi;
+ char vip_path[MAXPATHLEN]; /* tail end of it */
+};
+
+struct vnode_fdinfo {
+ struct proc_fileinfo pfi;
+ struct vnode_info pvi;
+};
+
+struct vnode_fdinfowithpath {
+ struct proc_fileinfo pfi;
+ struct vnode_info_path pvip;
+};
+
+struct proc_regionwithpathinfo {
+ struct proc_regioninfo prp_prinfo;
+ struct vnode_info_path prp_vip;
+};
+
+struct proc_vnodepathinfo {
+ struct vnode_info_path pvi_cdir;
+ struct vnode_info_path pvi_rdir;
+};
+
+struct proc_threadwithpathinfo {
+ struct proc_threadinfo pt;
+ struct vnode_info_path pvip;
+};
+
+/*
+ * Socket
+ */
+
+
+/*
+ * IPv4 and IPv6 Sockets
+ */
+
+#define INI_IPV4 0x1
+#define INI_IPV6 0x2
+
+struct in4in6_addr {
+ u_int32_t i46a_pad32[3];
+ struct in_addr i46a_addr4;
+};
+
+struct in_sockinfo {
+ int insi_fport; /* foreign port */
+ int insi_lport; /* local port */
+ uint64_t insi_gencnt; /* generation count of this instance */
+ uint32_t insi_flags; /* generic IP/datagram flags */
+ uint32_t insi_flow;
+
+ uint8_t insi_vflag; /* ini_IPV4 or ini_IPV6 */
+ uint8_t insi_ip_ttl; /* time to live proto */
+ uint32_t rfu_1; /* reserved */
+ /* protocol dependent part */
+ union {
+ struct in4in6_addr ina_46;
+ struct in6_addr ina_6;
+ } insi_faddr; /* foreign host table entry */
+ union {
+ struct in4in6_addr ina_46;
+ struct in6_addr ina_6;
+ } insi_laddr; /* local host table entry */
+ struct {
+ u_char in4_tos; /* type of service */
+ } insi_v4;
+ struct {
+ uint8_t in6_hlim;
+ int in6_cksum;
+ u_short in6_ifindex;
+ short in6_hops;
+ } insi_v6;
+};
+
+/*
+ * TCP Sockets
+ */
+
+#define TSI_T_REXMT 0 /* retransmit */
+#define TSI_T_PERSIST 1 /* retransmit persistence */
+#define TSI_T_KEEP 2 /* keep alive */
+#define TSI_T_2MSL 3 /* 2*msl quiet time timer */
+#define TSI_T_NTIMERS 4
+
+#define TSI_S_CLOSED 0 /* closed */
+#define TSI_S_LISTEN 1 /* listening for connection */
+#define TSI_S_SYN_SENT 2 /* active, have sent syn */
+#define TSI_S_SYN_RECEIVED 3 /* have send and received syn */
+#define TSI_S_ESTABLISHED 4 /* established */
+#define TSI_S__CLOSE_WAIT 5 /* rcvd fin, waiting for close */
+#define TSI_S_FIN_WAIT_1 6 /* have closed, sent fin */
+#define TSI_S_CLOSING 7 /* closed xchd FIN; await FIN ACK */
+#define TSI_S_LAST_ACK 8 /* had fin and close; await FIN ACK */
+#define TSI_S_FIN_WAIT_2 9 /* have closed, fin is acked */
+#define TSI_S_TIME_WAIT 10 /* in 2*msl quiet wait after close */
+#define TSI_S_RESERVED 11 /* pseudo state: reserved */
+
+struct tcp_sockinfo {
+ struct in_sockinfo tcpsi_ini;
+ int tcpsi_state;
+ int tcpsi_timer[TSI_T_NTIMERS];
+ int tcpsi_mss;
+ uint32_t tcpsi_flags;
+ uint32_t rfu_1; /* reserved */
+ uint64_t tcpsi_tp; /* opaque handle of TCP protocol control block */
+};
+
+/*
+ * Unix Domain Sockets
+ */
+
+
+struct un_sockinfo {
+ uint64_t unsi_conn_so; /* opaque handle of connected socket */
+ uint64_t unsi_conn_pcb; /* opaque handle of connected protocol control block */
+ union {
+ struct sockaddr_un ua_sun;
+ char ua_dummy[SOCK_MAXADDRLEN];
+ } unsi_addr; /* bound address */
+ union {
+ struct sockaddr_un ua_sun;
+ char ua_dummy[SOCK_MAXADDRLEN];
+ } unsi_caddr; /* address of socket connected to */
+};
+
+/*
+ * PF_NDRV Sockets
+ */
+
+struct ndrv_info {
+ uint32_t ndrvsi_if_family;
+ uint32_t ndrvsi_if_unit;
+ char ndrvsi_if_name[IF_NAMESIZE];
+};
+
+/*
+ * Kernel Event Sockets
+ */
+
+struct kern_event_info {
+ uint32_t kesi_vendor_code_filter;
+ uint32_t kesi_class_filter;
+ uint32_t kesi_subclass_filter;
+};
+
+/*
+ * Kernel Control Sockets
+ */
+
+struct kern_ctl_info {
+ uint32_t kcsi_id;
+ uint32_t kcsi_reg_unit;
+ uint32_t kcsi_flags; /* support flags */
+ uint32_t kcsi_recvbufsize; /* request more than the default buffer size */
+ uint32_t kcsi_sendbufsize; /* request more than the default buffer size */
+ uint32_t kcsi_unit;
+ char kcsi_name[MAX_KCTL_NAME]; /* unique nke identifier, provided by DTS */
+};
+
+/* soi_state */
+
+#define SOI_S_NOFDREF 0x0001 /* no file table ref any more */
+#define SOI_S_ISCONNECTED 0x0002 /* socket connected to a peer */
+#define SOI_S_ISCONNECTING 0x0004 /* in process of connecting to peer */
+#define SOI_S_ISDISCONNECTING 0x0008 /* in process of disconnecting */
+#define SOI_S_CANTSENDMORE 0x0010 /* can't send more data to peer */
+#define SOI_S_CANTRCVMORE 0x0020 /* can't receive more data from peer */
+#define SOI_S_RCVATMARK 0x0040 /* at mark on input */
+#define SOI_S_PRIV 0x0080 /* privileged for broadcast, raw... */
+#define SOI_S_NBIO 0x0100 /* non-blocking ops */
+#define SOI_S_ASYNC 0x0200 /* async i/o notify */
+#define SOI_S_INCOMP 0x0800 /* Unaccepted, incomplete connection */
+#define SOI_S_COMP 0x1000 /* unaccepted, complete connection */
+#define SOI_S_ISDISCONNECTED 0x2000 /* socket disconnected from peer */
+#define SOI_S_DRAINING 0x4000 /* close waiting for blocked system calls to drain */
+
+struct sockbuf_info {
+ uint32_t sbi_cc;
+ uint32_t sbi_hiwat; /* SO_RCVBUF, SO_SNDBUF */
+ uint32_t sbi_mbcnt;
+ uint32_t sbi_mbmax;
+ uint32_t sbi_lowat;
+ short sbi_flags;
+ short sbi_timeo;
+};
+
+enum {
+ SOCKINFO_GENERIC = 0,
+ SOCKINFO_IN = 1,
+ SOCKINFO_TCP = 2,
+ SOCKINFO_UN = 3,
+ SOCKINFO_NDRV = 4,
+ SOCKINFO_KERN_EVENT = 5,
+ SOCKINFO_KERN_CTL = 6
+};
+
+struct socket_info {
+ struct vinfo_stat soi_stat;
+ uint64_t soi_so; /* opaque handle of socket */
+ uint64_t soi_pcb; /* opaque handle of protocol control block */
+ int soi_type;
+ int soi_protocol;
+ int soi_family;
+ short soi_options;
+ short soi_linger;
+ short soi_state;
+ short soi_qlen;
+ short soi_incqlen;
+ short soi_qlimit;
+ short soi_timeo;
+ u_short soi_error;
+ uint32_t soi_oobmark;
+ struct sockbuf_info soi_rcv;
+ struct sockbuf_info soi_snd;
+ int soi_kind;
+ uint32_t rfu_1; /* reserved */
+ union {
+ struct in_sockinfo pri_in; /* SOCKINFO_IN */
+ struct tcp_sockinfo pri_tcp; /* SOCKINFO_TCP */
+ struct un_sockinfo pri_un; /* SOCKINFO_UN */
+ struct ndrv_info pri_ndrv; /* SOCKINFO_NDRV */
+ struct kern_event_info pri_kern_event; /* SOCKINFO_KERN_EVENT */
+ struct kern_ctl_info pri_kern_ctl; /* SOCKINFO_KERN_CTL */
+ } soi_proto;
+};
+
+struct socket_fdinfo {
+ struct proc_fileinfo pfi;
+ struct socket_info psi;
+};
+
+
+
+struct psem_info {
+ struct vinfo_stat psem_stat;
+ char psem_name[MAXPATHLEN];
+};
+
+struct psem_fdinfo {
+ struct proc_fileinfo pfi;
+ struct psem_info pseminfo;
+};
+
+
+
+struct pshm_info {
+ struct vinfo_stat pshm_stat;
+ uint64_t pshm_mappaddr;
+ char pshm_name[MAXPATHLEN];
+};
+
+struct pshm_fdinfo {
+ struct proc_fileinfo pfi;
+ struct pshm_info pshminfo;
+};
+
+
+struct pipe_info {
+ struct vinfo_stat pipe_stat;
+ uint64_t pipe_handle;
+ uint64_t pipe_peerhandle;
+ int pipe_status;
+ int rfu_1; /* reserved */
+};
+
+struct pipe_fdinfo {
+ struct proc_fileinfo pfi;
+ struct pipe_info pipeinfo;
+};
+
+
+struct kqueue_info {
+ struct vinfo_stat kq_stat;
+ uint32_t kq_state;
+ uint32_t rfu_1; /* reserved */
+};
+#define PROC_KQUEUE_SELECT 1
+#define PROC_KQUEUE_SLEEP 2
+
+struct kqueue_fdinfo {
+ struct proc_fileinfo pfi;
+ struct kqueue_info kqueueinfo;
+};
+
+struct appletalk_info {
+ struct vinfo_stat atalk_stat;
+};
+
+struct appletalk_fdinfo {
+ struct proc_fileinfo pfi;
+ struct appletalk_info appletalkinfo;
+};
+
+
+
+/* defns of process file desc type */
+#define PROX_FDTYPE_ATALK 0
+#define PROX_FDTYPE_VNODE 1
+#define PROX_FDTYPE_SOCKET 2
+#define PROX_FDTYPE_PSHM 3
+#define PROX_FDTYPE_PSEM 4
+#define PROX_FDTYPE_KQUEUE 5
+#define PROX_FDTYPE_PIPE 6
+#define PROX_FDTYPE_FSEVENTS 7
+
+struct proc_fdinfo {
+ int32_t proc_fd;
+ uint32_t proc_fdtype;
+};
+
+struct proc_fileportinfo {
+ uint32_t proc_fileport;
+ uint32_t proc_fdtype;
+};
+
+/* Flavors for proc_pidinfo() */
+#define PROC_PIDLISTFDS 1
+#define PROC_PIDLISTFD_SIZE (sizeof(struct proc_fdinfo))
+
+#define PROC_PIDTASKALLINFO 2
+#define PROC_PIDTASKALLINFO_SIZE (sizeof(struct proc_taskallinfo))
+
+#define PROC_PIDTBSDINFO 3
+#define PROC_PIDTBSDINFO_SIZE (sizeof(struct proc_bsdinfo))
+
+#define PROC_PIDTASKINFO 4
+#define PROC_PIDTASKINFO_SIZE (sizeof(struct proc_taskinfo))
+
+#define PROC_PIDTHREADINFO 5
+#define PROC_PIDTHREADINFO_SIZE (sizeof(struct proc_threadinfo))
+
+#define PROC_PIDLISTTHREADS 6
+#define PROC_PIDLISTTHREADS_SIZE (2* sizeof(uint32_t))
+
+
+#define PROC_PIDREGIONINFO 7
+#define PROC_PIDREGIONINFO_SIZE (sizeof(struct proc_regioninfo))
+
+#define PROC_PIDREGIONPATHINFO 8
+#define PROC_PIDREGIONPATHINFO_SIZE (sizeof(struct proc_regionwithpathinfo))
+
+#define PROC_PIDVNODEPATHINFO 9
+#define PROC_PIDVNODEPATHINFO_SIZE (sizeof(struct proc_vnodepathinfo))
+
+#define PROC_PIDTHREADPATHINFO 10
+#define PROC_PIDTHREADPATHINFO_SIZE (sizeof(struct proc_threadwithpathinfo))
+
+#define PROC_PIDPATHINFO 11
+#define PROC_PIDPATHINFO_SIZE (MAXPATHLEN)
+#define PROC_PIDPATHINFO_MAXSIZE (4*MAXPATHLEN)
+
+#define PROC_PIDWORKQUEUEINFO 12
+#define PROC_PIDWORKQUEUEINFO_SIZE (sizeof(struct proc_workqueueinfo))
+
+#define PROC_PIDT_SHORTBSDINFO 13
+#define PROC_PIDT_SHORTBSDINFO_SIZE (sizeof(struct proc_bsdshortinfo))
+
+#define PROC_PIDLISTFILEPORTS 14
+#define PROC_PIDLISTFILEPORTS_SIZE (sizeof(struct proc_fileportinfo))
+
+#define PROC_PIDTHREADID64INFO 15
+#define PROC_PIDTHREADID64INFO_SIZE (sizeof(struct proc_threadinfo))
+
+#define PROC_PID_RUSAGE 16
+#define PROC_PID_RUSAGE_SIZE 0
+
+#ifdef PRIVATE
+#define PROC_PIDUNIQIDENTIFIERINFO 17
+#define PROC_PIDUNIQIDENTIFIERINFO_SIZE \
+ (sizeof(struct proc_uniqidentifierinfo))
+
+#define PROC_PIDT_BSDINFOWITHUNIQID 18
+#define PROC_PIDT_BSDINFOWITHUNIQID_SIZE \
+ (sizeof(struct proc_bsdinfowithuniqid))
+
+#define PROC_PIDARCHINFO 19
+#define PROC_PIDARCHINFO_SIZE \
+ (sizeof(struct proc_archinfo))
+
+#define PROC_PIDCOALITIONINFO 20
+#define PROC_PIDCOALITIONINFO_SIZE (sizeof(struct proc_pidcoalitioninfo))
+
+#define PROC_PIDNOTEEXIT 21
+#define PROC_PIDNOTEEXIT_SIZE (sizeof(uint32_t))
+
+#define PROC_PIDREGIONPATHINFO2 22
+#define PROC_PIDREGIONPATHINFO2_SIZE (sizeof(struct proc_regionwithpathinfo))
+
+#define PROC_PIDREGIONPATHINFO3 23
+#define PROC_PIDREGIONPATHINFO3_SIZE (sizeof(struct proc_regionwithpathinfo))
+
+#endif
+
+/* Flavors for proc_pidfdinfo */
+
+#define PROC_PIDFDVNODEINFO 1
+#define PROC_PIDFDVNODEINFO_SIZE (sizeof(struct vnode_fdinfo))
+
+#define PROC_PIDFDVNODEPATHINFO 2
+#define PROC_PIDFDVNODEPATHINFO_SIZE (sizeof(struct vnode_fdinfowithpath))
+
+#define PROC_PIDFDSOCKETINFO 3
+#define PROC_PIDFDSOCKETINFO_SIZE (sizeof(struct socket_fdinfo))
+
+#define PROC_PIDFDPSEMINFO 4
+#define PROC_PIDFDPSEMINFO_SIZE (sizeof(struct psem_fdinfo))
+
+#define PROC_PIDFDPSHMINFO 5
+#define PROC_PIDFDPSHMINFO_SIZE (sizeof(struct pshm_fdinfo))
+
+#define PROC_PIDFDPIPEINFO 6
+#define PROC_PIDFDPIPEINFO_SIZE (sizeof(struct pipe_fdinfo))
+
+#define PROC_PIDFDKQUEUEINFO 7
+#define PROC_PIDFDKQUEUEINFO_SIZE (sizeof(struct kqueue_fdinfo))
+
+#define PROC_PIDFDATALKINFO 8
+#define PROC_PIDFDATALKINFO_SIZE (sizeof(struct appletalk_fdinfo))
+
+/* Flavors for proc_pidfileportinfo */
+
+#define PROC_PIDFILEPORTVNODEPATHINFO 2 /* out: vnode_fdinfowithpath */
+#define PROC_PIDFILEPORTVNODEPATHINFO_SIZE \
+ PROC_PIDFDVNODEPATHINFO_SIZE
+
+#define PROC_PIDFILEPORTSOCKETINFO 3 /* out: socket_fdinfo */
+#define PROC_PIDFILEPORTSOCKETINFO_SIZE PROC_PIDFDSOCKETINFO_SIZE
+
+#define PROC_PIDFILEPORTPSHMINFO 5 /* out: pshm_fdinfo */
+#define PROC_PIDFILEPORTPSHMINFO_SIZE PROC_PIDFDPSHMINFO_SIZE
+
+#define PROC_PIDFILEPORTPIPEINFO 6 /* out: pipe_fdinfo */
+#define PROC_PIDFILEPORTPIPEINFO_SIZE PROC_PIDFDPIPEINFO_SIZE
+
+/* used for proc_setcontrol */
+#define PROC_SELFSET_PCONTROL 1
+
+#define PROC_SELFSET_THREADNAME 2
+#define PROC_SELFSET_THREADNAME_SIZE (MAXTHREADNAMESIZE -1)
+
+#define PROC_SELFSET_VMRSRCOWNER 3
+
+#define PROC_SELFSET_DELAYIDLESLEEP 4
+
+/* used for proc_dirtycontrol */
+#define PROC_DIRTYCONTROL_TRACK 1
+#define PROC_DIRTYCONTROL_SET 2
+#define PROC_DIRTYCONTROL_GET 3
+#define PROC_DIRTYCONTROL_CLEAR 4
+
+/* proc_track_dirty() flags */
+#define PROC_DIRTY_TRACK 0x1
+#define PROC_DIRTY_ALLOW_IDLE_EXIT 0x2
+#define PROC_DIRTY_DEFER 0x4
+#define PROC_DIRTY_LAUNCH_IN_PROGRESS 0x8
+
+/* proc_get_dirty() flags */
+#define PROC_DIRTY_TRACKED 0x1
+#define PROC_DIRTY_ALLOWS_IDLE_EXIT 0x2
+#define PROC_DIRTY_IS_DIRTY 0x4
+#define PROC_DIRTY_LAUNCH_IS_IN_PROGRESS 0x8
+
+#ifdef PRIVATE
+
+/* Flavors for proc_pidoriginatorinfo */
+#define PROC_PIDORIGINATOR_UUID 0x1
+#define PROC_PIDORIGINATOR_UUID_SIZE (sizeof(uuid_t))
+
+#define PROC_PIDORIGINATOR_BGSTATE 0x2
+#define PROC_PIDORIGINATOR_BGSTATE_SIZE (sizeof(uint32_t))
+
+/* __proc_info() call numbers */
+#define PROC_INFO_CALL_LISTPIDS 0x1
+#define PROC_INFO_CALL_PIDINFO 0x2
+#define PROC_INFO_CALL_PIDFDINFO 0x3
+#define PROC_INFO_CALL_KERNMSGBUF 0x4
+#define PROC_INFO_CALL_SETCONTROL 0x5
+#define PROC_INFO_CALL_PIDFILEPORTINFO 0x6
+#define PROC_INFO_CALL_TERMINATE 0x7
+#define PROC_INFO_CALL_DIRTYCONTROL 0x8
+#define PROC_INFO_CALL_PIDRUSAGE 0x9
+#define PROC_INFO_CALL_PIDORIGINATORINFO 0xa
+
+#endif /* PRIVATE */
+
+#ifdef XNU_KERNEL_PRIVATE
+#ifndef pshmnode
+struct pshmnode;
+#endif
+
+#ifndef psemnode
+struct psemnode ;
+#endif
+
+#ifndef pipe
+struct pipe;
+#endif
+
+extern int fill_socketinfo(socket_t so, struct socket_info *si);
+extern int fill_pshminfo(struct pshmnode * pshm, struct pshm_info * pinfo);
+extern int fill_pseminfo(struct psemnode * psem, struct psem_info * pinfo);
+extern int fill_pipeinfo(struct pipe * cpipe, struct pipe_info * pinfo);
+extern int fill_kqueueinfo(struct kqueue * kq, struct kqueue_info * kinfo);
+extern int fill_procworkqueue(proc_t, struct proc_workqueueinfo *);
+#endif /* XNU_KERNEL_PRIVATE */
+
+__END_DECLS
+
+#endif /*_SYS_PROC_INFO_H */
Property changes on: trunk/include/apple/sys/proc_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/process_policy.h
===================================================================
--- trunk/include/apple/sys/process_policy.h (rev 0)
+++ trunk/include/apple/sys/process_policy.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,184 @@
+/*
+ * Copyright (c) 2010 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+#ifndef _SYS_PROCESS_POLICY_H
+#define _SYS_PROCESS_POLICY_H
+
+#include <sys/cdefs.h>
+#include <sys/param.h>
+#include <sys/types.h>
+#include <stdint.h>
+
+#ifndef XNU_KERNEL_PRIVATE
+#include <TargetConditionals.h>
+#endif
+
+__BEGIN_DECLS
+
+/* defns of scope */
+#define PROC_POLICY_SCOPE_PROCESS 1 /* the policy setting is for process wide effect */
+#define PROC_POLICY_SCOPE_THREAD 2 /* the policy setting is for thread inside a proc */
+
+/* defns of actions with no attributes */
+#define PROC_POLICY_ACTION_APPLY 1 /* enforce the set policy */
+#define PROC_POLICY_ACTION_RESTORE 2 /* revert the applied action back */
+#define PROC_POLICY_ACTION_DENYINHERIT 3 /* set for no inheritence of the specified policy */
+#define PROC_POLICY_ACTION_DENYSELFSET 4 /* set for the process to set its own policy */
+#define PROC_POLICY_ACTION_ENABLE 5 /* enable policy and its actions */
+#define PROC_POLICY_ACTION_DISABLE 6 /* disable policy and its actions, also clears any actions that have already happened */
+/* defns of actions with attributes */
+#define PROC_POLICY_ACTION_SET 10 /* set the policy attributes */
+#define PROC_POLICY_ACTION_GET 11 /* get the policy attributes */
+#define PROC_POLICY_ACTION_ADD 12 /* add a policy attribute */
+#define PROC_POLICY_ACTION_REMOVE 13 /* remove a policy attribute */
+#define PROC_POLICY_ACTION_HOLD 14 /* hold an importance boost assertion */
+#define PROC_POLICY_ACTION_DROP 15 /* drop an importance boost assertion */
+
+/* policies */
+#define PROC_POLICY NONE 0
+#define PROC_POLICY_BACKGROUND 1 /* darwin background policy */
+#define PROC_POLICY_HARDWARE_ACCESS 2 /* access to various hardware */
+#define PROC_POLICY_RESOURCE_STARVATION 3 /* behavior on resource starvation */
+#define PROC_POLICY_RESOURCE_USAGE 4 /* behavior on resource consumption */
+#define PROC_POLICY_RESERVED 5 /* behavior on resource consumption */
+#define PROC_POLICY_APPTYPE 6 /* behavior on resource consumption */
+#define PROC_POLICY_BOOST 7 /* importance boost/drop */
+
+/* sub policies for background policy */
+#define PROC_POLICY_BG_NONE 0 /* none */
+#define PROC_POLICY_BG_LOWCPUPRI 1 /* Low cpu priority */
+#define PROC_POLICY_BG_DISKTHROTTLE 2 /* disk accesses throttled */
+#define PROC_POLICY_BG_NETTHROTTLE 4 /* network accesses throttled */
+#define PROC_POLICY_BG_GPUDENY 8 /* no access to GPU */
+#define PROC_POLICY_BG_ALL 0x07
+#define PROC_POLICY_BG_DEFAULT PROC_POLICY_BG_ALL
+
+/* sub policies for hardware */
+#define PROC_POLICY_HWACCESS_NONE 0
+#define PROC_POLICY_HWACCESS_DISK 1 /* disk access */
+#define PROC_POLICY_HWACCESS_GPU 2 /* GPU access */
+#define PROC_POLICY_HWACCESS_NETWORK 3 /* network access */
+#define PROC_POLICY_HWACCESS_CPU 4 /* cpu access */
+
+/* attribute values for disk hardware access, bit different as it should reflect IOPOL_XXX */
+#define PROC_POLICY_DISKACC_NONE 0
+#define PROC_POLICY_DISKACC_NORMAL 1 /* normal access to the disk */
+#define PROC_POLICY_DISKACC_FULLACCESS 1 /* normal access to the disk */
+#define PROC_POLICY_DISKACC_PASSIVE 2 /* treat the I/Os as passive */
+#define PROC_POLICY_DISKACC_THROTTLE 3 /* throttle the disk IOs */
+#define PROC_POLICY_DISKACC_DEFAULT PROC_POLICY_DISKACC_FULLACCESS
+
+/* attribute values for GPU hardware access */
+#define PROC_POLICY_GPUACC_NONE 0
+#define PROC_POLICY_GPUACC_FULLACCESS 0 /* complete access to the GPU */
+#define PROC_POLICY_GPUACC_DENYACCESS 1 /* deny any access to the GPU */
+#define PROC_POLICY_GPUACC_DEFAULT PROC_POLICY_GPUACC_FULLACCESS /* default is complete access */
+
+/* atrribute values for network hardware access */
+#define PROC_POLICY_NETACC_NONE 0
+#define PROC_POLICY_NETACC_FULLACCESS 0 /* complete access to the network */
+#define PROC_POLICY_NETACC_THROTTLE 1 /* throttle access to network */
+#define PROC_POLICY_NETACC_DEFAULT PROC_POLICY_NETACC_FULLACCESS /* default is complete access */
+
+/* atrribute values for network hardware access */
+#define PROC_POLICY_CPUACC_NONE 0
+#define PROC_POLICY_CPUACC_FULLACCESS 0 /* access to all avialable cpus */
+#define PROC_POLICY_CPUACC_ONE 1 /* access to only one available cpu */
+#define PROC_POLICY_CPUACC_LLCACHE 2 /* access to only one last level cache */
+#define PROC_POLICY_CPUACC_DEFAULT PROC_POLICY_CPUACC_FULLACCESS /* default is access to all cpus */
+
+
+/* System Resource management (ie usage and starvation related) definitions */
+
+/* sub policies for resource starvation */
+#define PROC_POLICY_RS_NONE 0
+#define PROC_POLICY_RS_VIRTUALMEM 1 /* virtual memory starvation */
+
+/* sub policies for resource usage */
+#define PROC_POLICY_RUSAGE_NONE 0
+#define PROC_POLICY_RUSAGE_WIREDMEM 1 /* wired memory usages */
+#define PROC_POLICY_RUSAGE_VIRTMEM 2 /* virtual memory usage */
+#define PROC_POLICY_RUSAGE_CPU 3 /* amount of cpu usage */
+#define PROC_POLICY_RUSAGE_DISK 4 /* amount of disk usage */
+#define PROC_POLICY_RUSAGE_NETWORK 5 /* amount of network usage */
+#define PROC_POLICY_RUSAGE_POWER 6 /* amount of power/battery consumption */
+
+/* attribute values for the resource usage and low resource - MUST match corresponding task definitions */
+#define PROC_POLICY_RSRCACT_NONE 0
+#define PROC_POLICY_RSRCACT_THROTTLE 1 /* throttle on resource condition */
+#define PROC_POLICY_RSRCACT_SUSPEND 2 /* suspend on resource condition */
+#define PROC_POLICY_RSRCACT_TERMINATE 3 /* kill on resource condition */
+#define PROC_POLICY_RSRCACT_NOTIFY_KQ 4 /* send kqueue notification */
+#define PROC_POLICY_RSRCACT_NOTIFY_EXC 5 /* send exception */
+
+#define PROC_POLICY_CPUMON_DISABLE 0xFF /* Disable CPU usage monitor */
+#define PROC_POLICY_CPUMON_DEFAULTS 0xFE /* Set default CPU usage monitor params */
+
+/* sub policies for importance boost/drop */
+#define PROC_POLICY_IMP_IMPORTANT 1 /* Important-level boost */
+#define PROC_POLICY_IMP_STANDARD 2 /* Standard-level boost */
+#define PROC_POLICY_IMP_DONATION 3 /* Mark a task as an importance source */
+
+typedef struct proc_policy_attribute {
+ uint32_t ppattr_attribute; /* the policy attribute to be modified or returned */
+ uint32_t ppattr_resv; /* pad field */
+ uint64_t ppattr_value1; /* 64bit policy specific attribute */
+ uint64_t ppattr_value2; /* 64bit policy specific attribute */
+ uint64_t ppattr_value3; /* 64bit policy specific attribute */
+ uint64_t ppattr_resv1[4]; /* reserved for future use */
+} proc_policy_attribute_t;
+
+
+typedef struct proc_policy_cpuusage_attr {
+ uint32_t ppattr_cpu_attr ; /* specified action as in PROC_POLICY_RSRCACT_xx */
+ uint32_t ppattr_cpu_percentage; /* percentage of interval */
+ uint64_t ppattr_cpu_attr_interval; /* 64bit interval in nsecs */
+ uint64_t ppattr_cpu_attr_deadline; /* 64bit deadline in nsecs */
+} proc_policy_cpuusage_attr_t;
+
+
+/* sub policies for PROC_POLICY_APPTYPE */
+#define PROC_POLICY_APPTYPE_NONE 0 /* does nothing.. */
+#define PROC_POLICY_APPTYPE_MODIFY 1 /* sets the app to various lifecycle states */
+
+/* exported apptypes for PROC_POLICY_APPTYPE */
+#define PROC_POLICY_OSX_APPTYPE_TAL 1 /* TAL-launched app */
+
+#define PROC_POLICY_OSX_APPTYPE_DASHCLIENT 2 /* Dashboard client (deprecated) */
+#define PROC_POLICY_IOS_DONATEIMP 6 /* donates priority imp (deprecated) */
+#define PROC_POLICY_IOS_HOLDIMP 7 /* hold importance assertion (deprecated) */
+#define PROC_POLICY_IOS_DROPIMP 8 /* drop importance assertion (deprecated) */
+
+#ifndef KERNEL
+int process_policy(int scope, int action, int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target_threadid);
+#endif /* KERNEL */
+
+
+__END_DECLS
+
+#endif /*_SYS_PROCESS_POLICY_H */
Property changes on: trunk/include/apple/sys/process_policy.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/resource.h
===================================================================
--- trunk/include/apple/sys/resource.h (rev 0)
+++ trunk/include/apple/sys/resource.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,523 @@
+/*
+ * Copyright (c) 2000-2008 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/* Copyright (c) 1995 NeXT Computer, Inc. All Rights Reserved */
+/*
+ * Copyright (c) 1982, 1986, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. All advertising materials mentioning features or use of this software
+ * must display the following acknowledgement:
+ * This product includes software developed by the University of
+ * California, Berkeley and its contributors.
+ * 4. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * @(#)resource.h 8.2 (Berkeley) 1/4/94
+ */
+
+#ifndef _SYS_RESOURCE_H_
+#define _SYS_RESOURCE_H_
+#include <Availability.h>
+
+
+#include <sys/appleapiopts.h>
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+
+#undef _SYS_RESOURCE_H_
+#include_next <sys/resource.h>
+
+#if 0
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#include <stdint.h>
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+
+#ifndef KERNEL
+#include <Availability.h>
+#endif
+
+/* [XSI] The timeval structure shall be defined as described in
+ * <sys/time.h>
+ */
+#include <sys/_types/_timeval.h>
+#ifdef KERNEL
+#include <sys/_types/_user32_timeval.h>
+#include <sys/_types/_user64_timeval.h>
+#endif
+
+/* The id_t type shall be defined as described in <sys/types.h> */
+#include <sys/_types/_id_t.h>
+
+
+/*
+ * Resource limit type (low 63 bits, excluding the sign bit)
+ */
+typedef __uint64_t rlim_t;
+
+
+/*****
+ * PRIORITY
+ */
+
+/*
+ * Possible values of the first parameter to getpriority()/setpriority(),
+ * used to indicate the type of the second parameter.
+ */
+#define PRIO_PROCESS 0 /* Second argument is a PID */
+#define PRIO_PGRP 1 /* Second argument is a GID */
+#define PRIO_USER 2 /* Second argument is a UID */
+
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#define PRIO_DARWIN_THREAD 3 /* Second argument is always 0 (current thread) */
+#define PRIO_DARWIN_PROCESS 4 /* Second argument is a PID */
+
+#ifdef PRIVATE
+
+#define PRIO_DARWIN_GPU 5 /* Second argument is a PID */
+
+#define PRIO_DARWIN_GPU_ALLOW 0x1
+#define PRIO_DARWIN_GPU_DENY 0x2
+
+#define PRIO_DARWIN_ROLE 6 /* Second argument is a PID */
+
+#define PRIO_DARWIN_ROLE_DEFAULT 0x0 /* Default state */
+#define PRIO_DARWIN_ROLE_UI_FOCAL 0x1 /* On screen, focal UI */
+#define PRIO_DARWIN_ROLE_UI 0x2 /* On screen, non-focal UI */
+#define PRIO_DARWIN_ROLE_NON_UI 0x3 /* Off screen, non-focal UI */
+
+#endif /* PRIVATE */
+
+/*
+ * Range limitations for the value of the third parameter to setpriority().
+ */
+#define PRIO_MIN -20
+#define PRIO_MAX 20
+
+/*
+ * use PRIO_DARWIN_BG to set the current thread into "background" state
+ * which lowers CPU, disk IO, and networking priorites until thread terminates
+ * or "background" state is revoked
+ */
+#define PRIO_DARWIN_BG 0x1000
+
+/*
+ * use PRIO_DARWIN_NONUI to restrict a process's ability to make calls to
+ * the GPU. (deprecated)
+ */
+#define PRIO_DARWIN_NONUI 0x1001
+
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+
+
+
+/*****
+ * RESOURCE USAGE
+ */
+
+/*
+ * Possible values of the first parameter to getrusage(), used to indicate
+ * the scope of the information to be returned.
+ */
+#define RUSAGE_SELF 0 /* Current process information */
+#define RUSAGE_CHILDREN -1 /* Current process' children */
+
+/*
+ * A structure representing an accounting of resource utilization. The
+ * address of an instance of this structure is the second parameter to
+ * getrusage().
+ *
+ * Note: All values other than ru_utime and ru_stime are implementaiton
+ * defined and subject to change in a future release. Their use
+ * is discouraged for standards compliant programs.
+ */
+struct rusage {
+ struct timeval ru_utime; /* user time used (PL) */
+ struct timeval ru_stime; /* system time used (PL) */
+#if __DARWIN_C_LEVEL < __DARWIN_C_FULL
+ long ru_opaque[14]; /* implementation defined */
+#else
+ /*
+ * Informational aliases for source compatibility with programs
+ * that need more information than that provided by standards,
+ * and which do not mind being OS-dependent.
+ */
+ long ru_maxrss; /* max resident set size (PL) */
+#define ru_first ru_ixrss /* internal: ruadd() range start */
+ long ru_ixrss; /* integral shared memory size (NU) */
+ long ru_idrss; /* integral unshared data (NU) */
+ long ru_isrss; /* integral unshared stack (NU) */
+ long ru_minflt; /* page reclaims (NU) */
+ long ru_majflt; /* page faults (NU) */
+ long ru_nswap; /* swaps (NU) */
+ long ru_inblock; /* block input operations (atomic) */
+ long ru_oublock; /* block output operations (atomic) */
+ long ru_msgsnd; /* messages sent (atomic) */
+ long ru_msgrcv; /* messages received (atomic) */
+ long ru_nsignals; /* signals received (atomic) */
+ long ru_nvcsw; /* voluntary context switches (atomic) */
+ long ru_nivcsw; /* involuntary " */
+#define ru_last ru_nivcsw /* internal: ruadd() range end */
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+};
+#endif
+
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+/*
+ * Flavors for proc_pid_rusage().
+ */
+#define RUSAGE_INFO_V0 0
+#define RUSAGE_INFO_V1 1
+#define RUSAGE_INFO_V2 2
+#define RUSAGE_INFO_V3 3
+#define RUSAGE_INFO_CURRENT RUSAGE_INFO_V3
+
+
+typedef void *rusage_info_t;
+
+struct rusage_info_v0 {
+ uint8_t ri_uuid[16];
+ uint64_t ri_user_time;
+ uint64_t ri_system_time;
+ uint64_t ri_pkg_idle_wkups;
+ uint64_t ri_interrupt_wkups;
+ uint64_t ri_pageins;
+ uint64_t ri_wired_size;
+ uint64_t ri_resident_size;
+ uint64_t ri_phys_footprint;
+ uint64_t ri_proc_start_abstime;
+ uint64_t ri_proc_exit_abstime;
+};
+
+struct rusage_info_v1 {
+ uint8_t ri_uuid[16];
+ uint64_t ri_user_time;
+ uint64_t ri_system_time;
+ uint64_t ri_pkg_idle_wkups;
+ uint64_t ri_interrupt_wkups;
+ uint64_t ri_pageins;
+ uint64_t ri_wired_size;
+ uint64_t ri_resident_size;
+ uint64_t ri_phys_footprint;
+ uint64_t ri_proc_start_abstime;
+ uint64_t ri_proc_exit_abstime;
+ uint64_t ri_child_user_time;
+ uint64_t ri_child_system_time;
+ uint64_t ri_child_pkg_idle_wkups;
+ uint64_t ri_child_interrupt_wkups;
+ uint64_t ri_child_pageins;
+ uint64_t ri_child_elapsed_abstime;
+};
+
+struct rusage_info_v2 {
+ uint8_t ri_uuid[16];
+ uint64_t ri_user_time;
+ uint64_t ri_system_time;
+ uint64_t ri_pkg_idle_wkups;
+ uint64_t ri_interrupt_wkups;
+ uint64_t ri_pageins;
+ uint64_t ri_wired_size;
+ uint64_t ri_resident_size;
+ uint64_t ri_phys_footprint;
+ uint64_t ri_proc_start_abstime;
+ uint64_t ri_proc_exit_abstime;
+ uint64_t ri_child_user_time;
+ uint64_t ri_child_system_time;
+ uint64_t ri_child_pkg_idle_wkups;
+ uint64_t ri_child_interrupt_wkups;
+ uint64_t ri_child_pageins;
+ uint64_t ri_child_elapsed_abstime;
+ uint64_t ri_diskio_bytesread;
+ uint64_t ri_diskio_byteswritten;
+};
+
+struct rusage_info_v3 {
+ uint8_t ri_uuid[16];
+ uint64_t ri_user_time;
+ uint64_t ri_system_time;
+ uint64_t ri_pkg_idle_wkups;
+ uint64_t ri_interrupt_wkups;
+ uint64_t ri_pageins;
+ uint64_t ri_wired_size;
+ uint64_t ri_resident_size;
+ uint64_t ri_phys_footprint;
+ uint64_t ri_proc_start_abstime;
+ uint64_t ri_proc_exit_abstime;
+ uint64_t ri_child_user_time;
+ uint64_t ri_child_system_time;
+ uint64_t ri_child_pkg_idle_wkups;
+ uint64_t ri_child_interrupt_wkups;
+ uint64_t ri_child_pageins;
+ uint64_t ri_child_elapsed_abstime;
+ uint64_t ri_diskio_bytesread;
+ uint64_t ri_diskio_byteswritten;
+ uint64_t ri_cpu_time_qos_default;
+ uint64_t ri_cpu_time_qos_maintenance;
+ uint64_t ri_cpu_time_qos_background;
+ uint64_t ri_cpu_time_qos_utility;
+ uint64_t ri_cpu_time_qos_legacy;
+ uint64_t ri_cpu_time_qos_user_initiated;
+ uint64_t ri_cpu_time_qos_user_interactive;
+ uint64_t ri_billed_system_time;
+ uint64_t ri_serviced_system_time;
+};
+
+typedef struct rusage_info_v3 rusage_info_current;
+
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+
+#ifdef KERNEL
+
+struct rusage_superset {
+ struct rusage ru;
+ rusage_info_current ri;
+};
+
+struct rusage_info_child {
+ uint64_t ri_child_user_time;
+ uint64_t ri_child_system_time;
+ uint64_t ri_child_pkg_idle_wkups;
+ uint64_t ri_child_interrupt_wkups;
+ uint64_t ri_child_pageins;
+ uint64_t ri_child_elapsed_abstime;
+};
+
+struct user64_rusage {
+ struct user64_timeval ru_utime; /* user time used */
+ struct user64_timeval ru_stime; /* system time used */
+ user64_long_t ru_maxrss; /* max resident set size */
+ user64_long_t ru_ixrss; /* integral shared memory size */
+ user64_long_t ru_idrss; /* integral unshared data " */
+ user64_long_t ru_isrss; /* integral unshared stack " */
+ user64_long_t ru_minflt; /* page reclaims */
+ user64_long_t ru_majflt; /* page faults */
+ user64_long_t ru_nswap; /* swaps */
+ user64_long_t ru_inblock; /* block input operations */
+ user64_long_t ru_oublock; /* block output operations */
+ user64_long_t ru_msgsnd; /* messages sent */
+ user64_long_t ru_msgrcv; /* messages received */
+ user64_long_t ru_nsignals; /* signals received */
+ user64_long_t ru_nvcsw; /* voluntary context switches */
+ user64_long_t ru_nivcsw; /* involuntary " */
+};
+
+struct user32_rusage {
+ struct user32_timeval ru_utime; /* user time used */
+ struct user32_timeval ru_stime; /* system time used */
+ user32_long_t ru_maxrss; /* max resident set size */
+ user32_long_t ru_ixrss; /* integral shared memory size */
+ user32_long_t ru_idrss; /* integral unshared data " */
+ user32_long_t ru_isrss; /* integral unshared stack " */
+ user32_long_t ru_minflt; /* page reclaims */
+ user32_long_t ru_majflt; /* page faults */
+ user32_long_t ru_nswap; /* swaps */
+ user32_long_t ru_inblock; /* block input operations */
+ user32_long_t ru_oublock; /* block output operations */
+ user32_long_t ru_msgsnd; /* messages sent */
+ user32_long_t ru_msgrcv; /* messages received */
+ user32_long_t ru_nsignals; /* signals received */
+ user32_long_t ru_nvcsw; /* voluntary context switches */
+ user32_long_t ru_nivcsw; /* involuntary " */
+};
+
+#endif /* KERNEL */
+
+
+/*****
+ * RESOURCE LIMITS
+ */
+
+/*
+ * Symbolic constants for resource limits; since all limits are representable
+ * as a type rlim_t, we are permitted to define RLIM_SAVED_* in terms of
+ * RLIM_INFINITY.
+ */
+#if 0
+#define RLIM_INFINITY (((__uint64_t)1 << 63) - 1) /* no limit */
+#endif
+#define RLIM_SAVED_MAX RLIM_INFINITY /* Unrepresentable hard limit */
+#define RLIM_SAVED_CUR RLIM_INFINITY /* Unrepresentable soft limit */
+
+/*
+ * Possible values of the first parameter to getrlimit()/setrlimit(), to
+ * indicate for which resource the operation is being performed.
+ */
+#define RLIMIT_CPU 0 /* cpu time per process */
+#define RLIMIT_FSIZE 1 /* file size */
+#define RLIMIT_DATA 2 /* data segment size */
+#define RLIMIT_STACK 3 /* stack size */
+#define RLIMIT_CORE 4 /* core file size */
+#if 0
+#define RLIMIT_AS 5 /* address space (resident set size) */
+#endif
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#if 0
+#define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */
+#endif
+#define RLIMIT_MEMLOCK 6 /* locked-in-memory address space */
+#define RLIMIT_NPROC 7 /* number of processes */
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+#define RLIMIT_NOFILE 8 /* number of open files */
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#if 0
+#define RLIM_NLIMITS 9 /* total number of resource limits */
+#endif
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+#define _RLIMIT_POSIX_FLAG 0x1000 /* Set bit for strict POSIX */
+
+/*
+ * A structure representing a resource limit. The address of an instance
+ * of this structure is the second parameter to getrlimit()/setrlimit().
+ */
+#if 0
+struct rlimit {
+ rlim_t rlim_cur; /* current (soft) limit */
+ rlim_t rlim_max; /* maximum value for rlim_cur */
+};
+#endif
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+/*
+ * proc_rlimit_control()
+ *
+ * Resource limit flavors
+ */
+#define RLIMIT_WAKEUPS_MONITOR 0x1 /* Configure the wakeups monitor. */
+#define RLIMIT_CPU_USAGE_MONITOR 0x2 /* Configure the CPU usage monitor. */
+#define RLIMIT_THREAD_CPULIMITS 0x3 /* Configure a blocking, per-thread, CPU limits. */
+
+/*
+ * Flags for wakeups monitor control.
+ */
+#define WAKEMON_ENABLE 0x01
+#define WAKEMON_DISABLE 0x02
+#define WAKEMON_GET_PARAMS 0x04
+#define WAKEMON_SET_DEFAULTS 0x08
+#define WAKEMON_MAKE_FATAL 0x10 /* Configure the task so that violations are fatal. */
+/*
+ * Flags for CPU usage monitor control.
+ */
+#define CPUMON_MAKE_FATAL 0x1000
+
+struct proc_rlimit_control_wakeupmon {
+ uint32_t wm_flags;
+ int32_t wm_rate;
+};
+
+/* I/O type */
+#define IOPOL_TYPE_DISK 0
+#if PRIVATE
+#define IOPOL_TYPE_VFS_HFS_CASE_SENSITIVITY 1
+#endif
+
+/* scope */
+#define IOPOL_SCOPE_PROCESS 0
+#define IOPOL_SCOPE_THREAD 1
+#define IOPOL_SCOPE_DARWIN_BG 2
+
+/* I/O Priority */
+#define IOPOL_DEFAULT 0
+#define IOPOL_IMPORTANT 1
+#define IOPOL_PASSIVE 2
+#define IOPOL_THROTTLE 3
+#define IOPOL_UTILITY 4
+#define IOPOL_STANDARD 5
+
+/* compatibility with older names */
+#define IOPOL_APPLICATION IOPOL_STANDARD
+#define IOPOL_NORMAL IOPOL_IMPORTANT
+
+#if PRIVATE
+#define IOPOL_VFS_HFS_CASE_SENSITIVITY_DEFAULT 0
+#define IOPOL_VFS_HFS_CASE_SENSITIVITY_FORCE_CASE_SENSITIVE 1
+#endif
+
+#ifdef PRIVATE
+/*
+ * Structures for use in communicating via iopolicysys() between Libc and the
+ * kernel. Not to be used by user programs directly.
+ */
+
+/*
+ * the command to iopolicysys()
+ */
+#define IOPOL_CMD_GET 0x00000001 /* Get I/O policy */
+#define IOPOL_CMD_SET 0x00000002 /* Set I/O policy */
+
+/*
+ * Second parameter to iopolicysys()
+ */
+struct _iopol_param_t {
+ int iop_scope; /* current process or a thread */
+ int iop_iotype;
+ int iop_policy;
+};
+
+#endif /* PRIVATE */
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+
+#ifndef KERNEL
+
+__BEGIN_DECLS
+#if 0
+int getpriority(int, id_t);
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+int getrlimit(int, struct rlimit *) __DARWIN_ALIAS(getrlimit);
+int getrusage(int, struct rusage *);
+int setpriority(int, id_t, int);
+#if __DARWIN_C_LEVEL >= __DARWIN_C_FULL
+#endif /* __DARWIN_C_LEVEL >= __DARWIN_C_FULL */
+int setrlimit(int, const struct rlimit *) __DARWIN_ALIAS(setrlimit);
+#endif
+
+int getiopolicy_np(int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+int setiopolicy_np(int, int, int) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0);
+__END_DECLS
+
+#endif /* !KERNEL */
+#endif /* !_SYS_RESOURCE_H_ */
Property changes on: trunk/include/apple/sys/resource.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/spawn.h
===================================================================
--- trunk/include/apple/sys/spawn.h (rev 0)
+++ trunk/include/apple/sys/spawn.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,78 @@
+/*
+ * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+/*
+ * [SPN] Support for _POSIX_SPAWN
+ *
+ * This header contains information that is shared between the user space
+ * and kernel versions of the posix_spawn() code. Shared elements are all
+ * manifest constants, at the current time.
+ */
+
+#ifndef _SYS_SPAWN_H_
+#define _SYS_SPAWN_H_
+
+/*
+ * Possible bit values which may be OR'ed together and provided as the second
+ * parameter to posix_spawnattr_setflags() or implicit returned in the value of
+ * the second parameter to posix_spawnattr_getflags().
+ */
+#ifndef __FreeBSD__
+#define POSIX_SPAWN_RESETIDS 0x0001 /* [SPN] R[UG]ID not E[UG]ID */
+#define POSIX_SPAWN_SETPGROUP 0x0002 /* [SPN] set non-parent PGID */
+#define POSIX_SPAWN_SETSIGDEF 0x0004 /* [SPN] reset sigset default */
+#define POSIX_SPAWN_SETSIGMASK 0x0008 /* [SPN] set signal mask */
+#endif
+
+#if 0 /* _POSIX_PRIORITY_SCHEDULING [PS] : not supported */
+#define POSIX_SPAWN_SETSCHEDPARAM 0x0010
+#define POSIX_SPAWN_SETSCHEDULER 0x0020
+#endif /* 0 */
+
+#if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
+/*
+ * Darwin-specific flags
+ */
+#define POSIX_SPAWN_SETEXEC 0x0040
+#define POSIX_SPAWN_START_SUSPENDED 0x0080
+#define POSIX_SPAWN_CLOEXEC_DEFAULT 0x4000
+
+/*
+ * Possible values to be set for the process control actions on resource starvation.
+ * POSIX_SPAWN_PCONTROL_THROTTLE indicates that the process is to be throttled on starvation.
+ * POSIX_SPAWN_PCONTROL_SUSPEND indicates that the process is to be suspended on starvation.
+ * POSIX_SPAWN_PCONTROL_KILL indicates that the process is to be terminated on starvation.
+ */
+#define POSIX_SPAWN_PCONTROL_NONE 0x0000
+#define POSIX_SPAWN_PCONTROL_THROTTLE 0x0001
+#define POSIX_SPAWN_PCONTROL_SUSPEND 0x0002
+#define POSIX_SPAWN_PCONTROL_KILL 0x0003
+
+#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
+
+#endif /* _SYS_SPAWN_H_ */
Property changes on: trunk/include/apple/sys/spawn.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/spawn_internal.h
===================================================================
--- trunk/include/apple/sys/spawn_internal.h (rev 0)
+++ trunk/include/apple/sys/spawn_internal.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,355 @@
+/*
+ * Copyright (c) 2006 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+
+/*
+ * [SPN] Support for _POSIX_SPAWN
+ *
+ * This file contains internal data structures which are externally represented
+ * as opaque void pointers to prevent introspection. This permits us to
+ * change the underlying implementation of the code to maintain it or to
+ * support new features, as needed, without the consumer needing to recompile
+ * their code because of structure size changes or data reorganization.
+ */
+
+#ifndef _SYS_SPAWN_INTERNAL_H_
+#define _SYS_SPAWN_INTERNAL_H_
+
+typedef unsigned long __darwin_size_t; /* sizeof() */
+#include <sys/_types.h> /* __offsetof(), __darwin_size_t */
+#include <sys/param.h>
+#include <sys/syslimits.h> /* PATH_MAX */
+#include <sys/spawn.h>
+#include <mach/machine.h>
+#include <mach/port.h>
+#include <mach/exception_types.h>
+
+
+/*
+ * Allowable posix_spawn() port action types
+ */
+typedef enum {
+ PSPA_SPECIAL = 0,
+ PSPA_EXCEPTION = 1,
+ PSPA_AU_SESSION = 2,
+ PSPA_IMP_WATCHPORTS = 3,
+} pspa_t;
+
+/*
+ * Internal representation of one port to be set on posix_spawn().
+ * Currently this is limited to setting special and exception ports,
+ * but could be extended to other inheritable port types.
+ */
+typedef struct _ps_port_action {
+ pspa_t port_type;
+ exception_mask_t mask;
+ mach_port_name_t new_port;
+ exception_behavior_t behavior;
+ thread_state_flavor_t flavor;
+ int which;
+} _ps_port_action_t;
+
+/*
+ * A collection of port actions to take on the newly spawned process.
+ */
+typedef struct _posix_spawn_port_actions {
+ int pspa_alloc;
+ int pspa_count;
+ _ps_port_action_t pspa_actions[];
+} *_posix_spawn_port_actions_t;
+
+/*
+ * Returns size in bytes of a _posix_spawn_port_actions holding x elements.
+ */
+#define PS_PORT_ACTIONS_SIZE(x) \
+ __offsetof(struct _posix_spawn_port_actions, pspa_actions[(x)])
+
+#define NBINPREFS 4
+
+/*
+ * Mapping of opaque data pointer to a MAC policy (specified by name).
+ */
+typedef struct _ps_mac_policy_extension {
+ char policyname[128];
+ union {
+ uint64_t data;
+ void *datap; /* pointer in kernel memory */
+ };
+ uint64_t datalen;
+} _ps_mac_policy_extension_t;
+
+/*
+ * A collection of extra data passed to MAC policies for the newly spawned process.
+ */
+typedef struct _posix_spawn_mac_policy_extensions {
+ int psmx_alloc;
+ int psmx_count;
+ _ps_mac_policy_extension_t psmx_extensions[];
+} *_posix_spawn_mac_policy_extensions_t;
+
+/*
+ * Returns size in bytes of a _posix_spawn_mac_policy_extensions holding x elements.
+ */
+#define PS_MAC_EXTENSIONS_SIZE(x) \
+ __offsetof(struct _posix_spawn_mac_policy_extensions, psmx_extensions[(x)])
+
+#define PS_MAC_EXTENSIONS_INIT_COUNT 2
+
+
+/*
+ * A posix_spawnattr structure contains all of the attribute elements that
+ * can be set, as well as any metadata whose validity is signalled by the
+ * presence of a bit in the flags field. All fields are initialized to the
+ * appropriate default values by posix_spawnattr_init().
+ */
+typedef struct _posix_spawnattr {
+ short psa_flags; /* spawn attribute flags */
+ short flags_padding; /* get the flags to be int aligned */
+ sigset_t psa_sigdefault; /* signal set to default */
+ sigset_t psa_sigmask; /* signal set to mask */
+ pid_t psa_pgroup; /* pgroup to spawn into */
+ cpu_type_t psa_binprefs[NBINPREFS]; /* cpu affinity prefs*/
+ int psa_pcontrol; /* process control bits on resource starvation */
+ int psa_apptype; /* app type and process spec behav */
+ uint64_t psa_cpumonitor_percent; /* CPU usage monitor percentage */
+ uint64_t psa_cpumonitor_interval; /* CPU usage monitor interval, in seconds */
+ uint64_t psa_coalitionid; /* coalition to spawn into */
+
+ short psa_jetsam_flags; /* jetsam flags */
+ short short_padding; /* Padding for alignment issues */
+ int psa_priority; /* jetsam relative importance */
+ int psa_high_water_mark; /* jetsam resident page count limit */
+ int int_padding; /* Padding for alignment issues */
+
+ uint64_t psa_qos_clamp; /* QoS Clamp to set on the new process */
+
+ /*
+ * NOTE: Extensions array pointers must stay at the end so that
+ * everything above this point stays the same size on different bitnesses
+ * see <rdar://problem/12858307>
+ */
+ _posix_spawn_port_actions_t psa_ports; /* special/exception ports */
+ _posix_spawn_mac_policy_extensions_t psa_mac_extensions; /* MAC policy-specific extensions. */
+} *_posix_spawnattr_t;
+
+/*
+ * Jetsam flags
+ */
+#define POSIX_SPAWN_JETSAM_SET 0x8000
+
+#define POSIX_SPAWN_JETSAM_USE_EFFECTIVE_PRIORITY 0x1
+#define POSIX_SPAWN_JETSAM_HIWATER_BACKGROUND 0x2
+#define POSIX_SPAWN_JETSAM_MEMLIMIT_FATAL 0x4
+
+/*
+ * Deprecated posix_spawn psa_flags values
+ *
+ * POSIX_SPAWN_OSX_TALAPP_START 0x0400
+ * POSIX_SPAWN_IOS_RESV1_APP_START 0x0400
+ * POSIX_SPAWN_IOS_APPLE_DAEMON_START 0x0800
+ * POSIX_SPAWN_IOS_APP_START 0x1000
+ * POSIX_SPAWN_OSX_WIDGET_START 0x0800
+ * POSIX_SPAWN_OSX_DBCLIENT_START 0x0800
+ * POSIX_SPAWN_OSX_RESVAPP_START 0x1000
+ */
+
+/*
+ * Deprecated posix_spawn psa_apptype values
+ *
+ * POSIX_SPAWN_PROCESS_TYPE_APPLEDAEMON 0x00000001
+ * POSIX_SPAWN_PROCESS_TYPE_UIAPP 0x00000002
+ * POSIX_SPAWN_PROCESS_TYPE_ADAPTIVE 0x00000004
+ * POSIX_SPAWN_PROCESS_TYPE_TAL 0x00000001
+ * POSIX_SPAWN_PROCESS_TYPE_WIDGET 0x00000002
+ * POSIX_SPAWN_PROCESS_TYPE_DELAYIDLESLEEP 0x10000000
+ *
+ * POSIX_SPAWN_PROCESS_FLAG_IMPORTANCE_DONOR 0x00000010
+ * POSIX_SPAWN_PROCESS_FLAG_ADAPTIVE 0x00000020
+ * POSIX_SPAWN_PROCESS_FLAG_START_BACKGROUND 0x00000040
+ * POSIX_SPAWN_PROCESS_FLAG_START_LIGHT_THROTTLE 0x00000080
+ */
+
+/*
+ * posix_spawn psa_apptype process type settings.
+ * when POSIX_SPAWN_PROC_TYPE is set, old psa_apptype bits are ignored
+ */
+
+#define POSIX_SPAWN_PROCESS_TYPE_NORMAL 0x00000000
+#define POSIX_SPAWN_PROCESS_TYPE_DEFAULT POSIX_SPAWN_PROCESS_TYPE_NORMAL
+
+#define POSIX_SPAWN_PROC_TYPE_MASK 0x00000F00
+
+#define POSIX_SPAWN_PROC_TYPE_APP_DEFAULT 0x00000100
+#define POSIX_SPAWN_PROC_TYPE_APP_TAL 0x00000200
+
+#define POSIX_SPAWN_PROC_TYPE_DAEMON_STANDARD 0x00000300
+#define POSIX_SPAWN_PROC_TYPE_DAEMON_INTERACTIVE 0x00000400
+#define POSIX_SPAWN_PROC_TYPE_DAEMON_BACKGROUND 0x00000500
+#define POSIX_SPAWN_PROC_TYPE_DAEMON_ADAPTIVE 0x00000600
+
+#define POSIX_SPAWN_PROC_CLAMP_NONE 0x00000000
+#define POSIX_SPAWN_PROC_CLAMP_UTILITY 0x00000001
+#define POSIX_SPAWN_PROC_CLAMP_BACKGROUND 0x00000002
+#define POSIX_SPAWN_PROC_CLAMP_MAINTENANCE 0x00000003
+#define POSIX_SPAWN_PROC_CLAMP_LAST 0x00000004
+
+/*
+ * Allowable posix_spawn() file actions
+ */
+typedef enum {
+ PSFA_OPEN = 0,
+ PSFA_CLOSE = 1,
+ PSFA_DUP2 = 2,
+ PSFA_INHERIT = 3
+} psfa_t;
+
+
+/*
+ * A posix_spawn() file action record for a single action
+ *
+ * Notes: We carry around the full open arguments for both the open
+ * and the close to permit the use of a single array of action
+ * elements to be associated with a file actions object.
+ *
+ * A possible future optimization would be to break this into
+ * a variable sized vector list to save space (i.e. a separate
+ * string area, allocation of least amount of path buffer per
+ * open action, etc.).
+ *
+ * XXX: Currently overloading psfao_oflag for PSFA_DUP2
+ */
+typedef struct _psfa_action {
+ psfa_t psfaa_type; /* file action type */
+ int psfaa_filedes; /* fd to operate on */
+ struct _psfaa_open {
+ int psfao_oflag; /* open flags to use */
+ mode_t psfao_mode; /* mode for open */
+ char psfao_path[PATH_MAX]; /* path to open */
+ } psfaa_openargs;
+} _psfa_action_t;
+
+
+/*
+ * Internal representation of posix_spawn() file actions structure
+ *
+ * Notes: This is implemented as a structure followed by an array of
+ * file action records. The psfa_act_alloc value is the number
+ * of elements allocated in this array, and the psfa_act_count is
+ * the number of elements currently in use (to permit some form
+ * of preallocation, e.g. a power of 2 growth for reallocation,
+ * etc.).
+ *
+ * A possible future optimization would keep a size value and
+ * a structure base reference pointer to permit copyin to the
+ * kernel directly as a single blob, without damaging relative
+ * internal pointer math. It's probably better that this be a
+ * long long rather than a true pointer, to make it invariant
+ * for 32 vs. 64 bt programming SPIs.
+ */
+typedef struct _posix_spawn_file_actions {
+ int psfa_act_alloc; /* available actions space */
+ int psfa_act_count; /* count of defined actions */
+ _psfa_action_t psfa_act_acts[]; /* actions array (uses c99) */
+} *_posix_spawn_file_actions_t;
+
+/*
+ * Calculate the size of a structure, given the number of elements that it is
+ * capable of containing.
+ */
+#define PSF_ACTIONS_SIZE(x) \
+ __offsetof(struct _posix_spawn_file_actions, psfa_act_acts[(x)])
+
+/*
+ * Initial count of actions in a struct _posix_spawn_file_actions after it is
+ * first allocated; this should be non-zero, since we expect that one would not
+ * have been allocated unless there was an intent to use it.
+ */
+#define PSF_ACTIONS_INIT_COUNT 2
+
+/*
+ * Structure defining the true third argument to the posix_spawn() system call
+ * entry point; we wrap it and pass a descriptor so that we can know the
+ * copyin size ahead of time, and deal with copying in variant lists of things
+ * as single monolithic units, instead of many individual elements. This is a
+ * performance optimization.
+ */
+struct _posix_spawn_args_desc {
+ __darwin_size_t attr_size; /* size of attributes block */
+ _posix_spawnattr_t attrp; /* pointer to block */
+ __darwin_size_t file_actions_size; /* size of file actions block */
+ _posix_spawn_file_actions_t
+ file_actions; /* pointer to block */
+ __darwin_size_t port_actions_size; /* size of port actions block */
+ _posix_spawn_port_actions_t
+ port_actions; /* pointer to port block */
+ __darwin_size_t mac_extensions_size;
+ _posix_spawn_mac_policy_extensions_t
+ mac_extensions; /* pointer to policy-specific
+ * attributes */
+
+};
+
+#ifdef KERNEL
+#include <sys/appleapiopts.h>
+#ifdef __APPLE_API_PRIVATE
+
+#if __DARWIN_ALIGN_NATURAL
+#pragma options align=natural
+#endif
+
+struct user32__posix_spawn_args_desc {
+ uint32_t attr_size; /* size of attributes block */
+ uint32_t attrp; /* pointer to block */
+ uint32_t file_actions_size; /* size of file actions block */
+ uint32_t file_actions; /* pointer to block */
+ uint32_t port_actions_size; /* size of port actions block */
+ uint32_t port_actions; /* pointer to block */
+ uint32_t mac_extensions_size;
+ uint32_t mac_extensions;
+};
+
+struct user__posix_spawn_args_desc {
+ user_size_t attr_size; /* size of attributes block */
+ user_addr_t attrp; /* pointer to block */
+ user_size_t file_actions_size; /* size of file actions block */
+ user_addr_t file_actions; /* pointer to block */
+ user_size_t port_actions_size; /* size of port actions block */
+ user_addr_t port_actions; /* pointer to block */
+ user_size_t mac_extensions_size; /* size of MAC-specific attrs. */
+ user_addr_t mac_extensions; /* pointer to block */
+};
+
+
+#if __DARWIN_ALIGN_NATURAL
+#pragma options align=reset
+#endif
+
+#endif /* __APPLE_API_PRIVATE */
+#endif /* KERNEL */
+
+#endif /* _SYS_SPAWN_INTERNAL_H_ */
Property changes on: trunk/include/apple/sys/spawn_internal.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/sys/sys_domain.h
===================================================================
--- trunk/include/apple/sys/sys_domain.h (rev 0)
+++ trunk/include/apple/sys/sys_domain.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2000-2005, 2012, 2014 Apple Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+
+
+#ifndef _SYSTEM_DOMAIN_H_
+#define _SYSTEM_DOMAIN_H_
+
+#include <sys/appleapiopts.h>
+#include <sys/cdefs.h>
+#include <sys/types.h>
+
+
+/* Kernel Events Protocol */
+#define SYSPROTO_EVENT 1 /* kernel events protocol */
+
+/* Kernel Control Protocol */
+#define SYSPROTO_CONTROL 2 /* kernel control protocol */
+#define AF_SYS_CONTROL 2 /* corresponding sub address type */
+
+/* System family socket address */
+struct sockaddr_sys {
+ u_char ss_len; /* sizeof(struct sockaddr_sys) */
+ u_char ss_family; /* AF_SYSTEM */
+ u_int16_t ss_sysaddr; /* protocol address in AF_SYSTEM */
+ u_int32_t ss_reserved[7]; /* reserved to the protocol use */
+};
+
+
+
+#endif /* _SYSTEM_DOMAIN_H_ */
+
+
Property changes on: trunk/include/apple/sys/sys_domain.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/uuid/Makefile
===================================================================
--- trunk/include/apple/uuid/Makefile (rev 0)
+++ trunk/include/apple/uuid/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,9 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+NO_OBJ=
+INCS= uuid.h
+INCSDIR=${INCLUDEDIR}/apple/uuid
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/apple/uuid/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/apple/uuid/uuid.h
===================================================================
--- trunk/include/apple/uuid/uuid.h (rev 0)
+++ trunk/include/apple/uuid/uuid.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,77 @@
+/*
+ * Public include file for the UUID library
+ *
+ * Copyright (C) 1996, 1997, 1998 Theodore Ts'o.
+ *
+ * %Begin-Header%
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, and the entire permission notice in its entirety,
+ * including the disclaimer of warranties.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. The name of the author may not be used to endorse or promote
+ * products derived from this software without specific prior
+ * written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ALL OF
+ * WHICH ARE HEREBY DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
+ * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+ * USE OF THIS SOFTWARE, EVEN IF NOT ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ * %End-Header%
+ */
+
+#ifndef _UUID_UUID_H
+#define _UUID_UUID_H
+
+#include <sys/_types.h>
+#include <sys/_types/_uuid_t.h>
+
+#ifndef _UUID_STRING_T
+#define _UUID_STRING_T
+typedef __darwin_uuid_string_t uuid_string_t;
+#endif /* _UUID_STRING_T */
+
+#define UUID_DEFINE(name,u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15) \
+ static const uuid_t name __attribute__ ((unused)) = {u0,u1,u2,u3,u4,u5,u6,u7,u8,u9,u10,u11,u12,u13,u14,u15}
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void uuid_clear(uuid_t uu);
+
+#if defined(__DARWIN_UUID_COMPARE)
+int uuid_compare(const uuid_t uu1, const uuid_t uu2);
+#endif
+
+void uuid_copy(uuid_t dst, const uuid_t src);
+
+void uuid_generate(uuid_t out);
+void uuid_generate_random(uuid_t out);
+void uuid_generate_time(uuid_t out);
+
+int uuid_is_null(const uuid_t uu);
+
+int uuid_parse(const uuid_string_t in, uuid_t uu);
+
+void uuid_unparse(const uuid_t uu, uuid_string_t out);
+void uuid_unparse_lower(const uuid_t uu, uuid_string_t out);
+void uuid_unparse_upper(const uuid_t uu, uuid_string_t out);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _UUID_UUID_H */
Property changes on: trunk/include/apple/uuid/uuid.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/Makefile
===================================================================
--- trunk/include/mach/Makefile (rev 0)
+++ trunk/include/mach/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,64 @@
+# $FreeBSD$
+
+NO_OBJ=
+INCS= boolean.h \
+ clock.h \
+ clock_types.defs \
+ clock_types.h \
+ error.h \
+ exception.h \
+ exception_types.h \
+ host_info.h \
+ host_notify.h \
+ host_priv.h \
+ host_special_ports.h \
+ ipc_common.h \
+ ipc_types.h \
+ kern_return.h \
+ mach.h \
+ mach_error.h \
+ mach_host.h \
+ mach_init.h \
+ mach_interface.h \
+ mach_port.h \
+ mach_time.h \
+ mach_traps.h \
+ mach_types.defs \
+ mach_types.h \
+ mach_vm.h \
+ machine.h \
+ memory_object.h \
+ memory_object_types.h \
+ message.h \
+ mig.h \
+ mig_errors.h \
+ ndr.h \
+ notify.h \
+ policy.h \
+ port.h \
+ processor_info.h \
+ prof_types.h \
+ rpc.h \
+ std_types.defs \
+ std_types.h \
+ task.h \
+ task_info.h \
+ task_policy.h \
+ task_special_ports.h \
+ thread_info.h \
+ thread_special_ports.h \
+ thread_status.h \
+ time_value.h \
+ vm_attributes.h \
+ vm_behavior.h \
+ vm_inherit.h \
+ vm_map.h \
+ vm_prot.h \
+ vm_region.h \
+ vm_statistics.h \
+ vm_sync.h \
+ vm_types.h
+INCSDIR=${INCLUDEDIR}/mach
+SUBDIR= device i386
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/mach/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/boolean.h
===================================================================
--- trunk/include/mach/boolean.h (rev 0)
+++ trunk/include/mach/boolean.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,8 @@
+#include <sys/types.h>
+#include <vm/vm.h>
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
Property changes on: trunk/include/mach/boolean.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/clock.h
===================================================================
--- trunk/include/mach/clock.h (rev 0)
+++ trunk/include/mach/clock.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,264 @@
+#ifndef _clock_user_
+#define _clock_user_
+
+/* Module clock */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef clock_MSG_COUNT
+#define clock_MSG_COUNT 3
+#endif /* clock_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/mach_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine clock_get_time */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t clock_get_time
+#if defined(LINTLIBRARY)
+ (clock_serv, cur_time)
+ clock_serv_t clock_serv;
+ mach_timespec_t *cur_time;
+{ return clock_get_time(clock_serv, cur_time); }
+#else
+(
+ clock_serv_t clock_serv,
+ mach_timespec_t *cur_time
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine clock_get_attributes */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t clock_get_attributes
+#if defined(LINTLIBRARY)
+ (clock_serv, flavor, clock_attr, clock_attrCnt)
+ clock_serv_t clock_serv;
+ clock_flavor_t flavor;
+ clock_attr_t clock_attr;
+ mach_msg_type_number_t *clock_attrCnt;
+{ return clock_get_attributes(clock_serv, flavor, clock_attr, clock_attrCnt); }
+#else
+(
+ clock_serv_t clock_serv,
+ clock_flavor_t flavor,
+ clock_attr_t clock_attr,
+ mach_msg_type_number_t *clock_attrCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine clock_alarm */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t clock_alarm
+#if defined(LINTLIBRARY)
+ (clock_serv, alarm_type, alarm_time, alarm_port)
+ clock_serv_t clock_serv;
+ alarm_type_t alarm_type;
+ mach_timespec_t alarm_time;
+ clock_reply_t alarm_port;
+{ return clock_alarm(clock_serv, alarm_type, alarm_time, alarm_port); }
+#else
+(
+ clock_serv_t clock_serv,
+ alarm_type_t alarm_type,
+ mach_timespec_t alarm_time,
+ clock_reply_t alarm_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__clock_subsystem__defined
+#define __Request__clock_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__clock_get_time_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ clock_flavor_t flavor;
+ mach_msg_type_number_t clock_attrCnt;
+ } __Request__clock_get_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t alarm_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ alarm_type_t alarm_type;
+ mach_timespec_t alarm_time;
+ } __Request__clock_alarm_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__clock_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__clock_subsystem__defined
+#define __RequestUnion__clock_subsystem__defined
+union __RequestUnion__clock_subsystem {
+ __Request__clock_get_time_t Request_clock_get_time;
+ __Request__clock_get_attributes_t Request_clock_get_attributes;
+ __Request__clock_alarm_t Request_clock_alarm;
+};
+#endif /* !__RequestUnion__clock_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__clock_subsystem__defined
+#define __Reply__clock_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_timespec_t cur_time;
+ } __Reply__clock_get_time_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t clock_attrCnt;
+ int clock_attr[1];
+ } __Reply__clock_get_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__clock_alarm_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__clock_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__clock_subsystem__defined
+#define __ReplyUnion__clock_subsystem__defined
+union __ReplyUnion__clock_subsystem {
+ __Reply__clock_get_time_t Reply_clock_get_time;
+ __Reply__clock_get_attributes_t Reply_clock_get_attributes;
+ __Reply__clock_alarm_t Reply_clock_alarm;
+};
+#endif /* !__RequestUnion__clock_subsystem__defined */
+
+#ifndef subsystem_to_name_map_clock
+#define subsystem_to_name_map_clock \
+ { "clock_get_time", 1000 },\
+ { "clock_get_attributes", 1001 },\
+ { "clock_alarm", 1002 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _clock_user_ */
Property changes on: trunk/include/mach/clock.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/clock_types.defs
===================================================================
--- trunk/include/mach/clock_types.defs (rev 0)
+++ trunk/include/mach/clock_types.defs 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/clock_types.defs>
\ No newline at end of file
Added: trunk/include/mach/clock_types.h
===================================================================
--- trunk/include/mach/clock_types.h (rev 0)
+++ trunk/include/mach/clock_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/clock_types.h>
Property changes on: trunk/include/mach/clock_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/device/Makefile
===================================================================
--- trunk/include/mach/device/Makefile (rev 0)
+++ trunk/include/mach/device/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+NO_OBJ=
+INCS= device_types.h
+INCSDIR=${INCLUDEDIR}/mach/device
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/mach/device/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/device/device_types.h
===================================================================
--- trunk/include/mach/device/device_types.h (rev 0)
+++ trunk/include/mach/device/device_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/device/device_types.h>
Property changes on: trunk/include/mach/device/device_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/error.h
===================================================================
--- trunk/include/mach/error.h (rev 0)
+++ trunk/include/mach/error.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/error.h>
Property changes on: trunk/include/mach/error.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/exception.h
===================================================================
--- trunk/include/mach/exception.h (rev 0)
+++ trunk/include/mach/exception.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/exception_types.h>
Property changes on: trunk/include/mach/exception.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/exception_types.h
===================================================================
--- trunk/include/mach/exception_types.h (rev 0)
+++ trunk/include/mach/exception_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/exception_types.h>
Property changes on: trunk/include/mach/exception_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/host_info.h
===================================================================
--- trunk/include/mach/host_info.h (rev 0)
+++ trunk/include/mach/host_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/host_info.h>
Property changes on: trunk/include/mach/host_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/host_notify.h
===================================================================
--- trunk/include/mach/host_notify.h (rev 0)
+++ trunk/include/mach/host_notify.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/host_notify.h>
Property changes on: trunk/include/mach/host_notify.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/host_priv.h
===================================================================
--- trunk/include/mach/host_priv.h (rev 0)
+++ trunk/include/mach/host_priv.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,1327 @@
+#ifndef _host_priv_user_
+#define _host_priv_user_
+
+/* Module host_priv */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef host_priv_MSG_COUNT
+#define host_priv_MSG_COUNT 26
+#endif /* host_priv_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+#include <sys/mach/vm_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine host_get_boot_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_boot_info
+#if defined(LINTLIBRARY)
+ (host_priv, boot_info)
+ host_priv_t host_priv;
+ kernel_boot_info_t boot_info;
+{ return host_get_boot_info(host_priv, boot_info); }
+#else
+(
+ host_priv_t host_priv,
+ kernel_boot_info_t boot_info
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_reboot */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_reboot
+#if defined(LINTLIBRARY)
+ (host_priv, options)
+ host_priv_t host_priv;
+ int options;
+{ return host_reboot(host_priv, options); }
+#else
+(
+ host_priv_t host_priv,
+ int options
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_priv_statistics */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_priv_statistics
+#if defined(LINTLIBRARY)
+ (host_priv, flavor, host_info_out, host_info_outCnt)
+ host_priv_t host_priv;
+ host_flavor_t flavor;
+ host_info_t host_info_out;
+ mach_msg_type_number_t *host_info_outCnt;
+{ return host_priv_statistics(host_priv, flavor, host_info_out, host_info_outCnt); }
+#else
+(
+ host_priv_t host_priv,
+ host_flavor_t flavor,
+ host_info_t host_info_out,
+ mach_msg_type_number_t *host_info_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_default_memory_manager */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_default_memory_manager
+#if defined(LINTLIBRARY)
+ (host_priv, default_manager, cluster_size)
+ host_priv_t host_priv;
+ memory_object_default_t *default_manager;
+ memory_object_cluster_size_t cluster_size;
+{ return host_default_memory_manager(host_priv, default_manager, cluster_size); }
+#else
+(
+ host_priv_t host_priv,
+ memory_object_default_t *default_manager,
+ memory_object_cluster_size_t cluster_size
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_wire */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_wire
+#if defined(LINTLIBRARY)
+ (host_priv, task, address, size, desired_access)
+ host_priv_t host_priv;
+ mach_vm_map_t task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_prot_t desired_access;
+{ return vm_wire(host_priv, task, address, size, desired_access); }
+#else
+(
+ host_priv_t host_priv,
+ mach_vm_map_t task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_prot_t desired_access
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine thread_wire */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t thread_wire
+#if defined(LINTLIBRARY)
+ (host_priv, thread, wired)
+ host_priv_t host_priv;
+ thread_act_t thread;
+ boolean_t wired;
+{ return thread_wire(host_priv, thread, wired); }
+#else
+(
+ host_priv_t host_priv,
+ thread_act_t thread,
+ boolean_t wired
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_allocate_cpm */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_allocate_cpm
+#if defined(LINTLIBRARY)
+ (host_priv, task, address, size, flags)
+ host_priv_t host_priv;
+ mach_vm_map_t task;
+ vm_address_t *address;
+ vm_size_t size;
+ int flags;
+{ return vm_allocate_cpm(host_priv, task, address, size, flags); }
+#else
+(
+ host_priv_t host_priv,
+ mach_vm_map_t task,
+ vm_address_t *address,
+ vm_size_t size,
+ int flags
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_processors */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_processors
+#if defined(LINTLIBRARY)
+ (host_priv, out_processor_list, out_processor_listCnt)
+ host_priv_t host_priv;
+ processor_array_t *out_processor_list;
+ mach_msg_type_number_t *out_processor_listCnt;
+{ return host_processors(host_priv, out_processor_list, out_processor_listCnt); }
+#else
+(
+ host_priv_t host_priv,
+ processor_array_t *out_processor_list,
+ mach_msg_type_number_t *out_processor_listCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_get_clock_control */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_clock_control
+#if defined(LINTLIBRARY)
+ (host_priv, clock_id, clock_ctrl)
+ host_priv_t host_priv;
+ clock_id_t clock_id;
+ clock_ctrl_t *clock_ctrl;
+{ return host_get_clock_control(host_priv, clock_id, clock_ctrl); }
+#else
+(
+ host_priv_t host_priv,
+ clock_id_t clock_id,
+ clock_ctrl_t *clock_ctrl
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_get_special_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_special_port
+#if defined(LINTLIBRARY)
+ (host_priv, node, which, port)
+ host_priv_t host_priv;
+ int node;
+ int which;
+ mach_port_t *port;
+{ return host_get_special_port(host_priv, node, which, port); }
+#else
+(
+ host_priv_t host_priv,
+ int node,
+ int which,
+ mach_port_t *port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_set_special_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_set_special_port
+#if defined(LINTLIBRARY)
+ (host_priv, which, port)
+ host_priv_t host_priv;
+ int which;
+ mach_port_t port;
+{ return host_set_special_port(host_priv, which, port); }
+#else
+(
+ host_priv_t host_priv,
+ int which,
+ mach_port_t port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_set_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_set_exception_ports
+#if defined(LINTLIBRARY)
+ (host_priv, exception_mask, new_port, behavior, new_flavor)
+ host_priv_t host_priv;
+ exception_mask_t exception_mask;
+ mach_port_t new_port;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+{ return host_set_exception_ports(host_priv, exception_mask, new_port, behavior, new_flavor); }
+#else
+(
+ host_priv_t host_priv,
+ exception_mask_t exception_mask,
+ mach_port_t new_port,
+ exception_behavior_t behavior,
+ thread_state_flavor_t new_flavor
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_get_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_exception_ports
+#if defined(LINTLIBRARY)
+ (host_priv, exception_mask, masks, masksCnt, old_handlers, old_behaviors, old_flavors)
+ host_priv_t host_priv;
+ exception_mask_t exception_mask;
+ exception_mask_array_t masks;
+ mach_msg_type_number_t *masksCnt;
+ exception_handler_array_t old_handlers;
+ exception_behavior_array_t old_behaviors;
+ exception_flavor_array_t old_flavors;
+{ return host_get_exception_ports(host_priv, exception_mask, masks, masksCnt, old_handlers, old_behaviors, old_flavors); }
+#else
+(
+ host_priv_t host_priv,
+ exception_mask_t exception_mask,
+ exception_mask_array_t masks,
+ mach_msg_type_number_t *masksCnt,
+ exception_handler_array_t old_handlers,
+ exception_behavior_array_t old_behaviors,
+ exception_flavor_array_t old_flavors
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_swap_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_swap_exception_ports
+#if defined(LINTLIBRARY)
+ (host_priv, exception_mask, new_port, behavior, new_flavor, masks, masksCnt, old_handlerss, old_behaviors, old_flavors)
+ host_priv_t host_priv;
+ exception_mask_t exception_mask;
+ mach_port_t new_port;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ exception_mask_array_t masks;
+ mach_msg_type_number_t *masksCnt;
+ exception_handler_array_t old_handlerss;
+ exception_behavior_array_t old_behaviors;
+ exception_flavor_array_t old_flavors;
+{ return host_swap_exception_ports(host_priv, exception_mask, new_port, behavior, new_flavor, masks, masksCnt, old_handlerss, old_behaviors, old_flavors); }
+#else
+(
+ host_priv_t host_priv,
+ exception_mask_t exception_mask,
+ mach_port_t new_port,
+ exception_behavior_t behavior,
+ thread_state_flavor_t new_flavor,
+ exception_mask_array_t masks,
+ mach_msg_type_number_t *masksCnt,
+ exception_handler_array_t old_handlerss,
+ exception_behavior_array_t old_behaviors,
+ exception_flavor_array_t old_flavors
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_wire */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_wire
+#if defined(LINTLIBRARY)
+ (host_priv, task, address, size, desired_access)
+ host_priv_t host_priv;
+ mach_vm_map_t task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_prot_t desired_access;
+{ return mach_vm_wire(host_priv, task, address, size, desired_access); }
+#else
+(
+ host_priv_t host_priv,
+ mach_vm_map_t task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_prot_t desired_access
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_processor_sets */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_processor_sets
+#if defined(LINTLIBRARY)
+ (host_priv, processor_sets, processor_setsCnt)
+ host_priv_t host_priv;
+ processor_set_name_array_t *processor_sets;
+ mach_msg_type_number_t *processor_setsCnt;
+{ return host_processor_sets(host_priv, processor_sets, processor_setsCnt); }
+#else
+(
+ host_priv_t host_priv,
+ processor_set_name_array_t *processor_sets,
+ mach_msg_type_number_t *processor_setsCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_processor_set_priv */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_processor_set_priv
+#if defined(LINTLIBRARY)
+ (host_priv, set_name, set)
+ host_priv_t host_priv;
+ processor_set_name_t set_name;
+ processor_set_t *set;
+{ return host_processor_set_priv(host_priv, set_name, set); }
+#else
+(
+ host_priv_t host_priv,
+ processor_set_name_t set_name,
+ processor_set_t *set
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine set_dp_control_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t set_dp_control_port
+#if defined(LINTLIBRARY)
+ (host, control_port)
+ host_priv_t host;
+ mach_port_t control_port;
+{ return set_dp_control_port(host, control_port); }
+#else
+(
+ host_priv_t host,
+ mach_port_t control_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine get_dp_control_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t get_dp_control_port
+#if defined(LINTLIBRARY)
+ (host, contorl_port)
+ host_priv_t host;
+ mach_port_t *contorl_port;
+{ return get_dp_control_port(host, contorl_port); }
+#else
+(
+ host_priv_t host,
+ mach_port_t *contorl_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_set_UNDServer */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_set_UNDServer
+#if defined(LINTLIBRARY)
+ (host, server)
+ host_priv_t host;
+ UNDServerRef server;
+{ return host_set_UNDServer(host, server); }
+#else
+(
+ host_priv_t host,
+ UNDServerRef server
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_get_UNDServer */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_UNDServer
+#if defined(LINTLIBRARY)
+ (host, server)
+ host_priv_t host;
+ UNDServerRef *server;
+{ return host_get_UNDServer(host, server); }
+#else
+(
+ host_priv_t host,
+ UNDServerRef *server
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine kext_request */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t kext_request
+#if defined(LINTLIBRARY)
+ (host_priv, user_log_flags, request_data, request_dataCnt, response_data, response_dataCnt, log_data, log_dataCnt, op_result)
+ host_priv_t host_priv;
+ uint32_t user_log_flags;
+ vm_offset_t request_data;
+ mach_msg_type_number_t request_dataCnt;
+ vm_offset_t *response_data;
+ mach_msg_type_number_t *response_dataCnt;
+ vm_offset_t *log_data;
+ mach_msg_type_number_t *log_dataCnt;
+ kern_return_t *op_result;
+{ return kext_request(host_priv, user_log_flags, request_data, request_dataCnt, response_data, response_dataCnt, log_data, log_dataCnt, op_result); }
+#else
+(
+ host_priv_t host_priv,
+ uint32_t user_log_flags,
+ vm_offset_t request_data,
+ mach_msg_type_number_t request_dataCnt,
+ vm_offset_t *response_data,
+ mach_msg_type_number_t *response_dataCnt,
+ vm_offset_t *log_data,
+ mach_msg_type_number_t *log_dataCnt,
+ kern_return_t *op_result
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__host_priv_subsystem__defined
+#define __Request__host_priv_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_get_boot_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int options;
+ } __Request__host_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ host_flavor_t flavor;
+ mach_msg_type_number_t host_info_outCnt;
+ } __Request__host_priv_statistics_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t default_manager;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ memory_object_cluster_size_t cluster_size;
+ } __Request__host_default_memory_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t task;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_prot_t desired_access;
+ } __Request__vm_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t thread;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t wired;
+ } __Request__thread_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t task;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ int flags;
+ } __Request__vm_allocate_cpm_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_processors_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ clock_id_t clock_id;
+ } __Request__host_get_clock_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int node;
+ int which;
+ } __Request__host_get_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int which;
+ } __Request__host_set_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ } __Request__host_set_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ } __Request__host_get_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ } __Request__host_swap_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t task;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_prot_t desired_access;
+ } __Request__mach_vm_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_processor_sets_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t set_name;
+ /* end of the kernel processed data */
+ } __Request__host_processor_set_priv_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t control_port;
+ /* end of the kernel processed data */
+ } __Request__set_dp_control_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__get_dp_control_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t server;
+ /* end of the kernel processed data */
+ } __Request__host_set_UNDServer_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_get_UNDServer_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t request_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ uint32_t user_log_flags;
+ mach_msg_type_number_t request_dataCnt;
+ } __Request__kext_request_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__host_priv_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__host_priv_subsystem__defined
+#define __RequestUnion__host_priv_subsystem__defined
+union __RequestUnion__host_priv_subsystem {
+ __Request__host_get_boot_info_t Request_host_get_boot_info;
+ __Request__host_reboot_t Request_host_reboot;
+ __Request__host_priv_statistics_t Request_host_priv_statistics;
+ __Request__host_default_memory_manager_t Request_host_default_memory_manager;
+ __Request__vm_wire_t Request_vm_wire;
+ __Request__thread_wire_t Request_thread_wire;
+ __Request__vm_allocate_cpm_t Request_vm_allocate_cpm;
+ __Request__host_processors_t Request_host_processors;
+ __Request__host_get_clock_control_t Request_host_get_clock_control;
+ __Request__host_get_special_port_t Request_host_get_special_port;
+ __Request__host_set_special_port_t Request_host_set_special_port;
+ __Request__host_set_exception_ports_t Request_host_set_exception_ports;
+ __Request__host_get_exception_ports_t Request_host_get_exception_ports;
+ __Request__host_swap_exception_ports_t Request_host_swap_exception_ports;
+ __Request__mach_vm_wire_t Request_mach_vm_wire;
+ __Request__host_processor_sets_t Request_host_processor_sets;
+ __Request__host_processor_set_priv_t Request_host_processor_set_priv;
+ __Request__set_dp_control_port_t Request_set_dp_control_port;
+ __Request__get_dp_control_port_t Request_get_dp_control_port;
+ __Request__host_set_UNDServer_t Request_host_set_UNDServer;
+ __Request__host_get_UNDServer_t Request_host_get_UNDServer;
+ __Request__kext_request_t Request_kext_request;
+};
+#endif /* !__RequestUnion__host_priv_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__host_priv_subsystem__defined
+#define __Reply__host_priv_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t boot_infoOffset; /* MiG doesn't use it */
+ mach_msg_type_number_t boot_infoCnt;
+ char boot_info[4096];
+ } __Reply__host_get_boot_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__host_reboot_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t host_info_outCnt;
+ integer_t host_info_out[68];
+ } __Reply__host_priv_statistics_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t default_manager;
+ /* end of the kernel processed data */
+ } __Reply__host_default_memory_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__thread_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_address_t address;
+ } __Reply__vm_allocate_cpm_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t out_processor_list;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t out_processor_listCnt;
+ } __Reply__host_processors_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clock_ctrl;
+ /* end of the kernel processed data */
+ } __Reply__host_get_clock_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t port;
+ /* end of the kernel processed data */
+ } __Reply__host_get_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__host_set_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__host_set_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t old_handlers[32];
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t masksCnt;
+ exception_mask_t masks[32];
+ exception_behavior_t old_behaviors[32];
+ thread_state_flavor_t old_flavors[32];
+ } __Reply__host_get_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t old_handlerss[32];
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t masksCnt;
+ exception_mask_t masks[32];
+ exception_behavior_t old_behaviors[32];
+ thread_state_flavor_t old_flavors[32];
+ } __Reply__host_swap_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t processor_sets;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t processor_setsCnt;
+ } __Reply__host_processor_sets_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t set;
+ /* end of the kernel processed data */
+ } __Reply__host_processor_set_priv_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__set_dp_control_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t contorl_port;
+ /* end of the kernel processed data */
+ } __Reply__get_dp_control_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__host_set_UNDServer_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t server;
+ /* end of the kernel processed data */
+ } __Reply__host_get_UNDServer_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t response_data;
+ mach_msg_ool_descriptor_t log_data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t response_dataCnt;
+ mach_msg_type_number_t log_dataCnt;
+ kern_return_t op_result;
+ } __Reply__kext_request_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__host_priv_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__host_priv_subsystem__defined
+#define __ReplyUnion__host_priv_subsystem__defined
+union __ReplyUnion__host_priv_subsystem {
+ __Reply__host_get_boot_info_t Reply_host_get_boot_info;
+ __Reply__host_reboot_t Reply_host_reboot;
+ __Reply__host_priv_statistics_t Reply_host_priv_statistics;
+ __Reply__host_default_memory_manager_t Reply_host_default_memory_manager;
+ __Reply__vm_wire_t Reply_vm_wire;
+ __Reply__thread_wire_t Reply_thread_wire;
+ __Reply__vm_allocate_cpm_t Reply_vm_allocate_cpm;
+ __Reply__host_processors_t Reply_host_processors;
+ __Reply__host_get_clock_control_t Reply_host_get_clock_control;
+ __Reply__host_get_special_port_t Reply_host_get_special_port;
+ __Reply__host_set_special_port_t Reply_host_set_special_port;
+ __Reply__host_set_exception_ports_t Reply_host_set_exception_ports;
+ __Reply__host_get_exception_ports_t Reply_host_get_exception_ports;
+ __Reply__host_swap_exception_ports_t Reply_host_swap_exception_ports;
+ __Reply__mach_vm_wire_t Reply_mach_vm_wire;
+ __Reply__host_processor_sets_t Reply_host_processor_sets;
+ __Reply__host_processor_set_priv_t Reply_host_processor_set_priv;
+ __Reply__set_dp_control_port_t Reply_set_dp_control_port;
+ __Reply__get_dp_control_port_t Reply_get_dp_control_port;
+ __Reply__host_set_UNDServer_t Reply_host_set_UNDServer;
+ __Reply__host_get_UNDServer_t Reply_host_get_UNDServer;
+ __Reply__kext_request_t Reply_kext_request;
+};
+#endif /* !__RequestUnion__host_priv_subsystem__defined */
+
+#ifndef subsystem_to_name_map_host_priv
+#define subsystem_to_name_map_host_priv \
+ { "host_get_boot_info", 400 },\
+ { "host_reboot", 401 },\
+ { "host_priv_statistics", 402 },\
+ { "host_default_memory_manager", 403 },\
+ { "vm_wire", 404 },\
+ { "thread_wire", 405 },\
+ { "vm_allocate_cpm", 406 },\
+ { "host_processors", 407 },\
+ { "host_get_clock_control", 408 },\
+ { "host_get_special_port", 412 },\
+ { "host_set_special_port", 413 },\
+ { "host_set_exception_ports", 414 },\
+ { "host_get_exception_ports", 415 },\
+ { "host_swap_exception_ports", 416 },\
+ { "mach_vm_wire", 418 },\
+ { "host_processor_sets", 419 },\
+ { "host_processor_set_priv", 420 },\
+ { "set_dp_control_port", 421 },\
+ { "get_dp_control_port", 422 },\
+ { "host_set_UNDServer", 423 },\
+ { "host_get_UNDServer", 424 },\
+ { "kext_request", 425 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _host_priv_user_ */
Property changes on: trunk/include/mach/host_priv.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/host_reboot.h
===================================================================
--- trunk/include/mach/host_reboot.h (rev 0)
+++ trunk/include/mach/host_reboot.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,39 @@
+/*
+ * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
+ *
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
+ *
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
+ */
+/*
+ * @OSF_COPYRIGHT@
+ */
+
+#ifndef _MACH_HOST_REBOOT_
+#define _MACH_HOST_REBOOT_
+
+#define HOST_REBOOT_HALT 0x0008
+#define HOST_REBOOT_UPSDELAY 0x0100
+#define HOST_REBOOT_DEBUGGER 0x1000
+
+#endif /* _MACH_HOST_REBOOT_ */
Property changes on: trunk/include/mach/host_reboot.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/host_special_ports.h
===================================================================
--- trunk/include/mach/host_special_ports.h (rev 0)
+++ trunk/include/mach/host_special_ports.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/host_special_ports.h>
Property changes on: trunk/include/mach/host_special_ports.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/i386/Makefile
===================================================================
--- trunk/include/mach/i386/Makefile (rev 0)
+++ trunk/include/mach/i386/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,7 @@
+# $FreeBSD$
+
+NO_OBJ=
+INCS= thread_state.h
+INCSDIR=${INCLUDEDIR}/mach/i386
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/mach/i386/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/i386/thread_state.h
===================================================================
--- trunk/include/mach/i386/thread_state.h (rev 0)
+++ trunk/include/mach/i386/thread_state.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,29 @@
+/*
+ * Copyright 1991-1998 by Open Software Foundation, Inc.
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and
+ * its documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appears in all copies and
+ * that both the copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
+ * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
+ * MkLinux
+ */
+#ifndef _MACH_I386_THREAD_STATE_H_
+#define _MACH_I386_THREAD_STATE_H_
+
+#define THREAD_STATE_MAX 32
+
+#endif /* _MACH_I386_THREAD_STATE_H_ */
Property changes on: trunk/include/mach/i386/thread_state.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/ipc_common.h
===================================================================
--- trunk/include/mach/ipc_common.h (rev 0)
+++ trunk/include/mach/ipc_common.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/ipc_common.h>
Property changes on: trunk/include/mach/ipc_common.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/ipc_types.h
===================================================================
--- trunk/include/mach/ipc_types.h (rev 0)
+++ trunk/include/mach/ipc_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/ipc_types.h>
Property changes on: trunk/include/mach/ipc_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/kern_return.h
===================================================================
--- trunk/include/mach/kern_return.h (rev 0)
+++ trunk/include/mach/kern_return.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/kern_return.h>
Property changes on: trunk/include/mach/kern_return.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach.h
===================================================================
--- trunk/include/mach/mach.h (rev 0)
+++ trunk/include/mach/mach.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,129 @@
+/*
+ * Copyright 1991-1998 by Open Software Foundation, Inc.
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and
+ * its documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appears in all copies and
+ * that both the copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
+ * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
+ * Mach Operating System
+ * Copyright (c) 1991,1990,1989 Carnegie Mellon University
+ * All Rights Reserved.
+ *
+ * Permission to use, copy, modify and distribute this software and its
+ * documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
+ * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or Software.Distribution at CS.CMU.EDU
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie Mellon
+ * the rights to redistribute these changes.
+ */
+/*
+ * MkLinux
+ */
+/*
+ * Includes all the types that a normal user
+ * of Mach programs should need
+ */
+
+#ifndef _MACH_H_
+#define _MACH_H_
+
+#include <mach/vm_types.h>
+#include <mach/mach_types.h>
+#include <mach/mach_interface.h>
+#include <mach/mach_port.h>
+#include <mach/mach_init.h>
+#include <mach/mach_error.h>
+#include <mach/task.h>
+
+/*
+ * Standard prototypes
+ */
+extern void panic_init(mach_port_t);
+extern void panic(const char *, ...);
+
+extern void safe_gets(char *,
+ char *,
+ int);
+
+extern void slot_name(cpu_type_t,
+ cpu_subtype_t,
+ char **,
+ char **);
+
+extern void mig_reply_setup(mach_msg_header_t *,
+ mach_msg_header_t *);
+
+extern void mach_msg_destroy(mach_msg_header_t *);
+
+extern mach_msg_return_t mach_msg_receive(mach_msg_header_t *);
+
+extern mach_msg_return_t mach_msg_send(mach_msg_header_t *);
+
+extern mach_msg_return_t mach_msg_server_once(boolean_t (*)
+ (mach_msg_header_t *,
+ mach_msg_header_t *),
+ mach_msg_size_t,
+ mach_port_t,
+ mach_msg_options_t);
+extern mach_msg_return_t mach_msg_server(boolean_t (*)
+ (mach_msg_header_t *,
+ mach_msg_header_t *),
+ mach_msg_size_t,
+ mach_port_t,
+ mach_msg_options_t);
+
+extern kern_return_t device_read_overwrite_request(mach_port_t,
+ mach_port_t,
+ dev_mode_t,
+ recnum_t,
+ io_buf_len_t,
+ vm_address_t);
+
+extern kern_return_t device_read_overwrite(mach_port_t,
+ dev_mode_t,
+ recnum_t,
+ io_buf_len_t,
+ vm_address_t,
+ mach_msg_type_number_t *);
+
+/*
+ * Prototypes for compatibility
+ */
+extern kern_return_t clock_get_res(mach_port_t,
+ clock_res_t *);
+extern kern_return_t clock_set_res(mach_port_t,
+ clock_res_t);
+
+extern kern_return_t clock_sleep(mach_port_name_t,
+ mach_sleep_type_t,
+ int,
+ int,
+ tvalspec_t *);
+#endif /* _MACH_H_ */
Property changes on: trunk/include/mach/mach.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_error.h
===================================================================
--- trunk/include/mach/mach_error.h (rev 0)
+++ trunk/include/mach/mach_error.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,84 @@
+/*
+ * Copyright 1991-1998 by Open Software Foundation, Inc.
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and
+ * its documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appears in all copies and
+ * that both the copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
+ * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
+ * Mach Operating System
+ * Copyright (c) 1991,1990,1989 Carnegie Mellon University
+ * All Rights Reserved.
+ *
+ * Permission to use, copy, modify and distribute this software and its
+ * documentation is hereby granted, provided that both the copyright
+ * notice and this permission notice appear in all copies of the
+ * software, derivative works or modified versions, and any portions
+ * thereof, and that both notices appear in supporting documentation.
+ *
+ * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
+ * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
+ * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
+ *
+ * Carnegie Mellon requests users of this software to return to
+ *
+ * Software Distribution Coordinator or Software.Distribution at CS.CMU.EDU
+ * School of Computer Science
+ * Carnegie Mellon University
+ * Pittsburgh PA 15213-3890
+ *
+ * any improvements or extensions that they make and grant Carnegie the
+ * rights to redistribute these changes.
+ */
+/*
+ * MkLinux
+ */
+/*
+ * File: mach_error.h
+ * Author: Douglas Orr, Carnegie Mellon University
+ * Date: Mar. 1988
+ *
+ * Definitions of routines in mach_error.c
+ */
+
+#ifndef _MACH_ERROR_
+#define _MACH_ERROR_ 1
+
+#include <mach/error.h>
+
+const char *mach_error_string(
+/*
+ * Returns a string appropriate to the error argument given
+ */
+ mach_error_t error_value
+ );
+
+void mach_error(
+/*
+ * Prints an appropriate message on the standard error stream
+ */
+ char *str,
+ mach_error_t error_value
+ );
+
+const char *mach_error_type(
+/*
+ * Returns a string with the error system, subsystem and code
+ */
+ mach_error_t error_value
+ );
+
+#endif /* _MACH_ERROR_ */
Property changes on: trunk/include/mach/mach_error.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_host.h
===================================================================
--- trunk/include/mach/mach_host.h (rev 0)
+++ trunk/include/mach/mach_host.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,1094 @@
+#ifndef _mach_host_user_
+#define _mach_host_user_
+
+/* Module mach_host */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef mach_host_MSG_COUNT
+#define mach_host_MSG_COUNT 25
+#endif /* mach_host_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine host_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_info
+#if defined(LINTLIBRARY)
+ (host, flavor, host_info_out, host_info_outCnt)
+ host_t host;
+ host_flavor_t flavor;
+ host_info_t host_info_out;
+ mach_msg_type_number_t *host_info_outCnt;
+{ return host_info(host, flavor, host_info_out, host_info_outCnt); }
+#else
+(
+ host_t host,
+ host_flavor_t flavor,
+ host_info_t host_info_out,
+ mach_msg_type_number_t *host_info_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_kernel_version */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_kernel_version
+#if defined(LINTLIBRARY)
+ (host, kernel_version)
+ host_t host;
+ kernel_version_t kernel_version;
+{ return host_kernel_version(host, kernel_version); }
+#else
+(
+ host_t host,
+ kernel_version_t kernel_version
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine _host_page_size */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _host_page_size
+#if defined(LINTLIBRARY)
+ (host, out_page_size)
+ host_t host;
+ vm_size_t *out_page_size;
+{ return _host_page_size(host, out_page_size); }
+#else
+(
+ host_t host,
+ vm_size_t *out_page_size
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_memory_object_memory_entry */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_memory_object_memory_entry
+#if defined(LINTLIBRARY)
+ (host, internal, size, permission, pager, entry_handle)
+ host_t host;
+ boolean_t internal;
+ vm_size_t size;
+ vm_prot_t permission;
+ memory_object_t pager;
+ mach_port_t *entry_handle;
+{ return mach_memory_object_memory_entry(host, internal, size, permission, pager, entry_handle); }
+#else
+(
+ host_t host,
+ boolean_t internal,
+ vm_size_t size,
+ vm_prot_t permission,
+ memory_object_t pager,
+ mach_port_t *entry_handle
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_processor_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_processor_info
+#if defined(LINTLIBRARY)
+ (host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt)
+ host_t host;
+ processor_flavor_t flavor;
+ natural_t *out_processor_count;
+ processor_info_array_t *out_processor_info;
+ mach_msg_type_number_t *out_processor_infoCnt;
+{ return host_processor_info(host, flavor, out_processor_count, out_processor_info, out_processor_infoCnt); }
+#else
+(
+ host_t host,
+ processor_flavor_t flavor,
+ natural_t *out_processor_count,
+ processor_info_array_t *out_processor_info,
+ mach_msg_type_number_t *out_processor_infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_get_clock_service */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_get_clock_service
+#if defined(LINTLIBRARY)
+ (host, clock_id, clock_serv)
+ host_t host;
+ clock_id_t clock_id;
+ clock_serv_t *clock_serv;
+{ return host_get_clock_service(host, clock_id, clock_serv); }
+#else
+(
+ host_t host,
+ clock_id_t clock_id,
+ clock_serv_t *clock_serv
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_virtual_physical_table_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_virtual_physical_table_info
+#if defined(LINTLIBRARY)
+ (host, info, infoCnt)
+ host_t host;
+ hash_info_bucket_array_t *info;
+ mach_msg_type_number_t *infoCnt;
+{ return host_virtual_physical_table_info(host, info, infoCnt); }
+#else
+(
+ host_t host,
+ hash_info_bucket_array_t *info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine processor_set_default */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t processor_set_default
+#if defined(LINTLIBRARY)
+ (host, default_set)
+ host_t host;
+ processor_set_name_t *default_set;
+{ return processor_set_default(host, default_set); }
+#else
+(
+ host_t host,
+ processor_set_name_t *default_set
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine processor_set_create */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t processor_set_create
+#if defined(LINTLIBRARY)
+ (host, new_set, new_name)
+ host_t host;
+ processor_set_t *new_set;
+ processor_set_name_t *new_name;
+{ return processor_set_create(host, new_set, new_name); }
+#else
+(
+ host_t host,
+ processor_set_t *new_set,
+ processor_set_name_t *new_name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_memory_object_memory_entry_64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_memory_object_memory_entry_64
+#if defined(LINTLIBRARY)
+ (host, internal, size, permission, pager, entry_handle)
+ host_t host;
+ boolean_t internal;
+ memory_object_size_t size;
+ vm_prot_t permission;
+ memory_object_t pager;
+ mach_port_t *entry_handle;
+{ return mach_memory_object_memory_entry_64(host, internal, size, permission, pager, entry_handle); }
+#else
+(
+ host_t host,
+ boolean_t internal,
+ memory_object_size_t size,
+ vm_prot_t permission,
+ memory_object_t pager,
+ mach_port_t *entry_handle
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_statistics */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_statistics
+#if defined(LINTLIBRARY)
+ (host_priv, flavor, host_info_out, host_info_outCnt)
+ host_t host_priv;
+ host_flavor_t flavor;
+ host_info_t host_info_out;
+ mach_msg_type_number_t *host_info_outCnt;
+{ return host_statistics(host_priv, flavor, host_info_out, host_info_outCnt); }
+#else
+(
+ host_t host_priv,
+ host_flavor_t flavor,
+ host_info_t host_info_out,
+ mach_msg_type_number_t *host_info_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_request_notification */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_request_notification
+#if defined(LINTLIBRARY)
+ (host, notify_type, notify_port)
+ host_t host;
+ host_flavor_t notify_type;
+ mach_port_t notify_port;
+{ return host_request_notification(host, notify_type, notify_port); }
+#else
+(
+ host_t host,
+ host_flavor_t notify_type,
+ mach_port_t notify_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_statistics64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_statistics64
+#if defined(LINTLIBRARY)
+ (host_priv, flavor, host_info64_out, host_info64_outCnt)
+ host_t host_priv;
+ host_flavor_t flavor;
+ host_info64_t host_info64_out;
+ mach_msg_type_number_t *host_info64_outCnt;
+{ return host_statistics64(host_priv, flavor, host_info64_out, host_info64_outCnt); }
+#else
+(
+ host_t host_priv,
+ host_flavor_t flavor,
+ host_info64_t host_info64_out,
+ mach_msg_type_number_t *host_info64_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_zone_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_zone_info
+#if defined(LINTLIBRARY)
+ (host, names, namesCnt, info, infoCnt)
+ host_priv_t host;
+ mach_zone_name_array_t *names;
+ mach_msg_type_number_t *namesCnt;
+ mach_zone_info_array_t *info;
+ mach_msg_type_number_t *infoCnt;
+{ return mach_zone_info(host, names, namesCnt, info, infoCnt); }
+#else
+(
+ host_priv_t host,
+ mach_zone_name_array_t *names,
+ mach_msg_type_number_t *namesCnt,
+ mach_zone_info_array_t *info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_zone_force_gc */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_zone_force_gc
+#if defined(LINTLIBRARY)
+ (host)
+ host_t host;
+{ return mach_zone_force_gc(host); }
+#else
+(
+ host_t host
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_create_mach_voucher */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_create_mach_voucher
+#if defined(LINTLIBRARY)
+ (host, recipes, recipesCnt, voucher)
+ host_t host;
+ mach_voucher_attr_raw_recipe_array_t recipes;
+ mach_msg_type_number_t recipesCnt;
+ ipc_voucher_t *voucher;
+{ return host_create_mach_voucher(host, recipes, recipesCnt, voucher); }
+#else
+(
+ host_t host,
+ mach_voucher_attr_raw_recipe_array_t recipes,
+ mach_msg_type_number_t recipesCnt,
+ ipc_voucher_t *voucher
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_register_mach_voucher_attr_manager */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_register_mach_voucher_attr_manager
+#if defined(LINTLIBRARY)
+ (host, attr_manager, default_value, new_key, new_attr_control)
+ host_t host;
+ mach_voucher_attr_manager_t attr_manager;
+ mach_voucher_attr_value_handle_t default_value;
+ mach_voucher_attr_key_t *new_key;
+ ipc_voucher_attr_control_t *new_attr_control;
+{ return host_register_mach_voucher_attr_manager(host, attr_manager, default_value, new_key, new_attr_control); }
+#else
+(
+ host_t host,
+ mach_voucher_attr_manager_t attr_manager,
+ mach_voucher_attr_value_handle_t default_value,
+ mach_voucher_attr_key_t *new_key,
+ ipc_voucher_attr_control_t *new_attr_control
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine host_register_well_known_mach_voucher_attr_manager */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t host_register_well_known_mach_voucher_attr_manager
+#if defined(LINTLIBRARY)
+ (host, attr_manager, default_value, key, new_attr_control)
+ host_t host;
+ mach_voucher_attr_manager_t attr_manager;
+ mach_voucher_attr_value_handle_t default_value;
+ mach_voucher_attr_key_t key;
+ ipc_voucher_attr_control_t *new_attr_control;
+{ return host_register_well_known_mach_voucher_attr_manager(host, attr_manager, default_value, key, new_attr_control); }
+#else
+(
+ host_t host,
+ mach_voucher_attr_manager_t attr_manager,
+ mach_voucher_attr_value_handle_t default_value,
+ mach_voucher_attr_key_t key,
+ ipc_voucher_attr_control_t *new_attr_control
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__mach_host_subsystem__defined
+#define __Request__mach_host_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ host_flavor_t flavor;
+ mach_msg_type_number_t host_info_outCnt;
+ } __Request__host_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_kernel_version_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request___host_page_size_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t pager;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t internal;
+ vm_size_t size;
+ vm_prot_t permission;
+ } __Request__mach_memory_object_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ processor_flavor_t flavor;
+ } __Request__host_processor_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ clock_id_t clock_id;
+ } __Request__host_get_clock_service_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__host_virtual_physical_table_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__processor_set_default_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__processor_set_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t pager;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t internal;
+ memory_object_size_t size;
+ vm_prot_t permission;
+ } __Request__mach_memory_object_memory_entry_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ host_flavor_t flavor;
+ mach_msg_type_number_t host_info_outCnt;
+ } __Request__host_statistics_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t notify_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ host_flavor_t notify_type;
+ } __Request__host_request_notification_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ host_flavor_t flavor;
+ mach_msg_type_number_t host_info64_outCnt;
+ } __Request__host_statistics64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_zone_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_zone_force_gc_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t recipesCnt;
+ uint8_t recipes[5120];
+ } __Request__host_create_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t attr_manager;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_voucher_attr_value_handle_t default_value;
+ } __Request__host_register_mach_voucher_attr_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t attr_manager;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_voucher_attr_value_handle_t default_value;
+ mach_voucher_attr_key_t key;
+ } __Request__host_register_well_known_mach_voucher_attr_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__mach_host_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__mach_host_subsystem__defined
+#define __RequestUnion__mach_host_subsystem__defined
+union __RequestUnion__mach_host_subsystem {
+ __Request__host_info_t Request_host_info;
+ __Request__host_kernel_version_t Request_host_kernel_version;
+ __Request___host_page_size_t Request__host_page_size;
+ __Request__mach_memory_object_memory_entry_t Request_mach_memory_object_memory_entry;
+ __Request__host_processor_info_t Request_host_processor_info;
+ __Request__host_get_clock_service_t Request_host_get_clock_service;
+ __Request__host_virtual_physical_table_info_t Request_host_virtual_physical_table_info;
+ __Request__processor_set_default_t Request_processor_set_default;
+ __Request__processor_set_create_t Request_processor_set_create;
+ __Request__mach_memory_object_memory_entry_64_t Request_mach_memory_object_memory_entry_64;
+ __Request__host_statistics_t Request_host_statistics;
+ __Request__host_request_notification_t Request_host_request_notification;
+ __Request__host_statistics64_t Request_host_statistics64;
+ __Request__mach_zone_info_t Request_mach_zone_info;
+ __Request__mach_zone_force_gc_t Request_mach_zone_force_gc;
+ __Request__host_create_mach_voucher_t Request_host_create_mach_voucher;
+ __Request__host_register_mach_voucher_attr_manager_t Request_host_register_mach_voucher_attr_manager;
+ __Request__host_register_well_known_mach_voucher_attr_manager_t Request_host_register_well_known_mach_voucher_attr_manager;
+};
+#endif /* !__RequestUnion__mach_host_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__mach_host_subsystem__defined
+#define __Reply__mach_host_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t host_info_outCnt;
+ integer_t host_info_out[68];
+ } __Reply__host_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t kernel_versionOffset; /* MiG doesn't use it */
+ mach_msg_type_number_t kernel_versionCnt;
+ char kernel_version[512];
+ } __Reply__host_kernel_version_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_size_t out_page_size;
+ } __Reply___host_page_size_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t entry_handle;
+ /* end of the kernel processed data */
+ } __Reply__mach_memory_object_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t out_processor_info;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ natural_t out_processor_count;
+ mach_msg_type_number_t out_processor_infoCnt;
+ } __Reply__host_processor_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t clock_serv;
+ /* end of the kernel processed data */
+ } __Reply__host_get_clock_service_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t info;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t infoCnt;
+ } __Reply__host_virtual_physical_table_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t default_set;
+ /* end of the kernel processed data */
+ } __Reply__processor_set_default_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_set;
+ mach_msg_port_descriptor_t new_name;
+ /* end of the kernel processed data */
+ } __Reply__processor_set_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t entry_handle;
+ /* end of the kernel processed data */
+ } __Reply__mach_memory_object_memory_entry_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t host_info_outCnt;
+ integer_t host_info_out[68];
+ } __Reply__host_statistics_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__host_request_notification_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t host_info64_outCnt;
+ integer_t host_info64_out[256];
+ } __Reply__host_statistics64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t names;
+ mach_msg_ool_descriptor_t info;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t namesCnt;
+ mach_msg_type_number_t infoCnt;
+ } __Reply__mach_zone_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_zone_force_gc_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t voucher;
+ /* end of the kernel processed data */
+ } __Reply__host_create_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_attr_control;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_voucher_attr_key_t new_key;
+ } __Reply__host_register_mach_voucher_attr_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_attr_control;
+ /* end of the kernel processed data */
+ } __Reply__host_register_well_known_mach_voucher_attr_manager_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__mach_host_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__mach_host_subsystem__defined
+#define __ReplyUnion__mach_host_subsystem__defined
+union __ReplyUnion__mach_host_subsystem {
+ __Reply__host_info_t Reply_host_info;
+ __Reply__host_kernel_version_t Reply_host_kernel_version;
+ __Reply___host_page_size_t Reply__host_page_size;
+ __Reply__mach_memory_object_memory_entry_t Reply_mach_memory_object_memory_entry;
+ __Reply__host_processor_info_t Reply_host_processor_info;
+ __Reply__host_get_clock_service_t Reply_host_get_clock_service;
+ __Reply__host_virtual_physical_table_info_t Reply_host_virtual_physical_table_info;
+ __Reply__processor_set_default_t Reply_processor_set_default;
+ __Reply__processor_set_create_t Reply_processor_set_create;
+ __Reply__mach_memory_object_memory_entry_64_t Reply_mach_memory_object_memory_entry_64;
+ __Reply__host_statistics_t Reply_host_statistics;
+ __Reply__host_request_notification_t Reply_host_request_notification;
+ __Reply__host_statistics64_t Reply_host_statistics64;
+ __Reply__mach_zone_info_t Reply_mach_zone_info;
+ __Reply__mach_zone_force_gc_t Reply_mach_zone_force_gc;
+ __Reply__host_create_mach_voucher_t Reply_host_create_mach_voucher;
+ __Reply__host_register_mach_voucher_attr_manager_t Reply_host_register_mach_voucher_attr_manager;
+ __Reply__host_register_well_known_mach_voucher_attr_manager_t Reply_host_register_well_known_mach_voucher_attr_manager;
+};
+#endif /* !__RequestUnion__mach_host_subsystem__defined */
+
+#ifndef subsystem_to_name_map_mach_host
+#define subsystem_to_name_map_mach_host \
+ { "host_info", 200 },\
+ { "host_kernel_version", 201 },\
+ { "_host_page_size", 202 },\
+ { "mach_memory_object_memory_entry", 203 },\
+ { "host_processor_info", 204 },\
+ { "host_get_clock_service", 206 },\
+ { "host_virtual_physical_table_info", 209 },\
+ { "processor_set_default", 213 },\
+ { "processor_set_create", 214 },\
+ { "mach_memory_object_memory_entry_64", 215 },\
+ { "host_statistics", 216 },\
+ { "host_request_notification", 217 },\
+ { "host_statistics64", 219 },\
+ { "mach_zone_info", 220 },\
+ { "mach_zone_force_gc", 221 },\
+ { "host_create_mach_voucher", 222 },\
+ { "host_register_mach_voucher_attr_manager", 223 },\
+ { "host_register_well_known_mach_voucher_attr_manager", 224 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _mach_host_user_ */
Property changes on: trunk/include/mach/mach_host.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_init.h
===================================================================
--- trunk/include/mach/mach_init.h (rev 0)
+++ trunk/include/mach/mach_init.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/mach_init.h>
Property changes on: trunk/include/mach/mach_init.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_interface.h
===================================================================
--- trunk/include/mach/mach_interface.h (rev 0)
+++ trunk/include/mach/mach_interface.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,2 @@
+#include <sys/mach/mach_interface.h>
+#include <mach/host_priv.h>
Property changes on: trunk/include/mach/mach_interface.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_port.h
===================================================================
--- trunk/include/mach/mach_port.h (rev 0)
+++ trunk/include/mach/mach_port.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,1593 @@
+#ifndef _mach_port_user_
+#define _mach_port_user_
+
+/* Module mach_port */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef mach_port_MSG_COUNT
+#define mach_port_MSG_COUNT 36
+#endif /* mach_port_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine mach_port_names */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_names
+#if defined(LINTLIBRARY)
+ (task, names, namesCnt, types, typesCnt)
+ ipc_space_t task;
+ mach_port_name_array_t *names;
+ mach_msg_type_number_t *namesCnt;
+ mach_port_type_array_t *types;
+ mach_msg_type_number_t *typesCnt;
+{ return mach_port_names(task, names, namesCnt, types, typesCnt); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_array_t *names,
+ mach_msg_type_number_t *namesCnt,
+ mach_port_type_array_t *types,
+ mach_msg_type_number_t *typesCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_type */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_type
+#if defined(LINTLIBRARY)
+ (task, name, ptype)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_type_t *ptype;
+{ return mach_port_type(task, name, ptype); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_type_t *ptype
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_rename */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_rename
+#if defined(LINTLIBRARY)
+ (task, old_name, new_name)
+ ipc_space_t task;
+ mach_port_name_t old_name;
+ mach_port_name_t new_name;
+{ return mach_port_rename(task, old_name, new_name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t old_name,
+ mach_port_name_t new_name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_allocate_name */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_allocate_name
+#if defined(LINTLIBRARY)
+ (task, right, name)
+ ipc_space_t task;
+ mach_port_right_t right;
+ mach_port_name_t name;
+{ return mach_port_allocate_name(task, right, name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_right_t right,
+ mach_port_name_t name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_destroy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_destroy
+#if defined(LINTLIBRARY)
+ (task, name)
+ ipc_space_t task;
+ mach_port_name_t name;
+{ return mach_port_destroy(task, name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_get_refs */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_get_refs
+#if defined(LINTLIBRARY)
+ (task, name, right, refs)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_right_t right;
+ mach_port_urefs_t *refs;
+{ return mach_port_get_refs(task, name, right, refs); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_right_t right,
+ mach_port_urefs_t *refs
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_peek */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_peek
+#if defined(LINTLIBRARY)
+ (task, name, trailer_type, request_seqnop, msg_sizep, msg_idp, trailer_infop, trailer_infopCnt)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_msg_trailer_type_t trailer_type;
+ mach_port_seqno_t *request_seqnop;
+ mach_msg_size_t *msg_sizep;
+ mach_msg_id_t *msg_idp;
+ mach_msg_trailer_info_t trailer_infop;
+ mach_msg_type_number_t *trailer_infopCnt;
+{ return mach_port_peek(task, name, trailer_type, request_seqnop, msg_sizep, msg_idp, trailer_infop, trailer_infopCnt); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_msg_trailer_type_t trailer_type,
+ mach_port_seqno_t *request_seqnop,
+ mach_msg_size_t *msg_sizep,
+ mach_msg_id_t *msg_idp,
+ mach_msg_trailer_info_t trailer_infop,
+ mach_msg_type_number_t *trailer_infopCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_set_mscount */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_set_mscount
+#if defined(LINTLIBRARY)
+ (task, name, mscount)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_mscount_t mscount;
+{ return mach_port_set_mscount(task, name, mscount); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_mscount_t mscount
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_get_set_status */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_get_set_status
+#if defined(LINTLIBRARY)
+ (task, name, members, membersCnt)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_name_array_t *members;
+ mach_msg_type_number_t *membersCnt;
+{ return mach_port_get_set_status(task, name, members, membersCnt); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_name_array_t *members,
+ mach_msg_type_number_t *membersCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_request_notification */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_request_notification
+#if defined(LINTLIBRARY)
+ (task, name, msgid, sync, notify, notifyPoly, previous)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_msg_id_t msgid;
+ mach_port_mscount_t sync;
+ mach_port_t notify;
+ mach_msg_type_name_t notifyPoly;
+ mach_port_t *previous;
+{ return mach_port_request_notification(task, name, msgid, sync, notify, notifyPoly, previous); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_msg_id_t msgid,
+ mach_port_mscount_t sync,
+ mach_port_t notify,
+ mach_msg_type_name_t notifyPoly,
+ mach_port_t *previous
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_set_seqno */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_set_seqno
+#if defined(LINTLIBRARY)
+ (task, name, seqno)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_seqno_t seqno;
+{ return mach_port_set_seqno(task, name, seqno); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_seqno_t seqno
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_get_attributes */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_get_attributes
+#if defined(LINTLIBRARY)
+ (task, name, flavor, port_info_out, port_info_outCnt)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_flavor_t flavor;
+ mach_port_info_t port_info_out;
+ mach_msg_type_number_t *port_info_outCnt;
+{ return mach_port_get_attributes(task, name, flavor, port_info_out, port_info_outCnt); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_flavor_t flavor,
+ mach_port_info_t port_info_out,
+ mach_msg_type_number_t *port_info_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_set_attributes */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_set_attributes
+#if defined(LINTLIBRARY)
+ (task, name, flavor, port_info, port_infoCnt)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_flavor_t flavor;
+ mach_port_info_t port_info;
+ mach_msg_type_number_t port_infoCnt;
+{ return mach_port_set_attributes(task, name, flavor, port_info, port_infoCnt); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_flavor_t flavor,
+ mach_port_info_t port_info,
+ mach_msg_type_number_t port_infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_allocate_qos */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_allocate_qos
+#if defined(LINTLIBRARY)
+ (task, right, qos, name)
+ ipc_space_t task;
+ mach_port_right_t right;
+ mach_port_qos_t *qos;
+ mach_port_name_t *name;
+{ return mach_port_allocate_qos(task, right, qos, name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_right_t right,
+ mach_port_qos_t *qos,
+ mach_port_name_t *name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_allocate_full */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_allocate_full
+#if defined(LINTLIBRARY)
+ (task, right, proto, qos, name)
+ ipc_space_t task;
+ mach_port_right_t right;
+ mach_port_t proto;
+ mach_port_qos_t *qos;
+ mach_port_name_t *name;
+{ return mach_port_allocate_full(task, right, proto, qos, name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_right_t right,
+ mach_port_t proto,
+ mach_port_qos_t *qos,
+ mach_port_name_t *name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_port_space */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_port_space
+#if defined(LINTLIBRARY)
+ (task, table_entries)
+ ipc_space_t task;
+ int table_entries;
+{ return task_set_port_space(task, table_entries); }
+#else
+(
+ ipc_space_t task,
+ int table_entries
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_get_srights */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_get_srights
+#if defined(LINTLIBRARY)
+ (task, name, srights)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_rights_t *srights;
+{ return mach_port_get_srights(task, name, srights); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_rights_t *srights
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_space_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_space_info
+#if defined(LINTLIBRARY)
+ (task, space_info, table_info, table_infoCnt, tree_info, tree_infoCnt)
+ ipc_space_t task;
+ ipc_info_space_t *space_info;
+ ipc_info_name_array_t *table_info;
+ mach_msg_type_number_t *table_infoCnt;
+ ipc_info_tree_name_array_t *tree_info;
+ mach_msg_type_number_t *tree_infoCnt;
+{ return mach_port_space_info(task, space_info, table_info, table_infoCnt, tree_info, tree_infoCnt); }
+#else
+(
+ ipc_space_t task,
+ ipc_info_space_t *space_info,
+ ipc_info_name_array_t *table_info,
+ mach_msg_type_number_t *table_infoCnt,
+ ipc_info_tree_name_array_t *tree_info,
+ mach_msg_type_number_t *tree_infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_dnrequest_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_dnrequest_info
+#if defined(LINTLIBRARY)
+ (task, name, dnr_total, dnr_used)
+ ipc_space_t task;
+ mach_port_name_t name;
+ unsigned *dnr_total;
+ unsigned *dnr_used;
+{ return mach_port_dnrequest_info(task, name, dnr_total, dnr_used); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ unsigned *dnr_total,
+ unsigned *dnr_used
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_get_context */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_get_context
+#if defined(LINTLIBRARY)
+ (task, name, context)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_context_t *context;
+{ return mach_port_get_context(task, name, context); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_context_t *context
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_set_context */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_set_context
+#if defined(LINTLIBRARY)
+ (task, name, context)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_context_t context;
+{ return mach_port_set_context(task, name, context); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_context_t context
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_kobject */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_kobject
+#if defined(LINTLIBRARY)
+ (task, name, object_type, object_addr)
+ ipc_space_t task;
+ mach_port_name_t name;
+ natural_t *object_type;
+ mach_vm_address_t *object_addr;
+{ return mach_port_kobject(task, name, object_type, object_addr); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ natural_t *object_type,
+ mach_vm_address_t *object_addr
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_construct */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_construct
+#if defined(LINTLIBRARY)
+ (task, options, context, name)
+ ipc_space_t task;
+ mach_port_options_ptr_t options;
+ mach_port_context_t context;
+ mach_port_name_t *name;
+{ return mach_port_construct(task, options, context, name); }
+#else
+(
+ ipc_space_t task,
+ mach_port_options_ptr_t options,
+ mach_port_context_t context,
+ mach_port_name_t *name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_destruct */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_destruct
+#if defined(LINTLIBRARY)
+ (task, name, srdelta, guard)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_delta_t srdelta;
+ mach_port_context_t guard;
+{ return mach_port_destruct(task, name, srdelta, guard); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_delta_t srdelta,
+ mach_port_context_t guard
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_guard */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_guard
+#if defined(LINTLIBRARY)
+ (task, name, guard, strict)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_context_t guard;
+ boolean_t strict;
+{ return mach_port_guard(task, name, guard, strict); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_context_t guard,
+ boolean_t strict
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_unguard */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_unguard
+#if defined(LINTLIBRARY)
+ (task, name, guard)
+ ipc_space_t task;
+ mach_port_name_t name;
+ mach_port_context_t guard;
+{ return mach_port_unguard(task, name, guard); }
+#else
+(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_context_t guard
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_port_space_basic_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_port_space_basic_info
+#if defined(LINTLIBRARY)
+ (task, basic_info)
+ ipc_space_t task;
+ ipc_info_space_basic_t *basic_info;
+{ return mach_port_space_basic_info(task, basic_info); }
+#else
+(
+ ipc_space_t task,
+ ipc_info_space_basic_t *basic_info
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__mach_port_subsystem__defined
+#define __Request__mach_port_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_port_names_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_type_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t old_name;
+ mach_port_name_t new_name;
+ } __Request__mach_port_rename_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_right_t right;
+ mach_port_name_t name;
+ } __Request__mach_port_allocate_name_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_destroy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_right_t right;
+ } __Request__mach_port_get_refs_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_msg_trailer_type_t trailer_type;
+ mach_port_seqno_t request_seqnop;
+ mach_msg_type_number_t trailer_infopCnt;
+ } __Request__mach_port_peek_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_mscount_t mscount;
+ } __Request__mach_port_set_mscount_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_get_set_status_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t notify;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_msg_id_t msgid;
+ mach_port_mscount_t sync;
+ } __Request__mach_port_request_notification_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_seqno_t seqno;
+ } __Request__mach_port_set_seqno_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_flavor_t flavor;
+ mach_msg_type_number_t port_info_outCnt;
+ } __Request__mach_port_get_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_flavor_t flavor;
+ mach_msg_type_number_t port_infoCnt;
+ integer_t port_info[17];
+ } __Request__mach_port_set_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_right_t right;
+ mach_port_qos_t qos;
+ } __Request__mach_port_allocate_qos_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t proto;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_right_t right;
+ mach_port_qos_t qos;
+ mach_port_name_t name;
+ } __Request__mach_port_allocate_full_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int table_entries;
+ } __Request__task_set_port_space_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_get_srights_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_port_space_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_dnrequest_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_get_context_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_context_t context;
+ } __Request__mach_port_set_context_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ } __Request__mach_port_kobject_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t options;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_context_t context;
+ } __Request__mach_port_construct_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_delta_t srdelta;
+ mach_port_context_t guard;
+ } __Request__mach_port_destruct_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_context_t guard;
+ boolean_t strict;
+ } __Request__mach_port_guard_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_port_name_t name;
+ mach_port_context_t guard;
+ } __Request__mach_port_unguard_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_port_space_basic_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__mach_port_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__mach_port_subsystem__defined
+#define __RequestUnion__mach_port_subsystem__defined
+union __RequestUnion__mach_port_subsystem {
+ __Request__mach_port_names_t Request_mach_port_names;
+ __Request__mach_port_type_t Request_mach_port_type;
+ __Request__mach_port_rename_t Request_mach_port_rename;
+ __Request__mach_port_allocate_name_t Request_mach_port_allocate_name;
+ __Request__mach_port_destroy_t Request_mach_port_destroy;
+ __Request__mach_port_get_refs_t Request_mach_port_get_refs;
+ __Request__mach_port_peek_t Request_mach_port_peek;
+ __Request__mach_port_set_mscount_t Request_mach_port_set_mscount;
+ __Request__mach_port_get_set_status_t Request_mach_port_get_set_status;
+ __Request__mach_port_request_notification_t Request_mach_port_request_notification;
+ __Request__mach_port_set_seqno_t Request_mach_port_set_seqno;
+ __Request__mach_port_get_attributes_t Request_mach_port_get_attributes;
+ __Request__mach_port_set_attributes_t Request_mach_port_set_attributes;
+ __Request__mach_port_allocate_qos_t Request_mach_port_allocate_qos;
+ __Request__mach_port_allocate_full_t Request_mach_port_allocate_full;
+ __Request__task_set_port_space_t Request_task_set_port_space;
+ __Request__mach_port_get_srights_t Request_mach_port_get_srights;
+ __Request__mach_port_space_info_t Request_mach_port_space_info;
+ __Request__mach_port_dnrequest_info_t Request_mach_port_dnrequest_info;
+ __Request__mach_port_get_context_t Request_mach_port_get_context;
+ __Request__mach_port_set_context_t Request_mach_port_set_context;
+ __Request__mach_port_kobject_t Request_mach_port_kobject;
+ __Request__mach_port_construct_t Request_mach_port_construct;
+ __Request__mach_port_destruct_t Request_mach_port_destruct;
+ __Request__mach_port_guard_t Request_mach_port_guard;
+ __Request__mach_port_unguard_t Request_mach_port_unguard;
+ __Request__mach_port_space_basic_info_t Request_mach_port_space_basic_info;
+};
+#endif /* !__RequestUnion__mach_port_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__mach_port_subsystem__defined
+#define __Reply__mach_port_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t names;
+ mach_msg_ool_descriptor_t types;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t namesCnt;
+ mach_msg_type_number_t typesCnt;
+ } __Reply__mach_port_names_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_type_t ptype;
+ } __Reply__mach_port_type_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_rename_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_allocate_name_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_destroy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_urefs_t refs;
+ } __Reply__mach_port_get_refs_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_seqno_t request_seqnop;
+ mach_msg_size_t msg_sizep;
+ mach_msg_id_t msg_idp;
+ mach_msg_type_number_t trailer_infopCnt;
+ char trailer_infop[68];
+ } __Reply__mach_port_peek_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_set_mscount_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t members;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t membersCnt;
+ } __Reply__mach_port_get_set_status_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t previous;
+ /* end of the kernel processed data */
+ } __Reply__mach_port_request_notification_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_set_seqno_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t port_info_outCnt;
+ integer_t port_info_out[17];
+ } __Reply__mach_port_get_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_set_attributes_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_qos_t qos;
+ mach_port_name_t name;
+ } __Reply__mach_port_allocate_qos_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_qos_t qos;
+ mach_port_name_t name;
+ } __Reply__mach_port_allocate_full_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_port_space_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_rights_t srights;
+ } __Reply__mach_port_get_srights_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t table_info;
+ mach_msg_ool_descriptor_t tree_info;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ ipc_info_space_t space_info;
+ mach_msg_type_number_t table_infoCnt;
+ mach_msg_type_number_t tree_infoCnt;
+ } __Reply__mach_port_space_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ unsigned dnr_total;
+ unsigned dnr_used;
+ } __Reply__mach_port_dnrequest_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_context_t context;
+ } __Reply__mach_port_get_context_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_set_context_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ natural_t object_type;
+ mach_vm_address_t object_addr;
+ } __Reply__mach_port_kobject_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_port_name_t name;
+ } __Reply__mach_port_construct_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_destruct_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_guard_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_port_unguard_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ ipc_info_space_basic_t basic_info;
+ } __Reply__mach_port_space_basic_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__mach_port_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__mach_port_subsystem__defined
+#define __ReplyUnion__mach_port_subsystem__defined
+union __ReplyUnion__mach_port_subsystem {
+ __Reply__mach_port_names_t Reply_mach_port_names;
+ __Reply__mach_port_type_t Reply_mach_port_type;
+ __Reply__mach_port_rename_t Reply_mach_port_rename;
+ __Reply__mach_port_allocate_name_t Reply_mach_port_allocate_name;
+ __Reply__mach_port_destroy_t Reply_mach_port_destroy;
+ __Reply__mach_port_get_refs_t Reply_mach_port_get_refs;
+ __Reply__mach_port_peek_t Reply_mach_port_peek;
+ __Reply__mach_port_set_mscount_t Reply_mach_port_set_mscount;
+ __Reply__mach_port_get_set_status_t Reply_mach_port_get_set_status;
+ __Reply__mach_port_request_notification_t Reply_mach_port_request_notification;
+ __Reply__mach_port_set_seqno_t Reply_mach_port_set_seqno;
+ __Reply__mach_port_get_attributes_t Reply_mach_port_get_attributes;
+ __Reply__mach_port_set_attributes_t Reply_mach_port_set_attributes;
+ __Reply__mach_port_allocate_qos_t Reply_mach_port_allocate_qos;
+ __Reply__mach_port_allocate_full_t Reply_mach_port_allocate_full;
+ __Reply__task_set_port_space_t Reply_task_set_port_space;
+ __Reply__mach_port_get_srights_t Reply_mach_port_get_srights;
+ __Reply__mach_port_space_info_t Reply_mach_port_space_info;
+ __Reply__mach_port_dnrequest_info_t Reply_mach_port_dnrequest_info;
+ __Reply__mach_port_get_context_t Reply_mach_port_get_context;
+ __Reply__mach_port_set_context_t Reply_mach_port_set_context;
+ __Reply__mach_port_kobject_t Reply_mach_port_kobject;
+ __Reply__mach_port_construct_t Reply_mach_port_construct;
+ __Reply__mach_port_destruct_t Reply_mach_port_destruct;
+ __Reply__mach_port_guard_t Reply_mach_port_guard;
+ __Reply__mach_port_unguard_t Reply_mach_port_unguard;
+ __Reply__mach_port_space_basic_info_t Reply_mach_port_space_basic_info;
+};
+#endif /* !__RequestUnion__mach_port_subsystem__defined */
+
+#ifndef subsystem_to_name_map_mach_port
+#define subsystem_to_name_map_mach_port \
+ { "mach_port_names", 3200 },\
+ { "mach_port_type", 3201 },\
+ { "mach_port_rename", 3202 },\
+ { "mach_port_allocate_name", 3203 },\
+ { "mach_port_destroy", 3210 },\
+ { "mach_port_get_refs", 3211 },\
+ { "mach_port_peek", 3212 },\
+ { "mach_port_set_mscount", 3213 },\
+ { "mach_port_get_set_status", 3214 },\
+ { "mach_port_request_notification", 3215 },\
+ { "mach_port_set_seqno", 3216 },\
+ { "mach_port_get_attributes", 3217 },\
+ { "mach_port_set_attributes", 3218 },\
+ { "mach_port_allocate_qos", 3219 },\
+ { "mach_port_allocate_full", 3220 },\
+ { "task_set_port_space", 3221 },\
+ { "mach_port_get_srights", 3222 },\
+ { "mach_port_space_info", 3223 },\
+ { "mach_port_dnrequest_info", 3224 },\
+ { "mach_port_get_context", 3228 },\
+ { "mach_port_set_context", 3229 },\
+ { "mach_port_kobject", 3230 },\
+ { "mach_port_construct", 3231 },\
+ { "mach_port_destruct", 3232 },\
+ { "mach_port_guard", 3233 },\
+ { "mach_port_unguard", 3234 },\
+ { "mach_port_space_basic_info", 3235 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _mach_port_user_ */
Property changes on: trunk/include/mach/mach_port.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_time.h
===================================================================
--- trunk/include/mach/mach_time.h (rev 0)
+++ trunk/include/mach/mach_time.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/mach_time.h>
Property changes on: trunk/include/mach/mach_time.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_traps.h
===================================================================
--- trunk/include/mach/mach_traps.h (rev 0)
+++ trunk/include/mach/mach_traps.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,77 @@
+#ifndef _MACH_MACH_TRAPS_H_
+#define _MACH_MACH_TRAPS_H_
+#include <sys/mach/mach_traps.h>
+
+kern_return_t mach_port_allocate(
+ ipc_space_t task,
+ mach_port_right_t right,
+ mach_port_name_t *name
+);
+
+kern_return_t mach_port_mod_refs(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_right_t right,
+ mach_port_delta_t delta
+);
+
+kern_return_t mach_port_insert_right(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_port_t poly,
+ mach_msg_type_name_t polyPoly
+);
+
+kern_return_t mach_port_extract_right(
+ ipc_space_t task,
+ mach_port_name_t name,
+ mach_msg_type_name_t msgt_name,
+ mach_port_t *poly,
+ mach_msg_type_name_t *polyPoly
+);
+
+kern_return_t mach_port_deallocate(
+ ipc_space_t task,
+ mach_port_name_t name
+);
+
+kern_return_t mach_port_move_member(
+ mach_port_name_t target,
+ mach_port_name_t member,
+ mach_port_name_t after
+ );
+
+kern_return_t mach_port_insert_member(
+ mach_port_name_t target,
+ mach_port_name_t member,
+ mach_port_name_t after
+ );
+
+kern_return_t mach_port_extract_member(
+ mach_port_name_t target,
+ mach_port_name_t member,
+ mach_port_name_t after
+);
+
+kern_return_t mach_vm_allocate(
+ mach_vm_map_t target,
+ mach_vm_address_t *address,
+ mach_vm_size_t size,
+ int flags
+ );
+
+kern_return_t mach_vm_deallocate(
+ mach_vm_map_t target,
+ mach_vm_address_t address,
+ mach_vm_size_t size
+ );
+
+kern_return_t mach_vm_map(mach_vm_map_t target, mach_vm_address_t *address, mach_vm_offset_t mask,
+ mach_vm_size_t size, int flags, mem_entry_name_port_t object __unused,
+ memory_object_offset_t offset __unused, boolean_t copy __unused,
+ vm_prot_t cur_protection, vm_prot_t max_protection __unused,
+ vm_inherit_t inheritance __unused);
+
+mach_port_t mach_reply_port(void);
+mach_port_t mach_reply_port(void);
+#endif
Property changes on: trunk/include/mach/mach_traps.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_types.defs
===================================================================
--- trunk/include/mach/mach_types.defs (rev 0)
+++ trunk/include/mach/mach_types.defs 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/mach_types.defs>
\ No newline at end of file
Added: trunk/include/mach/mach_types.h
===================================================================
--- trunk/include/mach/mach_types.h (rev 0)
+++ trunk/include/mach/mach_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,4 @@
+#include <sys/mach/mach_types.h>
+/* disable alignment warnings in user */
+#pragma clang diagnostic ignored "-Wcast-align"
+
Property changes on: trunk/include/mach/mach_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mach_vm.h
===================================================================
--- trunk/include/mach/mach_vm.h (rev 0)
+++ trunk/include/mach/mach_vm.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,1111 @@
+#ifndef _mach_vm_user_
+#define _mach_vm_user_
+
+/* Module mach_vm */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef mach_vm_MSG_COUNT
+#define mach_vm_MSG_COUNT 20
+#endif /* mach_vm_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine mach_vm_protect */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_protect
+#if defined(LINTLIBRARY)
+ (target_task, address, size, set_maximum, new_protection)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ boolean_t set_maximum;
+ vm_prot_t new_protection;
+{ return mach_vm_protect(target_task, address, size, set_maximum, new_protection); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ boolean_t set_maximum,
+ vm_prot_t new_protection
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_inherit */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_inherit
+#if defined(LINTLIBRARY)
+ (target_task, address, size, new_inheritance)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_inherit_t new_inheritance;
+{ return mach_vm_inherit(target_task, address, size, new_inheritance); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_inherit_t new_inheritance
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_read */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_read
+#if defined(LINTLIBRARY)
+ (target_task, address, size, data, dataCnt)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_offset_t *data;
+ mach_msg_type_number_t *dataCnt;
+{ return mach_vm_read(target_task, address, size, data, dataCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_offset_t *data,
+ mach_msg_type_number_t *dataCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_read_list */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_read_list
+#if defined(LINTLIBRARY)
+ (target_task, data_list, count)
+ mach_vm_map_t target_task;
+ mach_vm_read_entry_t data_list;
+ natural_t count;
+{ return mach_vm_read_list(target_task, data_list, count); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_read_entry_t data_list,
+ natural_t count
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_write */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_write
+#if defined(LINTLIBRARY)
+ (target_task, address, data, dataCnt)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ vm_offset_t data;
+ mach_msg_type_number_t dataCnt;
+{ return mach_vm_write(target_task, address, data, dataCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ vm_offset_t data,
+ mach_msg_type_number_t dataCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_copy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_copy
+#if defined(LINTLIBRARY)
+ (target_task, source_address, size, dest_address)
+ mach_vm_map_t target_task;
+ mach_vm_address_t source_address;
+ mach_vm_size_t size;
+ mach_vm_address_t dest_address;
+{ return mach_vm_copy(target_task, source_address, size, dest_address); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t source_address,
+ mach_vm_size_t size,
+ mach_vm_address_t dest_address
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_read_overwrite */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_read_overwrite
+#if defined(LINTLIBRARY)
+ (target_task, address, size, data, outsize)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ mach_vm_address_t data;
+ mach_vm_size_t *outsize;
+{ return mach_vm_read_overwrite(target_task, address, size, data, outsize); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ mach_vm_address_t data,
+ mach_vm_size_t *outsize
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_msync */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_msync
+#if defined(LINTLIBRARY)
+ (target_task, address, size, sync_flags)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_sync_t sync_flags;
+{ return mach_vm_msync(target_task, address, size, sync_flags); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_sync_t sync_flags
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_behavior_set */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_behavior_set
+#if defined(LINTLIBRARY)
+ (target_task, address, size, new_behavior)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_behavior_t new_behavior;
+{ return mach_vm_behavior_set(target_task, address, size, new_behavior); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_behavior_t new_behavior
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_machine_attribute */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_machine_attribute
+#if defined(LINTLIBRARY)
+ (target_task, address, size, attribute, value)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_machine_attribute_t attribute;
+ vm_machine_attribute_val_t *value;
+{ return mach_vm_machine_attribute(target_task, address, size, attribute, value); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ mach_vm_size_t size,
+ vm_machine_attribute_t attribute,
+ vm_machine_attribute_val_t *value
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_remap */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_remap
+#if defined(LINTLIBRARY)
+ (target_task, target_address, size, mask, flags, src_task, src_address, copy, cur_protection, max_protection, inheritance)
+ mach_vm_map_t target_task;
+ mach_vm_address_t *target_address;
+ mach_vm_size_t size;
+ mach_vm_offset_t mask;
+ int flags;
+ mach_vm_map_t src_task;
+ mach_vm_address_t src_address;
+ boolean_t copy;
+ vm_prot_t *cur_protection;
+ vm_prot_t *max_protection;
+ vm_inherit_t inheritance;
+{ return mach_vm_remap(target_task, target_address, size, mask, flags, src_task, src_address, copy, cur_protection, max_protection, inheritance); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t *target_address,
+ mach_vm_size_t size,
+ mach_vm_offset_t mask,
+ int flags,
+ mach_vm_map_t src_task,
+ mach_vm_address_t src_address,
+ boolean_t copy,
+ vm_prot_t *cur_protection,
+ vm_prot_t *max_protection,
+ vm_inherit_t inheritance
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_page_query */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_page_query
+#if defined(LINTLIBRARY)
+ (target_map, offset, disposition, ref_count)
+ mach_vm_map_t target_map;
+ mach_vm_offset_t offset;
+ integer_t *disposition;
+ integer_t *ref_count;
+{ return mach_vm_page_query(target_map, offset, disposition, ref_count); }
+#else
+(
+ mach_vm_map_t target_map,
+ mach_vm_offset_t offset,
+ integer_t *disposition,
+ integer_t *ref_count
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_region_recurse */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_region_recurse
+#if defined(LINTLIBRARY)
+ (target_task, address, size, nesting_depth, info, infoCnt)
+ mach_vm_map_t target_task;
+ mach_vm_address_t *address;
+ mach_vm_size_t *size;
+ natural_t *nesting_depth;
+ vm_region_recurse_info_t info;
+ mach_msg_type_number_t *infoCnt;
+{ return mach_vm_region_recurse(target_task, address, size, nesting_depth, info, infoCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t *address,
+ mach_vm_size_t *size,
+ natural_t *nesting_depth,
+ vm_region_recurse_info_t info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_region */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_region
+#if defined(LINTLIBRARY)
+ (target_task, address, size, flavor, info, infoCnt, object_name)
+ mach_vm_map_t target_task;
+ mach_vm_address_t *address;
+ mach_vm_size_t *size;
+ vm_region_flavor_t flavor;
+ vm_region_info_t info;
+ mach_msg_type_number_t *infoCnt;
+ mach_port_t *object_name;
+{ return mach_vm_region(target_task, address, size, flavor, info, infoCnt, object_name); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t *address,
+ mach_vm_size_t *size,
+ vm_region_flavor_t flavor,
+ vm_region_info_t info,
+ mach_msg_type_number_t *infoCnt,
+ mach_port_t *object_name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine _mach_make_memory_entry */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t _mach_make_memory_entry
+#if defined(LINTLIBRARY)
+ (target_task, size, offset, permission, object_handle, parent_handle)
+ mach_vm_map_t target_task;
+ memory_object_size_t *size;
+ memory_object_offset_t offset;
+ vm_prot_t permission;
+ mem_entry_name_port_t *object_handle;
+ mem_entry_name_port_t parent_handle;
+{ return _mach_make_memory_entry(target_task, size, offset, permission, object_handle, parent_handle); }
+#else
+(
+ mach_vm_map_t target_task,
+ memory_object_size_t *size,
+ memory_object_offset_t offset,
+ vm_prot_t permission,
+ mem_entry_name_port_t *object_handle,
+ mem_entry_name_port_t parent_handle
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_purgable_control */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_purgable_control
+#if defined(LINTLIBRARY)
+ (target_task, address, control, state)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ vm_purgable_t control;
+ int *state;
+{ return mach_vm_purgable_control(target_task, address, control, state); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ vm_purgable_t control,
+ int *state
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_page_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_page_info
+#if defined(LINTLIBRARY)
+ (target_task, address, flavor, info, infoCnt)
+ mach_vm_map_t target_task;
+ mach_vm_address_t address;
+ vm_page_info_flavor_t flavor;
+ vm_page_info_t info;
+ mach_msg_type_number_t *infoCnt;
+{ return mach_vm_page_info(target_task, address, flavor, info, infoCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ mach_vm_address_t address,
+ vm_page_info_flavor_t flavor,
+ vm_page_info_t info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__mach_vm_subsystem__defined
+#define __Request__mach_vm_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ boolean_t set_maximum;
+ vm_prot_t new_protection;
+ } __Request__mach_vm_protect_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_inherit_t new_inheritance;
+ } __Request__mach_vm_inherit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ } __Request__mach_vm_read_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_read_entry_t data_list;
+ natural_t count;
+ } __Request__mach_vm_read_list_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_msg_type_number_t dataCnt;
+ } __Request__mach_vm_write_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t source_address;
+ mach_vm_size_t size;
+ mach_vm_address_t dest_address;
+ } __Request__mach_vm_copy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ mach_vm_address_t data;
+ } __Request__mach_vm_read_overwrite_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_sync_t sync_flags;
+ } __Request__mach_vm_msync_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_behavior_t new_behavior;
+ } __Request__mach_vm_behavior_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ vm_machine_attribute_t attribute;
+ vm_machine_attribute_val_t value;
+ } __Request__mach_vm_machine_attribute_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t src_task;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t target_address;
+ mach_vm_size_t size;
+ mach_vm_offset_t mask;
+ int flags;
+ mach_vm_address_t src_address;
+ boolean_t copy;
+ vm_inherit_t inheritance;
+ } __Request__mach_vm_remap_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_offset_t offset;
+ } __Request__mach_vm_page_query_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ } __Request__mach_vm_region_recurse_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ vm_region_flavor_t flavor;
+ mach_msg_type_number_t infoCnt;
+ } __Request__mach_vm_region_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t parent_handle;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ memory_object_size_t size;
+ memory_object_offset_t offset;
+ vm_prot_t permission;
+ } __Request___mach_make_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ vm_purgable_t control;
+ int state;
+ } __Request__mach_vm_purgable_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ vm_page_info_flavor_t flavor;
+ mach_msg_type_number_t infoCnt;
+ } __Request__mach_vm_page_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__mach_vm_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__mach_vm_subsystem__defined
+#define __RequestUnion__mach_vm_subsystem__defined
+union __RequestUnion__mach_vm_subsystem {
+ __Request__mach_vm_protect_t Request_mach_vm_protect;
+ __Request__mach_vm_inherit_t Request_mach_vm_inherit;
+ __Request__mach_vm_read_t Request_mach_vm_read;
+ __Request__mach_vm_read_list_t Request_mach_vm_read_list;
+ __Request__mach_vm_write_t Request_mach_vm_write;
+ __Request__mach_vm_copy_t Request_mach_vm_copy;
+ __Request__mach_vm_read_overwrite_t Request_mach_vm_read_overwrite;
+ __Request__mach_vm_msync_t Request_mach_vm_msync;
+ __Request__mach_vm_behavior_set_t Request_mach_vm_behavior_set;
+ __Request__mach_vm_machine_attribute_t Request_mach_vm_machine_attribute;
+ __Request__mach_vm_remap_t Request_mach_vm_remap;
+ __Request__mach_vm_page_query_t Request_mach_vm_page_query;
+ __Request__mach_vm_region_recurse_t Request_mach_vm_region_recurse;
+ __Request__mach_vm_region_t Request_mach_vm_region;
+ __Request___mach_make_memory_entry_t Request__mach_make_memory_entry;
+ __Request__mach_vm_purgable_control_t Request_mach_vm_purgable_control;
+ __Request__mach_vm_page_info_t Request_mach_vm_page_info;
+};
+#endif /* !__RequestUnion__mach_vm_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__mach_vm_subsystem__defined
+#define __Reply__mach_vm_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_protect_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_inherit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ } __Reply__mach_vm_read_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_vm_read_entry_t data_list;
+ } __Reply__mach_vm_read_list_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_write_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_copy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_vm_size_t outsize;
+ } __Reply__mach_vm_read_overwrite_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_msync_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_vm_behavior_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_machine_attribute_val_t value;
+ } __Reply__mach_vm_machine_attribute_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_vm_address_t target_address;
+ vm_prot_t cur_protection;
+ vm_prot_t max_protection;
+ } __Reply__mach_vm_remap_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ integer_t disposition;
+ integer_t ref_count;
+ } __Reply__mach_vm_page_query_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ int info[19];
+ } __Reply__mach_vm_region_recurse_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_name;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_vm_address_t address;
+ mach_vm_size_t size;
+ mach_msg_type_number_t infoCnt;
+ int info[10];
+ } __Reply__mach_vm_region_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_handle;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ memory_object_size_t size;
+ } __Reply___mach_make_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int state;
+ } __Reply__mach_vm_purgable_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t infoCnt;
+ int info[32];
+ } __Reply__mach_vm_page_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__mach_vm_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__mach_vm_subsystem__defined
+#define __ReplyUnion__mach_vm_subsystem__defined
+union __ReplyUnion__mach_vm_subsystem {
+ __Reply__mach_vm_protect_t Reply_mach_vm_protect;
+ __Reply__mach_vm_inherit_t Reply_mach_vm_inherit;
+ __Reply__mach_vm_read_t Reply_mach_vm_read;
+ __Reply__mach_vm_read_list_t Reply_mach_vm_read_list;
+ __Reply__mach_vm_write_t Reply_mach_vm_write;
+ __Reply__mach_vm_copy_t Reply_mach_vm_copy;
+ __Reply__mach_vm_read_overwrite_t Reply_mach_vm_read_overwrite;
+ __Reply__mach_vm_msync_t Reply_mach_vm_msync;
+ __Reply__mach_vm_behavior_set_t Reply_mach_vm_behavior_set;
+ __Reply__mach_vm_machine_attribute_t Reply_mach_vm_machine_attribute;
+ __Reply__mach_vm_remap_t Reply_mach_vm_remap;
+ __Reply__mach_vm_page_query_t Reply_mach_vm_page_query;
+ __Reply__mach_vm_region_recurse_t Reply_mach_vm_region_recurse;
+ __Reply__mach_vm_region_t Reply_mach_vm_region;
+ __Reply___mach_make_memory_entry_t Reply__mach_make_memory_entry;
+ __Reply__mach_vm_purgable_control_t Reply_mach_vm_purgable_control;
+ __Reply__mach_vm_page_info_t Reply_mach_vm_page_info;
+};
+#endif /* !__RequestUnion__mach_vm_subsystem__defined */
+
+#ifndef subsystem_to_name_map_mach_vm
+#define subsystem_to_name_map_mach_vm \
+ { "mach_vm_protect", 4802 },\
+ { "mach_vm_inherit", 4803 },\
+ { "mach_vm_read", 4804 },\
+ { "mach_vm_read_list", 4805 },\
+ { "mach_vm_write", 4806 },\
+ { "mach_vm_copy", 4807 },\
+ { "mach_vm_read_overwrite", 4808 },\
+ { "mach_vm_msync", 4809 },\
+ { "mach_vm_behavior_set", 4810 },\
+ { "mach_vm_machine_attribute", 4812 },\
+ { "mach_vm_remap", 4813 },\
+ { "mach_vm_page_query", 4814 },\
+ { "mach_vm_region_recurse", 4815 },\
+ { "mach_vm_region", 4816 },\
+ { "_mach_make_memory_entry", 4817 },\
+ { "mach_vm_purgable_control", 4818 },\
+ { "mach_vm_page_info", 4819 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _mach_vm_user_ */
Property changes on: trunk/include/mach/mach_vm.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/machine.h
===================================================================
--- trunk/include/mach/machine.h (rev 0)
+++ trunk/include/mach/machine.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/machine.h>
Property changes on: trunk/include/mach/machine.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/memory_object.h
===================================================================
--- trunk/include/mach/memory_object.h (rev 0)
+++ trunk/include/mach/memory_object.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/memory_object.h>
Property changes on: trunk/include/mach/memory_object.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/memory_object_types.h
===================================================================
--- trunk/include/mach/memory_object_types.h (rev 0)
+++ trunk/include/mach/memory_object_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/memory_object.h>
Property changes on: trunk/include/mach/memory_object_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/message.h
===================================================================
--- trunk/include/mach/message.h (rev 0)
+++ trunk/include/mach/message.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/message.h>
Property changes on: trunk/include/mach/message.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mig.h
===================================================================
--- trunk/include/mach/mig.h (rev 0)
+++ trunk/include/mach/mig.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/mig.h>
Property changes on: trunk/include/mach/mig.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/mig_errors.h
===================================================================
--- trunk/include/mach/mig_errors.h (rev 0)
+++ trunk/include/mach/mig_errors.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/mig_errors.h>
Property changes on: trunk/include/mach/mig_errors.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/ndr.h
===================================================================
--- trunk/include/mach/ndr.h (rev 0)
+++ trunk/include/mach/ndr.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,58 @@
+/*
+ * Copyright 1991-1998 by Open Software Foundation, Inc.
+ * All Rights Reserved
+ *
+ * Permission to use, copy, modify, and distribute this software and
+ * its documentation for any purpose and without fee is hereby granted,
+ * provided that the above copyright notice appears in all copies and
+ * that both the copyright notice and this permission notice appear in
+ * supporting documentation.
+ *
+ * OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE
+ * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE.
+ *
+ * IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+ * LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
+ * NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
+ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+/*
+ * MkLinux
+ */
+
+#ifndef _NDR_H_
+#define _NDR_H_
+
+typedef struct {
+ unsigned char mig_vers;
+ unsigned char if_vers;
+ unsigned char reserved1;
+ unsigned char mig_encoding;
+ unsigned char int_rep;
+ unsigned char char_rep;
+ unsigned char float_rep;
+ unsigned char reserved2;
+} NDR_record_t;
+
+/*
+ * MIG supported protocols for Network Data Representation
+ */
+#define NDR_PROTOCOL_2_0 0
+
+/*
+ * NDR 2.0 format flag type definition and values.
+ */
+#define NDR_INT_BIG_ENDIAN 0
+#define NDR_INT_LITTLE_ENDIAN 1
+#define NDR_FLOAT_IEEE 0
+#define NDR_FLOAT_VAX 1
+#define NDR_FLOAT_CRAY 2
+#define NDR_FLOAT_IBM 3
+#define NDR_CHAR_ASCII 0
+#define NDR_CHAR_EBCDIC 1
+
+extern NDR_record_t NDR_record;
+
+#endif /* _NDR_H_ */
Property changes on: trunk/include/mach/ndr.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/notify.h
===================================================================
--- trunk/include/mach/notify.h (rev 0)
+++ trunk/include/mach/notify.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/notify.h>
Property changes on: trunk/include/mach/notify.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/policy.h
===================================================================
--- trunk/include/mach/policy.h (rev 0)
+++ trunk/include/mach/policy.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/policy.h>
Property changes on: trunk/include/mach/policy.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/port.h
===================================================================
--- trunk/include/mach/port.h (rev 0)
+++ trunk/include/mach/port.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/port.h>
Property changes on: trunk/include/mach/port.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/processor_info.h
===================================================================
--- trunk/include/mach/processor_info.h (rev 0)
+++ trunk/include/mach/processor_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/processor_info.h>
Property changes on: trunk/include/mach/processor_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/prof_types.h
===================================================================
--- trunk/include/mach/prof_types.h (rev 0)
+++ trunk/include/mach/prof_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/prof_types.h>
Property changes on: trunk/include/mach/prof_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/rpc.h
===================================================================
--- trunk/include/mach/rpc.h (rev 0)
+++ trunk/include/mach/rpc.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/rpc.h>
Property changes on: trunk/include/mach/rpc.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/std_types.defs
===================================================================
--- trunk/include/mach/std_types.defs (rev 0)
+++ trunk/include/mach/std_types.defs 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/std_types.defs>
\ No newline at end of file
Added: trunk/include/mach/std_types.h
===================================================================
--- trunk/include/mach/std_types.h (rev 0)
+++ trunk/include/mach/std_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/std_types.h>
Property changes on: trunk/include/mach/std_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/task.h
===================================================================
--- trunk/include/mach/task.h (rev 0)
+++ trunk/include/mach/task.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,2095 @@
+#ifndef _task_user_
+#define _task_user_
+
+/* Module task */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef task_MSG_COUNT
+#define task_MSG_COUNT 42
+#endif /* task_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine task_create */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_create
+#if defined(LINTLIBRARY)
+ (target_task, ledgers, ledgersCnt, inherit_memory, child_task)
+ task_t target_task;
+ ledger_array_t ledgers;
+ mach_msg_type_number_t ledgersCnt;
+ boolean_t inherit_memory;
+ task_t *child_task;
+{ return task_create(target_task, ledgers, ledgersCnt, inherit_memory, child_task); }
+#else
+(
+ task_t target_task,
+ ledger_array_t ledgers,
+ mach_msg_type_number_t ledgersCnt,
+ boolean_t inherit_memory,
+ task_t *child_task
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_terminate */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_terminate
+#if defined(LINTLIBRARY)
+ (target_task)
+ task_t target_task;
+{ return task_terminate(target_task); }
+#else
+(
+ task_t target_task
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_threads */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_threads
+#if defined(LINTLIBRARY)
+ (target_task, act_list, act_listCnt)
+ task_t target_task;
+ thread_act_array_t *act_list;
+ mach_msg_type_number_t *act_listCnt;
+{ return task_threads(target_task, act_list, act_listCnt); }
+#else
+(
+ task_t target_task,
+ thread_act_array_t *act_list,
+ mach_msg_type_number_t *act_listCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_ports_register */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_ports_register
+#if defined(LINTLIBRARY)
+ (target_task, init_port_set, init_port_setCnt)
+ task_t target_task;
+ mach_port_array_t init_port_set;
+ mach_msg_type_number_t init_port_setCnt;
+{ return mach_ports_register(target_task, init_port_set, init_port_setCnt); }
+#else
+(
+ task_t target_task,
+ mach_port_array_t init_port_set,
+ mach_msg_type_number_t init_port_setCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_ports_lookup */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_ports_lookup
+#if defined(LINTLIBRARY)
+ (target_task, init_port_set, init_port_setCnt)
+ task_t target_task;
+ mach_port_array_t *init_port_set;
+ mach_msg_type_number_t *init_port_setCnt;
+{ return mach_ports_lookup(target_task, init_port_set, init_port_setCnt); }
+#else
+(
+ task_t target_task,
+ mach_port_array_t *init_port_set,
+ mach_msg_type_number_t *init_port_setCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_info
+#if defined(LINTLIBRARY)
+ (target_task, flavor, task_info_out, task_info_outCnt)
+ task_name_t target_task;
+ task_flavor_t flavor;
+ task_info_t task_info_out;
+ mach_msg_type_number_t *task_info_outCnt;
+{ return task_info(target_task, flavor, task_info_out, task_info_outCnt); }
+#else
+(
+ task_name_t target_task,
+ task_flavor_t flavor,
+ task_info_t task_info_out,
+ mach_msg_type_number_t *task_info_outCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_info
+#if defined(LINTLIBRARY)
+ (target_task, flavor, task_info_in, task_info_inCnt)
+ task_t target_task;
+ task_flavor_t flavor;
+ task_info_t task_info_in;
+ mach_msg_type_number_t task_info_inCnt;
+{ return task_set_info(target_task, flavor, task_info_in, task_info_inCnt); }
+#else
+(
+ task_t target_task,
+ task_flavor_t flavor,
+ task_info_t task_info_in,
+ mach_msg_type_number_t task_info_inCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_suspend */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_suspend
+#if defined(LINTLIBRARY)
+ (target_task)
+ task_t target_task;
+{ return task_suspend(target_task); }
+#else
+(
+ task_t target_task
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_resume */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_resume
+#if defined(LINTLIBRARY)
+ (target_task)
+ task_t target_task;
+{ return task_resume(target_task); }
+#else
+(
+ task_t target_task
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_get_special_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_get_special_port
+#if defined(LINTLIBRARY)
+ (task, which_port, special_port)
+ task_t task;
+ int which_port;
+ mach_port_t *special_port;
+{ return task_get_special_port(task, which_port, special_port); }
+#else
+(
+ task_t task,
+ int which_port,
+ mach_port_t *special_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_special_port */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_special_port
+#if defined(LINTLIBRARY)
+ (task, which_port, special_port)
+ task_t task;
+ int which_port;
+ mach_port_t special_port;
+{ return task_set_special_port(task, which_port, special_port); }
+#else
+(
+ task_t task,
+ int which_port,
+ mach_port_t special_port
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine thread_create */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t thread_create
+#if defined(LINTLIBRARY)
+ (parent_task, child_act)
+ task_t parent_task;
+ thread_act_t *child_act;
+{ return thread_create(parent_task, child_act); }
+#else
+(
+ task_t parent_task,
+ thread_act_t *child_act
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine thread_create_running */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t thread_create_running
+#if defined(LINTLIBRARY)
+ (parent_task, flavor, new_state, new_stateCnt, child_act)
+ task_t parent_task;
+ thread_state_flavor_t flavor;
+ thread_state_t new_state;
+ mach_msg_type_number_t new_stateCnt;
+ thread_act_t *child_act;
+{ return thread_create_running(parent_task, flavor, new_state, new_stateCnt, child_act); }
+#else
+(
+ task_t parent_task,
+ thread_state_flavor_t flavor,
+ thread_state_t new_state,
+ mach_msg_type_number_t new_stateCnt,
+ thread_act_t *child_act
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_exception_ports
+#if defined(LINTLIBRARY)
+ (task, exception_mask, new_port, behavior, new_flavor)
+ task_t task;
+ exception_mask_t exception_mask;
+ mach_port_t new_port;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+{ return task_set_exception_ports(task, exception_mask, new_port, behavior, new_flavor); }
+#else
+(
+ task_t task,
+ exception_mask_t exception_mask,
+ mach_port_t new_port,
+ exception_behavior_t behavior,
+ thread_state_flavor_t new_flavor
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_get_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_get_exception_ports
+#if defined(LINTLIBRARY)
+ (task, exception_mask, masks, masksCnt, old_handlers, old_behaviors, old_flavors)
+ task_t task;
+ exception_mask_t exception_mask;
+ exception_mask_array_t masks;
+ mach_msg_type_number_t *masksCnt;
+ exception_handler_array_t old_handlers;
+ exception_behavior_array_t old_behaviors;
+ exception_flavor_array_t old_flavors;
+{ return task_get_exception_ports(task, exception_mask, masks, masksCnt, old_handlers, old_behaviors, old_flavors); }
+#else
+(
+ task_t task,
+ exception_mask_t exception_mask,
+ exception_mask_array_t masks,
+ mach_msg_type_number_t *masksCnt,
+ exception_handler_array_t old_handlers,
+ exception_behavior_array_t old_behaviors,
+ exception_flavor_array_t old_flavors
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_swap_exception_ports */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_swap_exception_ports
+#if defined(LINTLIBRARY)
+ (task, exception_mask, new_port, behavior, new_flavor, masks, masksCnt, old_handlerss, old_behaviors, old_flavors)
+ task_t task;
+ exception_mask_t exception_mask;
+ mach_port_t new_port;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ exception_mask_array_t masks;
+ mach_msg_type_number_t *masksCnt;
+ exception_handler_array_t old_handlerss;
+ exception_behavior_array_t old_behaviors;
+ exception_flavor_array_t old_flavors;
+{ return task_swap_exception_ports(task, exception_mask, new_port, behavior, new_flavor, masks, masksCnt, old_handlerss, old_behaviors, old_flavors); }
+#else
+(
+ task_t task,
+ exception_mask_t exception_mask,
+ mach_port_t new_port,
+ exception_behavior_t behavior,
+ thread_state_flavor_t new_flavor,
+ exception_mask_array_t masks,
+ mach_msg_type_number_t *masksCnt,
+ exception_handler_array_t old_handlerss,
+ exception_behavior_array_t old_behaviors,
+ exception_flavor_array_t old_flavors
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine semaphore_create */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t semaphore_create
+#if defined(LINTLIBRARY)
+ (task, semaphore, policy, value)
+ task_t task;
+ semaphore_t *semaphore;
+ int policy;
+ int value;
+{ return semaphore_create(task, semaphore, policy, value); }
+#else
+(
+ task_t task,
+ semaphore_t *semaphore,
+ int policy,
+ int value
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine semaphore_destroy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t semaphore_destroy
+#if defined(LINTLIBRARY)
+ (task, semaphore)
+ task_t task;
+ semaphore_t semaphore;
+{ return semaphore_destroy(task, semaphore); }
+#else
+(
+ task_t task,
+ semaphore_t semaphore
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_policy_set */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_policy_set
+#if defined(LINTLIBRARY)
+ (task, flavor, policy_info, policy_infoCnt)
+ task_t task;
+ task_policy_flavor_t flavor;
+ task_policy_t policy_info;
+ mach_msg_type_number_t policy_infoCnt;
+{ return task_policy_set(task, flavor, policy_info, policy_infoCnt); }
+#else
+(
+ task_t task,
+ task_policy_flavor_t flavor,
+ task_policy_t policy_info,
+ mach_msg_type_number_t policy_infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_policy_get */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_policy_get
+#if defined(LINTLIBRARY)
+ (task, flavor, policy_info, policy_infoCnt, get_default)
+ task_t task;
+ task_policy_flavor_t flavor;
+ task_policy_t policy_info;
+ mach_msg_type_number_t *policy_infoCnt;
+ boolean_t *get_default;
+{ return task_policy_get(task, flavor, policy_info, policy_infoCnt, get_default); }
+#else
+(
+ task_t task,
+ task_policy_flavor_t flavor,
+ task_policy_t policy_info,
+ mach_msg_type_number_t *policy_infoCnt,
+ boolean_t *get_default
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_sample */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_sample
+#if defined(LINTLIBRARY)
+ (task, reply)
+ task_t task;
+ mach_port_t reply;
+{ return task_sample(task, reply); }
+#else
+(
+ task_t task,
+ mach_port_t reply
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_policy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_policy
+#if defined(LINTLIBRARY)
+ (task, policy, base, baseCnt, set_limit, change)
+ task_t task;
+ policy_t policy;
+ policy_base_t base;
+ mach_msg_type_number_t baseCnt;
+ boolean_t set_limit;
+ boolean_t change;
+{ return task_policy(task, policy, base, baseCnt, set_limit, change); }
+#else
+(
+ task_t task,
+ policy_t policy,
+ policy_base_t base,
+ mach_msg_type_number_t baseCnt,
+ boolean_t set_limit,
+ boolean_t change
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_ras_pc */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_ras_pc
+#if defined(LINTLIBRARY)
+ (target_task, basepc, boundspc)
+ task_t target_task;
+ vm_address_t basepc;
+ vm_address_t boundspc;
+{ return task_set_ras_pc(target_task, basepc, boundspc); }
+#else
+(
+ task_t target_task,
+ vm_address_t basepc,
+ vm_address_t boundspc
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_zone_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_zone_info
+#if defined(LINTLIBRARY)
+ (target_task, names, namesCnt, info, infoCnt)
+ task_t target_task;
+ mach_zone_name_array_t *names;
+ mach_msg_type_number_t *namesCnt;
+ task_zone_info_array_t *info;
+ mach_msg_type_number_t *infoCnt;
+{ return task_zone_info(target_task, names, namesCnt, info, infoCnt); }
+#else
+(
+ task_t target_task,
+ mach_zone_name_array_t *names,
+ mach_msg_type_number_t *namesCnt,
+ task_zone_info_array_t *info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_assign */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_assign
+#if defined(LINTLIBRARY)
+ (task, new_set, assign_threads)
+ task_t task;
+ processor_set_t new_set;
+ boolean_t assign_threads;
+{ return task_assign(task, new_set, assign_threads); }
+#else
+(
+ task_t task,
+ processor_set_t new_set,
+ boolean_t assign_threads
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_assign_default */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_assign_default
+#if defined(LINTLIBRARY)
+ (task, assign_threads)
+ task_t task;
+ boolean_t assign_threads;
+{ return task_assign_default(task, assign_threads); }
+#else
+(
+ task_t task,
+ boolean_t assign_threads
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_get_assignment */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_get_assignment
+#if defined(LINTLIBRARY)
+ (task, assigned_set)
+ task_t task;
+ processor_set_name_t *assigned_set;
+{ return task_get_assignment(task, assigned_set); }
+#else
+(
+ task_t task,
+ processor_set_name_t *assigned_set
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_policy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_policy
+#if defined(LINTLIBRARY)
+ (task, pset, policy, base, baseCnt, limit, limitCnt, change)
+ task_t task;
+ processor_set_t pset;
+ policy_t policy;
+ policy_base_t base;
+ mach_msg_type_number_t baseCnt;
+ policy_limit_t limit;
+ mach_msg_type_number_t limitCnt;
+ boolean_t change;
+{ return task_set_policy(task, pset, policy, base, baseCnt, limit, limitCnt, change); }
+#else
+(
+ task_t task,
+ processor_set_t pset,
+ policy_t policy,
+ policy_base_t base,
+ mach_msg_type_number_t baseCnt,
+ policy_limit_t limit,
+ mach_msg_type_number_t limitCnt,
+ boolean_t change
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_get_state */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_get_state
+#if defined(LINTLIBRARY)
+ (task, flavor, old_state, old_stateCnt)
+ task_t task;
+ thread_state_flavor_t flavor;
+ thread_state_t old_state;
+ mach_msg_type_number_t *old_stateCnt;
+{ return task_get_state(task, flavor, old_state, old_stateCnt); }
+#else
+(
+ task_t task,
+ thread_state_flavor_t flavor,
+ thread_state_t old_state,
+ mach_msg_type_number_t *old_stateCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_state */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_state
+#if defined(LINTLIBRARY)
+ (task, flavor, new_state, new_stateCnt)
+ task_t task;
+ thread_state_flavor_t flavor;
+ thread_state_t new_state;
+ mach_msg_type_number_t new_stateCnt;
+{ return task_set_state(task, flavor, new_state, new_stateCnt); }
+#else
+(
+ task_t task,
+ thread_state_flavor_t flavor,
+ thread_state_t new_state,
+ mach_msg_type_number_t new_stateCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_phys_footprint_limit */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_phys_footprint_limit
+#if defined(LINTLIBRARY)
+ (task, new_limit, old_limit)
+ task_t task;
+ int new_limit;
+ int *old_limit;
+{ return task_set_phys_footprint_limit(task, new_limit, old_limit); }
+#else
+(
+ task_t task,
+ int new_limit,
+ int *old_limit
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_suspend2 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_suspend2
+#if defined(LINTLIBRARY)
+ (target_task, suspend_token)
+ task_t target_task;
+ task_suspension_token_t *suspend_token;
+{ return task_suspend2(target_task, suspend_token); }
+#else
+(
+ task_t target_task,
+ task_suspension_token_t *suspend_token
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_resume2 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_resume2
+#if defined(LINTLIBRARY)
+ (suspend_token)
+ task_suspension_token_t suspend_token;
+{ return task_resume2(suspend_token); }
+#else
+(
+ task_suspension_token_t suspend_token
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_purgable_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_purgable_info
+#if defined(LINTLIBRARY)
+ (task, stats)
+ task_t task;
+ task_purgable_info_t *stats;
+{ return task_purgable_info(task, stats); }
+#else
+(
+ task_t task,
+ task_purgable_info_t *stats
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_get_mach_voucher */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_get_mach_voucher
+#if defined(LINTLIBRARY)
+ (task, which, voucher)
+ task_t task;
+ mach_voucher_selector_t which;
+ ipc_voucher_t *voucher;
+{ return task_get_mach_voucher(task, which, voucher); }
+#else
+(
+ task_t task,
+ mach_voucher_selector_t which,
+ ipc_voucher_t *voucher
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_set_mach_voucher */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_set_mach_voucher
+#if defined(LINTLIBRARY)
+ (task, voucher)
+ task_t task;
+ ipc_voucher_t voucher;
+{ return task_set_mach_voucher(task, voucher); }
+#else
+(
+ task_t task,
+ ipc_voucher_t voucher
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_swap_mach_voucher */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_swap_mach_voucher
+#if defined(LINTLIBRARY)
+ (task, new_voucher, old_voucher)
+ task_t task;
+ ipc_voucher_t new_voucher;
+ ipc_voucher_t *old_voucher;
+{ return task_swap_mach_voucher(task, new_voucher, old_voucher); }
+#else
+(
+ task_t task,
+ ipc_voucher_t new_voucher,
+ ipc_voucher_t *old_voucher
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__task_subsystem__defined
+#define __Request__task_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t ledgers;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t ledgersCnt;
+ boolean_t inherit_memory;
+ } __Request__task_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_terminate_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_threads_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t init_port_set;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t init_port_setCnt;
+ } __Request__mach_ports_register_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__mach_ports_lookup_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ task_flavor_t flavor;
+ mach_msg_type_number_t task_info_outCnt;
+ } __Request__task_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ task_flavor_t flavor;
+ mach_msg_type_number_t task_info_inCnt;
+ integer_t task_info_in[52];
+ } __Request__task_set_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_suspend_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_resume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int which_port;
+ } __Request__task_get_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t special_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int which_port;
+ } __Request__task_set_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__thread_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ thread_state_flavor_t flavor;
+ mach_msg_type_number_t new_stateCnt;
+ natural_t new_state[32];
+ } __Request__thread_create_running_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ } __Request__task_set_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ } __Request__task_get_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_port;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ exception_mask_t exception_mask;
+ exception_behavior_t behavior;
+ thread_state_flavor_t new_flavor;
+ } __Request__task_swap_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int policy;
+ int value;
+ } __Request__semaphore_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t semaphore;
+ /* end of the kernel processed data */
+ } __Request__semaphore_destroy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ task_policy_flavor_t flavor;
+ mach_msg_type_number_t policy_infoCnt;
+ integer_t policy_info[16];
+ } __Request__task_policy_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ task_policy_flavor_t flavor;
+ mach_msg_type_number_t policy_infoCnt;
+ boolean_t get_default;
+ } __Request__task_policy_get_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t reply;
+ /* end of the kernel processed data */
+ } __Request__task_sample_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ policy_t policy;
+ mach_msg_type_number_t baseCnt;
+ integer_t base[5];
+ boolean_t set_limit;
+ boolean_t change;
+ } __Request__task_policy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t basepc;
+ vm_address_t boundspc;
+ } __Request__task_set_ras_pc_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_zone_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_set;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t assign_threads;
+ } __Request__task_assign_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t assign_threads;
+ } __Request__task_assign_default_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_get_assignment_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t pset;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ policy_t policy;
+ mach_msg_type_number_t baseCnt;
+ integer_t base[5];
+ mach_msg_type_number_t limitCnt;
+ integer_t limit[1];
+ boolean_t change;
+ } __Request__task_set_policy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ thread_state_flavor_t flavor;
+ mach_msg_type_number_t old_stateCnt;
+ } __Request__task_get_state_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ thread_state_flavor_t flavor;
+ mach_msg_type_number_t new_stateCnt;
+ natural_t new_state[32];
+ } __Request__task_set_state_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ int new_limit;
+ } __Request__task_set_phys_footprint_limit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_suspend2_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_resume2_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__task_purgable_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_voucher_selector_t which;
+ } __Request__task_get_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t voucher;
+ /* end of the kernel processed data */
+ } __Request__task_set_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t new_voucher;
+ mach_msg_port_descriptor_t old_voucher;
+ /* end of the kernel processed data */
+ } __Request__task_swap_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__task_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__task_subsystem__defined
+#define __RequestUnion__task_subsystem__defined
+union __RequestUnion__task_subsystem {
+ __Request__task_create_t Request_task_create;
+ __Request__task_terminate_t Request_task_terminate;
+ __Request__task_threads_t Request_task_threads;
+ __Request__mach_ports_register_t Request_mach_ports_register;
+ __Request__mach_ports_lookup_t Request_mach_ports_lookup;
+ __Request__task_info_t Request_task_info;
+ __Request__task_set_info_t Request_task_set_info;
+ __Request__task_suspend_t Request_task_suspend;
+ __Request__task_resume_t Request_task_resume;
+ __Request__task_get_special_port_t Request_task_get_special_port;
+ __Request__task_set_special_port_t Request_task_set_special_port;
+ __Request__thread_create_t Request_thread_create;
+ __Request__thread_create_running_t Request_thread_create_running;
+ __Request__task_set_exception_ports_t Request_task_set_exception_ports;
+ __Request__task_get_exception_ports_t Request_task_get_exception_ports;
+ __Request__task_swap_exception_ports_t Request_task_swap_exception_ports;
+ __Request__semaphore_create_t Request_semaphore_create;
+ __Request__semaphore_destroy_t Request_semaphore_destroy;
+ __Request__task_policy_set_t Request_task_policy_set;
+ __Request__task_policy_get_t Request_task_policy_get;
+ __Request__task_sample_t Request_task_sample;
+ __Request__task_policy_t Request_task_policy;
+ __Request__task_set_ras_pc_t Request_task_set_ras_pc;
+ __Request__task_zone_info_t Request_task_zone_info;
+ __Request__task_assign_t Request_task_assign;
+ __Request__task_assign_default_t Request_task_assign_default;
+ __Request__task_get_assignment_t Request_task_get_assignment;
+ __Request__task_set_policy_t Request_task_set_policy;
+ __Request__task_get_state_t Request_task_get_state;
+ __Request__task_set_state_t Request_task_set_state;
+ __Request__task_set_phys_footprint_limit_t Request_task_set_phys_footprint_limit;
+ __Request__task_suspend2_t Request_task_suspend2;
+ __Request__task_resume2_t Request_task_resume2;
+ __Request__task_purgable_info_t Request_task_purgable_info;
+ __Request__task_get_mach_voucher_t Request_task_get_mach_voucher;
+ __Request__task_set_mach_voucher_t Request_task_set_mach_voucher;
+ __Request__task_swap_mach_voucher_t Request_task_swap_mach_voucher;
+};
+#endif /* !__RequestUnion__task_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__task_subsystem__defined
+#define __Reply__task_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t child_task;
+ /* end of the kernel processed data */
+ } __Reply__task_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_terminate_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t act_list;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t act_listCnt;
+ } __Reply__task_threads_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__mach_ports_register_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_ports_descriptor_t init_port_set;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t init_port_setCnt;
+ } __Reply__mach_ports_lookup_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t task_info_outCnt;
+ integer_t task_info_out[52];
+ } __Reply__task_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_suspend_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_resume_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t special_port;
+ /* end of the kernel processed data */
+ } __Reply__task_get_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_special_port_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t child_act;
+ /* end of the kernel processed data */
+ } __Reply__thread_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t child_act;
+ /* end of the kernel processed data */
+ } __Reply__thread_create_running_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t old_handlers[32];
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t masksCnt;
+ exception_mask_t masks[32];
+ exception_behavior_t old_behaviors[32];
+ thread_state_flavor_t old_flavors[32];
+ } __Reply__task_get_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t old_handlerss[32];
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t masksCnt;
+ exception_mask_t masks[32];
+ exception_behavior_t old_behaviors[32];
+ thread_state_flavor_t old_flavors[32];
+ } __Reply__task_swap_exception_ports_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t semaphore;
+ /* end of the kernel processed data */
+ } __Reply__semaphore_create_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__semaphore_destroy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_policy_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t policy_infoCnt;
+ integer_t policy_info[16];
+ boolean_t get_default;
+ } __Reply__task_policy_get_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_sample_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_policy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_ras_pc_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t names;
+ mach_msg_ool_descriptor_t info;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t namesCnt;
+ mach_msg_type_number_t infoCnt;
+ } __Reply__task_zone_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_assign_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_assign_default_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t assigned_set;
+ /* end of the kernel processed data */
+ } __Reply__task_get_assignment_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_policy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ mach_msg_type_number_t old_stateCnt;
+ natural_t old_state[32];
+ } __Reply__task_get_state_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_state_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int old_limit;
+ } __Reply__task_set_phys_footprint_limit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t suspend_token;
+ /* end of the kernel processed data */
+ } __Reply__task_suspend2_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_resume2_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ task_purgable_info_t stats;
+ } __Reply__task_purgable_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t voucher;
+ /* end of the kernel processed data */
+ } __Reply__task_get_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_set_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t old_voucher;
+ /* end of the kernel processed data */
+ } __Reply__task_swap_mach_voucher_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__task_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__task_subsystem__defined
+#define __ReplyUnion__task_subsystem__defined
+union __ReplyUnion__task_subsystem {
+ __Reply__task_create_t Reply_task_create;
+ __Reply__task_terminate_t Reply_task_terminate;
+ __Reply__task_threads_t Reply_task_threads;
+ __Reply__mach_ports_register_t Reply_mach_ports_register;
+ __Reply__mach_ports_lookup_t Reply_mach_ports_lookup;
+ __Reply__task_info_t Reply_task_info;
+ __Reply__task_set_info_t Reply_task_set_info;
+ __Reply__task_suspend_t Reply_task_suspend;
+ __Reply__task_resume_t Reply_task_resume;
+ __Reply__task_get_special_port_t Reply_task_get_special_port;
+ __Reply__task_set_special_port_t Reply_task_set_special_port;
+ __Reply__thread_create_t Reply_thread_create;
+ __Reply__thread_create_running_t Reply_thread_create_running;
+ __Reply__task_set_exception_ports_t Reply_task_set_exception_ports;
+ __Reply__task_get_exception_ports_t Reply_task_get_exception_ports;
+ __Reply__task_swap_exception_ports_t Reply_task_swap_exception_ports;
+ __Reply__semaphore_create_t Reply_semaphore_create;
+ __Reply__semaphore_destroy_t Reply_semaphore_destroy;
+ __Reply__task_policy_set_t Reply_task_policy_set;
+ __Reply__task_policy_get_t Reply_task_policy_get;
+ __Reply__task_sample_t Reply_task_sample;
+ __Reply__task_policy_t Reply_task_policy;
+ __Reply__task_set_ras_pc_t Reply_task_set_ras_pc;
+ __Reply__task_zone_info_t Reply_task_zone_info;
+ __Reply__task_assign_t Reply_task_assign;
+ __Reply__task_assign_default_t Reply_task_assign_default;
+ __Reply__task_get_assignment_t Reply_task_get_assignment;
+ __Reply__task_set_policy_t Reply_task_set_policy;
+ __Reply__task_get_state_t Reply_task_get_state;
+ __Reply__task_set_state_t Reply_task_set_state;
+ __Reply__task_set_phys_footprint_limit_t Reply_task_set_phys_footprint_limit;
+ __Reply__task_suspend2_t Reply_task_suspend2;
+ __Reply__task_resume2_t Reply_task_resume2;
+ __Reply__task_purgable_info_t Reply_task_purgable_info;
+ __Reply__task_get_mach_voucher_t Reply_task_get_mach_voucher;
+ __Reply__task_set_mach_voucher_t Reply_task_set_mach_voucher;
+ __Reply__task_swap_mach_voucher_t Reply_task_swap_mach_voucher;
+};
+#endif /* !__RequestUnion__task_subsystem__defined */
+
+#ifndef subsystem_to_name_map_task
+#define subsystem_to_name_map_task \
+ { "task_create", 3400 },\
+ { "task_terminate", 3401 },\
+ { "task_threads", 3402 },\
+ { "mach_ports_register", 3403 },\
+ { "mach_ports_lookup", 3404 },\
+ { "task_info", 3405 },\
+ { "task_set_info", 3406 },\
+ { "task_suspend", 3407 },\
+ { "task_resume", 3408 },\
+ { "task_get_special_port", 3409 },\
+ { "task_set_special_port", 3410 },\
+ { "thread_create", 3411 },\
+ { "thread_create_running", 3412 },\
+ { "task_set_exception_ports", 3413 },\
+ { "task_get_exception_ports", 3414 },\
+ { "task_swap_exception_ports", 3415 },\
+ { "semaphore_create", 3418 },\
+ { "semaphore_destroy", 3419 },\
+ { "task_policy_set", 3420 },\
+ { "task_policy_get", 3421 },\
+ { "task_sample", 3422 },\
+ { "task_policy", 3423 },\
+ { "task_set_ras_pc", 3427 },\
+ { "task_zone_info", 3428 },\
+ { "task_assign", 3429 },\
+ { "task_assign_default", 3430 },\
+ { "task_get_assignment", 3431 },\
+ { "task_set_policy", 3432 },\
+ { "task_get_state", 3433 },\
+ { "task_set_state", 3434 },\
+ { "task_set_phys_footprint_limit", 3435 },\
+ { "task_suspend2", 3436 },\
+ { "task_resume2", 3437 },\
+ { "task_purgable_info", 3438 },\
+ { "task_get_mach_voucher", 3439 },\
+ { "task_set_mach_voucher", 3440 },\
+ { "task_swap_mach_voucher", 3441 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _task_user_ */
Property changes on: trunk/include/mach/task.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/task_info.h
===================================================================
--- trunk/include/mach/task_info.h (rev 0)
+++ trunk/include/mach/task_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/task_info.h>
Property changes on: trunk/include/mach/task_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/task_policy.h
===================================================================
--- trunk/include/mach/task_policy.h (rev 0)
+++ trunk/include/mach/task_policy.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/task_policy.h>
Property changes on: trunk/include/mach/task_policy.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/task_special_ports.h
===================================================================
--- trunk/include/mach/task_special_ports.h (rev 0)
+++ trunk/include/mach/task_special_ports.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/task_special_ports.h>
Property changes on: trunk/include/mach/task_special_ports.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/thread_info.h
===================================================================
--- trunk/include/mach/thread_info.h (rev 0)
+++ trunk/include/mach/thread_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/thread_info.h>
Property changes on: trunk/include/mach/thread_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/thread_special_ports.h
===================================================================
--- trunk/include/mach/thread_special_ports.h (rev 0)
+++ trunk/include/mach/thread_special_ports.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/thread_special_ports.h>
Property changes on: trunk/include/mach/thread_special_ports.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/thread_status.h
===================================================================
--- trunk/include/mach/thread_status.h (rev 0)
+++ trunk/include/mach/thread_status.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/thread_status.h>
Property changes on: trunk/include/mach/thread_status.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/time_value.h
===================================================================
--- trunk/include/mach/time_value.h (rev 0)
+++ trunk/include/mach/time_value.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/time_value.h>
Property changes on: trunk/include/mach/time_value.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_attributes.h
===================================================================
--- trunk/include/mach/vm_attributes.h (rev 0)
+++ trunk/include/mach/vm_attributes.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_attributes.h>
Property changes on: trunk/include/mach/vm_attributes.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_behavior.h
===================================================================
--- trunk/include/mach/vm_behavior.h (rev 0)
+++ trunk/include/mach/vm_behavior.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_behavior.h>
Property changes on: trunk/include/mach/vm_behavior.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_inherit.h
===================================================================
--- trunk/include/mach/vm_inherit.h (rev 0)
+++ trunk/include/mach/vm_inherit.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_inherit.h>
Property changes on: trunk/include/mach/vm_inherit.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_map.h
===================================================================
--- trunk/include/mach/vm_map.h (rev 0)
+++ trunk/include/mach/vm_map.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,1471 @@
+#ifndef _vm_map_user_
+#define _vm_map_user_
+
+/* Module vm_map */
+
+#include <sys/cdefs.h>
+#include <sys/types.h>
+#ifdef _KERNEL
+#include <sys/mach/ndr.h>
+#include <sys/mach/kern_return.h>
+#include <sys/mach/notify.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach/message.h>
+#include <sys/mach/mig_errors.h>
+#else /* !_KERNEL */
+#include <string.h>
+#include <mach/ndr.h>
+#include <mach/boolean.h>
+#include <mach/kern_return.h>
+#include <mach/notify.h>
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <mach/mig_errors.h>
+#endif /*_KERNEL */
+
+#ifdef AUTOTEST
+#ifndef FUNCTION_PTR_T
+#define FUNCTION_PTR_T
+typedef void (*function_ptr_t)(mach_port_t, char *, mach_msg_type_number_t);
+typedef struct {
+ char *name;
+ function_ptr_t function;
+} function_table_entry;
+typedef function_table_entry *function_table_t;
+#endif /* FUNCTION_PTR_T */
+#endif /* AUTOTEST */
+
+#ifndef vm_map_MSG_COUNT
+#define vm_map_MSG_COUNT 31
+#endif /* vm_map_MSG_COUNT */
+
+#include <sys/mach/std_types.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/thread_status.h>
+#include <sys/mach/mig.h>
+#include <sys/mach/mach_types.h>
+#include <sys/mach_debug/mach_debug_types.h>
+#include <sys/mach/vm_types.h>
+
+#ifdef __BeforeMigUserHeader
+__BeforeMigUserHeader
+#endif /* __BeforeMigUserHeader */
+
+#include <sys/cdefs.h>
+__BEGIN_DECLS
+
+
+/* Routine vm_region */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_region
+#if defined(LINTLIBRARY)
+ (target_task, address, size, flavor, info, infoCnt, object_name)
+ mach_vm_map_t target_task;
+ vm_address_t *address;
+ vm_size_t *size;
+ vm_region_flavor_t flavor;
+ vm_region_info_t info;
+ mach_msg_type_number_t *infoCnt;
+ mach_port_t *object_name;
+{ return vm_region(target_task, address, size, flavor, info, infoCnt, object_name); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t *address,
+ vm_size_t *size,
+ vm_region_flavor_t flavor,
+ vm_region_info_t info,
+ mach_msg_type_number_t *infoCnt,
+ mach_port_t *object_name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_protect */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_protect
+#if defined(LINTLIBRARY)
+ (target_task, address, size, set_maximum, new_protection)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ boolean_t set_maximum;
+ vm_prot_t new_protection;
+{ return vm_protect(target_task, address, size, set_maximum, new_protection); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ boolean_t set_maximum,
+ vm_prot_t new_protection
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_inherit */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_inherit
+#if defined(LINTLIBRARY)
+ (target_task, address, size, new_inheritance)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_inherit_t new_inheritance;
+{ return vm_inherit(target_task, address, size, new_inheritance); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_inherit_t new_inheritance
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_read */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_read
+#if defined(LINTLIBRARY)
+ (target_task, address, size, data, dataCnt)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_offset_t *data;
+ mach_msg_type_number_t *dataCnt;
+{ return vm_read(target_task, address, size, data, dataCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_offset_t *data,
+ mach_msg_type_number_t *dataCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_read_list */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_read_list
+#if defined(LINTLIBRARY)
+ (target_task, data_list, count)
+ mach_vm_map_t target_task;
+ vm_read_entry_t data_list;
+ natural_t count;
+{ return vm_read_list(target_task, data_list, count); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_read_entry_t data_list,
+ natural_t count
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_write */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_write
+#if defined(LINTLIBRARY)
+ (target_task, address, data, dataCnt)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_offset_t data;
+ mach_msg_type_number_t dataCnt;
+{ return vm_write(target_task, address, data, dataCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_offset_t data,
+ mach_msg_type_number_t dataCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_copy */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_copy
+#if defined(LINTLIBRARY)
+ (target_task, source_address, size, dest_address)
+ mach_vm_map_t target_task;
+ vm_address_t source_address;
+ vm_size_t size;
+ vm_address_t dest_address;
+{ return vm_copy(target_task, source_address, size, dest_address); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t source_address,
+ vm_size_t size,
+ vm_address_t dest_address
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_read_overwrite */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_read_overwrite
+#if defined(LINTLIBRARY)
+ (target_task, address, size, data, outsize)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_address_t data;
+ vm_size_t *outsize;
+{ return vm_read_overwrite(target_task, address, size, data, outsize); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_address_t data,
+ vm_size_t *outsize
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_msync */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_msync
+#if defined(LINTLIBRARY)
+ (target_task, address, size, sync_flags)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_sync_t sync_flags;
+{ return vm_msync(target_task, address, size, sync_flags); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_sync_t sync_flags
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_behavior_set */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_behavior_set
+#if defined(LINTLIBRARY)
+ (target_task, address, size, new_behavior)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_behavior_t new_behavior;
+{ return vm_behavior_set(target_task, address, size, new_behavior); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_behavior_t new_behavior
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_machine_attribute */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_machine_attribute
+#if defined(LINTLIBRARY)
+ (target_task, address, size, attribute, value)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_size_t size;
+ vm_machine_attribute_t attribute;
+ vm_machine_attribute_val_t *value;
+{ return vm_machine_attribute(target_task, address, size, attribute, value); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_size_t size,
+ vm_machine_attribute_t attribute,
+ vm_machine_attribute_val_t *value
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_remap */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_remap
+#if defined(LINTLIBRARY)
+ (target_task, target_address, size, mask, flags, src_task, src_address, copy, cur_protection, max_protection, inheritance)
+ mach_vm_map_t target_task;
+ vm_address_t *target_address;
+ vm_size_t size;
+ vm_address_t mask;
+ int flags;
+ mach_vm_map_t src_task;
+ vm_address_t src_address;
+ boolean_t copy;
+ vm_prot_t *cur_protection;
+ vm_prot_t *max_protection;
+ vm_inherit_t inheritance;
+{ return vm_remap(target_task, target_address, size, mask, flags, src_task, src_address, copy, cur_protection, max_protection, inheritance); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t *target_address,
+ vm_size_t size,
+ vm_address_t mask,
+ int flags,
+ mach_vm_map_t src_task,
+ vm_address_t src_address,
+ boolean_t copy,
+ vm_prot_t *cur_protection,
+ vm_prot_t *max_protection,
+ vm_inherit_t inheritance
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine task_wire */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t task_wire
+#if defined(LINTLIBRARY)
+ (target_task, must_wire)
+ mach_vm_map_t target_task;
+ boolean_t must_wire;
+{ return task_wire(target_task, must_wire); }
+#else
+(
+ mach_vm_map_t target_task,
+ boolean_t must_wire
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_make_memory_entry */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_make_memory_entry
+#if defined(LINTLIBRARY)
+ (target_task, size, offset, permission, object_handle, parent_entry)
+ mach_vm_map_t target_task;
+ vm_size_t *size;
+ vm_offset_t offset;
+ vm_prot_t permission;
+ mem_entry_name_port_t *object_handle;
+ mem_entry_name_port_t parent_entry;
+{ return mach_make_memory_entry(target_task, size, offset, permission, object_handle, parent_entry); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_size_t *size,
+ vm_offset_t offset,
+ vm_prot_t permission,
+ mem_entry_name_port_t *object_handle,
+ mem_entry_name_port_t parent_entry
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_map_page_query */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_map_page_query
+#if defined(LINTLIBRARY)
+ (target_map, offset, disposition, ref_count)
+ mach_vm_map_t target_map;
+ vm_offset_t offset;
+ integer_t *disposition;
+ integer_t *ref_count;
+{ return vm_map_page_query(target_map, offset, disposition, ref_count); }
+#else
+(
+ mach_vm_map_t target_map,
+ vm_offset_t offset,
+ integer_t *disposition,
+ integer_t *ref_count
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_region_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_region_info
+#if defined(LINTLIBRARY)
+ (task, address, region, objects, objectsCnt)
+ mach_vm_map_t task;
+ vm_address_t address;
+ vm_info_region_t *region;
+ vm_info_object_array_t *objects;
+ mach_msg_type_number_t *objectsCnt;
+{ return mach_vm_region_info(task, address, region, objects, objectsCnt); }
+#else
+(
+ mach_vm_map_t task,
+ vm_address_t address,
+ vm_info_region_t *region,
+ vm_info_object_array_t *objects,
+ mach_msg_type_number_t *objectsCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_mapped_pages_info */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_mapped_pages_info
+#if defined(LINTLIBRARY)
+ (task, pages, pagesCnt)
+ mach_vm_map_t task;
+ page_address_array_t *pages;
+ mach_msg_type_number_t *pagesCnt;
+{ return vm_mapped_pages_info(task, pages, pagesCnt); }
+#else
+(
+ mach_vm_map_t task,
+ page_address_array_t *pages,
+ mach_msg_type_number_t *pagesCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_region_recurse */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_region_recurse
+#if defined(LINTLIBRARY)
+ (target_task, address, size, nesting_depth, info, infoCnt)
+ mach_vm_map_t target_task;
+ vm_address_t *address;
+ vm_size_t *size;
+ natural_t *nesting_depth;
+ vm_region_recurse_info_t info;
+ mach_msg_type_number_t *infoCnt;
+{ return vm_region_recurse(target_task, address, size, nesting_depth, info, infoCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t *address,
+ vm_size_t *size,
+ natural_t *nesting_depth,
+ vm_region_recurse_info_t info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_region_recurse_64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_region_recurse_64
+#if defined(LINTLIBRARY)
+ (target_task, address, size, nesting_depth, info, infoCnt)
+ mach_vm_map_t target_task;
+ vm_address_t *address;
+ vm_size_t *size;
+ natural_t *nesting_depth;
+ vm_region_recurse_info_t info;
+ mach_msg_type_number_t *infoCnt;
+{ return vm_region_recurse_64(target_task, address, size, nesting_depth, info, infoCnt); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t *address,
+ vm_size_t *size,
+ natural_t *nesting_depth,
+ vm_region_recurse_info_t info,
+ mach_msg_type_number_t *infoCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_vm_region_info_64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_vm_region_info_64
+#if defined(LINTLIBRARY)
+ (task, address, region, objects, objectsCnt)
+ mach_vm_map_t task;
+ vm_address_t address;
+ vm_info_region_64_t *region;
+ vm_info_object_array_t *objects;
+ mach_msg_type_number_t *objectsCnt;
+{ return mach_vm_region_info_64(task, address, region, objects, objectsCnt); }
+#else
+(
+ mach_vm_map_t task,
+ vm_address_t address,
+ vm_info_region_64_t *region,
+ vm_info_object_array_t *objects,
+ mach_msg_type_number_t *objectsCnt
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_region_64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_region_64
+#if defined(LINTLIBRARY)
+ (target_task, address, size, flavor, info, infoCnt, object_name)
+ mach_vm_map_t target_task;
+ vm_address_t *address;
+ vm_size_t *size;
+ vm_region_flavor_t flavor;
+ vm_region_info_t info;
+ mach_msg_type_number_t *infoCnt;
+ mach_port_t *object_name;
+{ return vm_region_64(target_task, address, size, flavor, info, infoCnt, object_name); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t *address,
+ vm_size_t *size,
+ vm_region_flavor_t flavor,
+ vm_region_info_t info,
+ mach_msg_type_number_t *infoCnt,
+ mach_port_t *object_name
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine mach_make_memory_entry_64 */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t mach_make_memory_entry_64
+#if defined(LINTLIBRARY)
+ (target_task, size, offset, permission, object_handle, parent_entry)
+ mach_vm_map_t target_task;
+ memory_object_size_t *size;
+ memory_object_offset_t offset;
+ vm_prot_t permission;
+ mach_port_t *object_handle;
+ mem_entry_name_port_t parent_entry;
+{ return mach_make_memory_entry_64(target_task, size, offset, permission, object_handle, parent_entry); }
+#else
+(
+ mach_vm_map_t target_task,
+ memory_object_size_t *size,
+ memory_object_offset_t offset,
+ vm_prot_t permission,
+ mach_port_t *object_handle,
+ mem_entry_name_port_t parent_entry
+);
+#endif /* defined(LINTLIBRARY) */
+
+/* Routine vm_purgable_control */
+#ifdef mig_external
+mig_external
+#else
+extern
+#endif /* mig_external */
+kern_return_t vm_purgable_control
+#if defined(LINTLIBRARY)
+ (target_task, address, control, state)
+ mach_vm_map_t target_task;
+ vm_address_t address;
+ vm_purgable_t control;
+ int *state;
+{ return vm_purgable_control(target_task, address, control, state); }
+#else
+(
+ mach_vm_map_t target_task,
+ vm_address_t address,
+ vm_purgable_t control,
+ int *state
+);
+#endif /* defined(LINTLIBRARY) */
+
+__END_DECLS
+
+/********************** Caution **************************/
+/* The following data types should be used to calculate */
+/* maximum message sizes only. The actual message may be */
+/* smaller, and the position of the arguments within the */
+/* message layout may vary from what is presented here. */
+/* For example, if any of the arguments are variable- */
+/* sized, and less than the maximum is sent, the data */
+/* will be packed tight in the actual message to reduce */
+/* the presence of holes. */
+/********************** Caution **************************/
+
+/* typedefs for all requests */
+
+#ifndef __Request__vm_map_subsystem__defined
+#define __Request__vm_map_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_region_flavor_t flavor;
+ mach_msg_type_number_t infoCnt;
+ } __Request__vm_region_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ boolean_t set_maximum;
+ vm_prot_t new_protection;
+ } __Request__vm_protect_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_inherit_t new_inheritance;
+ } __Request__vm_inherit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ } __Request__vm_read_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_read_entry_t data_list;
+ natural_t count;
+ } __Request__vm_read_list_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ mach_msg_type_number_t dataCnt;
+ } __Request__vm_write_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t source_address;
+ vm_size_t size;
+ vm_address_t dest_address;
+ } __Request__vm_copy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_address_t data;
+ } __Request__vm_read_overwrite_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_sync_t sync_flags;
+ } __Request__vm_msync_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_behavior_t new_behavior;
+ } __Request__vm_behavior_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ vm_machine_attribute_t attribute;
+ vm_machine_attribute_val_t value;
+ } __Request__vm_machine_attribute_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t src_task;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t target_address;
+ vm_size_t size;
+ vm_address_t mask;
+ int flags;
+ vm_address_t src_address;
+ boolean_t copy;
+ vm_inherit_t inheritance;
+ } __Request__vm_remap_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ boolean_t must_wire;
+ } __Request__task_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t parent_entry;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_size_t size;
+ vm_offset_t offset;
+ vm_prot_t permission;
+ } __Request__mach_make_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_offset_t offset;
+ } __Request__vm_map_page_query_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ } __Request__mach_vm_region_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ } __Request__vm_mapped_pages_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ } __Request__vm_region_recurse_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ } __Request__vm_region_recurse_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ } __Request__mach_vm_region_info_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_region_flavor_t flavor;
+ mach_msg_type_number_t infoCnt;
+ } __Request__vm_region_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t parent_entry;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ memory_object_size_t size;
+ memory_object_offset_t offset;
+ vm_prot_t permission;
+ } __Request__mach_make_memory_entry_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_purgable_t control;
+ int state;
+ } __Request__vm_purgable_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Request__vm_map_subsystem__defined */
+
+/* union of all requests */
+
+#ifndef __RequestUnion__vm_map_subsystem__defined
+#define __RequestUnion__vm_map_subsystem__defined
+union __RequestUnion__vm_map_subsystem {
+ __Request__vm_region_t Request_vm_region;
+ __Request__vm_protect_t Request_vm_protect;
+ __Request__vm_inherit_t Request_vm_inherit;
+ __Request__vm_read_t Request_vm_read;
+ __Request__vm_read_list_t Request_vm_read_list;
+ __Request__vm_write_t Request_vm_write;
+ __Request__vm_copy_t Request_vm_copy;
+ __Request__vm_read_overwrite_t Request_vm_read_overwrite;
+ __Request__vm_msync_t Request_vm_msync;
+ __Request__vm_behavior_set_t Request_vm_behavior_set;
+ __Request__vm_machine_attribute_t Request_vm_machine_attribute;
+ __Request__vm_remap_t Request_vm_remap;
+ __Request__task_wire_t Request_task_wire;
+ __Request__mach_make_memory_entry_t Request_mach_make_memory_entry;
+ __Request__vm_map_page_query_t Request_vm_map_page_query;
+ __Request__mach_vm_region_info_t Request_mach_vm_region_info;
+ __Request__vm_mapped_pages_info_t Request_vm_mapped_pages_info;
+ __Request__vm_region_recurse_t Request_vm_region_recurse;
+ __Request__vm_region_recurse_64_t Request_vm_region_recurse_64;
+ __Request__mach_vm_region_info_64_t Request_mach_vm_region_info_64;
+ __Request__vm_region_64_t Request_vm_region_64;
+ __Request__mach_make_memory_entry_64_t Request_mach_make_memory_entry_64;
+ __Request__vm_purgable_control_t Request_vm_purgable_control;
+};
+#endif /* !__RequestUnion__vm_map_subsystem__defined */
+/* typedefs for all replies */
+
+#ifndef __Reply__vm_map_subsystem__defined
+#define __Reply__vm_map_subsystem__defined
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_name;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ mach_msg_type_number_t infoCnt;
+ int info[10];
+ } __Reply__vm_region_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_protect_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_inherit_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t data;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t dataCnt;
+ } __Reply__vm_read_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_read_entry_t data_list;
+ } __Reply__vm_read_list_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_write_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_copy_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_size_t outsize;
+ } __Reply__vm_read_overwrite_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_msync_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__vm_behavior_set_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_machine_attribute_val_t value;
+ } __Reply__vm_machine_attribute_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_address_t target_address;
+ vm_prot_t cur_protection;
+ vm_prot_t max_protection;
+ } __Reply__vm_remap_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ } __Reply__task_wire_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_handle;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_size_t size;
+ } __Reply__mach_make_memory_entry_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ integer_t disposition;
+ integer_t ref_count;
+ } __Reply__vm_map_page_query_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t objects;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_info_region_t region;
+ mach_msg_type_number_t objectsCnt;
+ } __Reply__mach_vm_region_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t pages;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ mach_msg_type_number_t pagesCnt;
+ } __Reply__vm_mapped_pages_info_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_address_t address;
+ vm_size_t size;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ int info[19];
+ } __Reply__vm_region_recurse_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ vm_address_t address;
+ vm_size_t size;
+ natural_t nesting_depth;
+ mach_msg_type_number_t infoCnt;
+ int info[19];
+ } __Reply__vm_region_recurse_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_ool_descriptor_t objects;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_info_region_64_t region;
+ mach_msg_type_number_t objectsCnt;
+ } __Reply__mach_vm_region_info_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_name;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ vm_address_t address;
+ vm_size_t size;
+ mach_msg_type_number_t infoCnt;
+ int info[10];
+ } __Reply__vm_region_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ /* start of the kernel processed data */
+ mach_msg_body_t msgh_body;
+ mach_msg_port_descriptor_t object_handle;
+ /* end of the kernel processed data */
+ NDR_record_t NDR;
+ memory_object_size_t size;
+ } __Reply__mach_make_memory_entry_64_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+
+#ifdef __MigPackStructs
+#pragma pack(4)
+#endif
+ typedef struct {
+ mach_msg_header_t Head;
+ NDR_record_t NDR;
+ kern_return_t RetCode;
+ int state;
+ } __Reply__vm_purgable_control_t;
+#ifdef __MigPackStructs
+#pragma pack()
+#endif
+#endif /* !__Reply__vm_map_subsystem__defined */
+
+/* union of all replies */
+
+#ifndef __ReplyUnion__vm_map_subsystem__defined
+#define __ReplyUnion__vm_map_subsystem__defined
+union __ReplyUnion__vm_map_subsystem {
+ __Reply__vm_region_t Reply_vm_region;
+ __Reply__vm_protect_t Reply_vm_protect;
+ __Reply__vm_inherit_t Reply_vm_inherit;
+ __Reply__vm_read_t Reply_vm_read;
+ __Reply__vm_read_list_t Reply_vm_read_list;
+ __Reply__vm_write_t Reply_vm_write;
+ __Reply__vm_copy_t Reply_vm_copy;
+ __Reply__vm_read_overwrite_t Reply_vm_read_overwrite;
+ __Reply__vm_msync_t Reply_vm_msync;
+ __Reply__vm_behavior_set_t Reply_vm_behavior_set;
+ __Reply__vm_machine_attribute_t Reply_vm_machine_attribute;
+ __Reply__vm_remap_t Reply_vm_remap;
+ __Reply__task_wire_t Reply_task_wire;
+ __Reply__mach_make_memory_entry_t Reply_mach_make_memory_entry;
+ __Reply__vm_map_page_query_t Reply_vm_map_page_query;
+ __Reply__mach_vm_region_info_t Reply_mach_vm_region_info;
+ __Reply__vm_mapped_pages_info_t Reply_vm_mapped_pages_info;
+ __Reply__vm_region_recurse_t Reply_vm_region_recurse;
+ __Reply__vm_region_recurse_64_t Reply_vm_region_recurse_64;
+ __Reply__mach_vm_region_info_64_t Reply_mach_vm_region_info_64;
+ __Reply__vm_region_64_t Reply_vm_region_64;
+ __Reply__mach_make_memory_entry_64_t Reply_mach_make_memory_entry_64;
+ __Reply__vm_purgable_control_t Reply_vm_purgable_control;
+};
+#endif /* !__RequestUnion__vm_map_subsystem__defined */
+
+#ifndef subsystem_to_name_map_vm_map
+#define subsystem_to_name_map_vm_map \
+ { "vm_region", 3800 },\
+ { "vm_protect", 3803 },\
+ { "vm_inherit", 3804 },\
+ { "vm_read", 3805 },\
+ { "vm_read_list", 3806 },\
+ { "vm_write", 3807 },\
+ { "vm_copy", 3808 },\
+ { "vm_read_overwrite", 3809 },\
+ { "vm_msync", 3810 },\
+ { "vm_behavior_set", 3811 },\
+ { "vm_machine_attribute", 3813 },\
+ { "vm_remap", 3814 },\
+ { "task_wire", 3815 },\
+ { "mach_make_memory_entry", 3816 },\
+ { "vm_map_page_query", 3817 },\
+ { "mach_vm_region_info", 3818 },\
+ { "vm_mapped_pages_info", 3819 },\
+ { "vm_region_recurse", 3821 },\
+ { "vm_region_recurse_64", 3822 },\
+ { "mach_vm_region_info_64", 3823 },\
+ { "vm_region_64", 3824 },\
+ { "mach_make_memory_entry_64", 3825 },\
+ { "vm_purgable_control", 3830 }
+#endif
+
+#ifdef __AfterMigUserHeader
+__AfterMigUserHeader
+#endif /* __AfterMigUserHeader */
+
+#endif /* _vm_map_user_ */
Property changes on: trunk/include/mach/vm_map.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_prot.h
===================================================================
--- trunk/include/mach/vm_prot.h (rev 0)
+++ trunk/include/mach/vm_prot.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_prot.h>
Property changes on: trunk/include/mach/vm_prot.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_region.h
===================================================================
--- trunk/include/mach/vm_region.h (rev 0)
+++ trunk/include/mach/vm_region.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_region.h>
Property changes on: trunk/include/mach/vm_region.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_statistics.h
===================================================================
--- trunk/include/mach/vm_statistics.h (rev 0)
+++ trunk/include/mach/vm_statistics.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_statistics.h>
Property changes on: trunk/include/mach/vm_statistics.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_sync.h
===================================================================
--- trunk/include/mach/vm_sync.h (rev 0)
+++ trunk/include/mach/vm_sync.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach/vm_sync.h>
Property changes on: trunk/include/mach/vm_sync.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach/vm_types.h
===================================================================
--- trunk/include/mach/vm_types.h (rev 0)
+++ trunk/include/mach/vm_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,2 @@
+#include <sys/mach/vm_types.h>
+
Property changes on: trunk/include/mach/vm_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/Makefile
===================================================================
--- trunk/include/mach_debug/Makefile (rev 0)
+++ trunk/include/mach_debug/Makefile 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1,14 @@
+# $FreeBSD$
+
+NO_OBJ=
+INCS= hash_info.h \
+ ipc_info.h \
+ lockgroup_info.h \
+ mach_debug_types.defs \
+ mach_debug_types.h \
+ page_info.h \
+ vm_info.h \
+ zone_info.h
+INCSDIR=${INCLUDEDIR}/mach_debug
+
+.include <bsd.prog.mk>
Property changes on: trunk/include/mach_debug/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/hash_info.h
===================================================================
--- trunk/include/mach_debug/hash_info.h (rev 0)
+++ trunk/include/mach_debug/hash_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/hash_info.h>
Property changes on: trunk/include/mach_debug/hash_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/ipc_info.h
===================================================================
--- trunk/include/mach_debug/ipc_info.h (rev 0)
+++ trunk/include/mach_debug/ipc_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/ipc_info.h>
Property changes on: trunk/include/mach_debug/ipc_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/lockgroup_info.h
===================================================================
--- trunk/include/mach_debug/lockgroup_info.h (rev 0)
+++ trunk/include/mach_debug/lockgroup_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/lockgroup_info.h>
Property changes on: trunk/include/mach_debug/lockgroup_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/mach_debug_types.defs
===================================================================
--- trunk/include/mach_debug/mach_debug_types.defs (rev 0)
+++ trunk/include/mach_debug/mach_debug_types.defs 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/mach_debug_types.defs>
\ No newline at end of file
Added: trunk/include/mach_debug/mach_debug_types.h
===================================================================
--- trunk/include/mach_debug/mach_debug_types.h (rev 0)
+++ trunk/include/mach_debug/mach_debug_types.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/mach_debug_types.h>
Property changes on: trunk/include/mach_debug/mach_debug_types.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/page_info.h
===================================================================
--- trunk/include/mach_debug/page_info.h (rev 0)
+++ trunk/include/mach_debug/page_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/page_info.h>
Property changes on: trunk/include/mach_debug/page_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/vm_info.h
===================================================================
--- trunk/include/mach_debug/vm_info.h (rev 0)
+++ trunk/include/mach_debug/vm_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/vm_info.h>
Property changes on: trunk/include/mach_debug/vm_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/include/mach_debug/zone_info.h
===================================================================
--- trunk/include/mach_debug/zone_info.h (rev 0)
+++ trunk/include/mach_debug/zone_info.h 2016-01-03 17:33:38 UTC (rev 7396)
@@ -0,0 +1 @@
+#include <sys/mach_debug/zone_info.h>
Property changes on: trunk/include/mach_debug/zone_info.h
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list