aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2013-12-19 20:02:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-12-19 20:02:28 +0000
commitcf7a4a4fda076ec76bb79fdbd039665171e8cd75 (patch)
tree523742e15bef93d0bbef3a5254f6ff6aac64cd27
parentbb4f6dc2ec388dca4f3570164509420e1df91b35 (diff)
parent9a42eef8b19005757db1cd5f39e25c27b664667b (diff)
downloadandroid_bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.tar.gz
android_bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.tar.bz2
android_bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.zip
Merge "Revert "Add C linkage for __open_2 and __openat_2.""
-rw-r--r--libc/bionic/open.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/bionic/open.cpp b/libc/bionic/open.cpp
index 52c34dccf..e0dd181db 100644
--- a/libc/bionic/open.cpp
+++ b/libc/bionic/open.cpp
@@ -50,7 +50,7 @@ int open(const char* pathname, int flags, ...) {
return __openat(AT_FDCWD, pathname, flags, mode);
}
-extern "C" int __open_2(const char* pathname, int flags) {
+int __open_2(const char* pathname, int flags) {
if (__predict_false(flags & O_CREAT)) {
__fortify_chk_fail("open(O_CREAT): called without specifying a mode", 0);
}
@@ -75,7 +75,7 @@ int openat(int fd, const char *pathname, int flags, ...) {
return __openat(fd, pathname, flags, mode);
}
-extern "C" int __openat_2(int fd, const char* pathname, int flags) {
+int __openat_2(int fd, const char* pathname, int flags) {
if (flags & O_CREAT) {
__fortify_chk_fail("openat(O_CREAT): called without specifying a mode", 0);
}