> > #define SYS_MMAP(addr, len, prot, flags, fd, off) \
> > __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \
> > (int)(prot), (int)(flags), (int)(fd), (__off_t)(off))
> > #elif defined(__FreeBSD_kernel__)
> > #define SYS_MMAP(addr, len, prot, flags, fd, off) \
> > sy
> #define SYS_MMAP(addr, len, prot, flags, fd, off) \
> __syscall(SYS_mmap, (void *)(addr), (size_t)(len), \
> (int)(prot), (int)(flags), (int)(fd), (__off_t)(off))
> #elif defined(__FreeBSD_kernel__)
> #define SYS_MMAP(addr, len, prot, flags, fd, off) \
> syscall(
Dear OpenBSD experts,
I am working on a port that ships with an optional wrapper around mmap,
open, close, ... (i.e, to be used with LD_PRELOAD). I am stuck with the
mmap wrapper which is defined for FreeBSD (and alike) as
#if defined(__FreeBSD__)
#define SYS_MMAP(addr, len, prot, flags, fd, off)
3 matches
Mail list logo