diff options
Diffstat (limited to 'lib/libc/sys/mquery.c')
-rw-r--r-- | lib/libc/sys/mquery.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/sys/mquery.c b/lib/libc/sys/mquery.c new file mode 100644 index 00000000000..2cb28e27a9b --- /dev/null +++ b/lib/libc/sys/mquery.c @@ -0,0 +1,17 @@ +/* $OpenBSD: mquery.c,v 1.1 2003/04/14 04:53:50 art Exp $ */ +/* + * Written by Artur Grabowski <art@openbsd.org> Public Domain + */ + +#include <sys/types.h> +#include <sys/mman.h> +#include <sys/syscall.h> + +/* + * This function provides 64-bit offset padding. + */ +int +mquery(int flags, void **addr, size_t size, int fd, off_t off) +{ + return(__syscall((quad_t)SYS_mquery, flags, addr, size, fd, off)); +} |