aboutsummaryrefslogtreecommitdiff
path: root/compat
AgeCommit message (Collapse)Author
2022-12-02add tests and compat for setresuid and setresgidOmar Polo
2022-10-31add memmem compatOmar Polo
2022-10-31rework `make dist'Omar Polo
2022-07-04fix getprogname shimOmar Polo
HAVE_PROGRAM_INVOCATION_SHORT_NAME is always defined; look at wether it's zero or not.
2022-03-19sync imsg-buffer.cOmar Polo
original commit from eric@: change the barrier so that fd's are always passed and received with the first byte of the imsg they belong to. idea, tweaks and ok claudio@
2022-03-19sync recallocarary.cOmar Polo
original commit from claudio@: Type-cast getpagesize() from int to size_t for the comparison with d. getpagesize() will only return positive numbers (there is no negative page size system) and it can not fail. Should fix some compiler warnings seen in -portable projects. OK otto@
2022-01-28only memcpy into imsg->data if datalen is not zeroOmar Polo
Passing a NULL pointer to memcpy is UB no matter if len is 0 (commit by claudio@, backporting for gmid.)
2021-10-07add compat for sys/tree.hOmar Polo
2021-04-25add compat for reallocarrayOmar Polo
2021-02-23fix various error in compat/err.cOmar Polo
2021-02-23tests and compat for imsgOmar Polo
2021-02-12include config.h firstOmar Polo
2021-02-11improve compat/getprogname on GNU libcOmar Polo
but why'd they called it program_invocation_short_name? They couldn't find a longer name?
2021-02-04add compat for setproctitleOmar Polo
This adds a check for setproctitle and for the (linux) prctl PR_SET_NAME. If setproctitle is not available, on linux we provide an implementation that use prctl (taken from tmux compat layer.)
2021-01-22fixing compat compilationOmar Polo
include headers if needed and include config.h
2021-01-21more OpenBSD goodiesOmar Polo
2021-01-21typoOmar Polo
2021-01-21don't include config.h thereOmar Polo
2021-01-21add a configure script and some compatOmar Polo
tested on openbsd, alpine and void