summaryrefslogtreecommitdiff
path: root/src/stdlib/_stdlib.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 14:57:46 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 14:57:46 -0500
commitcc6e7378d3f5473137e0c46d39173e6f60dcefda (patch)
tree4cd2883ad16fd594b7777b6f3821d5b9177af5c4 /src/stdlib/_stdlib.h
parent000a7c045c98c30aac86db93f8c9c978e5ca8c59 (diff)
update standards and safety checks
Diffstat (limited to 'src/stdlib/_stdlib.h')
-rw-r--r--src/stdlib/_stdlib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdlib/_stdlib.h b/src/stdlib/_stdlib.h
index 82b7943d..d8120e66 100644
--- a/src/stdlib/_stdlib.h
+++ b/src/stdlib/_stdlib.h
@@ -3,6 +3,7 @@
#include <stdlib.h>
#include <limits.h>
+#include "_safety.h"
#define _rand(_n) \
(((_n) = (_n) * 1103515245 + 12345) ? (_n) / UINT_MAX % RAND_MAX : 0)
@@ -18,7 +19,7 @@ struct __stdlib {
void (*fns[32])(void);
struct atexit *next;
struct atexit *prev;
- } atexit;
+ } atexit, at_quick_exit;
int exit_called;
int quick_exit_called;
unsigned int rand;