blob: c103fd230b0c677990a402f4acf9c026859e95a3 [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"
vitalybuka5f3206d2018-04-09 22:38:26 +000012#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD || \
13 LIBFUZZER_OPENBSD
morehousea80f6452017-12-04 19:25:59 +000014#include "FuzzerCommand.h"
george.karpenkov29efa6d2017-08-21 23:25:50 +000015
16#include <stdlib.h>
17
18namespace fuzzer {
19
morehousea80f6452017-12-04 19:25:59 +000020int ExecuteCommand(const Command &Cmd) {
21 std::string CmdLine = Cmd.toString();
22 return system(CmdLine.c_str());
george.karpenkov29efa6d2017-08-21 23:25:50 +000023}
24
25} // namespace fuzzer
26
vitalybuka5f3206d2018-04-09 22:38:26 +000027#endif