aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorRandy Palamar <randy@rnpnr.xyz>2025-12-13 11:17:09 -0700
committerRandy Palamar <randy@rnpnr.xyz>2025-12-22 09:13:47 -0700
commit569b61137cf45521d9fd4f693cf841be485dd4b8 (patch)
tree41851443d00b15a45d39c9079001bc10c4c4806e /util.h
parent5abe94420528d3e107eceb0f3df073e8a1270191 (diff)
downloadvis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.gz
vis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.xz
move all standard library includes into util.h
Diffstat (limited to 'util.h')
-rw-r--r--util.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/util.h b/util.h
index 83dd4ab..6e8adbc 100644
--- a/util.h
+++ b/util.h
@@ -26,9 +26,45 @@
#define CONFIG_ACL 0
#endif
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 700
+
+#include <ctype.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <inttypes.h>
+#include <libgen.h>
+#include <limits.h>
+#include <locale.h>
+#include <poll.h>
+#include <pwd.h>
+#include <setjmp.h>
+#include <signal.h>
+#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <strings.h>
+#include <sys/ioctl.h>
+#include <sys/mman.h>
+#include <sys/select.h>
+#include <sys/stat.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <termios.h>
+#include <time.h>
+#include <unistd.h>
+#include <wchar.h>
+
+#if CONFIG_ACL
+#include <sys/acl.h>
+#endif
+#if CONFIG_SELINUX
+#include <selinux/selinux.h>
+#endif
#define LENGTH(x) ((int)(sizeof (x) / sizeof *(x)))
#define MIN(a, b) ((a) > (b) ? (b) : (a))