#define MAP_NOEXTEND 0x0100 /* for MAP_FILE, don't change file size */
#define MAP_HASSEMAPHORE 0x0200 /* region may contain semaphores */
#define MAP_NOCACHE 0x0400 /* don't cache pages for this mapping */
+#define MAP_JIT 0x0800 /* Allocate a region that will be used for JIT purposes */
#endif /* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */
/*
#define MADV_WILLNEED POSIX_MADV_WILLNEED
#define MADV_DONTNEED POSIX_MADV_DONTNEED
#define MADV_FREE 5 /* pages unneeded, discard contents */
+#define MADV_ZERO_WIRED_PAGES 6 /* zero the wired pages that have not been unwired before the entry is deleted */
+#define MADV_FREE_REUSABLE 7 /* pages can be reused (by anyone) */
+#define MADV_FREE_REUSE 8 /* caller wants to reuse those pages */
+#define MADV_CAN_REUSE 9
/*
* Return bits from mincore
__END_DECLS
#else /* KERNEL */
-
+#ifdef XNU_KERNEL_PRIVATE
void pshm_cache_init(void) __attribute__((section("__TEXT, initcode"))); /* for bsd_init() */
void pshm_lock_init(void);
struct stat;
int pshm_stat(struct pshmnode *pnode, void *ub, int isstat64);
struct fileproc;
-int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, register_t *retval);
+int pshm_truncate(struct proc *p, struct fileproc *fp, int fd, off_t length, int32_t *retval);
+#endif /* XNU_KERNEL_PRIVATE */
#endif /* KERNEL */
#endif /* !_SYS_MMAN_H_ */