Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/AssemblyScript/musl
Mirror of git://git.musl-libc.org/musl
https://github.com/AssemblyScript/musl
the time64 syscall has to be used if time_t is 64-bit, since there's
no way of knowing before ma...
to make use of {sem,shm,msg}ctl IPC_STAT functionality to provide
64-bit time_t on 32-bit archs,...
without this, the SIOCGSTAMP and SIOCGSTAMPNS ioctl commands, for
obtaining timestamps, would st...
without this, the SO_RCVTIMEO and SO_SNDTIMEO socket options would
stop working on pre-5.1 kerne...
the __socketcall and __socketcall_cp macros are remnants from a really
old version of the syscal...
being "ctl" functions that take command numbers, these will be handled
like ioctl/sockopt/etc., ...
due to the variadic signature, semctl needs to be made aware of any
new commands that take argum...
major changes are made alongside adding time64 syscall support to
account for issues found durin...
the definition of the IPC_64 macro controls the interface between libc
and the kernel through sy...
these differ from generic only in using endian-matched padding with a
short __ipc_perm_seq field...
previously these differed from generic because they needed their own
definitions of IPC_64. now ...
the time64 syscall is used only if the timeout does not fit in 32
bits. after preprocessing, the...
these functions have no new time64 syscall, so the existence of a
time64 syscall cannot be used ...
b74b3eb4a280c7179971a98df94af6f28942a2ad authored over 5 years ago by Rich Felker <[email protected]>
this layout is more common already than the old generic, and should
become even more common in t...
95ed26353ce8642c266e4bd29efbb7466c6c5312 authored over 5 years ago by Rich Felker <[email protected]>
some of these were not exact duplicates, but had gratuitously
different naming for padding, or o...
this layout is slightly less common than the old generic one, but only
because x86_64 and x32 wr...
having preprocessor conditionals on byte order in the bits headers for
fixed-endian archs is con...
6f2e5607d2d463dfc342489660e089553b749dcf authored over 5 years ago by Rich Felker <[email protected]>
various padding fields in the generic bits/sem.h were defined in terms
of time_t as a cheap hack...
7f797b5e255fa91296ac02e767ca16edea19c828 authored over 5 years ago by Rich Felker <[email protected]>
484c34fe1db184ff761db7866a8e667e093b2307 authored over 5 years ago by Rich Felker <[email protected]>
this layout is more common already than the old generic, and should
become even more common in t...
there are more archs sharing the generic 64-bit version of the struct,
which is uniform and much...
the changes here are semantically and structurally identical to those
made to timer_settime and ...
as with clock_getres, the time64 syscall for this is not necessary or
useful, this time since sc...
the time64 syscall for this is not necessary or useful, since clock
resolution is generally bett...
the x32 syscall interfaces treat timespec's tv_nsec member as 64-bit
despite the API type being ...
the time64 syscall has to be used if time_t is 64-bit, since there's
no way of knowing before ma...
time64 syscall is used only if it's the only one defined for the arch,
or if either of the reque...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested time ...
time64 syscall is used only if it's the only one defined for the arch,
if either component of th...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested timeo...
thanks to the original factorization using the __timedwait function,
there are no FUTEX_WAIT cal...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested timeo...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested timeo...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested absol...
time64 syscall is used only if it's the only one defined for the arch,
or if the requested time ...
this is yet another place where special handling of time syscalls can
and should be avoided by i...
this commit has no effect whatsoever right now, but is in preparation
for a future riscv32 port ...
previously the fallback wrongly failed with EINVAL rather than ENOSYS
when UTIME_NOW was used wi...
kernel support for x32 was added long after the utimensat syscall was
already available, so havi...
x32 is odd in that it's the only ILP32 arch/ABI we have where time_t
is 64-bit rather than (32-b...
for namespace-safety with thrd_sleep, this requires an alias, which is
also added. this eliminat...
commit 01ae3fc6d48f4a45535189b7a6db286535af08ca modified fstatat to
translate the kernel's struc...
this removes the assumption that userspace struct timex matches the
syscall type and sets the st...
this sets the stage for having the conversion logic for 64-bit time_t
all in one file, and as a ...
commit dfc81828f7ab41da08f744c44117a1bb20a05749 accidentally defined
an instance of struct statx...
this commit adds a new backend for fstatat (and thereby the whole stat
family) using the SYS_sta...
67bf602f14249ff1757c54f071faa3f778279c02 authored over 5 years ago by Rich Felker <[email protected]>
AT_FDCWD is not a valid file descriptor, so POSIX requires fstat to
fail with EBADF. if passed t...
now that we have a kstat structure decoupled from the public struct
stat, we can just use the br...
presently, all archs/ABIs have struct stat matching the kernel
stat[64] type, except mips/mipsn3...
equivalent logic for fstat+O_PATH fallback and direct use of
stat/lstat syscalls where appropria...
these were overlooked during review. bits headers are not allowed to
pull in additional headers ...
the "A" constraint is simply for an address expression that's a single
register, but it's not ye...
most egregious problem was the lack of memory clobber and lack of
volatile asm; this made the at...
having "+r"(a0) is redundant with "0"(a0) in syscalls with at least 1
arg, which is arguably a c...
this is analogous to commit 918c5fa0fc656e49b1ab9ce47183a23e3a36bc00
which fixed the correspondi...
mips n32 has 32-bit long, and generally uses long syscall arguments
and return values, but provi...
ever since inline syscalls were added for (o32) mips in commit
328810d32524e4928fec50b57e37e1bf3...
this patch is not purely non-functional changes, since before, $8 and
$9 were wrongly in the clo...
this probably saves a few bytes, avoids duplicating the clunky
lseek/_llseek syscall convention ...
b07d45eb01e900f0176894fdedab62285f5cb8be authored over 5 years ago by Rich Felker <[email protected]>
d6dcd4185bddff34724d6d539f834e9daf7dcf3d authored over 5 years ago by Rich Felker <[email protected]>
these additions were made by scanning git log since the last major
update in commit 1366b3c5e6d8...
a fully thumb1 build is not supported because some asm files are
incompatible with thumb1, but a...
7829f42a2c8944555439380498ab8b924d0f2070 authored over 5 years ago by James Y Knight <[email protected]>
In the public header, __errno_location is declared with the "const"
attribute, conditional on __...
Commit 3517d74a5e04a377192d1f4882ad6c8dc22ce69a changed the token in
sys/ioctl.h from 0x01 to 1,...
The old/new parameters to pthread_sigmask, sigprocmask, and setitimer
are marked restrict, so pa...
a730639273fd5040ea3528a9fc7b8590f46a6702 authored over 5 years ago by Rich Felker <[email protected]>
0f722282089c80f5d3ac2829fe216eb306080137 authored over 5 years ago by Rich Felker <[email protected]>
as reported by Tavian Barnes, a dup2 file action for the internal pipe
fd used by posix_spawn co...
commit c8b49b2fbc7faa8bf065220f11963d76c8a2eb93 introduced code that
checked bestsym to determin...
this was apparently copied from x86_64; it's not part of the kernel
API for riscv64. this change...
4b5ba0765038f4e9c3424d63bd1ed3f2faef3048 authored over 5 years ago by Fangrui Song <[email protected]>
maintainer's note: these are not meaningful/correct/needed and the
clang integrated assembler er...
syscall numbers are now synced up across targets (starting from 403 the
numbers are the same on ...
Linux v5.1 introduced ipc syscalls on targets where previously only
SYS_ipc was available, chang...
the numbers added in
commit d149e69c02eb558114f20ea718810e95538a3b2f
add io_pgetevents and ...
to request or change pointer auth keys for criu via ptrace, new in
linux commit d0a060be573bf...
47bc7f0afee104ce543a65795d786731c5da8f97 authored over 5 years ago by Szabolcs Nagy <[email protected]>
RFC 4286: "The IPv4 multicast address for All-Snoopers is 224.0.0.106."
from
linux commit 4ef...
eea841e6534b014b820fcd3c99e8ac4a0cb2412e authored over 5 years ago by Szabolcs Nagy <[email protected]>
SO_BINDTOIFINDEX behaves similar to SO_BINDTODEVICE, but takes a
network interface index as argu...
the s390x definitions matched the generic ones in sys/socket.h.
4523505114f6a7d0f2e416b0546e5bc1bb564698 authored over 5 years ago by Szabolcs Nagy <[email protected]>
restricts router alert packets received by the socket to the
socket's namespace only. see
lin...
93b5f6c84356558bab965cc2f09d7c7c0dcb9beb authored over 5 years ago by Szabolcs Nagy <[email protected]>
allows specifying that the speculative store bypass disable bit should
be cleared on exec. see
...
c7081edcf838d7bb830819a7de35737b1dd9755d authored over 5 years ago by Szabolcs Nagy <[email protected]>
needed for android so it can migrate from its ashmem to memfd.
allows making the memfd readonly ...
includes changes from linux v5.1
linux commit 235328d1fa4251c6dcb32351219bb553a58838d2
fano...
synccall may be called by AS-safe functions such as setuid/setgid after
fork. although fork() re...
the linux syscall treats this argument as having type int, so passing
extremely long buffer size...
after commit a48ccc159a5fa061a18419296100ee48a1cd6cc9 removed the use
of _Noreturn on the stage3...
previously, POSIX erroneously required this to fail with EINVAL
despite the traditional glibc im...
_Noreturn is a C11 construct, and may only be used at the site of a
function definition.
this reverts commit f552c792c7ce5a560f214e1104d93ee5b0833967, which
exposed the sysmacros.h macr...
Author: Alex Suykov <[email protected]>
Author: Aric Belsito <[email protected]>
Author: Dre...
with the glibc generation counter model for reusing dynamic tls slots
after dlclose, it's really...
between v2 and v3 of the powerpc64 port patch, the change was made
from a 32x4 array of 32-bit u...
the mistaken layout seems to have been adapted from 32-bit powerpc,
where vscr and vrsave are pa...