From fb994f4c040da968b7271860535f07daba182069 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Fri, 6 Nov 2015 16:13:47 -0800 Subject: Add fileno_unlocked to support thread sanitizer. Bug: 25392375 Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349 --- libc/stdio/stdio_ext.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libc/stdio/stdio_ext.cpp') 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); +} -- cgit v1.2.3