OpenGrok
Cross Reference: t_mlock.c
xref
: /
src
/
tests
/
lib
/
libc
/
sys
/
t_mlock.c
Home
|
History
|
Annotate
|
Download
|
only in
sys
History log of
/src/tests/lib/libc/sys/t_mlock.c
Revision
Date
Author
Comments
1.8
24-Jan-2020
skrll
Don't print the pagesize it messes up atf-report
1.7
13-Mar-2019
kre
Add a bunch of fprintf(stderr,...) diagnostics to try and help determine
what is going wrong which is causing this test to crash the kernel.
1.6
09-Aug-2016
kre
branches: 1.6.14;
This test should be testing how the kernel should behave, not how
it actually (used to) behave when it was incorrect... Aside from
a possible EPERM (which is not tested) the only error possible from
mlock() is ENOMEM. POSIX also allows EINVAL if the address is not
page aligned and the implementation does not round down to the previous
page boundary, but NetBSD does.
The kernel was recently fixed to return the correct errors for mlock()
so now we really need the test to be checking them, and not expecting
the incorrect errno values that the kernel used to return.
Same for munlock() - there ENOMEM is the only possible error, again,
EINVAL cannot happen as the kernel rounds to page boundaries.
For munlock() the kernel has not yet been corrected (that is coming
real soon...) and one of the munlock() tests will currently fail
(as of the time this commit is made, hopefully not for much longer)
as it should - it is indicating a kernel bug.
Note that NetBSD mlock(2) talks about EINVAL for cases where the length
parameter is negative ... but that is a size_t - good luck having that
ever occur (the man page will soon be corrected as well.)
1.5
26-Feb-2014
martin
Remove hardcoded VM_MIN_ADDRESS and instead query current value via
sysctl vm.minaddress.
1.4
08-Sep-2012
martin
branches: 1.4.2;
Make this compile on archs where VM_MIN_ADDRESS is not defined (or not
exported to userland)
1.3
07-Sep-2012
martin
Deal with architectures defining VM_MIN_ADDRESS > 0.
Add additional error code tests using a pointer one page past current brk.
1.2
21-Apr-2012
jruoho
branches: 1.2.2;
Avoid harmless compiler (integer) warnings.
1.1
20-Apr-2012
jruoho
Add few unit tests for mlock(2), including a case for PR kern/44788.
1.2.2.4
22-May-2014
yamt
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")
1.2.2.3
30-Oct-2012
yamt
sync with head
1.2.2.2
23-May-2012
yamt
sync with head.
1.2.2.1
21-Apr-2012
yamt
file t_mlock.c was added on branch yamt-pagecache on 2012-05-23 10:08:21 +0000
1.4.2.1
20-Aug-2014
tls
Rebase to HEAD as of a few days ago.
1.6.14.2
08-Apr-2020
martin
Merge changes from current as of 20200406
1.6.14.1
10-Jun-2019
christos
Sync with HEAD
Indexes created Tue Sep 30 10:09:55 GMT 2025