summaryrefslogtreecommitdiffstats
path: root/testutil/list-errors.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
committerMattias Andrée <maandree@kth.se>2023-12-05 00:03:04 +0100
commit58dd684c4e86944301959a140dbed9746df35779 (patch)
treea2702ea4f66b2a58711ee22eb7449c74b1ecf0d1 /testutil/list-errors.c
parentFirst commit (diff)
downloadlibsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.gz
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.bz2
libsyscalls-58dd684c4e86944301959a140dbed9746df35779.tar.xz
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'testutil/list-errors.c')
-rw-r--r--testutil/list-errors.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/testutil/list-errors.c b/testutil/list-errors.c
new file mode 100644
index 0000000..5738b06
--- /dev/null
+++ b/testutil/list-errors.c
@@ -0,0 +1,21 @@
+/* See LICENSE file for copyright and license details. */
+#include "../libsyscalls.h"
+
+#include <stddef.h>
+#include <stdio.h>
+
+
+int
+main(void)
+{
+#define X(N, S)\
+ printf("%li %s %s\n", (long int)N, #N, S)
+ LIBSYSCALLS_LIST_ERRORS(X, ;);
+#undef X
+
+ if (fflush(stdout) || fclose(stdout)) {
+ perror(NULL);
+ return 1;
+ }
+ return 0;
+}