03e65eb03bf0bfaafa797daf91e80e8308968db3 |
26-Jan-2016 |
Elliott Hughes <enh@google.com> |
Implement funopen64. Bug: http://b/24807045 Change-Id: I161920978161389be34b707cc6ce8e05f760d552
unopen.c
|
023c3071a036d84bbd7973edef152c5a48679cb7 |
23-Jan-2016 |
Elliott Hughes <enh@google.com> |
Add _seek64 to FILE. Move fdopen/fopen/freopen and change them to initialize _seek64 instead of the legacy _seek. The in-memory streams can stick with _seek for now, since you're not going to fit a > 4GiB in-memory stream on a 32-bit device anyway. Bug: http://b/24807045 Change-Id: I09dcb426817b571415ce24d4d15f364cdda395b3
dopen.c
getpos.c
open.c
reopen.c
setpos.c
|
2704bd13409a77237147f861c43796148326b2e3 |
21-Jan-2016 |
Elliott Hughes <enh@google.com> |
Simplify fseek/ftell. Another step towards _FILE_OFFSET_BITS=64 support. Bug: http://b/24807045 Change-Id: I00b83c81a7b108176c4d9437bc32611f73b7e967
seek.c
tell.c
|
923f165b29866cba1bd077117127f576763b384d |
20-Jan-2016 |
Elliott Hughes <enh@google.com> |
Make FILE*s less usable after fclose(3). BSD doesn't invalidate the fd stored in struct FILE, which can make it possible (via fileno(3), for example), to perform operations on an fd you didn't intend to (rather than just failing with EBADF). Fixing this makes the code slightly simpler anyway, and might help catch bad code before it ships. Bug: http://stackoverflow.com/questions/10816837/fclose-works-differently-on-android-and-linux Change-Id: I9db74584038229499197a2695c70b58ed0372a87
close.c
ileno.c
|
506c6deff726c8c052ff5abb0cef57e63707bd1c |
16-Jan-2016 |
Elliott Hughes <enh@google.com> |
Sync with upstream OpenBSD. Also some minor build cleanup. Change-Id: Ibd20602d7ea45685f0c47fceb00ffd6c7ae35954
sprintf.c
getwc.c
getws.c
putwc.c
etdelim.c
pen_memstream.c
pen_wmemstream.c
empnam.c
asprintf.c
fprintf.c
fwprintf.c
swprintf.c
|
8ab433df132aa59db08b4548155d72574ad06421 |
10-Oct-2015 |
Elliott Hughes <enh@google.com> |
Fix stdio read after EOF behavior. Bug: https://code.google.com/p/android/issues/detail?id=184847 Change-Id: Ia20ce94007c2a09649f0763b1dc7ba959f2f618d
efill.c
|
8885dcc779bceae5016d5ad96caa73465a7bab90 |
21-Jan-2015 |
Elliott Hughes <enh@google.com> |
Add TEMP_FAILURE_RETRY to stdio's low-level read/write functions. This is correctness rather than performance, but found while investigating performance. Bug: 18593728 Change-Id: Idbdfed89d1931fcfae65db29d662108d4bbd9b65
tdio.c
|
01abeacded873dd835d2115d7c9a9b0b47e75254 |
14-Jan-2015 |
Elliott Hughes <enh@google.com> |
Sync with upstream OpenBSD stdio. Mainly to get the __atexit_register_cleanup removals we suggested. Change-Id: I58d40b8c5b8401bfb6bfffe8f3430ac0718af917
getln.c
etdelim.c
akebuf.c
ktemp.c
pen_wmemstream.c
etvbuf.c
ngetc.c
|
1b18aff9ba7c06e0e41ccafd22e1a4a585f86d78 |
16-Dec-2014 |
Elliott Hughes <enh@google.com> |
Fix nan output in the printf family. Bug: https://code.google.com/p/android/issues/detail?id=82452 Change-Id: I51f226c8b033de6e81baeea5e6db3de6ed196f73
fprintf.c
fwprintf.c
|
20841a137beac5caa824e3586c7bd91d879ff92e |
02-Dec-2014 |
Elliott Hughes <enh@google.com> |
Avoid pathological behavior in OpenBSD's fread. Bug: https://code.google.com/p/android/issues/detail?id=81155 Bug: 18556607 Change-Id: Idc60976b79610e2202cc42dc393dcb4ca6c42e05
read.c
|
6a03abcfd23f31d1df06eb0059830e22621282bb |
03-Nov-2014 |
Elliott Hughes <enh@google.com> |
Ensure we initialize stdin/stdout/stderr's recursive mutexes. Bug: 18208568 Change-Id: I9da16ce0f9375bc363d1d02be706d73fd3b1e150
indfp.c
|
5a69da8d7af6a388a4ad5b3dd619017b0030031a |
24-Sep-2014 |
Elliott Hughes <enh@google.com> |
Switch to OpenBSD fopen/fclose. This means all our stdio implementation is now the OpenBSD implementation. The only thing we lose is the STDIO_THREAD_LOCK calls but they were no-ops anyway. We should probably talk to upstream about this. Either fix the locking or, preferably, encourage them to move away from this pooling (especially since there's no eviction policy). Bug: 17154680 Change-Id: Ie2523e444a7d0965b8d141d57e3e11f6432d5b9a
close.c
open.c
|
c08c25b4c9bdd95bfbda56a8c21f51b88c8a692e |
24-Sep-2014 |
Elliott Hughes <enh@google.com> |
Sync with upstream findfp.c. Change-Id: Ib298f46de0c4d0fd4ce0a9b456c163e8b8b06342
indfp.c
|
a71b4c3f144a516826e8ac5b262099b920c49ce0 |
24-Sep-2014 |
Elliott Hughes <enh@google.com> |
Switch to OpenBSD flags.c. Change-Id: I0a35e5bd9f8edba27e0c73e5c8150636346d6a81
lags.c
|
31165edf5733dae8fbe79551b18cbc0e56c8d808 |
24-Sep-2014 |
Elliott Hughes <enh@google.com> |
CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. Change-Id: I74ea88e0d4973d6ab3c57da7d8bb643c31592b14
dopen.c
reopen.c
ktemp.c
|
6b841db2baa24ffcf2a4e5f975d1d07f1699b918 |
21-Aug-2014 |
Elliott Hughes <enh@google.com> |
Add POSIX-2008 fmemopen, open_memstream, and open_wmemstream. Bug: 17164505 Change-Id: I59e28a08ff8b6ab632230b11a5807cfd5278aeb5
memopen.c
pen_memstream.c
pen_wmemstream.c
|
65935979311373f2c7fa27cbfc189f49b188ca3a |
02-Jul-2014 |
Elliott Hughes <enh@google.com> |
Switch to upstream OpenBSD mktemp.c. Almost all of our stdio is actually OpenBSD, so although this isn't really a core part of stdio (it doesn't touch struct FILE, for example) it probably makes sense for it to come from the same upstream. My actual motivation though is that it's the only FreeBSD file we have compiler warnings from. This patch moves us over to -Werror by default, with only the DNS code having -Wno-error. Change-Id: Id244a5b445cba41b0a1ca30298ca7b1ed177810c
ktemp.c
|
be8df2e7445968d503a59a0a15c9612a8fb991df |
04-Jun-2014 |
Elliott Hughes <enh@google.com> |
Cherrypick upstream OpenBSD's vfwprintf.c revision 1.11. revision 1.11 date: 2014/06/04 07:45:25; author: stsp; state: Exp; lines: +1 -7; commitid: zJPRH5RUO224FmQu; Remove assigned but unused local variables and macro from vfwprintf(). Found by Elliott @ google ok mpi@ Change-Id: I716edc0c4d736a484a5317942de8e87bd8c6fd26
fwprintf.c
|
fcac8ff97f6b6cced6546e0096cadc1039b68b5e |
22-May-2014 |
Elliott Hughes <enh@google.com> |
Switch to POSIX dprintf/vdprintf. Bug: 11156955 Change-Id: I734bd02db514367ab119a48304aae9767958e367
printf.c
dprintf.c
|
623b0d05bd924e7fa3c155492695123c87c3a2b1 |
15-May-2014 |
Dmitriy Ivanov <dimitry@google.com> |
Register _cleanup function with atexit * Register cleanup function with atexit instead of calling it explicitly on exit() * abort() no longer calls _cleanup: Flushing stdio buffers on abort is no longer required by POSIX. * dlmalloc no longer need to reset cleanup (see above) * Upstream findfp.c makebuf.c setvbuf.cexit.c to openbsd versions. Bug: 14415367 Change-Id: I277058852485a9d3dbb13e5c232db5f9948d78ac
indfp.c
akebuf.c
etvbuf.c
|
ad534985ec3e01d37d46c50caa562f6482f48347 |
05-May-2014 |
Elliott Hughes <enh@google.com> |
Merge "Disable %n in printf and vfwprintf."
|
e2341d08fa4a4e0c22056c410fd34d3f93e06017 |
03-May-2014 |
Elliott Hughes <enh@google.com> |
Disable %n in printf and vfwprintf. Bug: 14492135 Change-Id: If190bede29e5f68a65043ddbe8e878c660933d03
fprintf.c
fwprintf.c
|
8ec21d9ded4c05744b3f9388bf824a508d7c95c2 |
05-May-2014 |
Elliott Hughes <enh@google.com> |
Merge "Switch to current upstream OpenBSD wsetup.c."
|
53b24382f5299931af5d08c933a765334a092c56 |
03-May-2014 |
Elliott Hughes <enh@google.com> |
Switch to current upstream OpenBSD wsetup.c. Change-Id: I2c1123f3e1d3c4af7fd7bf354e763934a39b78c0
setup.c
|
792ae72e41923800ba8797d87a76346cb2de14b9 |
03-May-2014 |
Elliott Hughes <enh@google.com> |
Switch to current upstream OpenBSD fwrite.c. Change-Id: Ife527aafc1e5438f477d711902efe6e6f59f3f8e
vwrite.h
write.c
|
f1ada79a83f6ac42f5efd995bf04374005ac532b |
03-May-2014 |
Elliott Hughes <enh@google.com> |
Sync with current OpenBSD stdio. We'd fallen a little behind. Bug: 14492135 Change-Id: Ic1137ef10bffccecebd5ce51086c23db006d0ea3
getln.c
putws.c
read.c
fprintf.c
fscanf.c
fwprintf.c
fwscanf.c
|
94336d8ecf795cfdde874a1e15977d68cfc7afc1 |
30-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to OpenBSD stdio wide printf functions. Change-Id: Icf4f8685d021ec6b7482ca1cc021ce8184098e4a
wprintf.c
wprintf.c
fwprintf.c
swprintf.c
wprintf.c
printf.c
|
c932225e1061dc57fc4bf2d6203d9737f4f989fa |
30-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to OpenBSD stdio wide get/put functions. Change-Id: I71f8769cdea874e55d397ca7682d9d4e659d3dcb
getws.c
putwc.c
putws.c
wide.c
etwc.c
etwchar.c
utwc.c
utwchar.c
|
01ae00f3170ad0e36c1657f6ff8c89dfa730fd37 |
30-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to the OpenBSD implementations of the wide scanf functions. This also gets us the C99 wcstoimax and wcstoumax, and a working fgetwc and ungetwc, all of which are needed in the implementation. This also brings several other files closer to upstream. Change-Id: I23b025a8237a6dbb9aa50d2a96765ea729a85579
getwc.c
wscanf.c
wscanf.c
ngetwc.c
fwscanf.c
swscanf.c
wscanf.c
scanf.c
|
9d3c2dd11f5e796cd814cddc5b907494f859058e |
18-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to upstream OpenBSD fread/fvwrite. Change-Id: I3dc11083693bc8d99edc0cbcc6f70dc9e5dc6565
read.c
vwrite.c
|
0549371bd74ba7c7a5a16c2a7d6cc17dbe0e6f97 |
18-Apr-2014 |
Elliott Hughes <enh@google.com> |
Upgrade to current vfprintf. This gets us various bug fixes and missing C99 functionality. Bug: https://code.google.com/p/android/issues/detail?id=64886 Change-Id: Ie9f8ac569e9b5eec1e4a1faacfe2c21662eaf895
loatio.h
fprintf.c
|
f2cea021ab2c6d7d7feeb40cca098aa132605876 |
13-Mar-2014 |
Elliott Hughes <enh@google.com> |
Clean up <stdio.h> macros. Also neuter __isthreaded. We should come back to try to hide struct FILE's internals for LP64. Bug: 3453512 Bug: 3453550 Change-Id: I7e115329fb4579246a72fea367b9fc8cb6055d18
utw.c
|
603332fc4c2d073f0e197f9ce4517710e9b3a6d0 |
13-Mar-2014 |
Elliott Hughes <enh@google.com> |
Upgrade to current upstream scanf implementation. Also add a basic test. Change-Id: Icc0e68a5716b9579244f6eb8bac1ab5a24eda85a
scanf.c
fscanf.c
sscanf.c
|
ad41e9a4eb957ea318bbc93dd49dbe76b89df1e9 |
11-Mar-2014 |
Elliott Hughes <enh@google.com> |
More stdio cleanup. Change-Id: Idc909cd3dc7b072f1edd2ae4980932d6550e8568
sprintf.c
printf.c
reopen.c
|
0133944b09d1c0a35041f7a41eb6bfb660144f4f |
21-Feb-2014 |
Elliott Hughes <enh@google.com> |
Clean up our OpenBSD usage. Also undo some of the mess where we have OpenBSD <stdio.h> but a mix of different BSD's implementations. In this first pass, I've only moved easy OpenBSD stuff. Change-Id: Iae67b02cde6dba9d8d06fedeb53efbfdac0a8cf6
lrerr.c
dopen.c
eof.c
error.c
flush.c
getc.c
getln.c
getpos.c
gets.c
ileno.c
purge.c
putc.c
puts.c
scanf.c
seek.c
setpos.c
tell.c
unopen.c
walk.c
etc.c
etchar.c
etdelim.c
etline.c
ets.c
error.c
rintf.c
utc.c
utchar.c
uts.c
efill.c
emove.c
ewind.c
get.c
canf.c
etbuf.c
etbuffer.c
tdio.c
empnam.c
mpnam.c
ngetc.c
asprintf.c
printf.c
scanf.c
snprintf.c
sprintf.c
buf.c
|