Lines Matching refs:bsd_flags
72 int bsd_flags, error; in linux_mmap_common() local
79 bsd_flags = 0; in linux_mmap_common()
90 bsd_flags |= MAP_SHARED; in linux_mmap_common()
92 bsd_flags |= MAP_PRIVATE; in linux_mmap_common()
94 bsd_flags |= MAP_FIXED; in linux_mmap_common()
100 bsd_flags |= MAP_ANON; in linux_mmap_common()
102 bsd_flags |= MAP_NOSYNC; in linux_mmap_common()
104 bsd_flags |= MAP_STACK; in linux_mmap_common()
119 fd = (bsd_flags & MAP_ANON) ? -1 : fd; in linux_mmap_common()
212 if (addr != 0 && (bsd_flags & MAP_FIXED) == 0 && in linux_mmap_common()
213 (bsd_flags & MAP_EXCL) == 0) { in linux_mmap_common()
215 bsd_flags | MAP_FIXED | MAP_EXCL, fd, pos); in linux_mmap_common()
220 error = kern_mmap(td, addr, len, prot, bsd_flags, fd, pos); in linux_mmap_common()