2016-12-01 03:06:14 +08:00
|
|
|
//===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===//
|
2016-08-13 02:29:36 +08:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Misc utils for Linux.
|
|
|
|
//===----------------------------------------------------------------------===//
|
2016-09-22 05:17:23 +08:00
|
|
|
#include "FuzzerDefs.h"
|
2016-08-13 02:29:36 +08:00
|
|
|
#if LIBFUZZER_LINUX
|
2016-12-14 01:46:11 +08:00
|
|
|
|
2016-08-13 02:29:36 +08:00
|
|
|
#include <stdlib.h>
|
2016-12-14 01:46:11 +08:00
|
|
|
|
2016-08-13 02:29:36 +08:00
|
|
|
namespace fuzzer {
|
2016-12-14 01:46:11 +08:00
|
|
|
|
2016-08-13 02:29:36 +08:00
|
|
|
int ExecuteCommand(const std::string &Command) {
|
|
|
|
return system(Command.c_str());
|
|
|
|
}
|
2016-12-14 01:46:11 +08:00
|
|
|
|
|
|
|
} // namespace fuzzer
|
|
|
|
|
2016-08-13 02:29:36 +08:00
|
|
|
#endif // LIBFUZZER_LINUX
|