Re: [PATCH v3] sockaddr.3type: POSIX Issue 8 will solve strict-aliasing issues with these types

2023-04-21 Thread Eric Blake via Gcc
On Fri, Apr 21, 2023 at 10:27:18PM +0200, Alejandro Colomar wrote: > Link: <https://austingroupbugs.net/view.php?id=1641> > Reported-by: Bastien Roucariès > Reported-by: Alejandro Colomar > Reviewed-by: Eric Blake > Cc: glibc > Cc: GCC > Cc: Stefan Puiu > Cc:

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-04-21 Thread Eric Blake via Gcc
oids the UB). > +without invoking Undefined Behavior (UB). > +POSIX Issue 8 will fix this by requiring that implementations > +make sure that these structures > +can be safely used as they were designed. > .SH NOTES > .I socklen_t > is also defined in > > > I guess this is simple enough that it should work as documentation. It seems fine from my perspective. -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-04-06 Thread Eric Blake via Gcc
d in struct sockaddr_un). The emphasis is on derefencing the family member (whatever offset it is at) to learn what cast to use to then safely access the rest of the storage. As such, here's the updated wording that the Austin Group tried today (and we plan on starting a 30-day interpreta

Re: [PATCH] sockaddr.3type: Document that sockaddr_storage is the API to be used

2023-03-30 Thread Eric Blake via Gcc
er > that aliasing it is safe (suggesting a unnamed union, or other compiler > magic). > > Link: <https://www.austingroupbugs.net/view.php?id=1641> > Reported-by: Bastien Roucariès > Reported-by: Alejandro Colomar > Cc: glibc > Cc: GCC > Cc: Eric Blake > Cc: Stef

Re: [PATCH] sockaddr.3type: BUGS: Document that libc should be fixed using a union

2023-02-06 Thread Eric Blake via Gcc
he Austin Group on your behalf to get the POSIX wording improved, I think it would work better if you initiate a bug report rather than having me do it: https://www.austingroupbugs.net/main_page.php -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org

Re: selective linking of floating point support for *printf / *scanf

2014-08-29 Thread Eric Blake
On 08/29/2014 10:03 AM, Eric Blake wrote: > On 08/29/2014 09:51 AM, Grissiom wrote: >>> Yes, it does. The namespace reserved for the implementation is _[_A-Z]. >>> The namespace _[a-z] is still available for the user. Which means the >>> user can declare their own

Re: selective linking of floating point support for *printf / *scanf

2014-08-29 Thread Eric Blake
he implementation is all double underscores, and all single underscore followed by a capital. Single underscore followed by a lower case is NOT reserved for the implementation, and is therefore free for use by the user, and therefore the implementation must not interfere with the user's use o

Re: selective linking of floating point support for *printf / *scanf

2014-08-29 Thread Eric Blake
E are the implementation, we should use the namespace reserved for us, namely __printf_float. -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: error: invalid use of void expression

2013-01-04 Thread Eric Blake
emcpy(d, s, n) bcopy ((s), (d), (n)) -# endif +#if USE_UNLOCKED_IO +# include "unlocked-io.h" #endif -#include "md5.h" -- Eric Blake eblake redhat com+1-919-301-3266 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: new triplet for x32 psABI?

2011-10-03 Thread Eric Blake
nt build is targeted on a different environment? Any comments or alternative suggestion? Yours - Michael -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-06-02 Thread Eric Blake
; We have a mechanism for importing code from newer Autoconf versions >> (in config/override.m4). > > Any progress here? If we want to switch on --enable-build-with-cxx > by default then this has to be addressed. The code is now in autoconf.git, which means that autoconf 2.66

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-06-01 Thread Eric Blake
ng enough time to get an autoconf 2.66 release out the door. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libvirt.org signature.asc Description: OpenPGP digital signature

Re: AC_CHECK_DECLS(basename) (Was: Re: Ping: patches required for --enable-build-with-cxx)

2010-06-01 Thread Eric Blake
> (_AC_CHECK_DECLS): Filter out trailing function argument types > when henerating the HAVE_DECL_* macro. s/henerating/generating/ (ChangeLog and commit message) Other than that, please push. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt virtualization library http://libv

Re: dg-error vs. i18n?

2009-10-27 Thread Eric Blake
not all systems will recognize "C.ASCII" as /THE/ C locale, with > explicit ASCII encoding; they might not recognize "C.ASCII" at all. > Looks like to me that this silence concerning encoding is a hole in the > standard. As far as I know, the hole is intentional. But if others would like me to, I am willing to pursue the action of raising a defect against the POSIX standard, requesting that the next version of POSIX consider including a standardized name for a locale with guaranteed single-byte encoding. -- Eric Blake

Re: r150960 changed ltmain.sh and broke the build

2009-08-27 Thread Eric Blake
's|||' rather than 's,,,', since ',' and '@' can both occur in unquoted filenames, but '|' cannot. -- Eric Blake

Re: Failure building GFortran (Cygwin)

2008-07-10 Thread Eric Blake
up on the fact that cygwin already has strsignal. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using

Re: changing "configure" to default to "gcc -g -O2 -fwrapv ..."

2006-12-30 Thread Eric Blake
be able to audit without compiler assistance. - -- Don't work too hard, make some time for fun as well! Eric Blake [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG wit