1 //===-- CMIUtilSystemLinux.h ------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__linux__)
15 #include "MIUtilString.h"
17 //++ ============================================================================
18 // Details: MI common code utility class. Used to set or retrieve information
19 // about the current system or user.
20 // *** If you change, remove or add functionality it must be replicated
21 // *** for the all platforms supported; Windows, OSX, LINUX
23 // Authors: Illya Rudkin 29/01/2014.
26 class CMIUtilSystemLinux
30 /* ctor */ CMIUtilSystemLinux(void);
32 bool GetOSErrorMsg(const MIint vError, CMIUtilString &vrwErrorMsg) const;
33 CMIUtilString GetOSLastError(void) const;
34 bool GetExecutablesPath(CMIUtilString &vrwFileNamePath) const;
35 bool GetLogFilesPath(CMIUtilString &vrwFileNamePath) const;
40 /* dtor */ virtual ~CMIUtilSystemLinux(void);
43 typedef CMIUtilSystemLinux CMIUtilSystem;
45 #endif // #if defined( __linux__ )