blob: f18e471717bd4d7756927d13681b5360892529f2 [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//===----------------------------------------------------------------------===//
11#include "FuzzerInternal.h"
12#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