diff options
author | Yabin Cui <yabinc@google.com> | 2015-11-06 16:13:47 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2015-11-06 16:13:47 -0800 |
commit | fb994f4c040da968b7271860535f07daba182069 (patch) | |
tree | b2c6e72f4484ca30990ae6625a677a394b97e227 /libc/stdio/stdio_ext.cpp | |
parent | 8b5b2c467281de502ba1c8ffbe447ef95fbf5219 (diff) |
Add fileno_unlocked to support thread sanitizer.
Bug: 25392375
Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349
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); +} |