aboutsummaryrefslogtreecommitdiffstats
path: root/consts.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-05-30 21:48:41 +0200
committerMattias Andrée <maandree@kth.se>2020-05-30 21:48:41 +0200
commit261293d374570ee90def87fc5f503cbccb0c6a6c (patch)
tree826f7e209723051e76b11096d44c97c5e9a0dbc8 /consts.c
parentAdd support for tracing fork children (diff)
downloadsctrace-261293d374570ee90def87fc5f503cbccb0c6a6c.tar.gz
sctrace-261293d374570ee90def87fc5f503cbccb0c6a6c.tar.bz2
sctrace-261293d374570ee90def87fc5f503cbccb0c6a6c.tar.xz
m + add support for tracing vfork children
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'consts.c')
-rw-r--r--consts.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/consts.c b/consts.c
index 9a7e3fb..567a6e7 100644
--- a/consts.c
+++ b/consts.c
@@ -9,6 +9,18 @@ get_errno_name(int err)
#define X(N) if (err == N) return #N;
LIST_ERRNOS(X)
+#ifdef ALSO_ERESTARTSYS
+ X(ERESTARTSYS)
+#endif
+#ifdef ALSO_ERESTARTNOINTR
+ X(ERESTARTNOINTR)
+#endif
+#ifdef ALSO_ERESTARTNOHAND
+ X(ERESTARTNOHAND)
+#endif
+#ifdef ALSO_ERESTART_RESTARTBLOCK
+ X(ERESTART_RESTARTBLOCK)
+#endif
#undef X
sprintf(buf, "%i", err);