2004-09-11 06:54:06 +02:00
|
|
|
//===- Unix/SUS/Process.cpp - Linux Process Implementation ---- -*- C++ -*-===//
|
2005-04-22 00:55:34 +02:00
|
|
|
//
|
2004-09-11 06:54:06 +02:00
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2005-04-22 00:55:34 +02:00
|
|
|
// This file was developed by Reid Spencer and is distributed under the
|
2004-09-11 06:54:06 +02:00
|
|
|
// University of Illinois Open Source License. See LICENSE.TXT for details.
|
2005-04-22 00:55:34 +02:00
|
|
|
//
|
2004-09-11 06:54:06 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file provides the Linux specific implementation of the Process class.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include <unistd.h>
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
2005-04-22 00:55:34 +02:00
|
|
|
//=== WARNING: Implementation here must contain only code specific to the
|
2004-09-11 06:54:06 +02:00
|
|
|
//=== SUS (Single Unix Specification).
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
using namespace sys;
|
|
|
|
|
2005-04-22 00:55:34 +02:00
|
|
|
unsigned
|
2004-09-11 06:54:06 +02:00
|
|
|
Process::GetPageSize() {
|
|
|
|
static const long page_size = sysconf(_SC_PAGE_SIZE);
|
|
|
|
return static_cast<unsigned>(page_size);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|