Skip to content

Commit

Permalink
tools/nolibc: add definitions for standard fds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Weißschuh authored and Paul E. McKenney committed Mar 27, 2023
1 parent 82e4413 commit 00b7262
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/include/nolibc/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 00b7262

Please sign in to comment.