This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: RFC: remove <sys/sysmacros.h> from <sys/types.h>
- From: Zack Weinberg <zackw at panix dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Roland McGrath <roland at hack dot frob dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 14 Nov 2015 15:41:08 -0500
- Subject: Re: RFC: remove <sys/sysmacros.h> from <sys/types.h>
- Authentication-results: sourceware.org; auth=none
- References: <CAKCAbMiU=h2Vs3X-b8mRjP3Kig_TVngObPNpYauTqZs_=0q6Gg at mail dot gmail dot com> <20151113234333 dot D1DCA2C3B7B at topped-with-meat dot com> <m2ziyhszvk dot fsf at linux-m68k dot org>
On Sat, Nov 14, 2015 at 4:18 AM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Roland McGrath <roland@hack.frob.com> writes:
>
>> What do the modern BSDs do about this issue?
>
> Nothing, they have the same problem.
>
> https://svnweb.freebsd.org/base/head/sys/sys/types.h?view=markup#l356
>
> (__BSD_VISIBLE is the equivalent of __USE_BSD.)
However, if I'm reading these headers correctly, FreeBSD does *not*
include sys/types.h in stdlib.h. (It does include sys/_types.h but I
think that's their equivalent of bits/types.h - nothing but __names.)
Perhaps that is a lower-risk change for us. I am going to talk to the
people who do Debian archive rebuilds about trying both possibilities.
(If we still had it, this might be an appropriate thing to put under
__FAVOR_BSD, but I see it's gone, and it doesn't seem important enough
to resurrect it for.)
zw