.Em or Ns 'ing
the following values:
.Bl -tag -width MAP_HASSEMAPHORE
+.It Dv MAP_ANONYMOUS
+Synonym for
+.Dv MAP_ANON.
.It Dv MAP_ANON
Map anonymous memory not associated with any specific file.
The
.Nm mmap
are:
.Pp
-VM_FLAGS_PURGABLE to create Mach purgable (i.e. volatile) memory
+VM_FLAGS_PURGABLE to create Mach purgable (i.e. volatile) memory.
.Pp
-VM_MAKE_TAG(tag) to associate an 8-bit tag with the region
+VM_MAKE_TAG(tag) to associate an 8-bit tag with the region.
.br
<mach/vm_statistics.h> defines some preset tags (with a VM_MEMORY_ prefix).
Users are encouraged to use tags between 240 and 255.
Tags are used by tools such as vmmap(1) to help identify specific memory regions.
+.Pp
.It Dv MAP_FILE
Mapped from a regular file. (This is
the default mapping type, and need not be specified.)
The
.Fa len
argument
-was negative.
+was negative or zero. Historically, the system call would not return an error if the argument was zero.
+See other potential additional restrictions in the
+COMPATIBILITY section below.
.It Bq Er EINVAL
The
.Fa offset
parameter must specify either MAP_PRIVATE or MAP_SHARED.
.It
The
-.Fa size
+.Fa len
parameter must not be 0.
.It
The