The NetBSD Project

CVS log for src/sys/sys/mman.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.65 / (download) - annotate - [select for diffs], Sun Feb 18 16:55:02 2024 UTC (7 days, 12 hours ago) by rillig
Branch: MAIN
CVS Tags: HEAD
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

mman.h: fix snprintb description for alignment 2^60

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jul 10 18:22:31 2023 UTC (7 months, 2 weeks ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation
Changes since 1.63: +1 -19 lines
Diff to previous 1.63 (colored)

remove struct memfd definition

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jul 10 02:31:55 2023 UTC (7 months, 2 weeks ago) by christos
Branch: MAIN
Changes since 1.62: +27 -2 lines
Diff to previous 1.62 (colored)

Add memfd_create(2) from GSoC 2023 by Theodore Preduta

Revision 1.53.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:03 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.53.4.1: +2 -2 lines
Diff to previous 1.53.4.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Merge changes from current as of 20200406

Revision 1.62 / (download) - annotate - [select for diffs], Fri Dec 6 19:37:43 2019 UTC (4 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

Adjust snprintb(3) format from '%d' to '%ju' to reflect reality and so that
it works on big endian machines.

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:57 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.53: +45 -33 lines
Diff to previous 1.53 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Tue Apr 30 09:23:00 2019 UTC (4 years, 9 months ago) by uwe
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Format MAP_FMT so that it's more humanly readable - missed one bit in
previous.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Apr 29 23:12:12 2019 UTC (4 years, 9 months ago) by uwe
Branch: MAIN
Changes since 1.59: +43 -44 lines
Diff to previous 1.59 (colored)

Format MAP_FMT so that it's more humanly readable.
Same object code is generated for kdump.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Apr 29 07:55:38 2019 UTC (4 years, 9 months ago) by kre
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored)

snprintb(3) says that, in the new(?) Torek format, all fields specs end with \0
The F spec is one of those, it should be terminated with \0 just like all
the others (irrelevant that it has no extra data to delimit).

Fix <sys/mman.h> to define the snprintb() format string correctly (include
the missing \0's).   Fix the copy of that definition included into
snprintb(3) to match the updated mman.h version (ride the date bump
from the day before yesterday .. this is the same change, just corrected).

Undo the previous snprintb.c change ("off by one" fix) which was an
attempt to make the broken mman.h usage work (and did, but not the way
it should be done).   Also, after using the new * format (instead of only
when something has already matched) skip the associated data so we don't
attempt to interpret it as more field specifiers.  This func needs lots of TLC!

Fix the ATF tests for snprintb() to not assume that F format is really
exactly like f format, and has data after the field specifier.  It doesn't.
Add several more tests (including testing the '*' field operator
recently added).

Revision 1.58 / (download) - annotate - [select for diffs], Sat Apr 27 17:53:26 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (colored)

provide 1,2,4,8M entries since this are popular for loading text and data
in ELF.

Revision 1.57 / (download) - annotate - [select for diffs], Sat Apr 27 17:47:48 2019 UTC (4 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.56: +11 -1 lines
Diff to previous 1.56 (colored)

Add more cases for the small alignments (useful because they cover popular
page-sizes), and add a default case.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Apr 4 07:51:54 2019 UTC (4 years, 10 months ago) by pgoyette
Branch: MAIN
CVS Tags: isaki-audio2-base, isaki-audio2
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Fix a typo in a comment: s/avissory/advisory/

NFCI

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Sat Jul 28 04:38:12 2018 UTC (5 years, 7 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jul 9 00:46:19 2018 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

cast align result to int, since the flags argument is expected to be an int.
From Kamil

Revision 1.54 / (download) - annotate - [select for diffs], Wed Jul 4 01:17:32 2018 UTC (5 years, 7 months ago) by kamil
Branch: MAIN
Changes since 1.53: +2 -2 lines
Diff to previous 1.53 (colored)

Avoid undefined operation in signed integer shift in MAP_ALIGNED()

Cast the shifted byte to unsigned int.

sys/uvm/uvm_mmap.c:914:19, left shift of 255 by 24 places cannot be represented in type 'int'

Detected with Kernel Undefined Behavior Sanitizer.

Reported by <Harry Pantazis>

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jan 24 09:04:45 2018 UTC (6 years, 1 month ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Remove port-acorn26

OK core@

Revision 1.44.6.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:20 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.44.6.1: +45 -8 lines
Diff to previous 1.44.6.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

update from HEAD

Revision 1.48.4.3 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:16 2017 UTC (6 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.48.4.2: +13 -9 lines
Diff to previous 1.48.4.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

Sync with HEAD

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Thu May 11 02:58:41 2017 UTC (6 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.50.8.1: +12 -1 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored)

Sync with HEAD

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 6 21:34:52 2017 UTC (6 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.51: +12 -1 lines
Diff to previous 1.51 (colored)

Extend the mmap(2) interface to allow requesting protections for later
use with mprotect(2), but without enabling them immediately.

Extend the mremap(2) interface to allow duplicating mappings, i.e.
create a second range of virtual addresses references the same physical
pages. Duplicated mappings can have different effective protections.

Adjust PAX mprotect logic to disallow effective protections of W&X, but
allow one mapping W and another X protections. This obsoletes using
temporary files for purposes like JIT.

Adjust PAX logic for mmap(2) and mprotect(2) to fail if W&X is requested
and not silently drop the X protection.

Improve test cases to ensure correct operation of the changed
interfaces.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Tue May 2 03:19:22 2017 UTC (6 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.50: +2 -9 lines
Diff to previous 1.50 (colored)

Sync with HEAD - tag prg-localcount2-base1

Revision 1.51 / (download) - annotate - [select for diffs], Sat Apr 29 01:17:47 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base1
Changes since 1.50: +2 -9 lines
Diff to previous 1.50 (colored)

MAP_COPY moved to compat

Revision 1.48.4.2 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:24 2016 UTC (7 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.48.4.1: +8 -1 lines
Diff to previous 1.48.4.1 (colored) to branchpoint 1.48 (colored)

Sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jun 1 00:46:44 2016 UTC (7 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.49: +8 -1 lines
Diff to previous 1.49 (colored)

Add more alignments

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Fri Apr 22 15:44:19 2016 UTC (7 years, 10 months ago) by skrll
Branch: nick-nhusb
Changes since 1.48: +27 -1 lines
Diff to previous 1.48 (colored)

Sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Sat Mar 19 18:44:10 2016 UTC (7 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422
Changes since 1.48: +27 -1 lines
Diff to previous 1.48 (colored)

Add MAP_FMT

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:44 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.44: +8 -4 lines
Diff to previous 1.44 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:54 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.45: +6 -4 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Rebase.

Revision 1.48 / (download) - annotate - [select for diffs], Sun Aug 3 19:14:24 2014 UTC (9 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Branch point for: nick-nhusb
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored)

defintion -> definition

Revision 1.47 / (download) - annotate - [select for diffs], Fri Jul 18 12:36:57 2014 UTC (9 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

Add MAP_INHERIT_ZERO

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jun 30 21:46:33 2014 UTC (9 years, 7 months ago) by matt
Branch: MAIN
Changes since 1.45: +3 -2 lines
Diff to previous 1.45 (colored)

Use MAP_ANONYNOUS (POSIX).  Define MAP_ANON as MAP_ANONYMOUS.

Revision 1.42.16.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:18 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.42: +3 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.44.10.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:21 2014 UTC (9 years, 9 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 19 19:11:50 2013 UTC (10 years, 2 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

Add shm_open(3) and shm_unlink(3) to support POSIX shared memory objects.
They are implemented using tmpfs (mounted at /var/shm).

Discussed on tech-{kern,userlevel} (quite a while ago).

Revision 1.42.20.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:49 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.42: +1 -1 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

merge to -current.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jan 5 15:19:52 2012 UTC (12 years, 1 month ago) by reinoud
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.43: +1 -9 lines
Diff to previous 1.43 (colored)

Revert MAP_NOSYSCALLS patch.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Dec 20 15:39:35 2011 UTC (12 years, 2 months ago) by reinoud
Branch: MAIN
Changes since 1.42: +9 -1 lines
Diff to previous 1.42 (colored)

Add a MAP_NOSYSCALLS flag to mmap. This flag prohibits executing of system
calls from the mapped region. This can be used for emulation perposed or for
extra security in the case of generated code.

Its implemented by adding mapping-attributes to each uvm_map_entry. These can
then be queried when needed.

Currently the MAP_NOSYSCALLS is only implemented for x86 but other
architectures are easy to adapt; see the sys/arch/x86/x86/syscall.c patch.
Port maintainers are encouraged to add them for their processor ports too.
When this feature is not yet implemented for an architecture the
MAP_NOSYSCALLS is simply ignored with virtually no cpu cost..

Revision 1.40.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:14:35 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.40.2.1: +2 -2 lines
Diff to previous 1.40.2.1 (colored) to branchpoint 1.40 (colored) next main 1.41 (colored)

sync with head.

Revision 1.41.10.1 / (download) - annotate - [select for diffs], Mon Feb 2 19:44:33 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Pull up following revision(s) (requested by ad in ticket #363):
	sys/sys/mman.h: revision 1.42
Put mremap into the _NETBSD_SOURCE section.

Revision 1.41.8.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:20:30 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Sync with HEAD.

Revision 1.39.28.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:40 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.39.28.1: +1 -1 lines
Diff to previous 1.39.28.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

Revision 1.41.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:35 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Nov 18 22:13:49 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base7, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, haad-nbase2, haad-dm-base2, haad-dm-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Put mremap into the _NETBSD_SOURCE section.

Revision 1.39.28.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:33 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.39: +24 -11 lines
Diff to previous 1.39 (colored)

Sync with HEAD.

Revision 1.39.30.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:49 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.39: +24 -11 lines
Diff to previous 1.39 (colored) next main 1.40 (colored)

sync with head.

Revision 1.40.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:51 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.40: +21 -18 lines
Diff to previous 1.40 (colored)

sync with head.

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 5 03:12:24 2008 UTC (15 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Changes since 1.40: +21 -18 lines
Diff to previous 1.40 (colored)

Move the values to POSIX_* and use the constants for MADV_*, since these
are inside _NETBSD_SOURCE ifdef.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Apr 22 10:42:16 2008 UTC (15 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.39: +13 -3 lines
Diff to previous 1.39 (colored)

Add posix_madvise(2) and appropriate definitions in sys/mman.h header.
This interface is identical to madvise(2), however, is defined by POSIX.
Partially sync madvise(2) man page with FreeBSD.

Reviewed by <mrg>.

Revision 1.35.6.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:46:28 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.35.6.2: +2 -1 lines
Diff to previous 1.35.6.2 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

sync with head.

Revision 1.38.12.1 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:18 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 17 17:42:07 2007 UTC (16 years, 7 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.38: +2 -1 lines
Diff to previous 1.38 (colored)

Add native mremap system call based on the UVM implementation for
Linux compat. Add code to enforce alignment of the new location.
Special thanks to wizd for helping with the man page.

Revision 1.35.6.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:55 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.35.6.1: +2 -1 lines
Diff to previous 1.35.6.1 (colored) to branchpoint 1.35 (colored)

sync with head.

Revision 1.37.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:59:42 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with head

Revision 1.37.8.1 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:56 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

sync with head.

Revision 1.38 / (download) - annotate - [select for diffs], Wed Aug 30 11:35:21 2006 UTC (17 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, thorpej-atomic-base, thorpej-atomic, rpaulo-netinet-merge-pcb-base, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

Regen.

Revision 1.35.6.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:03 2006 UTC (17 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.35: +2 -5 lines
Diff to previous 1.35 (colored)

sync with head.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:20 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pdpolicy, rpaulo-netinet-merge-pcb
Changes since 1.36: +1 -1 lines
Diff to previous 1.36 (colored)

merge ktrace-lwp.

Revision 1.32.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:12 2005 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.4: +2 -5 lines
Diff to previous 1.32.2.4 (colored) next main 1.33 (colored)

Sync with HEAD. Here we go again...

Revision 1.36 / (download) - annotate - [select for diffs], Tue Sep 13 01:42:51 2005 UTC (18 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.35: +2 -5 lines
Diff to previous 1.35 (colored)

compat code reorg.

Revision 1.34.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:37 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with -current

Revision 1.34.10.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:55 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

sync with head.

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Fri Feb 4 11:48:06 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.3: +14 -14 lines
Diff to previous 1.32.2.3 (colored)

Sync with HEAD.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Feb 3 19:20:01 2005 UTC (19 years ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Branch point for: yamt-lazymbuf
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored)

de-__P

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:38:47 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.2: +1 -1 lines
Diff to previous 1.32.2.2 (colored)

Fix the sync with head I botched.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:56:30 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.1: +0 -0 lines
Diff to previous 1.32.2.1 (colored)

Sync with HEAD.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:56:29 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32: +3 -6 lines
Diff to previous 1.32 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Tue Oct 7 00:17:09 2003 UTC (20 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

Add a MAP_WIRED flag to mmap(2), which causes the new mapping to be
wired as if by mlock(2).

Revision 1.28.18.1 / (download) - annotate - [select for diffs], Sun Aug 17 10:14:59 2003 UTC (20 years, 6 months ago) by tron
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored) next main 1.29 (colored)

Pull up revision 1.32 (requested by tv in ticket #1420):
PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 7 16:34:08 2003 UTC (20 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.32: +2 -6 lines
Diff to previous 1.32 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jun 23 21:32:33 2003 UTC (20 years, 8 months ago) by christos
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.31: +2 -1 lines
Diff to previous 1.31 (colored)

PR/21948: Todd Vierling: Implement MAP_TRYFIXED for linux emulation.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 28 23:16:28 2003 UTC (20 years, 10 months ago) by bjh21
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

Add a new feature-test macro, _NETBSD_SOURCE.  If this is defined
by the application, all NetBSD interfaces are made visible, even
if some other feature-test macro (like _POSIX_C_SOURCE) is defined.
<sys/featuretest.h> defined _NETBSD_SOURCE if none of _ANSI_SOURCE,
_POSIX_C_SOURCE and _XOPEN_SOURCE is defined, so as to preserve
existing behaviour.

This has two major advantages:
+ Programs that require non-POSIX facilities but define _POSIX_C_SOURCE
  can trivially be overruled by putting -D_NETBSD_SOURCE in their CFLAGS.
+ It makes most of the #ifs simpler, in that they're all now ORs of the
  various macros, rather than having checks for (!defined(_ANSI_SOURCE) ||
  !defined(_POSIX_C_SOURCE) || !defined(_XOPEN_SOURCE)) all over the place.

I've tried not to change the semantics of the headers in any case where
_NETBSD_SOURCE wasn't defined, but there were some places where the
current semantics were clearly mad, and retaining them was harder than
correcting them.  In particular, I've mostly normalised things so that
_ANSI_SOURCE gets you the smallest set of stuff, then _POSIX_C_SOURCE,
_XOPEN_SOURCE and _NETBSD_SOURCE in that order.

Tested by building for vax, encouraged by thorpej, and uncontested in
tech-userlevel for a week.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 10 21:35:20 2003 UTC (20 years, 10 months ago) by atatat
Branch: MAIN
Changes since 1.29: +1 -2 lines
Diff to previous 1.29 (colored)

Remove MAP_NOEXTEND.  Its existence in sys/mman.h (which ended before
you read this) was the only reference to it in the entire source tree.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 6 00:41:51 2003 UTC (20 years, 11 months ago) by matt
Branch: MAIN
Changes since 1.28: +15 -1 lines
Diff to previous 1.28 (colored)

Add support for mmap(2) to be able to return memory aligned on a 2^n
boundary.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:11:32 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.24: +23 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.28 / (download) - annotate - [select for diffs], Wed Oct 18 01:43:18 2000 UTC (23 years, 4 months ago) by assar
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf, newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, nathanw_sa_end, nathanw_sa_before_merge, nathanw_sa_base, nathanw_sa, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, kqueue, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: netbsd-1-6
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

add missing semicolon to typedef of mode_t

Revision 1.24.12.1 / (download) - annotate - [select for diffs], Sat Aug 5 11:10:43 2000 UTC (23 years, 6 months ago) by wiz
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.24: +10 -1 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

Apply patch (approved by jhawk and thorpej):

Rename VM_INHERIT_* to MAP_INHERIT_* and move them to sys/sys/mman.h as
discussed on tech-kern.
Retire sys/vm/vm_inherit.h, update man page for minherit(2).

The patch includes approximately the following diffs (approximately
since -current already used uvm/uvm_inherit.h):
minherit.2:	1.4 -> 1.8
mman.h:		1.26 -> 1.27
powerpc/include/db_machdep.h:	1.7 -> 1.8
pc532/include/db_machdep.h:	1.12 -> 1.13

Revision 1.27 / (download) - annotate - [select for diffs], Tue Aug 1 00:53:08 2000 UTC (23 years, 7 months ago) by wiz
Branch: MAIN
Changes since 1.26: +10 -1 lines
Diff to previous 1.26 (colored)

Rename VM_INHERIT_* to MAP_INHERIT_* and move them to sys/sys/mman.h as
discussed on tech-kern.
Retire sys/uvm/uvm_inherit.h, update man page for minherit(2).

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jul 28 09:33:28 2000 UTC (23 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Avoid recursion with traditional cpp.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jun 26 16:54:38 2000 UTC (23 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.24: +14 -1 lines
Diff to previous 1.24 (colored)

Provide local definitions of mode_t and off_t, thus eliminating the need
for an application to include <sys/types.h> first.

Revision 1.20.6.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:36:18 1999 UTC (24 years, 3 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:55:59 1999 UTC (24 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.20.4.1: +2 -1 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

Update from trunk.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jul 7 06:02:21 1999 UTC (24 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi, netbsd-1-5
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add some more meat to madvise(2):
* Implement MADV_DONTNEED: deactivate pages in the specified range,
  semantics similar to Solaris's MADV_DONTNEED.
* Add MADV_FREE: free pages and swap resources associated with the
  specified range, causing the range to be reloaded from backing
  store (vnodes) or zero-fill (anonymous), semantics like FreeBSD's
  MADV_FREE and like Digital UNIX's MADV_DONTNEED (isn't it SO GREAT
  that madvise(2) isn't standardized!?)

As part of this, move the non-map-modifying advice handling out of
uvm_map_advise(), and into sys_madvise().

As another part, implement general amap cleaning in uvm_map_clean(), and
change uvm_map_clean() to only push dirty pages to disk if PGO_CLEANIT
is set in its flags (and update sys___msync13() accordingly).  XXX Add
a patchable global "amap_clean_works", defaulting to 1, which can disable
the amap cleaning code, just in case problems are unearthed; this gives
a developer/user a quick way to recover and send a bug report (e.g. boot
into DDB and change the value).

XXX Still need to implement a real uao_flush().

XXX Need to update the manual page.

With these changes, rebuilding libc will automatically cause the new
malloc(3) to use MADV_FREE to actually release pages and swap resources
when it decides that can be done.

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:30:19 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.20: +18 -1 lines
Diff to previous 1.20 (colored)

Sync w/ -current.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Fri Jun 18 17:22:15 1999 UTC (24 years, 8 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

pullup 1.20->1.21 (cgd): add MADV_SPACEAVAIL madvise() constant

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jun 17 21:07:55 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.22: +8 -1 lines
Diff to previous 1.22 (colored)

Don't export MAP_COPY to userland.  It's deprecated, works like MAP_PRIVATE,
and not described by any standard.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Jun 15 23:27:48 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +10 -1 lines
Diff to previous 1.21 (colored)

Several changes, developed and tested concurrently:
* Provide POSIX 1003.1b mlockall(2) and munlockall(2) system calls.
  MCL_CURRENT is presently implemented.  MCL_FUTURE is not fully
  implemented.  Also, the same one-unlock-for-every-lock caveat
  currently applies here as it does to mlock(2).  This will be
  addressed in a future commit.
* Provide the mincore(2) system call, with the same semantics as
  Solaris.
* Clean up the error recovery in uvm_map_pageable().
* Fix a bug where a process would hang if attempting to mlock a
  zero-fill region where none of the pages in that region are resident.
  [ This fix has been submitted for inclusion in 1.4.1 ]

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 27 20:13:06 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

actually define MADV_SPACEAVAIL.  This could be the first case of
documentation actually getting ahead definition; the madvise() manual
page has since at least 1.3!

Revision 1.20 / (download) - annotate - [select for diffs], Sat Feb 6 16:14:52 1999 UTC (25 years ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Add missing minherit() declaration.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 3 21:52:40 1998 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Changes since 1.18: +6 -1 lines
Diff to previous 1.18 (colored)

Define MAP_FAILED, a symbolic constant which evaluates to the value returned
by mmap(2) upon failure.

Revision 1.18 / (download) - annotate - [select for diffs], Sat May 30 22:18:56 1998 UTC (25 years, 9 months ago) by kleink
Branch: MAIN
Changes since 1.17: +23 -11 lines
Diff to previous 1.17 (colored)

* Per XSH98, provide size_t and const'ify the `addr' arguments to mlock() and
  munlock().
* Don't make the madvise() declaration and related definitions available to
  _POSIX_C_SOURCE or _XOPEN_SOURCE.
* Remove a bogus comment.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Mar 1 02:24:13 1998 UTC (26 years ago) by fvdl
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:55 1998 UTC (26 years ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +5 -2 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:11:06 1998 UTC (26 years ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +24 -22 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.14.2.2 / (download) - annotate - [select for diffs], Tue Nov 4 23:35:03 1997 UTC (26 years, 3 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.14.2.1: +2 -2 lines
Diff to previous 1.14.2.1 (colored) to branchpoint 1.14 (colored) next main 1.15 (colored)

Pull up from trunk: use __RENAME() properly.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Nov 4 23:25:02 1997 UTC (26 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

Fix __RENAME quoting lossage (don't pass it a quoted string).  From
Chris Demetriou <cgd@pa.dec.com>.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Wed Oct 22 06:24:49 1997 UTC (26 years, 4 months ago) by thorpej
Branch: netbsd-1-3
Changes since 1.14: +5 -3 lines
Diff to previous 1.14 (colored)

Pull up from trunk: Update for new less nasty function renaming.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Oct 22 00:51:52 1997 UTC (26 years, 4 months ago) by fvdl
Branch: MAIN
Changes since 1.14: +5 -3 lines
Diff to previous 1.14 (colored)

New hacks to make libc work painlessly without bumping the major number:
use type func(arg1s) asm("emitted_name") gcc mechanism.
Suggested by Bill Sommerfeld.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Oct 20 22:05:25 1997 UTC (26 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.13: +7 -4 lines
Diff to previous 1.13 (colored)

Fix the shared library versioning snafu caused by the recent changes
to the stat(2) family and msync(2).  This uses a primitive function
versioning scheme.

This reverts the libc shared library major version from 13 to 12, and
adds a few new interfaces to bring us to libc version 12.20.

From Frank van der Linden <fvdl@NetBSD.ORG>.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Oct 16 23:31:21 1997 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.12: +15 -8 lines
Diff to previous 1.12 (colored)

PR/4269: Chris Demetriou: msync now takes a third argument

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 22 07:09:18 1997 UTC (27 years, 1 month ago) by mikel
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, mrg-vm-swap, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Changes since 1.11: +6 -1 lines
Diff to previous 1.11 (colored)

add multiple inclusion protection

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 26 20:24:23 1995 UTC (28 years, 11 months ago) by jtc
Branch: MAIN
CVS Tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

KERNEL -> _KERNEL

Revision 1.10 / (download) - annotate - [select for diffs], Tue Nov 15 04:32:23 1994 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Add PROT_NONE, for Sun source code compatibility.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Mon Aug 1 17:19:26 1994 UTC (29 years, 7 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.7: +4 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

from trunk.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Jul 31 08:47:46 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.8: +3 -2 lines
Diff to previous 1.8 (colored)

Add MAP_FILE as 0x0000, for compatibility, and to make some explanations of
how this all works a bit easier B-).

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 18 07:22:07 1994 UTC (29 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

prototype for madvise().  it's not really implemented yet, but there's
a stub for it in the kernel.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 29 06:44:39 1994 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jun 27 19:31:34 1994 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

new standard, minimally intrusive ID format

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 21 03:52:01 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.4: +9 -12 lines
Diff to previous 1.4 (colored)

update to 4.4-Lite; no serious changes

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Sun Mar 27 09:09:45 1994 UTC (29 years, 11 months ago) by cgd
Branch: nvm
Changes since 1.4.2.1: +93 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

expand uid_t/gid_t/off_t

Revision 1.4.2.1, Sun Mar 27 09:09:44 1994 UTC (29 years, 11 months ago) by cgd
Branch: nvm
Changes since 1.4: +0 -93 lines
FILE REMOVED

file mman.h was added on branch nvm on 1994-03-27 09:09:45 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Sun Mar 27 09:09:44 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: wnvm, nvm-base
Branch point for: nvm
Changes since 1.3: +18 -18 lines
Diff to previous 1.3 (colored)

expand uid_t/gid_t/off_t

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 16:22:41 1993 UTC (30 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base, magnum
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

add rcs ids as necessary, and also clean up headers

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 19 01:22:54 1993 UTC (30 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.1: +5 -0 lines
Diff to previous 1.1 (colored)

Add consistent multiple-inclusion protection.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>