- 19 Nov, 2013 11 commits
-
-
Christopher Ferris authored
* commit '2a34009f': Add .cfi_startproc/.cfi_endproc to ENTRY/END.
-
Christopher Ferris authored
-
Christopher Ferris authored
Bug: 10414953 Change-Id: I711718098b9f3cc0ba8277778df64557e9c7b2a0
-
Elliott Hughes authored
* commit 'bf652a5f': Provide <sys/user.h>.
-
Elliott Hughes authored
-
Elliott Hughes authored
strace wants this, for example. Change-Id: Icb4d64bde392abbc091fa3375a4fa19b2707b12c
-
Elliott Hughes authored
* commit '1b2d214b': Clean up forking and cloning.
-
Elliott Hughes authored
-
Elliott Hughes authored
The kernel now maintains the pthread_internal_t::tid field for us, and __clone was only used in one place so let's inline it so we don't have to leave such a dangerous function lying around. Also rename files to match their content and remove some useless #includes. Change-Id: I24299fb4a940e394de75f864ee36fdabbd9438f9
-
Narayan Kamath authored
* commit '9d70ddc4': Add test case for 1^NaN
-
Narayan Kamath authored
-
- 18 Nov, 2013 11 commits
-
-
Elliott Hughes authored
* commit '318e86ed': bionic: call stdio cleanup on exit
-
Elliott Hughes authored
-
Elliott Hughes authored
* commit '303fe0cb': Fix pthread_join.
-
Elliott Hughes authored
-
Elliott Hughes authored
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
-
Pawit Pornkitprasan authored
As of 61e699a1, stdio clean up functions are no longer registered in atexit and must be called manually via __cleanup. The issue this fixes is some static binaries linked against bionic cannot output properly when piped or redirected because the buffer is not flushed before closing. This is done by pulling in exit.c (and other dependencies) from netbsd. Change-Id: I193e54a6d08900f291550029fe75ce76394d9e22
-
Christopher Ferris authored
* commit '862faa12': Pull in cleaned version.h header.
-
Christopher Ferris authored
-
Christopher Ferris authored
* commit 'be8344bb': Modify tests for another glibc difference.
-
Christopher Ferris authored
-
Narayan Kamath authored
Should be 1. Change-Id: I6cf723a419f51d3bda58286a538774b71276c7b5
-
- 15 Nov, 2013 11 commits
-
-
Christopher Ferris authored
Change-Id: Ia917af9336b63ed5a10147770a8110134cb274cb
-
Christopher Ferris authored
It turns out that when passing a closed file to getdelim or getline, the functions in glibc will properly return a failure, but errno might not be set. Skip the errno check except on bionic. Change-Id: I8d625f15303d4c2d42e8d28491ea8a368aea4d32
-
Elliott Hughes authored
* commit 'f246c589': Clean up the pthread_create trampoline.
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 8206355 Bug: 11693195 Change-Id: I35cc024d5b6ebd19d1d2e45610db185addaf45df
-
Christopher Ferris authored
* commit 'e39e3a77': Add new tests for memory/string routines.
-
Elliott Hughes authored
* commit '645d4269': Switch pthread_create over to __bionic_clone.
-
Christopher Ferris authored
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 8206355 Bug: 11693195 Change-Id: I04aadbc36c87e1b7e33324b9a930a1e441fbfed6
-
Christopher Ferris authored
Create a few generic testing functions to allow any memory/string tests to be created. Add alignment tests for memcpy/memset/strcat/strcpy/strlen. Add an overread test for memcpy/strcat/strcpy/strlen. This test attempts to verify that the functions do not read past the end of their buffers (src buffer in the case of src/dst functions). Bug: 9797008 Change-Id: Ib3223ca1b99e729ae8229adc2d03f4dc3103d97c
-
- 14 Nov, 2013 3 commits
-
-
Elliott Hughes authored
* commit '05ec00bf': [MIPS] Reimplement syscall to invoke the system call directly
-
Elliott Hughes authored
-
Chris Dearman authored
Some MIPS kernels do not correctly restart interrupted system calls that have been invoked using the indirect syscall (NR_syscall). The simplest workaround is to handle the indirection in userland and then call the required system call directly. Change-Id: I8385399621529db9a52b463c96925f6decaaca30
-
- 13 Nov, 2013 4 commits
-
-
Elliott Hughes authored
* commit 'ae5c3dd7': Remove the mips regdef.h and fpregdef.h old kernel headers.
-
Elliott Hughes authored
-
Elliott Hughes authored
Bug: 11559337 Change-Id: I6352cac9c4ef425cb21e34d0299223711ec079af
-
Elliott Hughes authored
* commit 'c4250430': Add unit tests for pow's behavior with NaNs.
-