summaryrefslogtreecommitdiff
path: root/lib/libc/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2019-12-21 05:23:39 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2019-12-21 05:23:39 +0000
commitb152682605c66991fc6639cf9f6b97e811044e8b (patch)
treedb7212cfd05a0db883cf2e11112ce9c1618ed84f /lib/libc/sys
parent49a649241ed4c6f3373c5a1752e0e635e1fb7a99 (diff)
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
Diffstat (limited to 'lib/libc/sys')
-rw-r--r--lib/libc/sys/madvise.28
-rw-r--r--lib/libc/sys/mmap.26
-rw-r--r--lib/libc/sys/mprotect.28
-rw-r--r--lib/libc/sys/msync.29
-rw-r--r--lib/libc/sys/munmap.28
5 files changed, 19 insertions, 20 deletions
diff --git a/lib/libc/sys/madvise.2 b/lib/libc/sys/madvise.2
index b253ecbe3f9..dbfd418b701 100644
--- a/lib/libc/sys/madvise.2
+++ b/lib/libc/sys/madvise.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: madvise.2,v 1.20 2019/01/11 18:46:30 deraadt Exp $
+.\" $OpenBSD: madvise.2,v 1.21 2019/12/21 05:23:38 jsg Exp $
.\" $NetBSD: madvise.2,v 1.7 1995/12/27 21:17:02 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)madvise.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: January 11 2019 $
+.Dd $Mdocdate: December 21 2019 $
.Dt MADVISE 2
.Os
.Sh NAME
@@ -101,8 +101,8 @@ system call conforms to
.Sh HISTORY
The
.Fn madvise
-function first appeared in
-.Bx 4.4 .
+function has been available since
+.Ox 2.7 .
The
.Fn posix_madvise
function first appeared in
diff --git a/lib/libc/sys/mmap.2 b/lib/libc/sys/mmap.2
index d920c6c0202..cdd744c0a0e 100644
--- a/lib/libc/sys/mmap.2
+++ b/lib/libc/sys/mmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mmap.2,v 1.64 2019/12/10 00:39:52 jsg Exp $
+.\" $OpenBSD: mmap.2,v 1.65 2019/12/21 05:23:38 jsg Exp $
.\" $NetBSD: mmap.2,v 1.5 1995/06/24 10:48:59 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mmap.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: December 10 2019 $
+.Dd $Mdocdate: December 21 2019 $
.Dt MMAP 2
.Os
.Sh NAME
@@ -318,7 +318,7 @@ A fully functional
.Fn mmap
system call first appeared in SunOS 4.0
and has been available since
-.Bx 4.4 .
+.Bx 4.3 Net/2 .
.Sh CAVEATS
.St -p1003.1-2008
specifies that references to pages beyond the end of a mapped object
diff --git a/lib/libc/sys/mprotect.2 b/lib/libc/sys/mprotect.2
index 8c4c10a4a1a..3a1ced1a109 100644
--- a/lib/libc/sys/mprotect.2
+++ b/lib/libc/sys/mprotect.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: mprotect.2,v 1.24 2019/01/11 18:46:30 deraadt Exp $
+.\" $OpenBSD: mprotect.2,v 1.25 2019/12/21 05:23:38 jsg Exp $
.\" $NetBSD: mprotect.2,v 1.6 1995/10/12 15:41:08 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)mprotect.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: January 11 2019 $
+.Dd $Mdocdate: December 21 2019 $
.Dt MPROTECT 2
.Os
.Sh NAME
@@ -124,8 +124,8 @@ function conforms to
.Sh HISTORY
The
.Fn mprotect
-function first appeared in
-.Bx 4.4 .
+function has been available since
+.Bx 4.3 Net/2 .
.Sh CAVEATS
The
.Ox
diff --git a/lib/libc/sys/msync.2 b/lib/libc/sys/msync.2
index 9eab83e2191..4da779f1898 100644
--- a/lib/libc/sys/msync.2
+++ b/lib/libc/sys/msync.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: msync.2,v 1.27 2019/12/10 00:49:26 jsg Exp $
+.\" $OpenBSD: msync.2,v 1.28 2019/12/21 05:23:38 jsg Exp $
.\" $NetBSD: msync.2,v 1.8 1995/10/12 15:41:09 jtc Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)msync.2 8.1 (Berkeley) 6/9/93
.\"
-.Dd $Mdocdate: December 10 2019 $
+.Dd $Mdocdate: December 21 2019 $
.Dt MSYNC 2
.Os
.Sh NAME
@@ -103,9 +103,8 @@ An I/O error occurred while writing.
.Sh HISTORY
The
.Fn msync
-function first appeared in SunOS 4.0
-and has been available since
-.Bx 4.4 .
+function has been available since
+.Bx 4.3 Net/2 .
It was modified to conform to
.St -p1003.1b-93
.Sh BUGS
diff --git a/lib/libc/sys/munmap.2 b/lib/libc/sys/munmap.2
index e60e43fef83..cc6cf4d1c39 100644
--- a/lib/libc/sys/munmap.2
+++ b/lib/libc/sys/munmap.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: munmap.2,v 1.18 2019/01/11 18:46:30 deraadt Exp $
+.\" $OpenBSD: munmap.2,v 1.19 2019/12/21 05:23:38 jsg Exp $
.\" $NetBSD: munmap.2,v 1.5 1995/02/27 12:35:03 cgd Exp $
.\"
.\" Copyright (c) 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)munmap.2 8.2 (Berkeley) 4/15/94
.\"
-.Dd $Mdocdate: January 11 2019 $
+.Dd $Mdocdate: December 21 2019 $
.Dt MUNMAP 2
.Os
.Sh NAME
@@ -81,8 +81,8 @@ function conforms to
.Sh HISTORY
The
.Fn munmap
-system call first appeared in
-.Bx 4.1c .
+system call has been available since
+.Bx 4.3 Net/2 .
.Sh CAVEATS
.St -p1003.1-2008
specifies that