1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/* compat.h */
#if !defined(NOTE_TRUNCATE)
#define NOTE_TRUNCATE 0
#endif
#if defined(_LINUX_PORT) && defined(__GLIBC__) && !defined(LIBBSD_OVERLAY)
#include <sys/types.h>
size_t strlcpy(char *to, const char *from, int l);
#endif
#if defined(_LINUX_PORT)
#define INOTIFY_MAX_USER_WATCHES 2
int fs_sysctl(const int name);
#endif
#if defined(_MACOS_PORT)
#include <stdio.h>
FILE *fmemopen(void *buf, size_t size, const char *mode);
#endif
#if !defined(ARG_MAX)
#define ARG_MAX (256 * 1024)
#endif
#ifndef __OpenBSD__
#define pledge(s, p) (0)
#endif
|