2016-11-30 19:06:14 +00:00
|
|
|
//===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===//
|
2016-08-12 18:29:36 +00: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-21 21:17:23 +00:00
|
|
|
#include "FuzzerDefs.h"
|
2016-08-12 18:29:36 +00:00
|
|
|
#if LIBFUZZER_LINUX
|
2016-12-13 17:46:11 +00:00
|
|
|
|
2016-08-12 18:29:36 +00:00
|
|
|
#include <stdlib.h>
|
2016-12-13 17:46:11 +00:00
|
|
|
|
2016-08-12 18:29:36 +00:00
|
|
|
namespace fuzzer {
|
2016-12-13 17:46:11 +00:00
|
|
|
|
2016-08-12 18:29:36 +00:00
|
|
|
int ExecuteCommand(const std::string &Command) {
|
|
|
|
return system(Command.c_str());
|
|
|
|
}
|
2016-12-13 17:46:11 +00:00
|
|
|
|
|
|
|
} // namespace fuzzer
|
|
|
|
|
2016-08-12 18:29:36 +00:00
|
|
|
#endif // LIBFUZZER_LINUX
|