/* $OpenBSD: mquery.c,v 1.5 2004/07/15 20:04:37 deraadt Exp $ */ /* * Written by Artur Grabowski Public Domain */ #include #include #include #ifdef lint quad_t __syscall(quad_t, ...); #endif /* * This function provides 64-bit offset padding. */ void * mquery(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)(long)__syscall((quad_t)SYS_mquery, addr, len, prot, flags, fd, 0, offset)); }