mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Add methods for detecting different kinds of files by their magic number,
getting the suffix for shared objects, and extracting the basename from a path. llvm-svn: 16277
This commit is contained in:
parent
33d1ebfade
commit
455a47373b
42
include/llvm/System/Process.h
Normal file
42
include/llvm/System/Process.h
Normal file
@ -0,0 +1,42 @@
|
||||
//===- llvm/System/Process.h ------------------------------------*- 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 declares the llvm::sys::Process class.
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#ifndef LLVM_SYSTEM_PROCESS_H
|
||||
#define LLVM_SYSTEM_PROCESS_H
|
||||
|
||||
namespace llvm {
|
||||
namespace sys {
|
||||
|
||||
/// This class provides an abstraction for getting information about the
|
||||
/// currently executing process.
|
||||
/// @since 1.4
|
||||
/// @brief An abstraction for operating system processes.
|
||||
class Process {
|
||||
/// @name Accessors
|
||||
/// @{
|
||||
public:
|
||||
/// This static function will return the operating system's virtual memory
|
||||
/// page size.
|
||||
/// @returns The number of bytes in a virtual memory page.
|
||||
/// @throws nothing
|
||||
/// @brief Get the virtual memory page size
|
||||
static unsigned GetPageSize();
|
||||
|
||||
/// @}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// vim: sw=2
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user