android_bionic/libc/bionic
Elliott Hughes 9e4ffa7032 Have pthread_attr_getstack for the main thread report RLIMIT_STACK...
...rather than just what's already mapped in. This seems somewhat
contrary to POSIX's "All pages within the stack described by stackaddr
and stacksize shall be both readable and writable by the thread", but
it's what glibc does.

Bug: 17111575
Change-Id: If9e2dfad9a603c0d0615a8123aacda4946e95b2c
2014-08-27 15:32:01 -07:00
..
NetdClient.cpp Mark sockets on creation (socket()) and accept4(). 2014-05-19 15:19:16 -07:00
NetdClientDispatch.cpp Mark sockets on creation (socket()) and accept4(). 2014-05-19 15:19:16 -07:00
__FD_chk.cpp
__cmsg_nxthdr.cpp Move __cmsg_nxthdr to its proper file. 2014-07-10 12:47:13 +01:00
__cxa_guard.cpp Move libstdc++ into libc. 2014-05-14 18:18:55 -07:00
__cxa_pure_virtual.cpp Move libstdc++ into libc. 2014-05-14 18:18:55 -07:00
__errno.cpp
__fgets_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__gnu_basename.cpp Implement the GNU basename(3) in addition to the POSIX one. 2014-08-19 14:30:30 -07:00
__libc_current_sigrtmax.cpp Make SIGRTMIN hide the real-time signals we use internally. 2014-04-30 10:06:09 -07:00
__libc_current_sigrtmin.cpp Make SIGRTMIN hide the real-time signals we use internally. 2014-04-30 10:06:09 -07:00
__memcpy_chk.cpp
__memmove_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__memset_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__read_chk.cpp
__recvfrom_chk.cpp
__set_errno.cpp bionic: fix __set_errno for arm64 syscalls that return a 64-bit value 2014-02-18 12:11:38 -08:00
__stack_chk_fail.cpp
__stpcpy_chk.cpp Add stpcpy/stpncpy. 2014-04-07 16:41:53 -07:00
__stpncpy_chk.cpp Add stpcpy/stpncpy. 2014-04-07 16:41:53 -07:00
__strcat_chk.cpp
__strchr_chk.cpp
__strcpy_chk.cpp Add stpcpy/stpncpy. 2014-04-07 16:41:53 -07:00
__strlcat_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__strlcpy_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__strlen_chk.cpp __strnlen_chk: avoid recursive strlen calls 2013-12-18 18:17:52 -08:00
__strncat_chk.cpp
__strncpy_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__strrchr_chk.cpp More OpenBSD cleanup (primarily string). 2014-02-24 18:02:05 -08:00
__umask_chk.cpp
__vsnprintf_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
__vsprintf_chk.cpp Clean up more recursive FORTIFY_SOURCE calls 2013-12-18 19:17:14 -08:00
abort.cpp Upstream atexit 2014-07-14 12:05:16 -07:00
accept.cpp Mark sockets on creation (socket()) and accept4(). 2014-05-19 15:19:16 -07:00
accept4.cpp Mark sockets on creation (socket()) and accept4(). 2014-05-19 15:19:16 -07:00
access.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
assert.cpp Rewrite and hide longjmperror. 2014-06-06 16:49:39 -07:00
atof.cpp Ensure we always have symbols for atof, strtof, strtold. 2014-03-12 16:12:57 -07:00
bindresvport.c
bionic_systrace.cpp More cases where libc should use O_CLOEXEC. 2014-08-26 16:20:59 -07:00
bionic_time_conversions.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
brk.cpp Fix overflow testing in sbrk. 2014-05-29 10:51:22 -07:00
c16rtomb.cpp Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
c32rtomb.cpp Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
chmod.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
chown.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
clearenv.cpp Switch to the upstream OpenBSD getenv/putenv/setenv implementation. 2014-04-22 17:41:00 -07:00
clock.cpp Reimplement clock(3) and switch to OpenBSD time(3). 2014-03-11 13:37:11 -07:00
clone.cpp Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE). 2014-08-18 16:04:03 -07:00
connect.cpp Cosmetic changes to netd client files. 2014-05-18 15:18:36 -07:00
crtbrand.c
ctype.cpp Remove isascii_l(3). 2014-07-14 15:48:02 -07:00
debug_mapinfo.cpp libc should use O_CLOEXEC when opening files for its own use. 2014-08-26 15:56:54 -07:00
debug_mapinfo.h Use libunwindbacktrace for debug malloc code. 2014-07-29 18:10:00 -07:00
debug_stacktrace.cpp Use libunwindbacktrace for debug malloc code. 2014-07-29 18:10:00 -07:00
debug_stacktrace.h
dirent.cpp More cases where libc should use O_CLOEXEC. 2014-08-26 16:20:59 -07:00
dl_iterate_phdr_static.cpp Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
dlmalloc.c Fix dlmalloc build. 2014-08-22 11:05:48 -07:00
dlmalloc.h Slim down static binaries by avoiding stdio. 2014-07-10 12:34:23 -07:00
dup2.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
epoll_create.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
epoll_pwait.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
epoll_wait.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
ether_aton.c
ether_ntoa.c
eventfd_read.cpp
eventfd_write.cpp
ffs.cpp Let the compiler worry about implementing ffs(3). 2013-10-24 16:29:40 -07:00
flockfile.cpp Switch to the OpenBSD implementations of the wide scanf functions. 2014-04-29 16:28:56 -07:00
fork.cpp Cache getpid. 2014-06-20 09:06:57 -07:00
fpclassify.cpp Clean-up _fpmath and fake_long_doubles 2014-04-23 19:03:06 +01:00
fts.c Quiten warnings in fts.c. 2014-07-01 17:20:06 -07:00
futimens.cpp
getauxval.cpp Switch <elf.h> over to linux uapi under the covers. 2014-02-10 18:22:24 -08:00
getcwd.cpp
getentropy_linux.c Use upstream OpenBSD's arc4random. 2014-07-21 14:38:16 -07:00
gethostname.c
getpgrp.cpp Take ownership of various simple syscall wrappers. 2014-03-10 17:17:01 -07:00
getpid.cpp Cache getpid. 2014-06-20 09:06:57 -07:00
getpriority.c
gettid.cpp Avoid a system call in 'gettid'. 2014-06-02 10:32:55 -07:00
hash.h
if_indextoname.c Fix a warning in if_indextoname.c. 2014-07-01 11:13:25 -07:00
if_nametoindex.c
initgroups.c
inotify_init.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
ioctl.c
isatty.c
jemalloc.h Support for jemalloc to replace dlmalloc. 2014-05-20 14:47:33 -07:00
jemalloc_wrapper.cpp Slim down static binaries by avoiding stdio. 2014-07-10 12:34:23 -07:00
lchown.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
legacy_32_bit_support.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
lfs64_support.cpp Added ftw64, nftw64 2014-02-24 20:22:11 +00:00
libc_init_common.cpp Fix pthread_getattr_np for the main thread. 2014-08-26 10:36:38 -07:00
libc_init_common.h Hide __libc_fini. 2014-06-04 16:29:37 -07:00
libc_init_dynamic.cpp Upstream atexit 2014-07-14 12:05:16 -07:00
libc_init_static.cpp Upstream atexit 2014-07-14 12:05:16 -07:00
libc_logging.cpp Expose android_set_abort_message(). 2014-08-18 14:37:42 -07:00
libgen.cpp
link.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
locale.cpp Change name of MB_CUR_MAX implementation function. 2014-08-14 13:56:51 -07:00
lstat.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
malloc_debug_backtrace.h Add a way to disable backtracing in malloc debug. 2014-08-08 09:40:17 -07:00
malloc_debug_check.cpp Add a way to disable backtracing in malloc debug. 2014-08-08 09:40:17 -07:00
malloc_debug_common.cpp Hide __libc_malloc_dispatch. 2014-08-12 16:53:14 -07:00
malloc_debug_common.h Do not include libc_common in malloc debug code. 2014-07-09 21:27:15 -07:00
malloc_debug_disable.h Use libunwindbacktrace for debug malloc code. 2014-07-29 18:10:00 -07:00
malloc_debug_leak.cpp Fix leak_realloc, copy entire allocation. 2014-08-18 13:10:47 -07:00
malloc_debug_qemu.cpp More cases where libc should use O_CLOEXEC. 2014-08-26 16:20:59 -07:00
malloc_info.cpp Implement malloc_info(3). 2014-08-22 10:23:12 -07:00
malloc_info.h Implement malloc_info(3). 2014-08-22 10:23:12 -07:00
mbrtoc16.cpp Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
mbrtoc32.cpp Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
mbstate.cpp Adds functionality specified by uchar.h 2014-06-04 08:39:24 -07:00
memchr.c
memcmp.c
memcpy.cpp Fix LP64 builds after OpenBSD string changes. 2014-02-25 15:12:29 -08:00
memmem.c
memmove.c Removes bcopy and bzero from bionic. 2014-06-03 17:22:07 -07:00
memrchr.c
memset.c
mkdir.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
mkfifo.cpp Make sure we have a mkfifo symbol. 2013-10-22 12:03:19 -07:00
mknod.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
mmap.cpp If the kernel doesn't have MADV_MERGEABLE, stop asking for it. 2014-03-03 11:54:21 -08:00
mntent.cpp Add getmntent_r to our collection of <mntent.h> compatibility stubs. 2014-05-13 10:44:07 -07:00
ndk_cruft.cpp Explain how wcswcs ended up in ndk_cruft.cpp. 2014-08-06 10:47:33 -07:00
new.cpp Add standard throw() spec to delete operators. 2014-08-25 21:16:14 +00:00
open.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
pathconf.c Remove pathconf's dependencies on non-uapi header files. 2013-11-06 17:21:09 -08:00
pause.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
pipe.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls. 2013-10-23 09:48:29 -07:00
poll.cpp Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls. 2013-10-24 15:48:32 -07:00
posix_fallocate.cpp Add fallocate/fallocate64/posix_fallocate/posix_fallocate64. 2014-02-03 16:20:46 -08:00
posix_timers.cpp Make SIGRTMIN hide the real-time signals we use internally. 2014-04-30 10:06:09 -07:00
pthread_accessor.h Switch to g_ for globals. 2014-05-14 10:02:03 -07:00
pthread_atfork.cpp Switch to g_ for globals. 2014-05-14 10:02:03 -07:00
pthread_attr.cpp Have pthread_attr_getstack for the main thread report RLIMIT_STACK... 2014-08-27 15:32:01 -07:00
pthread_cond.cpp Remove unnecessary #includes of <sys/atomics.h>. 2014-05-22 11:00:21 -07:00
pthread_create.cpp Only wipe TLS for user-supplied stacks. 2014-07-30 14:49:40 -07:00
pthread_detach.cpp Fix pthread_detach for already-exited threads. 2014-03-07 17:59:05 -08:00
pthread_equal.cpp
pthread_exit.cpp Do a second key cleanup in pthread_exit. 2014-08-06 17:57:04 -07:00
pthread_getcpuclockid.cpp
pthread_getschedparam.cpp
pthread_internal.h Only wipe TLS for user-supplied stacks. 2014-07-30 14:49:40 -07:00
pthread_internals.cpp Hide most of the private futex functions. 2014-05-21 18:30:00 -07:00
pthread_join.cpp Fix pthread_join. 2013-11-18 19:48:11 -08:00
pthread_key.cpp Switch to g_ for globals. 2014-05-14 10:02:03 -07:00
pthread_kill.cpp
pthread_mutex.cpp Added a bionic systrace class and tracing to pthread_mutex.cpp. 2014-07-28 19:38:08 -07:00
pthread_once.cpp <pthread.h> fixes and pthread cleanup. 2013-10-31 12:31:16 -07:00
pthread_rwlock.cpp Migrate pthread_rwlock implementation away from sys/atomics 2014-05-23 00:26:24 +01:00
pthread_self.cpp
pthread_setname_np.cpp More cases where libc should use O_CLOEXEC. 2014-08-26 16:20:59 -07:00
pthread_setschedparam.cpp <pthread.h> fixes and pthread cleanup. 2013-10-31 12:31:16 -07:00
pthread_sigmask.cpp
ptrace.cpp ptrace(3) should be varargs. 2014-07-16 16:07:10 -07:00
pty.cpp Fix linkage of grantpt(3). 2014-07-25 19:55:23 -07:00
pututline.c libc should use O_CLOEXEC when opening files for its own use. 2014-08-26 15:56:54 -07:00
raise.cpp
rand.cpp Implement rand/srand in terms of random/srandom. 2014-07-14 12:02:22 -07:00
readlink.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
reboot.cpp Clean up various warnings in bionic. 2014-02-18 12:04:54 -08:00
recv.cpp Fix recv.cpp so it can build with clang. 2014-07-02 16:46:34 -07:00
rename.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
rmdir.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
scandir.cpp Bring in google3-style DISALLOW_* macros. 2014-05-09 19:12:08 -07:00
sched_cpualloc.c
sched_cpucount.c Fix cpu_set_t 2014-04-30 14:30:15 +01:00
sched_getaffinity.cpp
sched_getcpu.cpp Clean up <sched.h>. 2014-01-02 12:05:50 -08:00
semaphore.c Use __unused rather than self assignment for unused parameters. 2014-07-07 09:46:54 -07:00
send.cpp Take ownership of various simple syscall wrappers. 2014-03-10 17:17:01 -07:00
setegid.cpp
seteuid.cpp
setpgrp.cpp Take ownership of various simple syscall wrappers. 2014-03-10 17:17:01 -07:00
sigaction.cpp [MIPS] SA_RESTORER support is not needed for MIPS 2014-01-30 20:39:53 -08:00
sigaddset.cpp Fix sigaction(3) for 64-bit. 2013-10-17 11:36:55 -07:00
sigblock.c
sigdelset.cpp Fix sigaction(3) for 64-bit. 2013-10-17 11:36:55 -07:00
sigemptyset.cpp Fix sigaction(3) for 64-bit. 2013-10-17 11:36:55 -07:00
sigfillset.cpp Fix sigaction(3) for 64-bit. 2013-10-17 11:36:55 -07:00
siginterrupt.c
sigismember.cpp Fix sigaction(3) for 64-bit. 2013-10-17 11:36:55 -07:00
signal.cpp Remove bsd_signal and sysv_signal from bionic LP64. 2014-06-05 08:21:17 -07:00
signalfd.cpp Hide __signalfd4, used to implement signalfd(3). 2014-05-16 15:47:29 -07:00
sigpending.cpp Switch sigpending over to rt_sigpending. 2013-10-16 14:07:01 -07:00
sigprocmask.cpp
sigsetmask.c
sigsuspend.cpp Fix sigsuspend to use rt_sigsuspend on all platforms. 2013-10-15 18:15:19 -07:00
sigwait.cpp Fix sigsuspend to use rt_sigsuspend on all platforms. 2013-10-15 18:15:19 -07:00
socket.cpp Mark sockets on creation (socket()) and accept4(). 2014-05-19 15:19:16 -07:00
stat.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
statvfs.cpp Implement some of the missing LFS64 support. 2014-02-18 15:39:24 -08:00
strchr.cpp More OpenBSD cleanup (primarily string). 2014-02-24 18:02:05 -08:00
strcoll_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
strerror.cpp
strerror_r.cpp Slim down static binaries by avoiding stdio. 2014-07-10 12:34:23 -07:00
strftime_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
strnlen.c
strrchr.cpp More OpenBSD cleanup (primarily string). 2014-02-24 18:02:05 -08:00
strsignal.cpp
strtold.cpp Use FLT_ROUNDS in LP64 strtold. 2014-04-16 16:09:41 -07:00
strtold_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
strtoll_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
strtoull_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
strxfrm_l.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
stubs.cpp Fix linkage of grantpt(3). 2014-07-25 19:55:23 -07:00
symlink.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
sys_siglist.c Clean up sys_signame and sys_siglist a little. 2014-02-12 17:09:25 -08:00
sys_signame.c Restore sys_signame for LP64. 2014-02-12 19:04:27 -08:00
sysconf.cpp libc should use O_CLOEXEC when opening files for its own use. 2014-08-26 15:56:54 -07:00
syslog.cpp Use vsnprintf(3) in syslog(3). 2014-07-28 09:43:21 -07:00
system_properties.cpp More cases where libc should use O_CLOEXEC. 2014-08-26 16:20:59 -07:00
system_properties_compat.c Hide most of the private futex functions. 2014-05-21 18:30:00 -07:00
tdestroy.cpp Implement twalk(3), add unit tests. 2014-07-24 14:55:29 -07:00
termios.cpp Clean up our termios implementation. 2014-03-11 19:13:25 -07:00
thread_private.cpp Sync to current upstream arc4random. 2014-06-24 14:13:48 -07:00
time64.c Remove some dead data. 2014-07-07 09:46:11 -07:00
time64_config.h
tmpfile.cpp Reduce stack usage of tmpfile(3). 2014-05-13 10:14:22 -07:00
umount.cpp Take ownership of various simple syscall wrappers. 2014-03-10 17:17:01 -07:00
unlink.cpp Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls. 2013-10-22 16:31:01 -07:00
utimes.cpp Fix utime/utimes when passed a NULL pointer. 2013-10-28 13:21:06 -07:00
vdso.cpp Use VDSO for clock_gettime(2) and gettimeofday(2). 2014-07-16 14:27:43 -07:00
wait.cpp Removes wait3(2) from LP64. 2014-06-13 16:04:41 -07:00
wchar.cpp Fix mbsrtowcs(3) src param for finished string. 2014-07-31 11:31:03 -07:00
wctype.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00