1c5f01b2fSopenharmony_ci//===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===// 2c5f01b2fSopenharmony_ci// 3c5f01b2fSopenharmony_ci// The LLVM Compiler Infrastructure 4c5f01b2fSopenharmony_ci// 5c5f01b2fSopenharmony_ci// This file is distributed under the University of Illinois Open Source 6c5f01b2fSopenharmony_ci// License. See LICENSE.TXT for details. 7c5f01b2fSopenharmony_ci// 8c5f01b2fSopenharmony_ci//===----------------------------------------------------------------------===// 9c5f01b2fSopenharmony_ci// Misc utils for Linux. 10c5f01b2fSopenharmony_ci//===----------------------------------------------------------------------===// 11c5f01b2fSopenharmony_ci#include "FuzzerDefs.h" 12c5f01b2fSopenharmony_ci#if LIBFUZZER_LINUX 13c5f01b2fSopenharmony_ci 14c5f01b2fSopenharmony_ci#include <stdlib.h> 15c5f01b2fSopenharmony_ci 16c5f01b2fSopenharmony_cinamespace fuzzer { 17c5f01b2fSopenharmony_ci 18c5f01b2fSopenharmony_ciint ExecuteCommand(const std::string &Command) { 19c5f01b2fSopenharmony_ci return system(Command.c_str()); 20c5f01b2fSopenharmony_ci} 21c5f01b2fSopenharmony_ci 22c5f01b2fSopenharmony_ci} // namespace fuzzer 23c5f01b2fSopenharmony_ci 24c5f01b2fSopenharmony_ci#endif // LIBFUZZER_LINUX 25