From f9185e64f3cbe401e0f2953951c4209abd409b40 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Mon, 8 Jan 2024 16:09:21 -0500 Subject: mark as not signal-safe --- src/ctype/isalnum.c | 1 + src/ctype/isalpha.c | 1 + src/ctype/isascii.c | 1 + src/ctype/isblank.c | 1 + src/ctype/iscntrl.c | 1 + src/ctype/isdigit.c | 1 + src/ctype/isgraph.c | 1 + src/ctype/islower.c | 1 + src/ctype/isprint.c | 1 + src/ctype/ispunct.c | 1 + src/ctype/isspace.c | 1 + src/ctype/isupper.c | 1 + src/ctype/isxdigit.c | 1 + src/ctype/toascii.c | 1 + src/ctype/tolower.c | 1 + src/ctype/toupper.c | 1 + 16 files changed, 16 insertions(+) diff --git a/src/ctype/isalnum.c b/src/ctype/isalnum.c index edb03ca6..f0917094 100644 --- a/src/ctype/isalnum.c +++ b/src/ctype/isalnum.c @@ -7,6 +7,7 @@ int isalnum(int c) { + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return isalpha(c) || isdigit(c); } diff --git a/src/ctype/isalpha.c b/src/ctype/isalpha.c index 60d47a73..b82bd544 100644 --- a/src/ctype/isalpha.c +++ b/src/ctype/isalpha.c @@ -7,6 +7,7 @@ int isalpha(int c) { + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return islower(c) || isupper(c); } diff --git a/src/ctype/isascii.c b/src/ctype/isascii.c index fc0067d7..2543b224 100644 --- a/src/ctype/isascii.c +++ b/src/ctype/isascii.c @@ -4,6 +4,7 @@ int isascii(int c) { + SIGNAL_SAFE(0); if (0 <= c && c <= 0177) { return 1; } diff --git a/src/ctype/isblank.c b/src/ctype/isblank.c index 54b5d239..e546e6fa 100644 --- a/src/ctype/isblank.c +++ b/src/ctype/isblank.c @@ -10,6 +10,7 @@ int isblank(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, "unsigned char", EOF); return c == EOF ? 0 : map[c] & CT_BLANK; diff --git a/src/ctype/iscntrl.c b/src/ctype/iscntrl.c index 83c52e1c..454da1b6 100644 --- a/src/ctype/iscntrl.c +++ b/src/ctype/iscntrl.c @@ -8,6 +8,7 @@ int iscntrl(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_CNTRL; diff --git a/src/ctype/isdigit.c b/src/ctype/isdigit.c index cc8db83c..bbd228ad 100644 --- a/src/ctype/isdigit.c +++ b/src/ctype/isdigit.c @@ -7,6 +7,7 @@ int isdigit(int c) { + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return isxdigit(c) && !isalpha(c); diff --git a/src/ctype/isgraph.c b/src/ctype/isgraph.c index 3a8f2871..f8196f1e 100644 --- a/src/ctype/isgraph.c +++ b/src/ctype/isgraph.c @@ -8,6 +8,7 @@ int isgraph(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_GRAPH; diff --git a/src/ctype/islower.c b/src/ctype/islower.c index 0a928a33..70749915 100644 --- a/src/ctype/islower.c +++ b/src/ctype/islower.c @@ -8,6 +8,7 @@ int islower(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_LOWER; diff --git a/src/ctype/isprint.c b/src/ctype/isprint.c index b0aa2121..297bdc31 100644 --- a/src/ctype/isprint.c +++ b/src/ctype/isprint.c @@ -8,6 +8,7 @@ int isprint(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_PRINT; diff --git a/src/ctype/ispunct.c b/src/ctype/ispunct.c index f1ddf41c..13df9d52 100644 --- a/src/ctype/ispunct.c +++ b/src/ctype/ispunct.c @@ -8,6 +8,7 @@ int ispunct(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_PUNCT; diff --git a/src/ctype/isspace.c b/src/ctype/isspace.c index ca39d051..1832ed5d 100644 --- a/src/ctype/isspace.c +++ b/src/ctype/isspace.c @@ -8,6 +8,7 @@ int isspace(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_SPACE; diff --git a/src/ctype/isupper.c b/src/ctype/isupper.c index b188dc28..28d1791f 100644 --- a/src/ctype/isupper.c +++ b/src/ctype/isupper.c @@ -8,6 +8,7 @@ int isupper(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_UPPER; diff --git a/src/ctype/isxdigit.c b/src/ctype/isxdigit.c index 6c44a37e..b4ce9886 100644 --- a/src/ctype/isxdigit.c +++ b/src/ctype/isxdigit.c @@ -8,6 +8,7 @@ int isxdigit(int c) { unsigned int *map = __get_locale()->lc_ctype.ctattr; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); return c == EOF ? 0 : map[c] & CT_XDIGIT; diff --git a/src/ctype/toascii.c b/src/ctype/toascii.c index 8a625b44..10963818 100644 --- a/src/ctype/toascii.c +++ b/src/ctype/toascii.c @@ -4,6 +4,7 @@ int toascii(int c) { + SIGNAL_SAFE(0); return (c & 0x7f); } diff --git a/src/ctype/tolower.c b/src/ctype/tolower.c index 02985d51..bea8506b 100644 --- a/src/ctype/tolower.c +++ b/src/ctype/tolower.c @@ -9,6 +9,7 @@ int tolower(int c) { unsigned char *map = __get_locale()->lc_ctype.ctolower; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); if (c == EOF) { diff --git a/src/ctype/toupper.c b/src/ctype/toupper.c index d797e0c6..92780ed0 100644 --- a/src/ctype/toupper.c +++ b/src/ctype/toupper.c @@ -9,6 +9,7 @@ int toupper(int c) { unsigned char *map = __get_locale()->lc_ctype.ctoupper; + SIGNAL_SAFE(0); ASSERT_REPRESENTABLE(c, 0, UCHAR_MAX, unsigned char, EOF); if (c == EOF) { -- cgit v1.2.1