• Home
  • History
  • Annotate
  • only in /bionic/libc/upstream-freebsd/
History log of /bionic/libc/upstream-freebsd/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
ndroid/include/namespace.h
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
ib/libc/stdio/mktemp.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
ib/libc/stdio/makebuf.c
ib/libc/stdio/setvbuf.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
ib/libc/stdio/wsetup.c
792ae72e41923800ba8797d87a76346cb2de14b9 03-May-2014 Elliott Hughes <enh@google.com> Switch to current upstream OpenBSD fwrite.c.

Change-Id: Ife527aafc1e5438f477d711902efe6e6f59f3f8e
ib/libc/stdio/fwrite.c
b8425c549a0bfe08b01b5906b95603d8523c1b16 30-Apr-2014 Dan Albert <danalbert@google.com> Adds quick_exit(3) and at_quick_exit(3) from freebsd

Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
ib/libc/stdlib/quick_exit.c
d299bcfdad959a3a0adf1683605b15a1c3b3ab66 29-Apr-2014 Elliott Hughes <enh@google.com> Replace our broken wcswcs with the working upstream one.

Change-Id: I2952684df5674d10f0564d92c2cd42597725c0e3
ib/libc/string/wcsstr.c
d39f3f2c2e7fc73ddb019695f0df3417deef5bf4 22-Apr-2014 Elliott Hughes <enh@google.com> Clean up and document our hacks for building BSD source.

Change-Id: Ic591e22fa5b363bb68376b9f25814c0e5bd83fbf
ndroid/include/freebsd-compat.h
ndroid/include/libc_private.h
ndroid/include/namespace.h
ndroid/include/spinlock.h
ndroid/include/un-namespace.h
reebsd-compat.h
ibc_private.h
amespace.h
pinlock.h
n-namespace.h
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
ib/libc/stdio/putw.c
ibc_private.h
57a883640f3b43bf5e332d64489b3eab67a5ac3f 11-Mar-2014 Elliott Hughes <enh@google.com> Switch to upstream FreeBSD ldexp.c.

(Yes, this should be in libm, but it isn't. For once, this mistake predates
bionic!)

Change-Id: I1340407acbcdc0151dee969a38ba490bdd5e6767
ib/libc/gen/ldexp.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
ib/libc/string/wcslcpy.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
ib/libc/stdio/clrerr.c
ib/libc/stdio/fdopen.c
ib/libc/stdio/feof.c
ib/libc/stdio/ferror.c
ib/libc/stdio/fgetln.c
ib/libc/stdio/fgetpos.c
ib/libc/stdio/fgets.c
ib/libc/stdio/fileno.c
ib/libc/stdio/fpurge.c
ib/libc/stdio/fputs.c
ib/libc/stdio/fsetpos.c
ib/libc/stdio/funopen.c
ib/libc/stdio/fwalk.c
ib/libc/stdio/getc.c
ib/libc/stdio/getchar.c
ib/libc/stdio/putc.c
ib/libc/stdio/putchar.c
ib/libc/stdio/puts.c
ib/libc/stdio/remove.c
ib/libc/stdio/rget.c
ib/libc/stdio/setbuf.c
ib/libc/stdio/setbuffer.c
ib/libc/stdio/tempnam.c
ib/libc/stdio/tmpnam.c
a38cb088619d3e2f2194247038c10897d1c5036e 17-Feb-2014 Elliott Hughes <enh@google.com> Clean up various warnings in bionic.

Change-Id: Ic57541d0a567fd4ae79f0ad59b2ffde1130eb7d2
reebsd-compat.h
ab61eb366ac48addf2bca6093a34455193f5c8df 21-Nov-2013 Elliott Hughes <enh@google.com> Switch to upstream sleep(3) and usleep(3).

Also fix the signature of usleep, and the definition of useconds_t which
should be unsigned, as the 'u' in its name implies.

This patch also cleans up the existing FreeBSD hacks by moving the libm
stuff from <sys/cdefs.h> to a libm-private header, and adding comments
about the hacks we use to build FreeBSD source.

Change-Id: Ibe5067a380502df94a0a3a7901969b35411085b6
reebsd-compat.h
ib/libc/gen/sleep.c
ib/libc/gen/usleep.c
aec2ffbc5a7b45368ceab3663265fbb659968fe7 12-Aug-2013 Elliott Hughes <enh@google.com> Fix our missing abs/labs/llabs/imaxabs (and imaxdiv) symbols.

Change-Id: I94c411c22634e43184445c82e7388e51fc46a8cc
ib/libc/stdlib/abs.c
ib/libc/stdlib/imaxabs.c
ib/libc/stdlib/imaxdiv.c
ib/libc/stdlib/labs.c
ib/libc/stdlib/llabs.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
ib/libc/stdio/mktemp.c
amespace.h
d278b828fef47fb2d7098f8ec70867fbd3da09d6 25-Jun-2013 Elliott Hughes <enh@google.com> Switch to current upstream getopt_long.

Change-Id: I4c646dcb8be9e88dd54d069a03bbc5fbfd92de03
reebsd-compat.h
ib/libc/stdlib/getopt_long.c
4eeec44e29c4d3471c6574c7eb8fdf240a9f17d7 13-Jun-2013 Elliott Hughes <enh@google.com> Fix the qsort copyright notice (fixed upstream this afternoon).

Change-Id: I786feb42719bceaa7da91565e350c1333b0d301f
ib/libc/stdlib/qsort.c
2815b1dd452a7fb7de6ba0df2cb250987a1b62c4 13-Jun-2013 Elliott Hughes <enh@google.com> Take some fixed upstream copyright headers and regenerate NOTICE.

Change-Id: Ifff41d69c13322dbc6f928ce7d4c65f76fe36772
ib/libc/string/wcscmp.c
ib/libc/string/wcsncmp.c
ib/libc/string/wcsncpy.c
ib/libc/string/wcsstr.c
ib/libc/string/wcstok.c
677ee5647721df22f13909375d5d0e770a1a80bf 13-Jun-2013 Elliott Hughes <enh@google.com> Switch to current upstream stdio makebuf.c and setvbuf.c.

Change-Id: I4761b5e94459815520f01062eef39abf62af621f
reebsd-compat.h
ib/libc/stdio/makebuf.c
ib/libc/stdio/setvbuf.c
b2e1abda0503874a5bb097e0b55ad4f8ce211a8d 14-May-2013 Elliott Hughes <enh@google.com> Pull upstream FreeBSD revision 249810.

Fix license clause numbering.

Convert libc/stdio from K&R to ANSI C.

And add '__restrict' where it appeared in the header prototypes.

Change-Id: I5fdb22f79d3effa2298d03f9aa8412b4b087da04
Upstream: http://svnweb.freebsd.org/base?view=revision&revision=249810
ib/libc/stdio/clrerr.c
ib/libc/stdio/fclose.c
ib/libc/stdio/fdopen.c
ib/libc/stdio/feof.c
ib/libc/stdio/ferror.c
ib/libc/stdio/fgetln.c
ib/libc/stdio/fgetpos.c
ib/libc/stdio/fgets.c
ib/libc/stdio/fileno.c
ib/libc/stdio/flags.c
ib/libc/stdio/fopen.c
ib/libc/stdio/fpurge.c
ib/libc/stdio/fputs.c
ib/libc/stdio/fsetpos.c
ib/libc/stdio/funopen.c
ib/libc/stdio/fwalk.c
ib/libc/stdio/fwrite.c
ib/libc/stdio/getc.c
ib/libc/stdio/getchar.c
ib/libc/stdio/putc.c
ib/libc/stdio/putchar.c
ib/libc/stdio/puts.c
ib/libc/stdio/putw.c
ib/libc/stdio/remove.c
ib/libc/stdio/rget.c
ib/libc/stdio/setbuf.c
ib/libc/stdio/setbuffer.c
ib/libc/stdio/tempnam.c
ib/libc/stdio/tmpnam.c
ib/libc/stdio/wsetup.c
0b25f633a23e575c8a1f9547d1af5dc5b0157a1c 12-Apr-2013 Elliott Hughes <enh@google.com> Switch to current FreeBSD qsort.

Change-Id: Ic46cd0b663dc5fa78c99dd38db0bfe849a25e789
ib/libc/stdlib/qsort.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
reebsd-compat.h
ib/libc/stdio/clrerr.c
ib/libc/stdio/fclose.c
ib/libc/stdio/fdopen.c
ib/libc/stdio/feof.c
ib/libc/stdio/ferror.c
ib/libc/stdio/fgetln.c
ib/libc/stdio/fgetpos.c
ib/libc/stdio/fgets.c
ib/libc/stdio/fileno.c
ib/libc/stdio/flags.c
ib/libc/stdio/fopen.c
ib/libc/stdio/fpurge.c
ib/libc/stdio/fputs.c
ib/libc/stdio/fsetpos.c
ib/libc/stdio/funopen.c
ib/libc/stdio/fwalk.c
ib/libc/stdio/fwrite.c
ib/libc/stdio/getc.c
ib/libc/stdio/getchar.c
ib/libc/stdio/putc.c
ib/libc/stdio/putchar.c
ib/libc/stdio/puts.c
ib/libc/stdio/putw.c
ib/libc/stdio/remove.c
ib/libc/stdio/rget.c
ib/libc/stdio/setbuf.c
ib/libc/stdio/setbuffer.c
ib/libc/stdio/tempnam.c
ib/libc/stdio/tmpnam.c
ib/libc/stdio/wsetup.c
ibc_private.h
pinlock.h
0493a6f7be42e22d68e1d6ddb8eb2edaf818756f 07-Mar-2013 Elliott Hughes <enh@google.com> Regenerate NOTICE files.

Also clean up some obsolete cruft.

Change-Id: Iec3b36f6607f7a08b72de99294ed5b6cd910dd5f
EADME.txt
eb93ebffba21e2c9b8a12bb86db60d38c7750270 02-Mar-2013 Elliott Hughes <enh@google.com> Switch to upstream-freebsd for the unmolested wchar code.

Change-Id: I87b4d76ff8da04109ae53638eec4f11629798960
ib/libc/string/wcpcpy.c
ib/libc/string/wcpncpy.c
ib/libc/string/wcscasecmp.c
ib/libc/string/wcscat.c
ib/libc/string/wcschr.c
ib/libc/string/wcscmp.c
ib/libc/string/wcscpy.c
ib/libc/string/wcscspn.c
ib/libc/string/wcsdup.c
ib/libc/string/wcslcat.c
ib/libc/string/wcslcpy.c
ib/libc/string/wcslen.c
ib/libc/string/wcsncasecmp.c
ib/libc/string/wcsncat.c
ib/libc/string/wcsncmp.c
ib/libc/string/wcsncpy.c
ib/libc/string/wcsnlen.c
ib/libc/string/wcspbrk.c
ib/libc/string/wcsrchr.c
ib/libc/string/wcsspn.c
ib/libc/string/wcsstr.c
ib/libc/string/wcstok.c
ib/libc/string/wmemchr.c
ib/libc/string/wmemcmp.c
ib/libc/string/wmemcpy.c
ib/libc/string/wmemmove.c
ib/libc/string/wmemset.c
f0777843c03deb26b1f78c8edd17c557041696e9 02-Mar-2013 Elliott Hughes <enh@google.com> Move realpath.c to upstream-freebsd.

This is actually a slightly newer upstream version than the one I
originally pulled. Hopefully now it's in upstream-freebsd it will
be easier to track upstream, though I still need to sit down and
write the necessary scripts at some point.

Bug: 5110679
Change-Id: I87e563f0f95aa8e68b45578e2a8f448bbf827a33
reebsd-compat.h
ib/libc/stdlib/realpath.c
amespace.h
n-namespace.h