blob: e63c7d9a07f40e457646ca659d312d55954b6159 [file] [log] [blame]
Dan Liewed3c9ca2016-08-12 18:29:36 +00001//===- FuzzerUtilLinux.cpp - Misc utils -----------------------------------===//
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//===----------------------------------------------------------------------===//
Kostya Serebryany86586182016-09-21 21:17:23 +000011#include "FuzzerDefs.h"
Dan Liewed3c9ca2016-08-12 18:29:36 +000012#if LIBFUZZER_LINUX
13#include <stdlib.h>
14namespace fuzzer {
15int ExecuteCommand(const std::string &Command) {
16 return system(Command.c_str());
17}
18}
19#endif // LIBFUZZER_LINUX