blob: f5277d49fe1c8b8d1e9c01b0aba18244074046eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* $OpenBSD: mquery.c,v 1.4 2003/04/28 21:32:08 drahn 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.
*/
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));
}
|