llvm/compiler-rt/lib/fuzzer/FuzzerIO.cpp

//===- FuzzerIO.cpp - IO utils. -------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// IO functions.
//===----------------------------------------------------------------------===//

#include "FuzzerDefs.h"
#include "FuzzerExtFunctions.h"
#include "FuzzerIO.h"
#include "FuzzerUtil.h"
#include <algorithm>
#include <cstdarg>
#include <fstream>
#include <iterator>
#include <sys/stat.h>
#include <sys/types.h>

namespace fuzzer {

static FILE *OutputFile =;

FILE *GetOutputFile() {}

void SetOutputFile(FILE *NewOutputFile) {}

long GetEpoch(const std::string &Path) {}

Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) {}

std::string FileToString(const std::string &Path) {}

void CopyFileToErr(const std::string &Path) {}

void WriteToFile(const Unit &U, const std::string &Path) {}

void WriteToFile(const std::string &Data, const std::string &Path) {}

void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path) {}

void AppendToFile(const std::string &Data, const std::string &Path) {}

void AppendToFile(const uint8_t *Data, size_t Size, const std::string &Path) {}

void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch,
                            size_t MaxSize, bool ExitOnError,
                            std::vector<std::string> *VPaths) {}

void GetSizedFilesFromDir(const std::string &Dir, std::vector<SizedFile> *V) {}

std::string DirPlusFile(const std::string &DirPath,
                        const std::string &FileName) {}

void DupAndCloseStderr() {}

void CloseStdout() {}

void Puts(const char *Str) {}

void Printf(const char *Fmt, ...) {}

void VPrintf(bool Verbose, const char *Fmt, ...) {}

static bool MkDirRecursiveInner(const std::string &Leaf) {}

bool MkDirRecursive(const std::string &Dir) {}

void RmDirRecursive(const std::string &Dir) {}

std::string TempPath(const char *Prefix, const char *Extension) {}

}  // namespace fuzzer