1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1991, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 27 unchanged lines hidden (view full) --- 36 * @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94 37 */ 38 39/* 40 * Mapped file (mmap) interface to VM 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/vm/vm_mmap.c 130344 2004-06-11 11:16:26Z phk $"); |
45 46#include "opt_compat.h" 47#include "opt_mac.h" 48 49#include <sys/param.h> 50#include <sys/systm.h> 51#include <sys/kernel.h> 52#include <sys/lock.h> --- 88 unchanged lines hidden (view full) --- 141 struct sstk_args *uap; 142{ 143 /* Not yet implemented */ 144 /* mtx_lock(&Giant); */ 145 /* mtx_unlock(&Giant); */ 146 return (EOPNOTSUPP); 147} 148 |
149#if defined(COMPAT_43) |
150#ifndef _SYS_SYSPROTO_H_ 151struct getpagesize_args { 152 int dummy; 153}; 154#endif 155 156/* ARGSUSED */ 157int 158ogetpagesize(td, uap) 159 struct thread *td; 160 struct getpagesize_args *uap; 161{ 162 /* MP SAFE */ 163 td->td_retval[0] = PAGE_SIZE; 164 return (0); 165} |
166#endif /* COMPAT_43 */ |
167 168 169/* 170 * Memory Map (mmap) system call. Note that the file offset 171 * and address are allowed to be NOT page aligned, though if 172 * the MAP_FIXED flag it set, both must have the same remainder 173 * modulo the PAGE_SIZE (POSIX 1003.1b). If the address is not 174 * page-aligned, the actual mapping starts at trunc_page(addr) --- 1145 unchanged lines hidden --- |