mirror of
https://github.com/seregonwar/zftpd.git
synced 2026-10-22 03:32:24 -05:00
Add removable-volume detection that ignores empty slots, disc eject/state helpers, the userland DNS filter, PS5 firmware offset lookup with the optional kernel net filter, and a control port a new payload uses to retire the previous instance.
22 lines
440 B
C
22 lines
440 B
C
#ifndef ZFTPD_PAL_LIMITS_H
|
|
#define ZFTPD_PAL_LIMITS_H
|
|
|
|
#include <limits.h>
|
|
|
|
#ifndef PAL_PATH_MAX
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
#define PAL_PATH_MAX 1024U
|
|
#elif defined(PS4) || defined(PS5) || defined(PLATFORM_PS4) || \
|
|
defined(PLATFORM_PS5)
|
|
#define PAL_PATH_MAX 1024U
|
|
#elif defined(PS3)
|
|
#define PAL_PATH_MAX 512U
|
|
#elif defined(PATH_MAX)
|
|
#define PAL_PATH_MAX PATH_MAX
|
|
#else
|
|
#define PAL_PATH_MAX 4096U
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|