summaryrefslogtreecommitdiffstats
path: root/libc/upstream-freebsd
Commit message (Collapse)AuthorAgeFilesLines
* Clean up <stdlib.h> slightly.Elliott Hughes2015-01-261-44/+0
| | | | | | | Interestingly, this mostly involves cleaning up our implementation of various <string.h> functions. Change-Id: Ifaef49b5cb997134f7bc0cc31bdac844bdb9e089
* Remove an unused file.Elliott Hughes2014-10-291-25/+0
| | | | | | | We don't have any FreeBSD stdio left. Bug: 17154680 Change-Id: I145627f564364ac8d4707d431d451cc3115c1c6a
* Update our FreeBSD realpath(3) to upstream head.Elliott Hughes2014-09-301-20/+6
| | | | Change-Id: I8c89728184ecd2c1a28a05cefa84a5037d28b552
* Merge "Switch to OpenBSD fopen/fclose."Elliott Hughes2014-09-243-193/+0
|\
| * Switch to OpenBSD fopen/fclose.Elliott Hughes2014-09-243-193/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Sync with current upstream getopt_long.c.Elliott Hughes2014-09-241-18/+12
|/ | | | Change-Id: I269195aa581a688fd3eb99552d506b8f5f6a8395
* Switch to OpenBSD flags.c.Elliott Hughes2014-09-231-112/+0
| | | | Change-Id: I0a35e5bd9f8edba27e0c73e5c8150636346d6a81
* Fix _BSD_SOURCE/__USE_BSD.Elliott Hughes2014-08-191-1/+1
| | | | | Bug: 14659579 Change-Id: I80ec9584f054c02d1078828f6bca759c42bc1d4c
* Fix visibility for a bunch more symbols.Elliott Hughes2014-07-141-2/+0
| | | | | | Bug: 11156955 Bug: 15291317 Change-Id: I664f25cce7c17085a101d6593d8e01525a1f6a90
* Switch to upstream OpenBSD mktemp.c.Elliott Hughes2014-07-021-191/+0
| | | | | | | | | | | | | 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
* Register _cleanup function with atexitDmitriy Ivanov2014-05-152-277/+0
| | | | | | | | | | | | | | | | * 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
* Merge "Switch to current upstream OpenBSD wsetup.c."Elliott Hughes2014-05-051-92/+0
|\
| * Switch to current upstream OpenBSD wsetup.c.Elliott Hughes2014-05-051-92/+0
| | | | | | | | Change-Id: I2c1123f3e1d3c4af7fd7bf354e763934a39b78c0
* | Switch to current upstream OpenBSD fwrite.c.Elliott Hughes2014-05-021-96/+0
|/ | | | Change-Id: Ife527aafc1e5438f477d711902efe6e6f59f3f8e
* Adds quick_exit(3) and at_quick_exit(3) from freebsdDan Albert2014-04-291-0/+80
| | | | Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
* Replace our broken wcswcs with the working upstream one.Elliott Hughes2014-04-281-63/+0
| | | | Change-Id: I2952684df5674d10f0564d92c2cd42597725c0e3
* Clean up and document our hacks for building BSD source.Elliott Hughes2014-04-215-0/+0
| | | | Change-Id: Ic591e22fa5b363bb68376b9f25814c0e5bd83fbf
* Clean up <stdio.h> macros.Elliott Hughes2014-03-132-63/+0
| | | | | | | | | | Also neuter __isthreaded. We should come back to try to hide struct FILE's internals for LP64. Bug: 3453512 Bug: 3453550 Change-Id: I7e115329fb4579246a72fea367b9fc8cb6055d18
* Switch to upstream FreeBSD ldexp.c.Elliott Hughes2014-03-101-0/+123
| | | | | | | (Yes, this should be in libm, but it isn't. For once, this mistake predates bionic!) Change-Id: I1340407acbcdc0151dee969a38ba490bdd5e6767
* More OpenBSD cleanup (primarily string).Elliott Hughes2014-02-241-70/+0
| | | | | | This patch removes the string/ and wchar/ directories. Change-Id: Ia489904bc67047e4bc79acb1f3eec21aa3fe5f0d
* Clean up our OpenBSD usage.Elliott Hughes2014-02-2124-1699/+0
| | | | | | | | | 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
* Clean up various warnings in bionic.Elliott Hughes2014-02-181-0/+4
| | | | Change-Id: Ic57541d0a567fd4ae79f0ad59b2ffde1130eb7d2
* Switch to upstream sleep(3) and usleep(3).Elliott Hughes2013-11-203-1/+140
| | | | | | | | | | | 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
* Fix our missing abs/labs/llabs/imaxabs (and imaxdiv) symbols.Elliott Hughes2013-08-125-0/+203
| | | | Change-Id: I94c411c22634e43184445c82e7388e51fc46a8cc
* Upgrade mktemp.c to the current upstream version.Elliott Hughes2013-07-192-0/+193
| | | | | | | | Yet another archaic relic containing bugs that had been fixed years before the Android project even started... Bug: 9935113 Change-Id: I3c9d019a216efd609ee568cf8c70bc360f357403
* Switch to current upstream getopt_long.Elliott Hughes2013-06-252-0/+619
| | | | Change-Id: I4c646dcb8be9e88dd54d069a03bbc5fbfd92de03
* Fix the qsort copyright notice (fixed upstream this afternoon).Elliott Hughes2013-06-121-1/+1
| | | | Change-Id: I786feb42719bceaa7da91565e350c1333b0d301f
* Take some fixed upstream copyright headers and regenerate NOTICE.Elliott Hughes2013-06-125-5/+5
| | | | Change-Id: Ifff41d69c13322dbc6f928ce7d4c65f76fe36772
* Switch to current upstream stdio makebuf.c and setvbuf.c.Elliott Hughes2013-06-123-0/+278
| | | | Change-Id: I4761b5e94459815520f01062eef39abf62af621f
* Pull upstream FreeBSD revision 249810.Elliott Hughes2013-05-1430-84/+51
| | | | | | | | | | | 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
* Switch to current FreeBSD qsort.Elliott Hughes2013-04-111-0/+195
| | | | Change-Id: Ic46cd0b663dc5fa78c99dd38db0bfe849a25e789
* Start moving to current FreeBSD stdio.Elliott Hughes2013-04-1133-0/+2332
| | | | | | This only touches the easy stuff. Change-Id: Iecee57f1681dba5c56bff59f0e9a89811a71f0ca
* Regenerate NOTICE files.Elliott Hughes2013-03-071-0/+5
| | | | | | Also clean up some obsolete cruft. Change-Id: Iec3b36f6607f7a08b72de99294ed5b6cd910dd5f
* Switch to upstream-freebsd for the unmolested wchar code.Elliott Hughes2013-03-0127-0/+1454
| | | | Change-Id: I87b4d76ff8da04109ae53638eec4f11629798960
* Move realpath.c to upstream-freebsd.Elliott Hughes2013-03-014-0/+309
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