tools/nolibc: add definitions for standard fds
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 25 Mar 2023 15:45:09 +0000 (16:45 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 27 Mar 2023 23:26:10 +0000 (16:26 -0700)
These are useful for users and will also be used in an upcoming
testcase.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
tools/include/nolibc/unistd.h

index 1cfcd52..ac7d53d 100644 (file)
 #include "sys.h"
 
 
+#define STDIN_FILENO  0
+#define STDOUT_FILENO 1
+#define STDERR_FILENO 2
+
+
 static __attribute__((unused))
 int msleep(unsigned int msecs)
 {