Re: "long pad" argument in SYS_mmap syscall

2015-04-14 Thread Theo de Raadt
> > #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

Re: "long pad" argument in SYS_mmap syscall

2015-04-14 Thread Miod Vallat
> #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(

"long pad" argument in SYS_mmap syscall

2015-04-14 Thread Ingo Feinerer
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)