History log of /openbsd/lib/libc/sys/mmap.2 (Results 1 – 25 of 70)
Revision Date Author Comments
# 1584d611 07-Oct-2022 jmc <jmc@openbsd.org>

sort SEE ALSO;


# f4d4d691 07-Oct-2022 deraadt <deraadt@openbsd.org>

Add mimmutable(2) libc stub, add & adjust manual pages, and crank the minor.
ok kettenis


# 41ce3b17 31-Mar-2022 naddy <naddy@openbsd.org>

man pages: add missing commas between subordinate and main clauses

jmc@ dislikes a comma before "then" in a conditional, so leave those
untouched.

ok jmc@


# 852d73fb 30-Jun-2021 schwarze <schwarze@openbsd.org>

more trivial .Ar -> .Fa replacements in syscall manuals


# fd874303 02-Mar-2021 deraadt <deraadt@openbsd.org>

document ENOTSUP wxallowed/wxneeded behaviour more clearly; ok kurt


# 7d5edd4c 21-Dec-2019 jsg <jsg@openbsd.org>

In "4.2BSD System Manual" (/usr/doc/sysman in 4.2BSD source)
mmap(), munman(), madvise() and mprotect() are described as planned for
later releases.

A fully functional mmap(2) supporting shared libr

In "4.2BSD System Manual" (/usr/doc/sysman in 4.2BSD source)
mmap(), munman(), madvise() and mprotect() are described as planned for
later releases.

A fully functional mmap(2) supporting shared libraries first appeared in
SunOS 4.0 along with msync(2). SunOS 4.1 added madvise(3) and replaced
msync(2) with mctl(2) which was was used to implement msync(3), mlock(3)
and munlock(3).

While some of these functions appear as empty or ifdef'd functions in
4.1cBSD and later it was not until the Mach VM was integrated with Net/2
that most of them were implemented. Though the CSRG releases never
supported shared libraries or madvise(). mlock()/munlock() were not in
Net/2 as they were added by hibler in 1993, but were in 4.4BSD.

madvise(2) was implemented for UVM in NetBSD 1.5 and ported to
OpenBSD 2.7.

For now instead of trying to accurately describe when interfaces
first appeared in other systems correct when they were first available
in CSRG or OpenBSD releases, retaining the text in mmap(2) discussing
SunOS 4.0.
madvise(2) 4.4BSD -> OpenBSD 2.7
mmap2(2) 4.4BSD -> 4.3BSD Net/2
mprotect(2) 4.4BSD -> 4.3BSD Net/2
msync(2) 4.4BSD -> 4.3BSD Net/2
munmap(2) 4.1cBSD -> 4.3BSD Net/2

show more ...


# 139d2993 10-Dec-2019 jsg <jsg@openbsd.org>

Adjust history text.

A fully functional mmap() system call first appeared in SunOS 4.0 and
has been available since 4.4BSD.

wording from and ok schwarze@ input from deraadt@


# dc534cd0 06-Dec-2019 jmc <jmc@openbsd.org>

replace links to uvm(9) to uvm_init(9); ok mpi


# d4db6826 11-Aug-2019 deraadt <deraadt@openbsd.org>

No specific called "exec(3)", so move primary manpage to a name which
does exist -- execv(3). Still call this a family but without "Nm".
Adjust Xr in various pages to refer to the precise function u

No specific called "exec(3)", so move primary manpage to a name which
does exist -- execv(3). Still call this a family but without "Nm".
Adjust Xr in various pages to refer to the precise function used
rather than the family, in most cases the semantics of execve(2) are
being referenced, so change the Xr.
ok jmc

show more ...


# de84e785 17-Mar-2019 cheloha <cheloha@openbsd.org>

Document MAP_CONCEAL. Prompted by jmc@. ok otto@ schwarze@.


# 54e4f6b9 11-Jan-2019 deraadt <deraadt@openbsd.org>

mincore() is a relic from the past, exposing physical machine information
about shared resources which no program should see. only a few pieces of
software use it, generally poorly thought out. the

mincore() is a relic from the past, exposing physical machine information
about shared resources which no program should see. only a few pieces of
software use it, generally poorly thought out. they are being fixed, so
mincore() can be deleted.
ok guenther tedu jca sthen, others

show more ...


# 20a49bc1 11-Feb-2018 jmc <jmc@openbsd.org>

macro fix;


# e027dae6 11-Feb-2018 deraadt <deraadt@openbsd.org>

Document how MAP_STACK will be used. All stacks must be mmap'd with
this attribute. The kernel does so for main-process stacks at execve() time,
pthread stack functions do so for new stacks, and st

Document how MAP_STACK will be used. All stacks must be mmap'd with
this attribute. The kernel does so for main-process stacks at execve() time,
pthread stack functions do so for new stacks, and stacks provided to
sigaltstack() and other user-provided stacks will need to be allocated
in that way.
Not required yet, but paving the way.
Work done with stefan

show more ...


# aaeccf36 12-Jan-2018 deraadt <deraadt@openbsd.org>

Adjust references for sysctl(3) to sysctl(2)


# 6f360336 20-Jul-2017 bluhm <bluhm@openbsd.org>

Accessing a mmap(2)ed file behind its end should result in a SIGBUS
according to POSIX. Bring regression test and kernel in line for
amd64 and i386. Other architectures have to follow.
OK deraadt@

Accessing a mmap(2)ed file behind its end should result in a SIGBUS
according to POSIX. Bring regression test and kernel in line for
amd64 and i386. Other architectures have to follow.
OK deraadt@ kettenis@

show more ...


# 38217894 05-Apr-2017 millert <millert@openbsd.org>

Not all devices support mmap, document EINVAL in this case too.
OK deraadt@


# 3813e5fd 11-Mar-2017 jmc <jmc@openbsd.org>

shuffle back: wxabort is described in sysctl(3);


# f5dcf0c0 11-Mar-2017 deraadt <deraadt@openbsd.org>

repair Xr, and point to sysctl(8) instead because sysctl(3) fails to
document kern.wxabort
from michael reed


# 9f25ea04 27-May-2016 deraadt <deraadt@openbsd.org>

W^X violations are no longer permitted by default. A kernel log message
is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag
kern.wxabort is set then a SIGABRT occurs instead, for

W^X violations are no longer permitted by default. A kernel log message
is generated, and mprotect/mmap return ENOTSUP. If the sysctl(8) flag
kern.wxabort is set then a SIGABRT occurs instead, for gdb use or coredump
creation.

W^X violating programs can be permitted on a ffs/nfs filesystem-basis,
using the "wxallowed" mount option. One day far in the future
upstream software developers will understand that W^X violations are a
tremendously risky practice and that style of programming will be
banished outright. Until then, we recommend most users need to use the
wxallowed option on their /usr/local filesystem. At least your other
filesystems don't permit such programs.

ok jca kettenis mlarkin natano

show more ...


# d7214206 10-Jul-2014 matthew <matthew@openbsd.org>

Add MAP_ANONYMOUS as a synonym for MAP_ANON, per POSIX proposal

ok miod


# 2d197172 02-Jul-2014 matthew <matthew@openbsd.org>

Various small typographic fixes for mman.h manual pages:

Use .Fn instead of .Nm as appropriate
Use .In for include lines
Use .Rv -std where possible
Use .Xr to refer to functions from other manual p

Various small typographic fixes for mman.h manual pages:

Use .Fn instead of .Nm as appropriate
Use .In for include lines
Use .Rv -std where possible
Use .Xr to refer to functions from other manual pages
Remove extraneous sys/types.h include

More substantive changes to follow.

Discussed with schwarze

show more ...


# 37987a56 02-Jul-2014 matthew <matthew@openbsd.org>

Sync description of PROT_* flags between mmap.2 and mprotect.2

ok guenther


# e357b78b 27-Jun-2014 jmc <jmc@openbsd.org>

zap unneccessary punctuation;


# dd1d8eda 27-Jun-2014 matthew <matthew@openbsd.org>

OpenBSD supports mmap() on block special files too.


# 51477fcf 27-Jun-2014 matthew <matthew@openbsd.org>

Split out mmap's compatibility flags into a separate section, so users
aren't misled into thinking they're useful on OpenBSD.


123