History log of /bionic/libc/stdio/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c891e24073830e07ba7373dee554ff2c70e1d313 10-Oct-2014 Christopher Ferris <cferris@google.com> Add back symbols to fix Greed for Glory franchise.

Bug: 17813018
Change-Id: Id939426ee5303117b9601e7915fcfec5024fc621
ocal.h
5def2f5aecd968e4022b0afbe4441fa7ba3e7c7e 25-Sep-2014 Elliott Hughes <enh@google.com> Re-expose more stdio implementation details for LP32.

Keeps a variety of apps running.

Bug: 17047819
Change-Id: I55882ec95f2b59a5df76e5a89c23aa315609e01d
lue.h
ocal.h
7e00b44e80d6e38b8ab86d0ebc86b666c0ac2ef6 12-Sep-2014 Elliott Hughes <enh@google.com> Expose __swsetup for LP32 binary compatibility.

Bug: 17476127
Change-Id: I0ef1355ac913d782c268a638f88642d6cfc236c2
ocal.h
ca276c40dfdb80ef553c6646da7f984ef7b694ce 14-Jul-2014 Elliott Hughes <enh@google.com> Fix visibility for a bunch more symbols.

Bug: 11156955
Bug: 15291317

(cherry picked from commit a167eef5482d4a89d4277ec74f57adbe38052813)

Change-Id: Ib038ad34ef59631f7b4ed6dff2b7956001b8b159
ocal.h
f6d2ca269603c16a3b3bd4a2306fb961a79ba92f 28-May-2014 Elliott Hughes <enh@google.com> Expose __srefill for LP64 until we can fix the NDK.

The LP64 has a duplicate copy of part of stdio, and relies
on bionic supplying this part. We should remove the hack from
the NDK, at least for LP64, and then revert this.

Bug: 15291317
Change-Id: I75e06e130188ca0aeb9d50dfe3a3e48a1d3968b7
ocal.h
aa50585d961fb2b0f6943399d90ca0ec734946a3 27-May-2014 Elliott Hughes <enh@google.com> Restore __srefill for LP32.

The NDK apparently includes an android_support.a library that
refers to __srefill in its copy of the vsnprintf implementation.

Bug: 15249361
Change-Id: Ic2cf6f21290b3146c42fbe0624f5e4d54f6194b4
ocal.h
35d90bb6ec9799e04dacaa4b3a4984de9dc4c7f2 25-May-2014 Elliott Hughes <enh@google.com> Restore __srget and __swbuf for LP32.

Anthony King <anthonydking@slimroms.net> reports that for Grouper the
Nvidia GL blobs need access to __swbuf. This is because the old <stdio.h>
had inline getc and putc implementations that directly referred to these
symbols.

Change-Id: I11a7b5550018ecc93d8f195c99857759669b2906
ocal.h
2899de9b05f15e67966ed3d046709b48703a162a 23-May-2014 Elliott Hughes <enh@google.com> Hide various stdio implementation details.

I've left __sF exposed since that's how the OpenBSD stdin, stdout, stderr
are implemented. Other BSDs and glibc use a separate global for each instead
of an array.

Bug: 11156955
Change-Id: I9f3d2d4314a8d4a78c3197b9acd9258820c5f150
lue.h
ocal.h
4c2da039baa6c621c78afa47ead85ec9e028f56d 17-May-2014 Elliott Hughes <enh@google.com> Fix the newly-introduced warning and turn on -Werror.

I cleaned up most of our warnings last week but forgot to turn on -Werror,
so of course we're getting new warnings already. I've left -Werror commented
out in those places where we still have warnings to deal with before we can
turn on -Werror.

Change-Id: Ia58ff8b8c1ada4bf81eec6f19ec1d34e133cf4b1
ocal.h
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
7b1a95bc761c584d2654f6dc355830ff2e405655 06-May-2014 Calin Juravle <calin@google.com> Merge "Add include guard to fileext.h"
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
ocal.h
792ae72e41923800ba8797d87a76346cb2de14b9 03-May-2014 Elliott Hughes <enh@google.com> Switch to current upstream OpenBSD fwrite.c.

Change-Id: Ife527aafc1e5438f477d711902efe6e6f59f3f8e
vwrite.h
9287223674afe3957d248ad51200c5abead6ec96 02-May-2014 Calin Juravle <calin@google.com> Add include guard to fileext.h

Change-Id: I89b0e3bf0b15989727b5903b40bec92d49e122d9
ileext.h
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
ileext.h
indfp.c
ocal.h
cio.h
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
ocal.h
fprintf.c
4bd97cee28dd815fff54fc97560be60d566c1fa5 11-Apr-2014 Elliott Hughes <enh@google.com> Switch to gdtoa.

This gives us a real strtold for LP64 and fixes various LP64
bugs.

Bug: 13563801
Change-Id: I277858d718ee746e136b6b6308a495ba50dfa488
fprintf.c
02c78a386739a8a2b3007efeb00a9ca04132100a 12-Apr-2014 Elliott Hughes <enh@google.com> Reimplement isinf/isnan/fpclassify.

Also move isinf and isnan into libc like everyone else.

Also move fpclassify to libc like the BSDs (but unlike glibc). We need
this to be able to upgrade our float/double/long double parsing to gdtoa.

Also add some missing aliases. We now have all of:

isnan, __isnan, isnanf, __isnanf, isnanl, __isnanl,
isinf, __isinf, isinff, __isinff, isinfl, __isinfl,
__fpclassify, __fpclassifyd, __fpclassifyf, __fpclassifyl.

Bug: 13469877
Change-Id: I407ffbac06c765a6c5fffda8106c37d7db04f27d
fprintf.c
5eb670462ab9e7d8a6363861e063cad4b5dfe7d1 12-Apr-2014 Elliott Hughes <enh@google.com> Replace the bionic hack for a vfprintf leak with (roughly) the upstream fix.

Currently in bionic free and freedtoa are equivalent, but that's not true
of gdtoa. This makes it easier to test gdtoa without having to replace
everything. (Yes, I found this bug the hard way.)

Change-Id: I290823a2a0a83329def5f2719b349215ad0dbbde
fprintf.c
edd7c2ec256548702d275b3023f54bd91b4dcfc4 01-Apr-2014 Alexander Ivchenko <alexander.ivchenko@intel.com> Fix the printf issue for 64 bits. The following case:

printf("%1$s %1$s\n", "test");

would print garbage instead of the second "test". The problem is __find_arguments
and the patch is a backport of two patches from OpenBSD that fix the issue:

Author: tedu <tedu@cvs.openbsd.org>
Date: Sat Apr 29 23:00:24 2006 +0000

check mmap for failure. the helper functions using it return -1, but
callers do not yet check since printf() for example is not documented
to return an error.
some formatting cleanups.
mostly ok deraadt millert

Author: millert <millert@cvs.openbsd.org>
Date: Fri May 16 14:28:54 2008 +0000

C99 says that for each va_copy() there must be a matching va_end().
Replace the non-portable hackery in __find_arguments() with a union.
From FreeBSD.

Change-Id: I6ea392ce6fcf4a319ae6a67ec58cc52fe7cbe534
Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
fprintf.c
c20de902875dcaebde0ccd0b7a8351598f254d4c 20-Mar-2014 Calin Juravle <calin@google.com> Remove ALIGNBYTES and ALIGN from <sys/param.h>

There are only three users of bionic definition of ALIGN and keeping it
in sys/param.h polutes the namespace.

I inline the definition in the the three places that's used.

Bug: 13400663
Change-Id: I565008e8426c38ffb07422f42cd8e547d53044e9
indfp.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
ocal.h
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
53e43292aac91bf62995788cd5ca2ceb7caea283 25-Feb-2014 Elliott Hughes <enh@google.com> More OpenBSD cleanup (primarily string).

This patch removes the string/ and wchar/ directories.

Change-Id: Ia489904bc67047e4bc79acb1f3eec21aa3fe5f0d
ileext.h
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
flush.c
getc.c
putc.c
scanf.c
seek.c
tell.c
ets.c
rintf.c
efill.c
ewind.c
canf.c
tdio.c
ngetc.c
asprintf.c
printf.c
scanf.c
snprintf.c
sprintf.c
buf.c
eb847bc8666842a3cfc9c06e8458ad1abebebaf0 10-Oct-2013 Elliott Hughes <enh@google.com> Fix x86_64 build, clean up intermediate libraries.

The x86_64 build was failing because clone.S had a call to __thread_entry which
was being added to a different intermediate .a on the way to making libc.so,
and the linker couldn't guarantee statically that such a relocation would be
possible.

ld: error: out/target/product/generic_x86_64/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a(clone.o): requires dynamic R_X86_64_PC32 reloc against '__thread_entry' which may overflow at runtime; recompile with -fPIC

This patch addresses that by ensuring that the caller and callee end up in the
same intermediate .a. While I'm here, I've tried to clean up some of the mess
that led to this situation too. In particular, this removes libc/private/ from
the default include path (except for the DNS code), and splits out the DNS
code into its own library (since it's a weird special case of upstream NetBSD
code that's diverged so heavily it's unlikely ever to get back in sync).

There's more cleanup of the DNS situation possible, but this is definitely a
step in the right direction, and it's more than enough to get x86_64 building
cleanly.

Change-Id: I00425a7245b7a2573df16cc38798187d0729e7c4
indfp.c
35d937e4eb7b8e0a4e9a113d2f7434d55c0bc056 02-Oct-2013 Stephen Hines <srhines@google.com> Remove _FORTIFY_SOURCE in implementation files.

This was causing conflicting declarations for the library definitions of
common functions like sprintf(), snprintf(), and strchr().

Change-Id: I5daaa8a58183aa0d4d0fae8a7cb799671810f576
nprintf.c
printf.c
1d13c64d781a87dfa3f01e5c179bfa36748786af 24-Sep-2013 Elliott Hughes <enh@google.com> Fix %hhd formats in the printf family.

Found by adapting the simple unit tests for libc logging to test
snprintf too. Fix taken from upstream OpenBSD without updating
the rest of stdio.

Change-Id: Ie339a8e9393a36080147aae4d6665118e5d93647
ocal.h
fprintf.c
284f7880323d33356df682c3cfb6b7f0c665bfd4 20-Jul-2013 Elliott Hughes <enh@google.com> Upgrade mktemp.c to the current upstream version.

Yet another archaic relic containing bugs that had been fixed years before the
Android project even started...

Bug: 9935113
Change-Id: I3c9d019a216efd609ee568cf8c70bc360f357403
ktemp.c
677ee5647721df22f13909375d5d0e770a1a80bf 13-Jun-2013 Elliott Hughes <enh@google.com> Switch to current upstream stdio makebuf.c and setvbuf.c.

Change-Id: I4761b5e94459815520f01062eef39abf62af621f
akebuf.c
etvbuf.c
61e699a133a4807fe878a6cb0d7190d7c96e21f8 12-Jun-2013 Elliott Hughes <enh@google.com> Clean up abort.

* A dlmalloc usage error shouldn't call abort(3) because we want to
cause a SIGSEGV by writing the address dlmalloc didn't like to an
address the kernel won't like, so that debuggerd will dump the
memory around the address that upset dlmalloc.

* Switch to the simpler FreeBSD/NetBSD style of registering stdio
cleanup. Hopefully this will let us simplify more of the stdio
implementation.

* Clear the stdio cleanup handler before we abort because of a dlmalloc
corruption error. This fixes the reported bug, where we'd hang inside
dlmalloc because the stdio cleanup reentered dlmalloc.

Bug: 9301265
Change-Id: Ief31b389455d6876e5a68f0f5429567d37277dbc
indfp.c
ocal.h
akebuf.c
etvbuf.c
6b05c8e28017518fae04a3a601d0d245916561d2 11-Apr-2013 Elliott Hughes <enh@google.com> Start moving to current FreeBSD stdio.

This only touches the easy stuff.

Change-Id: Iecee57f1681dba5c56bff59f0e9a89811a71f0ca
lrerr.c
close.c
dopen.c
eof.c
error.c
getln.c
getpos.c
gets.c
ileno.c
lags.c
open.c
purge.c
puts.c
setpos.c
unopen.c
walk.c
write.c
etc.c
etchar.c
utc.c
utchar.c
uts.c
utw.c
emove.c
get.c
etbuf.c
etbuffer.c
empnam.c
mpnam.c
setup.c
f27b7fb0567a9cbb642be9d98298cb6668e7db39 10-Oct-2012 Hakan Kvist <hakan.kvist@sonymobile.com> Define DEFFILEMODE and friends

Define the macros ACCESSPERMS, ALLPERMS and DEFFILEMODE.
These macros originates from BSD but has been available in glibc
for quite some time.

Change-Id: I429cd30aa4e73f53b153ee7740070cebba166c57
open.c
reopen.c
ocal.h
a89864a20b818621a1da10e88fda815334062f9f 02-Oct-2012 Elliott Hughes <enh@google.com> Move non-upstream code into the libc/bionic directory.

I'll need at least one more pass, because there's some upstream code
lurking in libc/bionic, but this is still a step in the right direction.

Change-Id: I55927315972da8327ae01c5240ed587db17e8462
_fgets_chk.c
_snprintf_chk.c
_sprintf_chk.c
_vsnprintf_chk.c
_vsprintf_chk.c
lockfile.c
91875dcd6e17b7f3b251efe9b236b905ef414dde 25-Sep-2012 Elliott Hughes <enh@google.com> Fix tmpfile(3).

This could be better, but at least now it works.

Change-Id: I88b7cf3f7ce8e5fa0b3fe678b7d1679a68ffffc9
mpfile.c
a37ce7faa6d6c7355e3c6f6e09e5268cbf29c291 25-Aug-2012 Ian Rogers <irogers@google.com> Merge "Add missing va_end() to prevent stack corruptions"
9145ad3f0ae917e6daddbceaa541dfbe208a3bc5 26-Jul-2012 Nick Kralevich <nnk@google.com> vfprintf: fix spelling.

Change-Id: I6dc611143fb1f3e9ccf0a77b40ee48a3c1d72ca9
fprintf.c
c7dcd67d56701a10c14019b17c9499249ab6c252 14-Jun-2012 Yaroslav Miroshnychenko <yaroslav.miroshnychenko@sonymobile.com> Add missing va_end() to prevent stack corruptions

Added va_end() for copied variable arguments lists
in __vfprintf() and __find_arguments().
This is by C standard.
Important for systems which pass arguments in registers.

Change-Id: I7ac42beaa6645bfe856c18132253352dae29ea37
fprintf.c
965dbc6405aa2c3170270cfc53a8d4416444fddb 03-Jul-2012 Nick Kralevich <nnk@google.com> FORTIFY_SOURCE: add fgets support.

Change-Id: I8c3410a90c71a3336c4ac8581618fa9330edf5e3
_fgets_chk.c
9b549c39c938f54680f282c21e6885f53254bfb0 13-Jun-2012 Nick Kralevich <nnk@google.com> FORTIFY_SOURCE: add sprintf / vsprintf support

sprintf FORTIFY_SOURCE protections are not available
on clang.

Also add various __attribute__s to stdio functions.

Change-Id: I936d1f9e55fe53a68885c4524b7b59e68fed218d
_sprintf_chk.c
_vsprintf_chk.c
cffdf6693ffb50d2a1258d955a162bca83038f25 12-Jun-2012 Nick Kralevich <nnk@google.com> FORTIFY_SOURCE: add snprintf, vsnprintf

Add _FORTIFY_SOURCE support for snprintf, vsnprintf

At this time, we opt out of these protections for clang, as clang
does not implement __builtin_va_arg_pack().

http://clang.llvm.org/docs/UsersManual.html#c_unimpl_gcc

Change-Id: I73ebe5ec8dad1dca8898a76d6afb693a25f75375
_snprintf_chk.c
_vsnprintf_chk.c
9831ad3ce6bd5b22da16a275ed67e7236eae3d1f 29-Aug-2011 David 'Digit' Turner <digit@google.com> 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
ileext.h
indfp.c
lockfile.c
bc9d1fe7c467d861a2b7c1deafca5589c1bc309e 03-Aug-2011 David Turner <digit%android.com@gtempaccount.com> am 4685acbd: am 9efda5b7: Merge "typo in libc/stdio/wcio.h"

* commit '4685acbdd45c44e2e21c74242953bee5198209f9':
typo in libc/stdio/wcio.h
7743f68204515c64ce363b397a7e0bd8015bd692 03-Jul-2011 Nathan Forbes <me@nathanforbes.com> typo in libc/stdio/wcio.h

whcar_io_data -> wchar_io_data
Signed-off-by: Nathan Forbes <me@nathanforbes.com>

Change-Id: I45c231efffac265eed51b7632d5a1b21c18bfa55
cio.h
3f7a3228cdf1a48e379fb297be9114ecd71bff11 17-May-2011 David Turner <digit@android.com> am c5c84c86: Merge "vfscanf: Add support for L type modifier for long long"

* commit 'c5c84c8643250c71bde87541f2b28fc21a9c5cc7':
vfscanf: Add support for L type modifier for long long
712e4f81e066578b0925dbfb5a6b664aeba5f564 04-May-2011 Chris Fries <C.Fries@motorola.com> vfscanf: Add support for L type modifier for long long

scanf()'s man page suggests support for %Ld, (and ioux).
Implement this so that 3rd party code will work correctly.

Change-Id: Idce9d266071cb688ca71429395a2d9edf6813595
fscanf.c
f582340a6a48588aa50da17e1620e8f91b146941 12-Feb-2011 Kenny Root <kroot@google.com> Fix the handle locking in stdio

Fix the handle locking in stdio to use flockfile/funlockfile
internally when and where required. Macros in <stdio.h> are updated
to automatically call the underlying functions when the process is
threaded to obtain the necessary locking. A private mutex is added
to protect __sglue, the internal list of FILE handles, and another
to protect the one-time initialization. Some routines in libc that
use getc() change to use getc_unlocked() as they're either protected
by their own lock or aren't thread-safe routines anyway.

Based on OpenBSD change by guenther@openbsd.org
http://www.mail-archive.com/source-changes@cvs.openbsd.org/msg01015.html

Bug: 3446659
Change-Id: Ie82116e358c541718d6709ec45ca6796be5a007b
sprintf.c
lrerr.c
close.c
eof.c
flush.c
getc.c
getln.c
gets.c
ileno.c
indfp.c
purge.c
putc.c
puts.c
read.c
reopen.c
seek.c
tell.c
walk.c
write.c
etc.c
ets.c
ocal.h
utc.c
uts.c
efill.c
etvbuf.c
nprintf.c
printf.c
ngetc.c
asprintf.c
fprintf.c
fscanf.c
snprintf.c
sprintf.c
buf.c
f4e10b721ee281f3e90736364ac15864d0a3adf7 16-Jan-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 3330205 Put blanks and zeroes in const area"
e9d0518394dda010c8873dbd0ca4de7db5a5bbec 09-Jan-2011 Glenn Kasten <gkasten@google.com> Bug 3330205 Remove unnecessary static variable

Change-Id: I7e781d26d6565952712f8fb0274d336462b441fd
fprintf.c
0946b1f6e9223a0a82306e40fc2b41ebddb1f7ef 09-Jan-2011 Glenn Kasten <gkasten@google.com> Bug 3330205 Put blanks and zeroes in const area

Change-Id: I8f25aebd1ded3617dc60951271767281f73b8684
vwrite.c
vwrite.h
fprintf.c
b4867734b06a18494976934c6f33ff2549595e3f 14-Oct-2010 Jim Huang <jserv@0xlab.org> stdio: make internal symbols static/hidden

Although header libc/stdio/local.h declares the macros and private
variables of stdio, there are several internal symbols exposed
unexpectedly.

Change-Id: Ie7a07f85b70322fb9cd05b3c8e1bcc416061eb4b
getln.c
indfp.c
lockfile.c
vwrite.c
ktemp.c
a910abcd194830d2d113b3e183eb7df4d36cd92e 31-Jan-2010 André Goddard Rosa <andre.goddard@gmail.com> improve readability of stdio: fix indentation and remove trailing spaces

Change-Id: Ic51e58a7c75d20bf770dc0ebd7f97a338fbe0036
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
gets.c
indfp.c
open.c
printf.c
read.c
reopen.c
seek.c
vwrite.c
rintf.c
utchar.c
nprintf.c
printf.c
scanf.c
tdio.c
sscanf.c
051ea9bc07809a2638e5f022ae10330e23530f64 31-Jan-2010 André Goddard Rosa <andre.goddard@gmail.com> stdio: simplify __fremovelock()

... by removing extraneous NULL check, as free() already does it.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: I0445f35c7ad0a049a0e4aee1fbe002ed2f13b94b
lockfile.c
c8a850bcd174acf43f951b5b70783cb636418b53 31-Jan-2010 André Goddard Rosa <andre.goddard@gmail.com> stdio: simplify vasprintf()

... by removing unneeded NULL check, as free() already does it.
By the way, we don't need to set a stack variable back to NULL.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>

Change-Id: Id90eb8f042b5c922c5ff139b11ff8366fb404566
asprintf.c
6aed4288eba64f8265b98d34fdfd0bc0cd76151d 31-Jan-2010 André Goddard Rosa <andre.goddard@gmail.com> stdio: simplify asprintf()

... by removing unneeded NULL check, as free() already does it.
By the way, we don't need to set a stack variable back to NULL.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>

Change-Id: Id1f72e872f73366dddcea4abc75885a3d9a318c6
sprintf.c
1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
sprintf.c
lrerr.c
close.c
dopen.c
eof.c
error.c
flush.c
getc.c
getln.c
getpos.c
gets.c
ileext.h
ileno.c
indfp.c
lags.c
loatio.h
lockfile.c
open.c
printf.c
purge.c
putc.c
puts.c
read.c
reopen.c
scanf.c
seek.c
setpos.c
tell.c
unopen.c
vwrite.c
vwrite.h
walk.c
write.c
etc.c
etchar.c
ets.c
lue.h
ocal.h
akebuf.c
ktemp.c
rintf.c
utc.c
utchar.c
uts.c
utw.c
efill.c
emove.c
ewind.c
get.c
canf.c
etbuf.c
etbuffer.c
etvbuf.c
nprintf.c
printf.c
scanf.c
tdio.c
empnam.c
mpfile.c
mpnam.c
ngetc.c
asprintf.c
fprintf.c
fscanf.c
printf.c
scanf.c
snprintf.c
sprintf.c
sscanf.c
buf.c
cio.h
setup.c
1767f908af327fa388b1c66883760ad851267013 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
sprintf.c
lrerr.c
close.c
dopen.c
eof.c
error.c
flush.c
getc.c
getln.c
getpos.c
gets.c
ileext.h
ileno.c
indfp.c
lags.c
loatio.h
lockfile.c
open.c
printf.c
purge.c
putc.c
puts.c
read.c
reopen.c
scanf.c
seek.c
setpos.c
tell.c
unopen.c
vwrite.c
vwrite.h
walk.c
write.c
etc.c
etchar.c
ets.c
lue.h
ocal.h
akebuf.c
ktemp.c
rintf.c
utc.c
utchar.c
uts.c
utw.c
efill.c
emove.c
ewind.c
get.c
canf.c
etbuf.c
etbuffer.c
etvbuf.c
nprintf.c
printf.c
scanf.c
tdio.c
empnam.c
mpfile.c
mpnam.c
ngetc.c
asprintf.c
fprintf.c
fscanf.c
printf.c
scanf.c
snprintf.c
sprintf.c
sscanf.c
buf.c
cio.h
setup.c
4e468ed2eb86a2406e14f1eca82072ee501d05fd 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
close.c
lockfile.c
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
sprintf.c
lrerr.c
close.c
dopen.c
eof.c
error.c
flush.c
getc.c
getln.c
getpos.c
gets.c
ileext.h
ileno.c
indfp.c
lags.c
loatio.h
open.c
printf.c
purge.c
putc.c
puts.c
read.c
reopen.c
scanf.c
seek.c
setpos.c
tell.c
unopen.c
vwrite.c
vwrite.h
walk.c
write.c
etc.c
etchar.c
ets.c
lue.h
ocal.h
akebuf.c
ktemp.c
rintf.c
utc.c
utchar.c
uts.c
utw.c
efill.c
emove.c
ewind.c
get.c
canf.c
etbuf.c
etbuffer.c
etvbuf.c
nprintf.c
printf.c
scanf.c
tdio.c
empnam.c
mpfile.c
mpnam.c
ngetc.c
asprintf.c
fprintf.c
fscanf.c
printf.c
scanf.c
snprintf.c
sprintf.c
sscanf.c
buf.c
cio.h
setup.c