android_bionic/libc/bionic
Daniel Micay 706186d266 fix PTRDIFF_MAX check in the 32-bit mmap wrapper
It wasn't making use of the page-rounded size.

Change-Id: I911345fcfd6419a4dbc18a4622b42e1b76729abb
2015-11-03 05:30:29 -05:00
..
NetdClient.cpp RTLD_LAZY is not supported, use RTLD_NOW instead. 2015-03-23 14:58:45 -07:00
NetdClientDispatch.cpp
__FD_chk.cpp
__cmsg_nxthdr.cpp Move __cmsg_nxthdr to its proper file. 2014-07-10 12:47:13 +01:00
__cxa_guard.cpp Rewrite __cxa_guard.cpp with <stdatomic.h>. 2015-01-29 11:19:15 -08:00
__cxa_pure_virtual.cpp
__cxa_thread_atexit_impl.cpp Hide emutls* symbols in libc.so 2015-04-15 14:23:00 -07:00
__errno.cpp
__fgets_chk.cpp Inline helpers need to be exported unmangled. 2014-10-07 16:46:47 -07:00
__fread_chk.cpp add fortified implementations of fread/fwrite 2015-07-23 18:55:46 -04:00
__fwrite_chk.cpp add fortified implementations of fread/fwrite 2015-07-23 18:55:46 -04:00
__getcwd_chk.cpp add a fortified implementation of getcwd 2015-08-01 00:42:30 -04: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
__libc_current_sigrtmin.cpp
__memchr_chk.cpp add fortified memchr/memrchr implementations 2015-04-17 21:17:12 -04:00
__memcpy_chk.cpp
__memmove_chk.cpp
__memrchr_chk.cpp add fortified memchr/memrchr implementations 2015-04-17 21:17:12 -04:00
__memset_chk.cpp
__poll_chk.cpp Remove stray log line. 2015-02-09 18:01:45 +00:00
__pread64_chk.cpp add fortified implementations of pread/pread64 2015-04-16 10:33:35 -04:00
__pread_chk.cpp add fortified implementations of pread/pread64 2015-04-16 10:33:35 -04:00
__pwrite64_chk.cpp add fortified implementations of write/pwrite{,64} 2015-08-20 13:46:51 -04:00
__pwrite_chk.cpp add fortified implementations of write/pwrite{,64} 2015-08-20 13:46:51 -04:00
__read_chk.cpp
__readlink_chk.cpp add fortified readlink/readlinkat implementations 2015-04-17 18:49:12 -04:00
__readlinkat_chk.cpp add fortified readlink/readlinkat implementations 2015-04-17 18:49:12 -04:00
__recvfrom_chk.cpp Inline helpers need to be exported unmangled. 2014-10-07 16:46:47 -07:00
__set_errno.cpp Move __set_errno to ndk_cruft.cpp. 2015-10-29 18:11:32 -07:00
__stack_chk_fail.cpp
__stpcpy_chk.cpp
__stpncpy_chk.cpp
__strcat_chk.cpp
__strchr_chk.cpp
__strcpy_chk.cpp
__strlcat_chk.cpp
__strlcpy_chk.cpp
__strlen_chk.cpp
__strncat_chk.cpp
__strncpy_chk.cpp
__strrchr_chk.cpp
__umask_chk.cpp
__vsnprintf_chk.cpp
__vsprintf_chk.cpp
__write_chk.cpp add fortified implementations of write/pwrite{,64} 2015-08-20 13:46:51 -04:00
abort.cpp Upstream atexit 2014-07-14 12:05:16 -07:00
accept.cpp
accept4.cpp
access.cpp
arpa_inet.cpp Fix inet_aton on LP32. 2015-10-09 17:36:05 -07:00
assert.cpp Rewrite and hide longjmperror. 2014-06-06 16:49:39 -07:00
atof.cpp
bindresvport.c
bionic_systrace.cpp Don't abort when failed to write tracing message. 2015-07-22 18:24:53 -07:00
bionic_time_conversions.cpp Add semaphore tests, fix sem_destroy. 2014-09-19 17:37:06 -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
chown.cpp Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
clearenv.cpp
clock.cpp Reimplement clock(3) using clock_gettime(3) 2014-10-03 18:54:28 -07:00
clock_getcpuclockid.cpp support _POSIX_CPUTIME 2014-11-26 17:14:50 -08:00
clock_nanosleep.cpp Hide accidentally-exposed __clock_nanosleep. 2015-06-15 19:39:04 -07:00
clone.cpp Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE). 2014-08-18 16:04:03 -07:00
close.cpp Simplify close(2) EINTR handling. 2015-04-23 08:41:45 -07:00
connect.cpp
ctype.cpp Remove isascii_l(3). 2014-07-14 15:48:02 -07:00
debug_backtrace.cpp Rename debug_stacktrace to debug_backtrace. 2015-09-01 16:01:50 -07:00
debug_backtrace.h Rename debug_stacktrace to debug_backtrace. 2015-09-01 16:01:50 -07:00
debug_mapinfo.cpp Clean up /proc/<pid>/maps sscanfs. 2015-09-22 15:45:50 -07:00
debug_mapinfo.h Add support for non-zero vaddr in maps. 2015-07-16 15:25:39 -07:00
dirent.cpp Reorder DIR structure due to bad apps. 2015-06-04 14:04:16 -07:00
dl_iterate_phdr_static.cpp Fix signal trampolines. 2014-09-15 15:04:14 -07:00
dlmalloc.c Fix dlmalloc build. 2014-08-22 11:05:48 -07:00
dlmalloc.h Export two dlmalloc functions everywhere. 2015-06-05 17:12:17 -07:00
dup2.cpp Fix dup2 in the case where the two fds are equal. 2015-02-23 21:52:56 -08:00
epoll_create.cpp
epoll_pwait.cpp
epoll_wait.cpp
error.cpp Clean up <stdlib.h> slightly. 2015-01-26 14:28:41 -08:00
ether_aton.c
ether_ntoa.c
eventfd_read.cpp
eventfd_write.cpp
faccessat.cpp Fix "faccessat ignores flags" 2015-02-24 13:40:43 -08:00
fchmod.cpp Ensure raw fchmod/fchmodat syscalls are hidden. 2015-02-03 12:10:30 -08:00
fchmodat.cpp Ensure raw fchmod/fchmodat syscalls are hidden. 2015-02-03 12:10:30 -08:00
ffs.cpp
fgetxattr.cpp libc: Add O_PATH support for fgetxattr / fsetxattr 2015-06-01 15:51:56 -07:00
flistxattr.cpp Add O_PATH support for flistxattr() 2015-06-06 11:25:41 -07:00
flockfile.cpp Fix flockfile(3) and friends for stdin/stdout/stderr too. 2014-11-19 15:16:51 -08:00
fork.cpp Cache getpid. 2014-06-20 09:06:57 -07:00
fpclassify.cpp
fsetxattr.cpp libc: Add O_PATH support for fgetxattr / fsetxattr 2015-06-01 15:51:56 -07:00
ftruncate.cpp Cleanup ftruncate negative test. 2015-06-01 13:22:57 -07:00
fts.c Sync with upstream OpenBSD fts.c. 2014-11-21 19:27:28 -08:00
futimens.cpp
getauxval.cpp set errno to ENOENT in getauxval per glibc 2.19 2015-03-17 19:50:55 -04:00
getcwd.cpp add a fortified implementation of getcwd 2015-08-01 00:42:30 -04:00
getentropy_linux.c Use upstream OpenBSD's arc4random. 2014-07-21 14:38:16 -07:00
gethostname.cpp gethostname.c: change to report ENAMETOOLONG error when buflen is less 2014-11-12 12:07:33 -08:00
getpgrp.cpp
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
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
ioctl.c
isatty.c
jemalloc.h Include <malloc.h> for struct mallinfo. 2015-01-30 20:33:31 -08:00
jemalloc_wrapper.cpp Slim down static binaries by avoiding stdio. 2014-07-10 12:34:23 -07:00
lchown.cpp Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
legacy_32_bit_support.cpp Add prlimit to LP32. 2015-10-28 20:04:59 -07:00
lfs64_support.cpp CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. 2014-09-23 18:21:52 -07:00
libc_init_common.cpp Move setjmp cookie to a shared globals struct. 2015-10-09 15:59:04 -07:00
libc_init_common.h Move VDSO pointers to a shared globals struct. 2015-10-09 15:59:04 -07:00
libc_init_dynamic.cpp Move malloc dispatch table to __libc_globals. 2015-10-12 17:54:58 -07:00
libc_init_static.cpp Move VDSO pointers to a shared globals struct. 2015-10-09 15:59:04 -07:00
libc_logging.cpp deprecate TARGET_USES_LOGD 2015-07-28 08:51:17 -07:00
libgen.cpp Rename LIBC64_HIDDEN to LIBC32_LEGACY_PUBLIC. 2015-10-23 12:32:52 -07:00
link.cpp
locale.cpp Use pthread_once for g_uselocale_key creation. 2015-03-05 20:39:10 -08:00
lstat.cpp
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 Rename debug_stacktrace to debug_backtrace. 2015-09-01 16:01:50 -07:00
malloc_debug_common.cpp Move malloc dispatch table to __libc_globals. 2015-10-12 17:54:58 -07:00
malloc_debug_common.h Move malloc dispatch table to __libc_globals. 2015-10-12 17:54:58 -07:00
malloc_debug_disable.h Use libunwindbacktrace for debug malloc code. 2014-07-29 18:10:00 -07:00
malloc_debug_leak.cpp Rename debug_stacktrace to debug_backtrace. 2015-09-01 16:01:50 -07:00
malloc_debug_qemu.cpp Remove PAGESIZE. 2015-07-28 16:46:06 -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
memmem.c
mempcpy.cpp Add GNU extensions mempcpy and wmemcpy. 2015-02-18 22:02:56 -08:00
mkdir.cpp
mkfifo.cpp Add mkfifoat(3). 2014-10-23 19:10:54 -07:00
mknod.cpp
mmap.cpp fix PTRDIFF_MAX check in the 32-bit mmap wrapper 2015-11-03 05:30:29 -05:00
mntent.cpp Make ThreadLocalBuffer a class rather than a macro. 2015-03-31 10:56:58 -07:00
ndk_cruft.cpp Move __set_errno to ndk_cruft.cpp. 2015-10-29 18:11:32 -07:00
new.cpp Add standard throw() spec to delete operators. 2014-08-25 21:16:14 +00:00
open.cpp Turn on -Wold-style-cast and fix the errors. 2015-01-21 17:09:58 -08:00
pathconf.cpp Increase support of pathconf options. 2014-11-14 23:45:24 +00:00
pause.cpp
pipe.cpp
poll.cpp Fix clang build. 2015-02-02 10:21:39 -08:00
posix_fadvise.cpp Add posix_fadvise(3). 2014-09-11 08:45:46 -07:00
posix_fallocate.cpp
posix_madvise.cpp implement posix_madvise 2014-12-04 11:01:28 -08:00
posix_timers.cpp Fix POSIX timer thread naming. 2015-04-25 10:05:24 -07:00
pthread_atfork.cpp Unregister pthread_atfork handlers on dlclose() 2015-04-24 17:57:37 -07:00
pthread_attr.cpp Fix the way to get main thread stack start address. 2015-09-16 11:45:13 -07:00
pthread_cond.cpp Add test for pthread types alignment check. 2015-03-20 17:42:09 -07:00
pthread_create.cpp Use bionic lock in pthread_internal_t. 2015-10-22 20:14:33 -07:00
pthread_detach.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_equal.cpp
pthread_exit.cpp Revert "Revert "add guard pages to the internal signal stacks"" 2015-03-30 20:51:39 -07:00
pthread_getcpuclockid.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_getschedparam.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_gettid_np.cpp Remove "private/bionic_pthread.h". 2014-09-12 11:35:05 -07:00
pthread_internal.cpp Revert "Cause Fatal error when invalid pthread_id is detected." 2015-03-26 18:13:07 +00:00
pthread_internal.h Use bionic lock in pthread_internal_t. 2015-10-22 20:14:33 -07:00
pthread_join.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_key.cpp Prevent using static-allocated pthread keys before creation. 2015-04-14 13:32:09 -07:00
pthread_kill.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_mutex.cpp Allow NULL in pthread_mutex_lock/unlock. 2015-06-10 10:50:43 -07:00
pthread_once.cpp Switch pthread_once_t to stdatomic.h. 2015-01-27 19:49:12 -08:00
pthread_rwlock.cpp Provide writer preference option in rwlock. 2015-04-08 13:11:13 -07:00
pthread_self.cpp
pthread_setname_np.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_setschedparam.cpp Let g_thread_list_lock only protect g_thread_list. 2015-03-23 19:03:49 -07:00
pthread_sigmask.cpp
ptrace.cpp ptrace(3) should be varargs. 2014-07-16 16:07:10 -07:00
pty.cpp Make ThreadLocalBuffer a class rather than a macro. 2015-03-31 10:56:58 -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 Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
rand.cpp Implement rand/srand in terms of random/srandom. 2014-07-14 12:02:22 -07:00
readlink.cpp add fortified readlink/readlinkat implementations 2015-04-17 18:49:12 -04:00
reboot.cpp
recv.cpp Fix recv.cpp so it can build with clang. 2014-07-02 16:46:34 -07:00
rename.cpp
rmdir.cpp
scandir.cpp Implement scandirat and scandirat64. 2015-10-27 13:47:36 -07:00
sched_cpualloc.c
sched_cpucount.c
sched_getaffinity.cpp
sched_getcpu.cpp
semaphore.cpp Remove invalid left shifts of -1. 2015-09-29 10:04:54 -07:00
send.cpp
setegid.cpp
seteuid.cpp
setjmp_cookie.cpp Move setjmp cookie to a shared globals struct. 2015-10-09 15:59:04 -07:00
setpgrp.cpp
sigaction.cpp Use the kernel's sa_restorer for aarch64. 2014-09-16 15:49:50 -07:00
sigaddset.cpp Turn on -Wold-style-cast and fix the errors. 2015-01-21 17:09:58 -08:00
sigblock.c
sigdelset.cpp Turn on -Wold-style-cast and fix the errors. 2015-01-21 17:09:58 -08:00
sigemptyset.cpp Reduce <signal.h> namespace pollution. 2015-01-24 14:18:16 -08:00
sigfillset.cpp Reduce <signal.h> namespace pollution. 2015-01-24 14:18:16 -08:00
siginterrupt.c
sigismember.cpp Turn on -Wold-style-cast and fix the errors. 2015-01-21 17:09:58 -08:00
signal.cpp Make _signal hidden in all cases. 2015-10-30 17:10:47 -07:00
signalfd.cpp
sigpending.cpp
sigprocmask.cpp
sigqueue.cpp Hide rt_sigqueueinfo. 2015-05-18 11:29:20 -07:00
sigsetmask.c
sigsuspend.cpp
sigtimedwait.cpp support _POSIX_REALTIME_SIGNALS 2014-12-08 21:52:43 -08:00
sigwait.cpp
sigwaitinfo.cpp support _POSIX_REALTIME_SIGNALS 2014-12-08 21:52:43 -08:00
socket.cpp
stat.cpp
statvfs.cpp Hide statfs/fstatfs' ST_VALID flag from userspace. 2015-03-18 15:46:48 -07:00
strchr.cpp
strchrnul.cpp Add strchrnul. 2015-08-26 09:59:29 -07:00
strerror.cpp Make ThreadLocalBuffer a class rather than a macro. 2015-03-31 10:56:58 -07:00
strerror_r.cpp Add GNU-compatible strerror_r. 2014-08-28 16:37:09 -07:00
strnlen.c
strrchr.cpp
strsignal.cpp Make ThreadLocalBuffer a class rather than a macro. 2015-03-31 10:56:58 -07:00
strtold.cpp
stubs.cpp Add preliminary OEM UID/GID support. 2015-09-22 13:33:17 -07:00
symlink.cpp
sys_siglist.c
sys_signame.c
sysconf.cpp Remove PAGESIZE. 2015-07-28 16:46:06 -07:00
sysinfo.cpp Fix the way to count online cpus. 2015-09-29 17:49:37 -07:00
syslog.cpp Clean up <stdlib.h> slightly. 2015-01-26 14:28:41 -08:00
system_properties.cpp bionic: add __system_property_area_serial() 2015-04-27 07:44:03 -07:00
system_properties_compat.c
tdestroy.cpp Turn on -Wold-style-cast and fix the errors. 2015-01-21 17:09:58 -08:00
termios.cpp Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
thread_private.cpp Sync to current upstream arc4random. 2014-06-24 14:13:48 -07:00
time64.c Use snprintf instead of sprintf. 2014-10-07 11:28:47 -07:00
time64_config.h
tmpfile.cpp
umount.cpp
unlink.cpp
utimes.cpp Remove bogus transitive includes. 2014-12-29 13:29:50 -08:00
vdso.cpp Move VDSO pointers to a shared globals struct. 2015-10-09 15:59:04 -07:00
wait.cpp Removes wait3(2) from LP64. 2014-06-13 16:04:41 -07:00
wchar.cpp Fix incorrect parameter types for locale funcs. 2014-09-23 15:32:24 -07:00
wctype.cpp Revert "Revert "Add locale aware APIs."" 2014-07-11 16:21:31 +00:00
wmempcpy.cpp Add GNU extensions mempcpy and wmemcpy. 2015-02-18 22:02:56 -08:00