mirror of
https://github.com/seregonwar/zftpd.git
synced 2026-10-22 03:32:24 -05:00
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.
7 lines
214 B
C
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
|