Re: <sys/membarrier.h>

Arsen Arsenović <[email protected]>
Newsgroups gmane.comp.lib.glibc.alpha
Organization BayLibre
Message-ID <[email protected]>
Florian Weimer <[email protected]> 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ć
signature.asc (application/pgp-signature, 300 B)
-----BEGIN PGP SIGNATURE-----

iKoEARYKAFIWIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCalAydRsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMiwyLDIYHGFhcnNlbm92aWNAYmF5bGlicmUuY29tAAoJEFLC
lDAeosSTbeYBALoIJfS0/6hff9eOl1SAPIBFSFeEnnc2SRFiOOakWXbmAQCoFd4H
aVTNDLP57Z1fXqiI9k4AXrwDtEzgwN9DNCP7Dw==
=JgCd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.