<sys/membarrier.h>

Arsen Arsenović aarsenovic@baylibre.com
Thu Jul 9 23:44:53 GMT 2026


Florian Weimer <fweimer@redhat.com> writes:

>> yeah, "all the choices suck". varargs has caused android (and android
>> developers) pain in the past too, so i'm tempted to go for three
>> arguments, but then callers are going to need an #if to support musl,
>> at which point everyone may as well have stuck with syscall() :-(
>
> We can provide C++ overloads for two and three arguments.  With GCC, we
> can use __builtin_va_arg_pack and __builtin_va_arg_pack_len to emulate
> that in C.  It's not supported by Clang.

That may not be, but
https://clang.llvm.org/docs/AttributeReference.html#overloadable is.
-- 
Arsen Arsenović
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 300 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/libc-alpha/attachments/20260710/ef5c6791/attachment-0001.sig>


More information about the Libc-alpha mailing list