[PATCH] D60045: [Sanitizers] Provide __internal_dup on Solaris

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 01:42:50 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL357753: [Sanitizers] Provide __internal_dup on Solaris (authored by ro, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D60045?vs=193005&id=193847#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60045/new/

https://reviews.llvm.org/D60045

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_solaris.cc


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_solaris.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_solaris.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_solaris.cc
@@ -125,6 +125,10 @@
   return (uptr)st.st_size;
 }
 
+DECLARE__REAL_AND_INTERNAL(uptr, dup, int oldfd) {
+  return _REAL(dup)(oldfd);
+}
+
 DECLARE__REAL_AND_INTERNAL(uptr, dup2, int oldfd, int newfd) {
   return _REAL(dup2)(oldfd, newfd);
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60045.193847.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/5eb47029/attachment.bin>


More information about the llvm-commits mailing list