diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:04:07 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:04:07 -0500 |
commit | b2a8c069960b333c3cded9e0d68d9addee67f6fd (patch) | |
tree | baa92091b6192283296e7e909674a270fd814522 | |
parent | c56eff2f75cca6c95459afff5eba571b98c1f131 (diff) |
update standards and safety checks
-rw-r--r-- | src/errno/__errno.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/errno/__errno.c b/src/errno/__errno.c index c4290902..17a9b216 100644 --- a/src/errno/__errno.c +++ b/src/errno/__errno.c @@ -1,6 +1,5 @@ -#if 0 - #include "_perthread.h" +#include "_safety.h" /* This version of __errno() is for single-threaded programs and those compiled @@ -14,8 +13,10 @@ in pthread/__pt_errno.c which uses pthread keys. int *__errno(void) { THREAD_LOCAL int e = 0; + SIGNAL_SAFE(1); return &e; } - -#endif +/* +STDC(0) +*/ |