diff options
author | Willy Tarreau <w@1wt.eu> | 2022-02-07 19:23:34 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2022-04-21 03:05:44 +0300 |
commit | 51469d5ab38fd1ac2182da8cd49eea3420b8000b (patch) | |
tree | 53c8057649ca771a1122180b8643eee4fed4879e /tools | |
parent | 7e4346f4a3a611a6233ba388080c1426545da4fc (diff) | |
download | linux-51469d5ab38fd1ac2182da8cd49eea3420b8000b.tar.xz |
tools/nolibc/types: define EXIT_SUCCESS and EXIT_FAILURE
These ones are found in some examples found in man pages and ease
portability tests.
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/include/nolibc/types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/include/nolibc/types.h b/tools/include/nolibc/types.h index b1bff5e717b6..e0749dc0bd06 100644 --- a/tools/include/nolibc/types.h +++ b/tools/include/nolibc/types.h @@ -71,6 +71,9 @@ #define WEXITSTATUS(status) (((status) & 0xff00) >> 8) #define WIFEXITED(status) (((status) & 0x7f) == 0) +/* standard exit() codes */ +#define EXIT_SUCCESS 0 +#define EXIT_FAILURE 1 /* for select() */ typedef struct { |