diff options
| author | Elliott Hughes <enh@google.com> | 2013-12-19 20:02:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-12-19 20:02:28 +0000 |
| commit | cf7a4a4fda076ec76bb79fdbd039665171e8cd75 (patch) | |
| tree | 523742e15bef93d0bbef3a5254f6ff6aac64cd27 | |
| parent | bb4f6dc2ec388dca4f3570164509420e1df91b35 (diff) | |
| parent | 9a42eef8b19005757db1cd5f39e25c27b664667b (diff) | |
| download | bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.zip bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.tar.gz bionic-cf7a4a4fda076ec76bb79fdbd039665171e8cd75.tar.bz2 | |
Merge "Revert "Add C linkage for __open_2 and __openat_2.""
| -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 52c34dc..e0dd181 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); } |
