2ea0a58e01c1ed6db1da9dd0314ee053f5a32026 |
|
26-Jul-2014 |
Elliott Hughes <enh@google.com> |
Fix linkage of grantpt(3). Also clean up the implementation of all the pty functions, add tests, and fix the stub implementations of ttyname(3) and ttyname_r(3). Bug: https://code.google.com/p/android/issues/detail?id=58888 (cherry picked from commit 4916706cfe590eb06c9b5bd4bd402ce056034d51) Change-Id: I5cb7a1c17b156456e4c4818e65f256eb8d045424
|
99ae0983c0fd22e34e4d2aa61942b04e347447ee |
|
14-Jul-2014 |
Elliott Hughes <enh@google.com> |
Implement rand/srand in terms of random/srandom. Code developed for glibc or older versions of bionic might expect more randomness than the BSD implementation provides. Bug: 15829381 (cherry picked from commit 76c241b091b4d9d9a9237d40e814e52ce2917f47) Change-Id: If721b3f16efdb21cb67df5ec5034c0ba905bd029
|
a0beeeabbc8735bc830544cbbb1d920122b8d958 |
|
12-Jun-2014 |
Elliott Hughes <enh@google.com> |
Get the full set of PRNG functions in <stdlib.h> Bug: https://code.google.com/p/android/issues/detail?id=58888 Change-Id: I435250bdae302e8bd7e29977d0fde7b9afbfca5e
|
063525c61d24776094d76971f33920e2a2079530 |
|
13-May-2014 |
Elliott Hughes <enh@google.com> |
Consistently use #if defined(__BIONIC__) in tests. I've also switched some tests to be positive rather than negative, because !defined is slightly harder to reason about and there are only two cases: bionic and glibc. Change-Id: I8d3ac40420ca5aead3e88c69cf293f267273c8ef
|
b8425c549a0bfe08b01b5906b95603d8523c1b16 |
|
30-Apr-2014 |
Dan Albert <danalbert@google.com> |
Adds quick_exit(3) and at_quick_exit(3) from freebsd Change-Id: I4fe88abd8f7b8aa45e58aeb2529d59a8d555d338
|
9f525644df99cb2f7f81a23ca23840f0a8f82275 |
|
09-Apr-2014 |
Elliott Hughes <enh@google.com> |
Implement _Exit(3). Change-Id: Ida6ac844cc87d38c9645b197dd8188bb73e27dbe
|
f171b34cf045115b82ccb89b57feb56d3cad472b |
|
18-Mar-2014 |
Christopher Ferris <cferris@google.com> |
Use the float/double assert macros. The normal ASSERT_EQ macros don't work quite right for float/double values, and result in false failures. Use the correct macros instead. Bug: 13511379 Change-Id: Ic2feee7f3d3569f57b6453b8fa95222846c625cd
|
5a8173860d65182af022be88fed0c5d8d5dcb69d |
|
13-Mar-2014 |
Elliott Hughes <enh@google.com> |
Ensure we always have symbols for atof, strtof, strtold. We'll need a better implementation of strtold for LP64, but all our long double functions are currently broken for LP64 anyway so this isn't a regression. Change-Id: I2bdebac11245d31521d5fa09a16331c03dc4339c
|
40488560c17e41c0980b3a08ef54ec38bb572a41 |
|
12-Mar-2014 |
Elliott Hughes <enh@google.com> |
Include what you use. Don't rely on transitive includes. (Even though that works fine in AOSP.) Change-Id: Ifc06575e4aea383cfff24d6c5c14fc0a7aabdf2b
|
3cdf5739cd34757943a5fff9d26efeb8da04cb09 |
|
11-Mar-2014 |
Elliott Hughes <enh@google.com> |
Add a basic unit test for system(3). Change-Id: Ibc5ac21f3663685d89ce261b58d6ea386fc1ff88
|
fe317a3775e16d466bb884a8e054fd77f7087bb3 |
|
21-Feb-2014 |
Calin Juravle <calin@google.com> |
Added mkstemp64 Bug: 13076637 Change-Id: I41bf28ab3e6c7325470781e9323eeec023483df5
|
877ec6d90418ff1d6597147d355a2229fdffae7e |
|
16-Nov-2013 |
Elliott Hughes <enh@google.com> |
Fix pthread_join. Let the kernel keep pthread_internal_t::tid updated, including across forks and for the main thread. This then lets us fix pthread_join to only return after the thread has really exited. Also fix the thread attributes of the main thread so we don't unmap the main thread's stack (which is really owned by the dynamic linker and contains things like environment variables), which fixes crashes when joining with an exited main thread and also fixes problems reported publicly with accessing environment variables after the main thread exits (for which I've added a new unit test). In passing I also fixed a bug where if the clone(2) inside pthread_create(3) fails, we'd unmap the child's stack and TLS (which contains the mutex) and then try to unlock the mutex. Boom! It wasn't until after I'd uploaded the fix for this that I came across a new public bug reporting this exact failure. Bug: 8206355 Bug: 11693195 Bug: https://code.google.com/p/android/issues/detail?id=57421 Bug: https://code.google.com/p/android/issues/detail?id=62392 Change-Id: I2af9cf6e8ae510a67256ad93cad891794ed0580b
|
0b25f633a23e575c8a1f9547d1af5dc5b0157a1c |
|
12-Apr-2013 |
Elliott Hughes <enh@google.com> |
Switch to current FreeBSD qsort. Change-Id: Ic46cd0b663dc5fa78c99dd38db0bfe849a25e789
|
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
|
b16b72248bd109b6073df6a45aeffaa69e38cfc6 |
|
04-Feb-2013 |
Elliott Hughes <enh@google.com> |
Add basic tests for posix_memalign. Change-Id: Ie34fcc87aa9e8bfc715e25161752024b11e2032a
|
774c7f54ff375d71106283d42779b0cc5f238f87 |
|
01-Oct-2012 |
Elliott Hughes <enh@google.com> |
Upgrade to the current NetBSD rand implementation. Also add basic unit tests. Change-Id: I7fc7ef61d47c1e8fdf8b8eff67a635220c3afd56
|