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: Roland McGrath <roland at hack dot frob dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Rich Felker <dalias at libc dot org>, Zack Weinberg <zackw at panix dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 20 Nov 2015 16:19:51 -0800 (PST)
- 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> <CAKCAbMhnz=PSQZ=yxVbrBpmL8sw5XznBz88HPiwSQD4kbcRXmQ at mail dot gmail dot com> <20151114215908 dot GJ3818 at brightrain dot aerifal dot cx> <871tbsb4xa dot fsf at igel dot home>
> stdlib.h only includes sys/types.h for int32_t, which is also available
> through stdint.h. We could add support for __need_int32_t if necessary.
Making stdlib.h include stdint.h instead of sys/types.h seems sensible to me.
It was never an explicit intent that stdlib.h would get you sys/sysmacros.h,
while it was for sys/types.h.