Codebase list entr / 75693d27-3d90-4c11-bc75-bd7256dcfd83/upstream missing / compat.h
75693d27-3d90-4c11-bc75-bd7256dcfd83/upstream

Tree @75693d27-3d90-4c11-bc75-bd7256dcfd83/upstream (Download .tar.gz)

compat.h @75693d27-3d90-4c11-bc75-bd7256dcfd83/upstreamraw · history · blame

/* compat.h */

#if !defined(NOTE_TRUNCATE)
#define NOTE_TRUNCATE 0
#endif

#if defined(_LINUX_PORT) && defined(__GLIBC__)
#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