diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-12-13 11:17:09 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-12-22 09:13:47 -0700 |
| commit | 569b61137cf45521d9fd4f693cf841be485dd4b8 (patch) | |
| tree | 41851443d00b15a45d39c9079001bc10c4c4806e /util.h | |
| parent | 5abe94420528d3e107eceb0f3df073e8a1270191 (diff) | |
| download | vis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.gz vis-569b61137cf45521d9fd4f693cf841be485dd4b8.tar.xz | |
move all standard library includes into util.h
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -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)) |
