blob: a3963ffc905330a604f972c0f72709a15bc5502a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* $OpenBSD: mquery.c,v 1.5 2004/07/15 20:04:37 deraadt Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> Public Domain
*/
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/syscall.h>
#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));
}
|