LLVM  6.0.0svn
FuzzerUtilLinux.cpp
Go to the documentation of this file.
1 //===- 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 
16 namespace fuzzer {
17 
18 int ExecuteCommand(const std::string &Command) {
19  return system(Command.c_str());
20 }
21 
22 } // namespace fuzzer
23 
24 #endif // LIBFUZZER_LINUX
int ExecuteCommand(const std::string &Command)