tools/nolibc/types: move makedev to types.h and make it a macro
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Feb 2022 16:23:25 +0000 (17:23 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Thu, 24 Feb 2022 17:56:45 +0000 (09:56 -0800)
commit4d76cf5608367c567468b28a0e040d75021df862
tree913506617e7b996b6c408217276a2e54ef80143b
parentf3dc964bdf090119dc934955e95ef0f9abc803ac
tools/nolibc/types: move makedev to types.h and make it a macro

The makedev() man page says it's supposed to be a macro and that some
OSes have it with the other ones in sys/types.h so it now makes sense
to move it to types.h as a macro. Let's also define major() and
minor() that perform the reverse operation.

Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/nolibc.h
tools/include/nolibc/types.h