Files
seregonwar 8c3302284b Harden console startup and sendfile fallback
Treat `instance.pid` as a control identity instead of a hard lock by authenticating shutdown requests with the saved token, ignoring stale/reused/malformed identities, and only blocking when a verified payload (or authenticated prior instance) is still alive. Add PS4/PS5 `sendfile` safety gating that uses buffered `pread`+`send` on incompatible or unknown mount types (exFAT/FAT/nullfs/PFS, or mount lookup failure) while keeping zero-copy on safe filesystems, and wire in README/Makefile updates plus new host-side tests and stubs for both paths.
2026-10-05 17:45:10 +02:00

7 lines
214 B
C

#ifndef ZFTPD_TEST_SYS_SYSCTL_H
#define ZFTPD_TEST_SYS_SYSCTL_H
#include <stddef.h>
int sysctl(const int *name, unsigned int count, void *out, size_t *size,
const void *value, size_t value_size);
#endif