diff options
author | Yabin Cui <yabinc@google.com> | 2015-11-07 00:24:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-11-07 00:24:52 +0000 |
commit | 0e6542b75b2f3ca155b452782d2122f34f807485 (patch) | |
tree | b2c6e72f4484ca30990ae6625a677a394b97e227 /libc/stdio/stdio_ext.cpp | |
parent | 8b5b2c467281de502ba1c8ffbe447ef95fbf5219 (diff) | |
parent | fb994f4c040da968b7271860535f07daba182069 (diff) |
Merge "Add fileno_unlocked to support thread sanitizer."
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
-rw-r--r-- | libc/stdio/stdio_ext.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/stdio/stdio_ext.cpp b/libc/stdio/stdio_ext.cpp index fea44f68b..310076a3a 100644 --- a/libc/stdio/stdio_ext.cpp +++ b/libc/stdio/stdio_ext.cpp @@ -99,3 +99,7 @@ int feof_unlocked(FILE* fp) { int ferror_unlocked(FILE* fp) { return __sferror(fp); } + +int fileno_unlocked(FILE* fp) { + return __sfileno(fp); +} |