diff options
author | Mattias Andrée <maandree@kth.se> | 2023-12-16 13:47:10 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-12-16 13:47:10 +0100 |
commit | 522948817bebc886ad236450745466975633e977 (patch) | |
tree | f53fc385c29be9b08d9c8f9c88a00ce9d1543de4 /libsyscalls_get_signals.c | |
parent | All kinds of stuff (diff) | |
download | libsyscalls-522948817bebc886ad236450745466975633e977.tar.gz libsyscalls-522948817bebc886ad236450745466975633e977.tar.bz2 libsyscalls-522948817bebc886ad236450745466975633e977.tar.xz |
Tell the user whether signals and errors are signed or unsigned
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libsyscalls_get_signals.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libsyscalls_get_signals.c b/libsyscalls_get_signals.c index 9c49760..5157457 100644 --- a/libsyscalls_get_signals.c +++ b/libsyscalls_get_signals.c @@ -6,17 +6,20 @@ enum libsyscalls_error libsyscalls_get_signals(enum libsyscalls_os os, enum libsyscalls_arch arch, - const struct libsyscalls_named_number **signals_out, size_t *num_signals_out) + const struct libsyscalls_named_number **signals_out, + size_t *num_signals_out, int *are_signed_out) { const struct libsyscalls_named_number *discard_signals; size_t discard_num_signals; + int discard_are_signed; if (!signals_out) signals_out = &discard_signals; if (!num_signals_out) num_signals_out = &discard_num_signals; + if (!are_signed_out) are_signed_out = &discard_are_signed; #define CASE(UPPERCASE, LOWERCASE)\ case LIBSYSCALLS_OS_##UPPERCASE:\ - return get_##LOWERCASE##_signals(arch, signals_out, num_signals_out) + return get_##LOWERCASE##_signals(arch, signals_out, num_signals_out, are_signed_out) switch ((int)os) { LIST_OSES(CASE, ;); |