LLVM API Documentation
00001 //===- Unix/SUS/Process.cpp - Linux Process Implementation ---- -*- C++ -*-===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file was developed by Reid Spencer and is distributed under the 00006 // University of Illinois Open Source License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 // 00010 // This file provides the Linux specific implementation of the Process class. 00011 // 00012 //===----------------------------------------------------------------------===// 00013 00014 #include <unistd.h> 00015 00016 //===----------------------------------------------------------------------===// 00017 //=== WARNING: Implementation here must contain only code specific to the 00018 //=== SUS (Single Unix Specification). 00019 //===----------------------------------------------------------------------===// 00020 00021 namespace llvm { 00022 using namespace sys; 00023 00024 unsigned 00025 Process::GetPageSize() { 00026 static const long page_size = sysconf(_SC_PAGE_SIZE); 00027 return static_cast<unsigned>(page_size); 00028 } 00029 00030 }