OSDN Git Service

Add fileno_unlocked to support thread sanitizer.
authorYabin Cui <yabinc@google.com>
Sat, 7 Nov 2015 00:13:47 +0000 (16:13 -0800)
committerYabin Cui <yabinc@google.com>
Sat, 7 Nov 2015 00:13:47 +0000 (16:13 -0800)
Bug: 25392375
Change-Id: If3f92a0e08a53f4b59e01397e8efa307d8572349

libc/include/stdio.h
libc/libc.arm.map
libc/libc.arm64.map
libc/libc.map.txt
libc/libc.mips.map
libc/libc.mips64.map
libc/libc.x86.map
libc/libc.x86_64.map
libc/stdio/stdio_ext.cpp

index 1df4b54..fd653d9 100644 (file)
@@ -270,6 +270,7 @@ int  vasprintf(char ** __restrict, const char * __restrict,
 void clearerr_unlocked(FILE*);
 int feof_unlocked(FILE*);
 int ferror_unlocked(FILE*);
+int fileno_unlocked(FILE*);
 
 /*
  * Stdio function-access interface.
index bc68fc0..b632d3b 100644 (file)
@@ -1310,6 +1310,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index a58b757..38023e5 100644 (file)
@@ -1156,6 +1156,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index 418d4cf..c378456 100644 (file)
@@ -1337,6 +1337,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index 0c69c19..23123dc 100644 (file)
@@ -1273,6 +1273,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index a58b757..38023e5 100644 (file)
@@ -1156,6 +1156,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index 544ee13..f13ffb0 100644 (file)
@@ -1271,6 +1271,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index a58b757..38023e5 100644 (file)
@@ -1156,6 +1156,7 @@ LIBC_N {
     __pwrite_chk;
     __pwrite64_chk;
     __write_chk;
+    fileno_unlocked;
     getgrgid_r;
     getgrnam_r;
     preadv;
index fea44f6..310076a 100644 (file)
@@ -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);
+}