From 973749220417ad18784ebd5252b2d694ba0e5567 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 4 Oct 2004 11:08:32 +0000 Subject: First version of the MappedFile abstraction for operating system idependent mapping of files. This first version uses mmap where its available. The class needs to implement an alternate mechanism based on malloc'd memory and file reading/writing for platforms without virtual memory. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16649 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/System/FreeBSD/MappedFile.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/System/FreeBSD/MappedFile.cpp (limited to 'lib/System/FreeBSD/MappedFile.cpp') diff --git a/lib/System/FreeBSD/MappedFile.cpp b/lib/System/FreeBSD/MappedFile.cpp new file mode 100644 index 0000000000..a06691966b --- /dev/null +++ b/lib/System/FreeBSD/MappedFile.cpp @@ -0,0 +1,18 @@ +//===- FreeBSD/MappedFile.cpp - FreeBSD MappedFile Impl. --------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by Reid Spencer and is distributed under the +// University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file provides the FreeBSD specific implementation of the MappedFile +// concept. +// +//===----------------------------------------------------------------------===// + +// Include the generic unix implementation +#include "../Unix/MappedFile.cpp" + +// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab -- cgit v1.2.3