summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-02-03 11:24:28 -0800
committerElliott Hughes <enh@google.com>2016-02-03 11:24:28 -0800
commitf226ee59e0effedeabed09e2d65be7fa7499cc25 (patch)
tree60b192388b5575a5315d7e9ea2b5b4ffa29ed59f /libc/stdio/stdio.cpp
parenta279324094d748b97201412b2457d2f6e26287dd (diff)
Add fopen64/freopen64/tmpfile64 aliases.
Our fopen/freopen/tmpfile are already always O_LARGEFILE, but let's add the aliases for _LARGEFILE_SOURCE compatibility. Bug: http://b/24807045 Change-Id: I5d99b3ef3c9f27ce70f13313f6a92e96c7f21f80
Diffstat (limited to 'libc/stdio/stdio.cpp')
-rw-r--r--libc/stdio/stdio.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/stdio/stdio.cpp b/libc/stdio/stdio.cpp
index 16cbd555c..1c31a277f 100644
--- a/libc/stdio/stdio.cpp
+++ b/libc/stdio/stdio.cpp
@@ -222,6 +222,7 @@ FILE* fopen(const char* file, const char* mode) {
return fp;
}
+__strong_alias(fopen64, fopen);
FILE* fdopen(int fd, const char* mode) {
int oflags;
@@ -358,6 +359,7 @@ FILE* freopen(const char* file, const char* mode, FILE* fp) {
if (oflags & O_APPEND) __sseek64(fp, 0, SEEK_END);
return fp;
}
+__strong_alias(freopen64, freopen);
int fclose(FILE* fp) {
if (fp->_flags == 0) {