From 522948817bebc886ad236450745466975633e977 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 16 Dec 2023 13:47:10 +0100 Subject: Tell the user whether signals and errors are signed or unsigned MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsyscalls_get_signals.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libsyscalls_get_signals.c') 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, ;); -- cgit v1.2.3-70-g09d2