/* $OpenBSD: mquery.c,v 1.7 2011/10/16 06:29:56 guenther Exp $ */ /* * Written by Artur Grabowski Public Domain */ #include #include #include #include "thread_private.h" register_t __syscall(quad_t, ...); STUB_PROTOTYPE(mquery); STUB_ALIAS(mquery); /* * This function provides 64-bit offset padding. */ void * STUB_NAME(mquery)(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { return((void *)__syscall((quad_t)SYS_mquery, addr, len, prot, flags, fd, 0, offset)); }