[Toybox] [PATCH] include sys/sysmacros.h

Mike Frysinger vapier at gentoo.org
Mon Feb 29 14:53:02 PST 2016


On 29 Feb 2016 16:24, Rob Landley wrote:
> On 02/29/2016 12:36 PM, Mike Frysinger wrote:
> > The major/minor macros are defined in sys/sysmacros.h.  This has
> > historically been pulled in implicitly by sys/types.h,
> 
> http://man7.org/linux/man-pages/man3/major.3.html says sys/types.h, yes.

this is merely documenting what glibc has historically done, and glibc
has historically tried to copy BSD in this area.  even then, the manpage
probably should be adjusted to document sysmacros.h directly since that
is where glibc has always placed things.

> > but C libs
> > are moving away from that as they aren't in POSIX.  Use the header
> > directly as defined by BSD systems.
> 
> This adds a non-posix header to the posix header section of toys.h,

i really have no idea how toybox code is structured.  feel free to add
the include to wherever you feel is appropriate.

> based on the premise that unspecified C libraries plan to break existing
> programs at some unknown point in the future, for no obvious reason.

feel free to read the thread:
	https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html

glibc is the process of deprecating, and musl/uClibc would follow suit,
if not just drop the include altogether.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160229/a170d40d/attachment-0002.pgp>


More information about the Toybox mailing list