protocols/
test/
.clang-format
571 B
.clangd
365 B
.gitignore
82 B
.gitsigners
91 B
LICENSE
32.3 KiB
LICENSE.dwl
34.9 KiB
LICENSE.dwm
2.0 KiB
LICENSE.spectrwm
1.3 KiB
LICENSE.sway
1.0 KiB
LICENSE.tinywl
7.0 KiB
Makefile
7.8 KiB
PKGBUILD
952 B
README
5.6 KiB
config.def.h
15.7 KiB
config.mk
269 B
swm.1.adoc
3.3 KiB
swm.c
246.5 KiB
swm.desktop
81 B
swm.h
3.5 KiB
swmctl.1.adoc
2.5 KiB
swmctl.c
19.6 KiB
util.c
2.2 KiB
util.h
399 B
util.h
raw
| 1 | #ifndef SWM_UTIL_H |
| 2 | #define SWM_UTIL_H |
| 3 | |
| 4 | #include <stddef.h> |
| 5 | |
| 6 | /* Print an error and terminate the process. */ |
| 7 | [[noreturn]] void die(const char *fmt, ...); |
| 8 | /* Expand $NAME references without shell evaluation, returning bytes written or zero. */ |
| 9 | size_t env_expand(char *output, size_t capacity, const char *input); |
| 10 | /* Put a file descriptor into nonblocking mode. */ |
| 11 | int fd_set_nonblock(int fd); |
| 12 | |
| 13 | #endif |