<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/libc/test/src/sys, branch users/nico/python-2</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] Fix ioctl errno inclusion (#143928)</title>
<updated>2025-06-12T16:38:43+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-06-12T16:38:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ae7ea6e3a28c017485cc2401703d6fab1549123d'/>
<id>ae7ea6e3a28c017485cc2401703d6fab1549123d</id>
<content type='text'>
Since errno was moved in
https://github.com/llvm/llvm-project/pull/143187 the code including it
in https://github.com/llvm/llvm-project/pull/141393 was rendered
incorrect. This patch fixes the include and the cmake depends.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since errno was moved in
https://github.com/llvm/llvm-project/pull/143187 the code including it
in https://github.com/llvm/llvm-project/pull/141393 was rendered
incorrect. This patch fixes the include and the cmake depends.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] add ioctl (#141393)</title>
<updated>2025-06-12T16:20:32+00:00</updated>
<author>
<name>W. Turner Abney</name>
<email>weebney@gmail.com</email>
</author>
<published>2025-06-12T16:20:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4039fdb7ba5a0d9ead5bdc0404f036063a4ca95d'/>
<id>4039fdb7ba5a0d9ead5bdc0404f036063a4ca95d</id>
<content type='text'>
Closes #85275
Closes #90317
Updates #97191

---------

Co-authored-by: Joseph Huber &lt;huberjn@outlook.com&gt;
Co-authored-by: Michael Jones &lt;michaelrj@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #85275
Closes #90317
Updates #97191

---------

Co-authored-by: Joseph Huber &lt;huberjn@outlook.com&gt;
Co-authored-by: Michael Jones &lt;michaelrj@google.com&gt;</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>Disable prctl test when building for arm or riscv. (#143627)</title>
<updated>2025-06-10T23:18:53+00:00</updated>
<author>
<name>Amy Huang</name>
<email>akhuang@google.com</email>
</author>
<published>2025-06-10T23:18:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=1bf4702d2bbaad522886dfbab913a8dd6efe3b85'/>
<id>1bf4702d2bbaad522886dfbab913a8dd6efe3b85</id>
<content type='text'>
I'm setting up a buildbot for arm32 using qemu and qemu doesn't support
PR_GET_THP_DISABLE.
Disable the test for now while we figure out what to do about that.

Also disable for riscv because we may do the same for riscv buildbots.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm setting up a buildbot for arm32 using qemu and qemu doesn't support
PR_GET_THP_DISABLE.
Disable the test for now while we figure out what to do about that.

Also disable for riscv because we may do the same for riscv buildbots.</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] Implement getitimer and setitimer, add proxy headers for itimerval (#134773)</title>
<updated>2025-04-14T20:39:42+00:00</updated>
<author>
<name>Tsz Chan</name>
<email>keithcth2001@gmail.com</email>
</author>
<published>2025-04-14T20:39:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f5c5f9f926cb93c58e8cc6302f788474909606b0'/>
<id>f5c5f9f926cb93c58e8cc6302f788474909606b0</id>
<content type='text'>
#133983</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
#133983</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Fix suseconds_t definition and utimes_test (#134326)</title>
<updated>2025-04-04T19:53:46+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-04-04T19:53:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4c182df633bcd7fd7f0634b2cf6bcab91c3674ec'/>
<id>4c182df633bcd7fd7f0634b2cf6bcab91c3674ec</id>
<content type='text'>
The main issue was that the kernel expected `suseconds_t` to be 64 bits
but ours was 32. This caused inconsistent failures since all valid
`suseconds_t` values are less than 1000000 (1 million), and some
configurations caused `struct timeval` to be padded to 128 bits.

Also: forgot to use TEST_FILE instead of FILE_PATH in some places.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The main issue was that the kernel expected `suseconds_t` to be 64 bits
but ours was 32. This caused inconsistent failures since all valid
`suseconds_t` values are less than 1000000 (1 million), and some
configurations caused `struct timeval` to be padded to 128 bits.

Also: forgot to use TEST_FILE instead of FILE_PATH in some places.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Make utimes_test more stable (#134321)</title>
<updated>2025-04-03T23:53:55+00:00</updated>
<author>
<name>Michael Jones</name>
<email>michaelrj@google.com</email>
</author>
<published>2025-04-03T23:53:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c0079ba3dd31dd928df0c7f0f0e6106260f0ca19'/>
<id>c0079ba3dd31dd928df0c7f0f0e6106260f0ca19</id>
<content type='text'>
The test for utimes added in #134167 might fail if the file for one test
hasn't been cleaned up by the OS before the second test starts. This
patch makes the tests use different files.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The test for utimes added in #134167 might fail if the file for one test
hasn't been cleaned up by the OS before the second test starts. This
patch makes the tests use different files.</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Implemented utimes (Issue #133953) (#134167)</title>
<updated>2025-04-03T23:19:12+00:00</updated>
<author>
<name>Aditya Tejpaul</name>
<email>97700214+hoarfrost32@users.noreply.github.com</email>
</author>
<published>2025-04-03T23:19:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=d33ae41c621dfbfb1eda5d469e2fb146ef49fbf9'/>
<id>d33ae41c621dfbfb1eda5d469e2fb146ef49fbf9</id>
<content type='text'>
This pull request implements the `utimes` command in libc ([Issue
#133953](https://github.com/llvm/llvm-project/issues/133953)).

- [x] Add the implementation of `utimes` in `/src/sys/time`.
- [x] Add tests for `utimes` in `/test/src/sys/time`. 
- [x] Add `utimes` to
[entrypoints.txt](https://github.com/llvm/llvm-project/blob/main/libc/config/linux/x86_64/entrypoints.txt)
for at least x86_64 and whatever you're building on
- [x] Add `utimes` to
[include/sys/time.yaml](https://github.com/llvm/llvm-project/blob/main/libc/include/sys/time.yaml)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This pull request implements the `utimes` command in libc ([Issue
#133953](https://github.com/llvm/llvm-project/issues/133953)).

- [x] Add the implementation of `utimes` in `/src/sys/time`.
- [x] Add tests for `utimes` in `/test/src/sys/time`. 
- [x] Add `utimes` to
[entrypoints.txt](https://github.com/llvm/llvm-project/blob/main/libc/config/linux/x86_64/entrypoints.txt)
for at least x86_64 and whatever you're building on
- [x] Add `utimes` to
[include/sys/time.yaml](https://github.com/llvm/llvm-project/blob/main/libc/include/sys/time.yaml)</pre>
</div>
</content>
</entry>
<entry>
<title>[libc] Migrate sys/epoll tests to use ErrnoCheckingTest. (#132823)</title>
<updated>2025-03-24T20:54:46+00:00</updated>
<author>
<name>Alexey Samsonov</name>
<email>vonosmas@gmail.com</email>
</author>
<published>2025-03-24T20:54:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5a668bdb98d6507626585cedbff0f18628ed7e5c'/>
<id>5a668bdb98d6507626585cedbff0f18628ed7e5c</id>
<content type='text'>
This is similar to PR #132107 but for tests for sys/epoll.h functions.

ErrnoCheckingTest ensures that errno is properly reset at the beginning
of the test case, and is validated at the end of it, so that the manual
code such as the one proposed in PR #131650 would not be necessary.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is similar to PR #132107 but for tests for sys/epoll.h functions.

ErrnoCheckingTest ensures that errno is properly reset at the beginning
of the test case, and is validated at the end of it, so that the manual
code such as the one proposed in PR #131650 would not be necessary.</pre>
</div>
</content>
</entry>
</feed>
