diff options
author | Thomas Weißschuh <linux@weissschuh.net> | 2023-03-25 16:45:09 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-03-27 16:26:10 -0700 |
commit | 00b7262896af69233c9c4593e6a7251adcb1e5f4 (patch) | |
tree | 4db18a1c81c0d5d5a30b97095ec32d33128bd4d9 /tools/include | |
parent | 82e441398238875db698249a1f937f2774d01d6f (diff) | |
download | linux-stable-00b7262896af69233c9c4593e6a7251adcb1e5f4.tar.gz linux-stable-00b7262896af69233c9c4593e6a7251adcb1e5f4.tar.bz2 linux-stable-00b7262896af69233c9c4593e6a7251adcb1e5f4.zip |
tools/nolibc: add definitions for standard fds
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>
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/nolibc/unistd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/include/nolibc/unistd.h b/tools/include/nolibc/unistd.h index 1cfcd52106a4..ac7d53d986cd 100644 --- a/tools/include/nolibc/unistd.h +++ b/tools/include/nolibc/unistd.h @@ -13,6 +13,11 @@ #include "sys.h" +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 + + static __attribute__((unused)) int msleep(unsigned int msecs) { |