OSDN Git Service

For years the man pages have said to #include <sys/types.h> to get
authorRob Landley <rob@landley.net>
Wed, 2 Mar 2016 17:52:38 +0000 (11:52 -0600)
committerRob Landley <rob@landley.net>
Wed, 2 Mar 2016 17:52:38 +0000 (11:52 -0600)
commit7ca5dc4232b9ac5ee5cd25c8b5b33a58904cd251
tree258fe0d485c5793e19a56be81f9d71e51476f0d8
parent323819c689448fffcf4d3ed20f2485b75ac64b64
For years the man pages have said to #include <sys/types.h> to get
major/minor/makedev, but glibc has vowed to break existing programs
(https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html)
and replace it with _another_ non-standard header (not in posix or lsb),
so let's just add functions to lib/ that do the transform ourselves.
lib/lib.c
lib/lib.h
toys/lsb/mknod.c
toys/other/makedevs.c
toys/other/mountpoint.c
toys/pending/mdev.c
toys/pending/tar.c
toys/posix/cpio.c
toys/posix/ls.c
toys/posix/ps.c