aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/close.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/close.cpp')
-rw-r--r--libc/bionic/close.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/libc/bionic/close.cpp b/libc/bionic/close.cpp
index 2d01965f6..18225f015 100644
--- a/libc/bionic/close.cpp
+++ b/libc/bionic/close.cpp
@@ -31,21 +31,8 @@
extern "C" int ___close(int);
-#ifdef USE_WRAPPER
-#include "codeaurora/PropClientDispatch.h"
-#endif
-
int close(int fd) {
- int rc;
-#ifndef USE_WRAPPER
- rc = ___close(fd);
-#else
- if ( __propClientDispatch.propClose ) {
- rc = __propClientDispatch.propClose(fd);
- } else {
- rc = ___close(fd);
- }
-#endif
+ int rc = ___close(fd);
if (rc == -1 && errno == EINTR) {
// POSIX says that if close returns with EINTR, the fd must not be closed.
// Linus disagrees: http://lkml.indiana.edu/hypermail/linux/kernel/0509.1/0877.html