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>
Mon, 14 Feb 2022 18:48:52 +0000 (10:48 -0800)
commit72cb10c8999317c975491e73b7053d4de1858f63
treee8c22836dcb9354e0519ab4908a23087693feae3
parent2e21a7cfff2b0ccdd45c20b7ee54adb93d391c31
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