+#ifndef KERNEL
+/* load_shared_file and friends is deprecated */
+__BEGIN_DECLS
+int load_shared_file(char *, caddr_t, u_long,
+ caddr_t *, int, sf_mapping_t *, int *);
+int reset_shared_file(caddr_t *, int, sf_mapping_t *);
+int new_system_shared_regions(void);
+__END_DECLS
+#endif /* !KERNEL */
+
+#endif /* !defined(__LP64__) */
+
+/*
+ * All shared_region_* declarations are a private interface
+ * between dyld and the kernel.
+ *
+ */
+struct shared_file_mapping_np {
+ mach_vm_address_t sfm_address;
+ mach_vm_size_t sfm_size;
+ mach_vm_offset_t sfm_file_offset;
+ vm_prot_t sfm_max_prot;
+ vm_prot_t sfm_init_prot;
+};
+
+struct shared_region_range_np {
+ mach_vm_address_t srr_address;
+ mach_vm_size_t srr_size;
+};
+
+#ifndef KERNEL
+
+__BEGIN_DECLS
+int shared_region_map_file_np(int fd,
+ uint32_t mappingCount,
+ const struct shared_file_mapping_np *mappings,
+ int64_t *slide_p);
+int shared_region_make_private_np(uint32_t rangeCount,
+ const struct shared_region_range_np *ranges);
+__END_DECLS
+
+#endif /* !KERNEL */
+