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