* add syscall wrappers for some new OSX 10.10 specific calls
necp_match_policy
sysctlbyname
getattrlistbulk (kludged)
* add initial entries for the resync-filter on OSX 10.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14718 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/include/vki/vki-darwin.h b/include/vki/vki-darwin.h
index bacda44..ea50a77 100644
--- a/include/vki/vki-darwin.h
+++ b/include/vki/vki-darwin.h
@@ -1062,4 +1062,20 @@
//#define vki_errno_t
typedef int vki_errno_t;
+
+/* necp stuff. This doesn't appear to exist in any user space include
+ file. */
+#if DARWIN_VERS == DARWIN_10_10
+struct vki_necp_aggregate_result {
+ vki_u_int32_t field1;
+ unsigned int field2;
+ vki_u_int32_t field3;
+ vki_u_int32_t field4;
+ vki_uuid_t field5;
+ u_int32_t field6;
+ u_int32_t field7;
+};
+#endif /* DARWIN_VERS == DARWIN_10_10 */
+
+
#endif
diff --git a/include/vki/vki-scnums-darwin.h b/include/vki/vki-scnums-darwin.h
index 49cdcac..8eeca10 100644
--- a/include/vki/vki-scnums-darwin.h
+++ b/include/vki/vki-scnums-darwin.h
@@ -712,6 +712,7 @@
#endif /* DARWIN_VERS >= DARWIN_10_9 */
#if DARWIN_VERS == DARWIN_10_10
+#define __NR_necp_match_policy VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(460)
#define __NR_getattrlistbulk VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(461)
#define __NR_bsdthread_ctl VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(478)
#endif