//===- SystemUtils.h ------------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef MCLD_SUPPORT_SYSTEMUTILS_H_ #define MCLD_SUPPORT_SYSTEMUTILS_H_ #include "mcld/Config/Config.h" #include #include namespace mcld { namespace sys { typedef uint8_t* Address; typedef off_t Offset; /** \fn strerror * \brief system error message */ char* strerror(int pErrnum); std::string getDefaultTargetTriple(); int GetPageSize(); /// GetRandomNum - generate a random number. long GetRandomNum(); /// SetRandomSeed - set the initial seed value for future calls to random(). void SetRandomSeed(unsigned pSeed); } // namespace sys } // namespace mcld #endif // MCLD_SUPPORT_SYSTEMUTILS_H_