blob: dfe7e6f4e18a3ca0f2db427d75c6cfaefe2c9ea4 [file] [log] [blame]
george.karpenkov29efa6d2017-08-21 23:25:50 +00001//===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9// Misc utils for Linux.
10//===----------------------------------------------------------------------===//
11#include "FuzzerDefs.h"
12#if LIBFUZZER_LINUX
13
14#include <stdlib.h>
15
16namespace fuzzer {
17
18int ExecuteCommand(const std::string &Command) {
19 return system(Command.c_str());
20}
21
22} // namespace fuzzer
23
24#endif // LIBFUZZER_LINUX