diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-08-30 10:43:07 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-08-30 10:44:07 +0200 |
commit | 0e8806838763655f5f35822e19a20cb21e8d4747 (patch) | |
tree | bdb24fb928c0472c079a87f101f56af7e37fb17f /common/util.h | |
parent | df9e3287663155d89fe990712e90080f4a621a79 (diff) | |
download | seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar.gz seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar.bz2 seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar.lz seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar.xz seitan-0e8806838763655f5f35822e19a20cb21e8d4747.tar.zst seitan-0e8806838763655f5f35822e19a20cb21e8d4747.zip |
common: print syscall name based on the number
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/util.h b/common/util.h index a587665..4b59e77 100644 --- a/common/util.h +++ b/common/util.h @@ -128,5 +128,6 @@ void debug(const char *format, ...); -1) #define BITS_PER_NUM(n) (const_ilog2(n) + 1) - +#define N_SYSCALL 512 +extern const char *syscall_name_str[N_SYSCALL + 1]; #endif /* UTIL_H */ |