Skip to content

Commit

Permalink
[Sanitizers] Remove obsolete OpenFile from sanitizer_solaris.cc
Browse files Browse the repository at this point in the history
I noticed that the instance of OpenFile in sanitizer_solaris.cc is no
longer needed.

Removed as follows, tested on x86_64-pc-solaris2.11.

Differential Revision: https://reviews.llvm.org/D63764

llvm-svn: 364892
  • Loading branch information
rorth committed Jul 2, 2019
1 parent 8758dce commit 8d568d0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions compiler-rt/lib/sanitizer_common/sanitizer_solaris.cc
Expand Up @@ -88,11 +88,6 @@ uptr internal_open(const char *filename, int flags, u32 mode) {
return _REAL64(open)(filename, flags, mode);
}

uptr OpenFile(const char *filename, bool write) {
return ReserveStandardFds(
internal_open(filename, write ? O_WRONLY | O_CREAT : O_RDONLY, 0660));
}

DECLARE__REAL_AND_INTERNAL(uptr, read, fd_t fd, void *buf, uptr count) {
return _REAL(read)(fd, buf, count);
}
Expand Down

0 comments on commit 8d568d0

Please sign in to comment.