]>
git.proxmox.com Git - rustc.git/blob - src/libcompiler_builtins/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
1 //===- FuzzerUtilLinux.cpp - Misc utils for Linux. ------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // Misc utils for Linux.
10 //===----------------------------------------------------------------------===//
11 #include "FuzzerDefs.h"
12 #if LIBFUZZER_LINUX || LIBFUZZER_NETBSD
13 #include "FuzzerCommand.h"
19 int ExecuteCommand(const Command
&Cmd
) {
20 std::string CmdLine
= Cmd
.toString();
21 return system(CmdLine
.c_str());
26 #endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD