diff options
author | Elliott Hughes <enh@google.com> | 2013-12-19 20:02:16 +0000 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-12-19 20:02:16 +0000 |
commit | 9a42eef8b19005757db1cd5f39e25c27b664667b (patch) | |
tree | abb647ba83a783d732a00f75e7f27685d381f670 /libc/bionic/open.cpp | |
parent | c13d89b829a83a248130184583cf0332515a05df (diff) | |
download | android_bionic-9a42eef8b19005757db1cd5f39e25c27b664667b.tar.gz android_bionic-9a42eef8b19005757db1cd5f39e25c27b664667b.tar.bz2 android_bionic-9a42eef8b19005757db1cd5f39e25c27b664667b.zip |
Revert "Add C linkage for __open_2 and __openat_2."
This reverts commit c13d89b829a83a248130184583cf0332515a05df.
Change-Id: I40a3c6b926e920b65dd054353a2db8d314d5b300
Diffstat (limited to 'libc/bionic/open.cpp')
-rw-r--r-- | libc/bionic/open.cpp | 4 |
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); } |