bionic/libc/bionic
Elliott Hughes fae89fc404 Fix raise(3) so it works in signal handlers.
We could special-case raise(3) in non-threaded programs, but the more
conservative course is to make pthread_kill(3) work in signal handlers
at the cost of a race shared by other C libraries.

Change-Id: I59fb23d03bdabf403435e731704b33acdf3e0234
2013-02-21 11:22:23 -08:00
..
__errno.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
__fgets_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__memcpy_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__memmove_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__memset_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__set_errno.cpp Reduce the exposure of the __set_errno implementation detail. 2012-11-30 12:05:18 -08:00
__stack_chk_fail.cpp Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces. 2013-02-14 14:37:34 -08:00
__stack_chk_guard.cpp Simplify __stack_chk_fail, and fix it so we get debuggerd stack traces. 2013-02-14 14:37:34 -08:00
__strcat_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strcpy_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strlcat_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strlcpy_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strlen_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strncat_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__strncpy_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__umask_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__vsnprintf_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
__vsprintf_chk.cpp clean up FORTIFY_SOURCE handling. 2012-12-04 15:27:30 -08:00
arc4random.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
assert.cpp Fix the duplication in the debugging code. 2013-01-18 22:20:06 -08:00
atoi.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
atol.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
atoll.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
bindresvport.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
bionic_clone.c Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
brk.cpp Remove bogus extra alignment from sbrk. 2013-02-05 16:10:59 -08:00
clearenv.c Change-Id: I68cc462aeb2460345a53bdb9941ce4bfc10456fb 2010-06-27 20:53:04 -07:00
cpuacct.c Prevent deadlock when using fork 2011-12-06 08:39:18 -08:00
crtbrand.c Add a .note.android.ident section to Android ELF binaries. 2012-07-31 16:18:22 +12:00
daemon.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
debug_format.cpp Unit tests for formatting code, fix %%. 2013-01-28 10:36:31 -08:00
debug_mapinfo.cpp Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
debug_mapinfo.h Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
debug_stacktrace.cpp Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
debug_stacktrace.h Don't collect useless stack frames; do demangle C++ symbols. 2013-01-29 09:56:31 -08:00
dirent.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
dl_iterate_phdr_static.c Fix x86 build to use <elf.h>. 2013-01-29 16:40:39 -08:00
dlmalloc.c Use the new non-allocating logging for dlmalloc failures. 2013-01-22 14:24:52 -08:00
dlmalloc.h Avoid malloc lock while calling pthread_atfork. 2012-08-31 11:11:40 -07:00
err.c __progname should be const char*, not char*. 2013-02-07 12:06:44 -08:00
ether_aton.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ether_ntoa.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
eventfd.cpp More upstream NetBSD upgrades. 2012-10-23 16:05:09 -07:00
fcntl.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fdprintf.c Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell 2010-01-15 16:52:35 -08:00
flockfile.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fork.c Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
fstatfs.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ftime.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ftok.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
fts.c Remove compiler warnings when building Bionic. 2010-06-22 17:51:41 -07:00
getauxval.cpp Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
getcwd.cpp Fix a getcwd(3) bug and make our tests run correctly under valgrind. 2012-10-09 17:17:24 -07:00
getdtablesize.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
gethostname.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpriority.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
getpt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
hash.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_indextoname.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
if_nametoindex.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
initgroups.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ioctl.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
isatty.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
issetugid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ldexp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
libc_init_common.cpp Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
libc_init_common.h Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
libc_init_dynamic.cpp Clean up the argc/argv/envp/auxv handling. 2013-02-07 11:44:21 -08:00
libc_init_static.cpp Switch to using AT_RANDOM for the stack guards. 2013-02-08 11:16:13 -08:00
libgen.cpp Clean up the <libgen.h> implementation a little, bring in tests. 2012-10-29 14:27:10 -07:00
logd_write.c Fix the duplication in the debugging code. 2013-01-18 22:20:06 -08:00
lseek64.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
malloc_debug_check.cpp Don't claim there were no leaks if we weren't even checking. 2013-02-01 17:07:40 -08:00
malloc_debug_common.cpp __progname should be const char*, not char*. 2013-02-07 12:06:44 -08:00
malloc_debug_common.h More debug malloc fixes. 2013-01-25 17:13:45 -08:00
malloc_debug_leak.cpp More debug malloc fixes. 2013-01-25 17:13:45 -08:00
malloc_debug_qemu.cpp Fix the duplication in the debugging code. 2013-01-18 22:20:06 -08:00
md5.c am 08a4ce98: am 0c398985: Merge "[ENDIAN] Build md5 code correctly for bigendian targets" 2011-03-14 11:50:56 -07:00
md5.h auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
memchr.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memcmp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memcpy.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memmem.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memmove.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memrchr.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memset.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
memswap.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
mmap.c mmap: Remove madvise() workaround 2012-11-19 11:46:33 -08:00
open.c FORTIFY_SOURCE: fix up previous commit 2012-12-05 15:26:54 -08:00
openat.c FORTIFY_SOURCE: fix up previous commit 2012-12-05 15:26:54 -08:00
pathconf.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
perror.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pread.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pselect.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pthread_accessor.h Fix raise(3) so it works in signal handlers. 2013-02-21 11:22:23 -08:00
pthread_attr.cpp Simplify pthread_create, using more public API. 2013-02-12 16:36:04 -08:00
pthread_create.cpp Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
pthread_debug.cpp __progname should be const char*, not char*. 2013-02-07 12:06:44 -08:00
pthread_detach.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_equal.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_getcpuclockid.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_getschedparam.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_internal.h Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_internals.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_join.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_key.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
pthread_kill.cpp Fix raise(3) so it works in signal handlers. 2013-02-21 11:22:23 -08:00
pthread_self.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_setname_np.cpp Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
pthread_setschedparam.cpp Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
pthread_sigmask.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
pthread-atfork.c Handle pthread-related changes (mutex/atfork) 2012-03-26 15:38:59 -07:00
pthread-rwlocks.c Fix the pthread_setname_np test. 2013-02-15 12:08:59 -08:00
pthread-timers.c Give the timer_create SIGEV_THREAD helper threads sensible names. 2012-06-06 10:32:56 -07:00
pthread.c Fix pthreads functions that should return ESRCH. 2013-02-19 12:21:41 -08:00
ptrace.c bionic, libthread_db x86 fixes 2011-07-07 22:46:16 +02:00
ptsname_r.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
ptsname.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
pututline.c bionic: ftell() returns a long, not an int 2010-02-05 16:05:52 -02:00
pwrite.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
raise.cpp Use pthread_kill() in raise() 2012-12-10 11:20:57 -08:00
realpath.c New additions/bug fixes required/found when porting perf. 2012-03-20 12:54:55 -07:00
reboot.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
recv.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sbrk.cpp Remove bogus extra alignment from sbrk. 2013-02-05 16:10:59 -08:00
sched_cpualloc.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_cpucount.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_getaffinity.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
sched_getcpu.c <sched.h>: Add sched_getcpu() and cpu_set_t 2010-12-06 13:42:54 +01:00
semaphore.c bionic: Do not use <sys/atomics.h> for platform code. 2011-11-16 16:28:10 +01:00
send.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setegid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
seteuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setlocale.cpp Move setlocale(3) and the wchar stubs over to .cpp. 2012-10-22 17:05:27 -07:00
setpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setresuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setreuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
setuid.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigblock.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
siginterrupt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
siglist.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
signal.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
signalfd.cpp Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
signame.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigsetmask.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigsuspend.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
sigwait.cpp Only have one copy of the kernel_sigset_t hack, and add more tests. 2013-01-10 14:42:14 -08:00
sleep.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
socketcalls.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
statfs.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strerror_r.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
strerror.cpp Make dlerror(3) thread-safe. 2012-10-16 17:58:17 -07:00
strndup.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strnlen.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strntoimax.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strntoumax.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
strsignal.cpp Make dlerror(3) thread-safe. 2012-10-16 17:58:17 -07:00
strtotimeval.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
stubs.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
sysconf.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
system_properties.c system_properties: do more checking of file 2013-01-25 13:07:31 -08:00
tcgetpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
tcsetpgrp.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
tdestroy.cpp Upgrade more functions to the current upstream NetBSD copy. 2012-10-23 12:29:53 -07:00
thread_atexit.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
time64_config.h <time.h>: Add timegm(), timelocal() and others. 2010-12-06 12:25:52 +01:00
time64.c time64: make helper functions static 2010-10-15 02:16:16 +08:00
tmpfile.cpp Revert "Revert "More pthreads cleanup."" 2013-02-12 15:27:18 -08:00
umount.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
unlockpt.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
usleep.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
utmp.c auto import from //depot/cupcake/@135843 2009-03-03 19:28:35 -08:00
wait.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00
wchar.cpp Move setlocale(3) and the wchar stubs over to .cpp. 2012-10-22 17:05:27 -07:00
wcscoll.c Move non-upstream code into the libc/bionic directory. 2012-10-01 17:35:49 -07:00