blob: 69d46b578c048a972754204e350d01698c2151b7 [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"
kamiledcfbba2017-08-30 22:44:11 +000012#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
george.karpenkov29efa6d2017-08-21 23:25:50 +000013
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
kamiledcfbba2017-08-30 22:44:11 +000024#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD