<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/test/src/sys/mman/linux/mlock_test.cpp, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>libc: Introduce calls to sysconf to get page size.</title>
<updated>2025-10-15T19:31:26+00:00</updated>
<author>
<name>Peter Collingbourne</name>
<email>pcc@google.com</email>
</author>
<published>2025-10-15T19:31:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=72c6e4b230ddb5ca85361e145e177245319b271e'/>
<id>72c6e4b230ddb5ca85361e145e177245319b271e</id>
<content type='text'>
sysconf(_SC_PAGESIZE) is implemented now.

Reviewers: michaelrj-google, aaronmondal, rupprecht, keith

Reviewed By: michaelrj-google

Pull Request: https://github.com/llvm/llvm-project/pull/163462
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
sysconf(_SC_PAGESIZE) is implemented now.

Reviewers: michaelrj-google, aaronmondal, rupprecht, keith

Reviewed By: michaelrj-google

Pull Request: https://github.com/llvm/llvm-project/pull/163462
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Simplify mman tests (#161748)</title>
<updated>2025-10-06T22:44:48+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-10-06T22:44:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3b9ec9543695c04c3793e5adfa1a6d19af3a2eb3'/>
<id>3b9ec9543695c04c3793e5adfa1a6d19af3a2eb3</id>
<content type='text'>
Previously they called sysconf and capget. Those were blocking adding
bazel rules for those tests since sysconf isn't done.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously they called sysconf and capget. Those were blocking adding
bazel rules for those tests since sysconf isn't done.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Cleanup mman functions and tests (#159657)</title>
<updated>2025-09-23T18:08:33+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-09-23T18:08:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2e83f10121b79dc39559ede2efcf34864088beec'/>
<id>2e83f10121b79dc39559ede2efcf34864088beec</id>
<content type='text'>
Remove functions depending on each other, cleanup internal errno in
shm_common, remove various unnecessary includes.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Remove functions depending on each other, cleanup internal errno in
shm_common, remove various unnecessary includes.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Move libc_errno.h to libc/src/__support and make LIBC_ERRNO_MODE_SYSTEM to be header-only. (#143187)</title>
<updated>2025-06-11T20:25:27+00:00</updated>
<author>
<name>lntue</name>
<email>lntue@google.com</email>
</author>
<published>2025-06-11T20:25:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d87eea35fac5a34a841c637db8908128409a184e'/>
<id>d87eea35fac5a34a841c637db8908128409a184e</id>
<content type='text'>
This is the first step in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the first step in preparation for:
https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Migrate sys/ tests to ErrnoCheckingTest. (#141871)</title>
<updated>2025-05-29T05:18:22+00:00</updated>
<author>
<name>Alexey Samsonov</name>
<email>vonosmas@gmail.com</email>
</author>
<published>2025-05-29T05:18:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f22122aa7f3ef8e817b20bc3a42691cdbc760288'/>
<id>f22122aa7f3ef8e817b20bc3a42691cdbc760288</id>
<content type='text'>
See PR #132823 for a previous change to sys/epoll tests, and prior
changes before that.

ErrnoCheckingTest ensures that errno is properly reset at the beginning
of the test case, and is validated at the end of it. This change removes
many instances of manual errno manipulation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See PR #132823 for a previous change to sys/epoll tests, and prior
changes before that.

ErrnoCheckingTest ensures that errno is properly reset at the beginning
of the test case, and is validated at the end of it. This change removes
many instances of manual errno manipulation.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc][NFC] Correct test header inclusion, license (#114604)</title>
<updated>2024-11-05T18:25:25+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2024-11-05T18:25:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=04aaa35d40d8c5ff030014866691f9a56e59c142'/>
<id>04aaa35d40d8c5ff030014866691f9a56e59c142</id>
<content type='text'>
Some tests were including LibcTest.h directly. Instead you should
include Test.h which does proper indirection for other test frameworks
we support (zxtest, gtest). Also added some license headers to tests
that were missing them.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some tests were including LibcTest.h directly. Instead you should
include Test.h which does proper indirection for other test frameworks
we support (zxtest, gtest). Also added some license headers to tests
that were missing them.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Remove asm-generic includes from tests (#114479)</title>
<updated>2024-10-31T22:56:58+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2024-10-31T22:56:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3af87d4c5709fb7498e5adf75ec07e6528b14e1a'/>
<id>3af87d4c5709fb7498e5adf75ec07e6528b14e1a</id>
<content type='text'>
We shouldn't be including headers directly from asm-generic for macros.
It's safer to get those through the correct primary header where
possible (e.g. fcntl instead of asm-generic/fcntl).

For our public headers we may need to include the asm-generic
headers instead of defining all the macros ourselves, but that's
something for a followup PR.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We shouldn't be including headers directly from asm-generic for macros.
It's safer to get those through the correct primary header where
possible (e.g. fcntl instead of asm-generic/fcntl).

For our public headers we may need to include the asm-generic
headers instead of defining all the macros ourselves, but that's
something for a followup PR.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Move libc_errno inside of LIBC_NAMESPACE (#80774)</title>
<updated>2024-02-06T09:36:05+00:00</updated>
<author>
<name>michaelrj-google</name>
<email>71531609+michaelrj-google@users.noreply.github.com</email>
</author>
<published>2024-02-06T09:36:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3eb1e6d8e930f5aff17b8d6bcc160f5bbf8cabc7'/>
<id>3eb1e6d8e930f5aff17b8d6bcc160f5bbf8cabc7</id>
<content type='text'>
Having libc_errno outside of the namespace causes versioning issues when
trying to link the tests against LLVM-libc. Most of this patch is just
moving libc_errno inside the namespace in tests. This isn't necessary in
the function implementations since those are already inside the
namespace.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Having libc_errno outside of the namespace causes versioning issues when
trying to link the tests against LLVM-libc. Most of this patch is just
moving libc_errno inside the namespace in tests. This isn't necessary in
the function implementations since those are already inside the
namespace.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Update libc_errno to work correctly in both overlay and full build modes. (#80177)</title>
<updated>2024-02-01T17:16:28+00:00</updated>
<author>
<name>lntue</name>
<email>35648136+lntue@users.noreply.github.com</email>
</author>
<published>2024-02-01T17:16:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=28699e385681e7f0aeefc208b7b59d6f1d484800'/>
<id>28699e385681e7f0aeefc208b7b59d6f1d484800</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] disable mlockall w/ MCL_ONFAULT (#80075)</title>
<updated>2024-01-30T23:16:32+00:00</updated>
<author>
<name>Nick Desaulniers</name>
<email>nickdesaulniers@users.noreply.github.com</email>
</author>
<published>2024-01-30T23:16:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=16c15b5f84836d81084e9987701ca011da5a864f'/>
<id>16c15b5f84836d81084e9987701ca011da5a864f</id>
<content type='text'>
I suspect this is a bug in linux 4.19, as the test passes as written on
my
linux 6.5 machine.

Let's revisit this after the build bots are upgraded.

Link: #80073</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I suspect this is a bug in linux 4.19, as the test passes as written on
my
linux 6.5 machine.

Let's revisit this after the build bots are upgraded.

Link: #80073</pre>
</div>
</content>
</entry>
</feed>
