You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
978 B
43 lines
978 B
//===- 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 <llvm/Support/DataTypes.h>
|
|
|
|
#include <string>
|
|
|
|
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_
|