vm_mmap.c (280327) | vm_mmap.c (281714) |
---|---|
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> | 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 280327 2015-03-21 17:56:55Z alc $"); | 44__FBSDID("$FreeBSD: head/sys/vm/vm_mmap.c 281714 2015-04-18 21:50:13Z kib $"); |
45 46#include "opt_compat.h" 47#include "opt_hwpmc_hooks.h" 48#include "opt_vm.h" 49 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/capsicum.h> --- 404 unchanged lines hidden (view full) --- 457 td->td_retval[0] = (register_t) (addr + pageoff); 458done: 459 if (fp) 460 fdrop(fp, td); 461 462 return (error); 463} 464 | 45 46#include "opt_compat.h" 47#include "opt_hwpmc_hooks.h" 48#include "opt_vm.h" 49 50#include <sys/param.h> 51#include <sys/systm.h> 52#include <sys/capsicum.h> --- 404 unchanged lines hidden (view full) --- 457 td->td_retval[0] = (register_t) (addr + pageoff); 458done: 459 if (fp) 460 fdrop(fp, td); 461 462 return (error); 463} 464 |
465#if defined(COMPAT_FREEBSD6) |
|
465int 466freebsd6_mmap(struct thread *td, struct freebsd6_mmap_args *uap) 467{ 468 struct mmap_args oargs; 469 470 oargs.addr = uap->addr; 471 oargs.len = uap->len; 472 oargs.prot = uap->prot; 473 oargs.flags = uap->flags; 474 oargs.fd = uap->fd; 475 oargs.pos = uap->pos; 476 return (sys_mmap(td, &oargs)); 477} | 466int 467freebsd6_mmap(struct thread *td, struct freebsd6_mmap_args *uap) 468{ 469 struct mmap_args oargs; 470 471 oargs.addr = uap->addr; 472 oargs.len = uap->len; 473 oargs.prot = uap->prot; 474 oargs.flags = uap->flags; 475 oargs.fd = uap->fd; 476 oargs.pos = uap->pos; 477 return (sys_mmap(td, &oargs)); 478} |
479#endif |
|
478 479#ifdef COMPAT_43 480#ifndef _SYS_SYSPROTO_H_ 481struct ommap_args { 482 caddr_t addr; 483 int len; 484 int prot; 485 int flags; --- 1241 unchanged lines hidden --- | 480 481#ifdef COMPAT_43 482#ifndef _SYS_SYSPROTO_H_ 483struct ommap_args { 484 caddr_t addr; 485 int len; 486 int prot; 487 int flags; --- 1241 unchanged lines hidden --- |