blob: d10b88ecff320f8bf95b89eb4baed2314cef18b2 [file] [log] [blame]
Reid Spencer4429b2c2004-09-11 04:54:06 +00001//===- Unix/SUS/Process.cpp - Linux Process Implementation ---- -*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by Reid Spencer and is distributed under the
6// University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file provides the Linux specific implementation of the Process class.
11//
12//===----------------------------------------------------------------------===//
13
14#include <unistd.h>
15
16//===----------------------------------------------------------------------===//
17//=== WARNING: Implementation here must contain only code specific to the
18//=== SUS (Single Unix Specification).
19//===----------------------------------------------------------------------===//
20
21namespace llvm {
22using namespace sys;
23
24unsigned
25Process::GetPageSize() {
26 static const long page_size = sysconf(_SC_PAGE_SIZE);
27 return static_cast<unsigned>(page_size);
28}
29
30}
31// vim: sw=2 smartindent smarttab tw=80 autoindent expandtab