platform_bionic/libc/stdio
David 'Digit' Turner 9831ad3ce6 libc: speed-up flockfile()/funlockfile()
For Honeycomb, we added proper file thread-safety for
all FILE* operations. However, we did implement that by
using an out-of-band hash table to map FILE* pointers
to phtread_mutex_t mutexes, because we couldn't change
the size of 'struct _sFILE' without breaking the ABI.

It turns out that our BSD-derived code already has
some support code to extend FILE* objects, so use it
instead. See libc/stdio/fileext.h

This patch gets rid of the hash table, and put the
mutex directly into the sFILE extension.

Change-Id: If1c3fe0a0a89da49c568e9a7560b7827737ff4d0
2011-11-15 13:16:42 +01:00
..
asprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
clrerr.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fclose.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fdopen.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
feof.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
ferror.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fflush.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fgetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fgetln.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fgetpos.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fgets.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fileext.h libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
fileno.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
findfp.c libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
flags.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
floatio.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
flockfile.c libc: speed-up flockfile()/funlockfile() 2011-11-15 13:16:42 +01:00
fopen.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
fprintf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
fpurge.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fputc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fputs.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fread.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
freopen.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fseek.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fsetpos.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ftell.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
funopen.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
fvwrite.c Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
fvwrite.h Bug 3330205 Put blanks and zeroes in const area 2011-01-09 11:38:56 -08:00
fwalk.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
fwrite.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
getc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
getchar.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
gets.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
glue.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
local.h Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
makebuf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
mktemp.c stdio: make internal symbols static/hidden 2010-10-15 01:10:31 +08:00
printf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
putc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
putchar.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
puts.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
putw.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
refill.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
remove.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rewind.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
rget.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
scanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setbuf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setbuffer.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
setvbuf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
snprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
sprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
sscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
stdio.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
tempnam.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
tmpfile.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
tmpnam.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
ungetc.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vasprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vfprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vfscanf.c am c5c84c86: Merge "vfscanf: Add support for L type modifier for long long" 2011-05-17 04:47:06 -07:00
vprintf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vscanf.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
vsnprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsprintf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
vsscanf.c improve readability of stdio: fix indentation and remove trailing spaces 2010-05-17 09:34:13 -07:00
wbuf.c Fix the handle locking in stdio 2011-02-14 09:32:56 -08:00
wcio.h typo in libc/stdio/wcio.h 2011-07-02 20:29:25 -04:00
wsetup.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00