commit | fb994f4c040da968b7271860535f07daba182069 | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Fri Nov 06 16:13:47 2015 -0800 |
committer | Yabin Cui <yabinc@google.com> | Fri Nov 06 16:13:47 2015 -0800 |
tree | b2c6e72f4484ca30990ae6625a677a394b97e227 | |
parent | 8b5b2c467281de502ba1c8ffbe447ef95fbf5219 [diff] [blame] |
Add fileno_unlocked to support thread sanitizer. Bug: 25392375 Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349
diff --git a/libc/stdio/stdio_ext.cpp b/libc/stdio/stdio_ext.cpp index fea44f6..310076a 100644 --- a/libc/stdio/stdio_ext.cpp +++ b/libc/stdio/stdio_ext.cpp
@@ -99,3 +99,7 @@ int ferror_unlocked(FILE* fp) { return __sferror(fp); } + +int fileno_unlocked(FILE* fp) { + return __sfileno(fp); +}