<feed xmlns='http://www.w3.org/2005/Atom'>
<title>musl/src/linux/statx.c, branch v1.2.6</title>
<subtitle>musl - an implementation of the standard library for Linux-based systems</subtitle>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/'/>
<entry>
<title>statx: fix uninitialized attributes/mask in fallback path</title>
<updated>2024-09-13T21:11:00+00:00</updated>
<author>
<name>Rich Felker</name>
<email>dalias@aerifal.cx</email>
</author>
<published>2024-09-13T21:08:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=4ca8c267768e371930ef7ec9593a5f8b44a7f810'/>
<id>4ca8c267768e371930ef7ec9593a5f8b44a7f810</id>
<content type='text'>
commit b817541f1cfd38e4b81257b3215e276ea9d0fc61 introduced statx with
a fallback using fstatat, but failed to fill in stx_rdev_major/minor
and stx_attributes[_mask]. the rdev omission has been addressed
separately. rather than explicitly zeroing the attributes and their
mask, pre-fill the entire structure with zeros. this will also cover
the padding adjacent to stx_mode, in case it's ever used in the
future.

explicit zeroing of stx_btime is removed since, with this change, it
will already be pre-zeroed. as an aside, zeroing it was not strictly
necessary, since STATX_BASIC_STATS does not include STATX_BTIME and
thus does not indicate any validity for it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
commit b817541f1cfd38e4b81257b3215e276ea9d0fc61 introduced statx with
a fallback using fstatat, but failed to fill in stx_rdev_major/minor
and stx_attributes[_mask]. the rdev omission has been addressed
separately. rather than explicitly zeroing the attributes and their
mask, pre-fill the entire structure with zeros. this will also cover
the padding adjacent to stx_mode, in case it's ever used in the
future.

explicit zeroing of stx_btime is removed since, with this change, it
will already be pre-zeroed. as an aside, zeroing it was not strictly
necessary, since STATX_BASIC_STATS does not include STATX_BTIME and
thus does not indicate any validity for it.
</pre>
</div>
</content>
</entry>
<entry>
<title>statx: fix ENOSYS emulation not setting stx_rdev_*</title>
<updated>2024-09-13T20:58:21+00:00</updated>
<author>
<name>Gabriel Ravier</name>
<email>gabravier@gmail.com</email>
</author>
<published>2024-09-13T20:00:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=251cbb6366403a056b39638264932c82d18ec610'/>
<id>251cbb6366403a056b39638264932c82d18ec610</id>
<content type='text'>
The current implementation of the statx function fails to set the
values of stx-&gt;stx_rdev_major and stx-&gt;stx_rdev_minor if the statx
syscall fails with ENOSYS and thus the statx function has to fall back
on fstatat-based emulation.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The current implementation of the statx function fails to set the
values of stx-&gt;stx_rdev_major and stx-&gt;stx_rdev_minor if the statx
syscall fails with ENOSYS and thus the statx function has to fall back
on fstatat-based emulation.
</pre>
</div>
</content>
</entry>
<entry>
<title>add statx interface using syscall, fallback to fstatat</title>
<updated>2024-02-24T17:27:09+00:00</updated>
<author>
<name>Duncan Bellamy</name>
<email>dunk@denkimushi.com</email>
</author>
<published>2022-08-31T19:07:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.musl-libc.org/cgit/musl/commit/?id=b817541f1cfd38e4b81257b3215e276ea9d0fc61'/>
<id>b817541f1cfd38e4b81257b3215e276ea9d0fc61</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
