summaryrefslogtreecommitdiff
path: root/include/llvm/System/Process.h
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-09-11 04:18:05 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-09-11 04:18:05 +0000
commite38001f6c6d0b792b6138ec9e924db8ffaa781e0 (patch)
treeb8d6c062336108cc7006e899528a0f6140f3bcf9 /include/llvm/System/Process.h
parent1694eec4af37984a14520a377f4345516e7c3807 (diff)
downloadllvm-e38001f6c6d0b792b6138ec9e924db8ffaa781e0.tar.gz
llvm-e38001f6c6d0b792b6138ec9e924db8ffaa781e0.tar.bz2
llvm-e38001f6c6d0b792b6138ec9e924db8ffaa781e0.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System/Process.h')
-rw-r--r--include/llvm/System/Process.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/llvm/System/Process.h b/include/llvm/System/Process.h
new file mode 100644
index 0000000000..729c000e38
--- /dev/null
+++ b/include/llvm/System/Process.h
@@ -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