Dan Liew | ed3c9ca | 2016-08-12 18:29:36 +0000 | [diff] [blame] | 1 | //===- 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 Serebryany | 8658618 | 2016-09-21 21:17:23 +0000 | [diff] [blame] | 11 | #include "FuzzerDefs.h" |
Dan Liew | ed3c9ca | 2016-08-12 18:29:36 +0000 | [diff] [blame] | 12 | #if LIBFUZZER_LINUX |
| 13 | #include <stdlib.h> |
| 14 | namespace fuzzer { |
| 15 | int ExecuteCommand(const std::string &Command) { |
| 16 | return system(Command.c_str()); |
| 17 | } |
| 18 | } |
| 19 | #endif // LIBFUZZER_LINUX |