diff options
Diffstat (limited to 'libfuzzer/FuzzerIOPosix.cpp')
-rw-r--r-- | libfuzzer/FuzzerIOPosix.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libfuzzer/FuzzerIOPosix.cpp b/libfuzzer/FuzzerIOPosix.cpp index aac85b0..4706a40 100644 --- a/libfuzzer/FuzzerIOPosix.cpp +++ b/libfuzzer/FuzzerIOPosix.cpp @@ -31,7 +31,7 @@ bool IsFile(const std::string &Path) { return S_ISREG(St.st_mode); } -static bool IsDirectory(const std::string &Path) { +bool IsDirectory(const std::string &Path) { struct stat St; if (stat(Path.c_str(), &St)) return false; @@ -104,6 +104,10 @@ char GetSeparator() { return '/'; } +bool IsSeparator(char C) { + return C == '/'; +} + FILE* OpenFile(int Fd, const char* Mode) { return fdopen(Fd, Mode); } @@ -155,7 +159,7 @@ bool IsInterestingCoverageFile(const std::string &FileName) { } void RawPrint(const char *Str) { - write(2, Str, strlen(Str)); + (void)write(2, Str, strlen(Str)); } void MkDir(const std::string &Path) { |