(flags & MAP_INHERIT) ? VM_INHERIT_COPY : VM_INHERIT_NONE);
(flags & MAP_SHARED) ? VM_INHERIT_SHARE : VM_INHERIT_COPY);
mmap (caddr_t addr, size_t len, int prot, int flags, int fd, off_t offset){  error_t err;  vm_prot_t vmprot;  vm_address_t mapaddr;  vmprot = VM_PROT_NONE;  if (prot & PROT_READ)    vmprot |= VM_PROT_READ;  if (prot & PROT_WRITE)    vmprot |= VM_PROT_WRITE;  if (prot & PROT_EXEC)    vmprot |= VM_PROT_EXECUTE;  mapaddr = (vm_address_t) addr;  err = __vm_map (__mach_task_self (),		  &mapaddr, (vm_size_t) len, 0 /*ELF_MACHINE_USER_ADDRESS_MASK*/,		  !(flags & MAP_FIXED),		  (mach_port_t) fd, (vm_offset_t) offset,		  flags & (MAP_COPY|MAP_PRIVATE),		  vmprot, VM_PROT_ALL,		  (flags & MAP_INHERIT) ? VM_INHERIT_COPY : VM_INHERIT_NONE);  return err ? (caddr_t) __hurd_fail (err) : (caddr_t) mapaddr;}