summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Changes to re-enable overrides for tz dataNeil Fuller2015-03-251-5/+8
| | | | | Bug: 10637303 Change-Id: I5d525b66cf30d34b421803b876445596bed8d64d
* Merge "Declare getgrent/setgrent/endgrent as missing."Yabin Cui2015-02-142-5/+7
|\
| * Declare getgrent/setgrent/endgrent as missing.Yabin Cui2015-02-132-5/+7
| | | | | | | | | | Bug: 19340053 Change-Id: I42bfeda95e6f262e2e74ab47336ea346c2de7e4a
* | Merge changes I88827aa0,Ib0b0987aDmitriy Ivanov2015-02-141-0/+3
|\ \ | | | | | | | | | | | | | | | * changes: Fix: DT_DEBUG was acting as DT_REL on mips64 Add missing SHT_LOOS/SHT_HIOS values
| * | Add missing SHT_LOOS/SHT_HIOS valuesDmitriy Ivanov2015-02-131-0/+3
| | | | | | | | | | | | Change-Id: Ib0b0987a7e85af7863c6ef894263b5980e32344d
* | | Make .note.android.ident section type SH_NOTEColin Cross2015-02-124-59/+61
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The .note.android.ident section is only used by GDB, which doesn't care what section type the section is, but it would be convenient for readelf -n to be able to find the section too. The old way of getting the .note.android.ident section to be of type SH_NOTE involved compiling from .c to .s using gcc, running sed to change progbits to note, and then compiling from .s to .o using gcc. Since crtbrand.c only contains a section containing data, a crtbrand.S can be checked in that will compile on all platforms, avoiding the need for sed. Also add crtbrand.o to crtbegin_so.o so that libraries also get the note, and to the crt workaround in arm libc.so. Change-Id: Ica71942a6af4553b56978ceaa288b3f4c15ebfa2
* | Remove no-op sed step when compiling crtbrand.oColin Cross2015-02-112-32/+5
|/ | | | | | | | | | | | crtbrand.c was compiled to a .s file, run through a sed script to translate a %progbits to %note, and the compiled to .o. However, when the sed command was copied from the original source it was not updated to use the new name of the section (.note.ABI-tag to .note.android.ident), so it didn't modify the file. Since the section has been generated with type %progbits instead of %note for two years, just delete the whole sed step. Change-Id: Id78582e9b43b628afec4eed22a088283132f0742
* Merge "Define MAXHOSTNAMELEN explicitly in source files."Yabin Cui2015-02-105-9/+12
|\
| * Define MAXHOSTNAMELEN explicitly in source files.Yabin Cui2015-02-095-9/+12
| | | | | | | | | | | | Bug: 19093777 Bug: 19092844 Change-Id: I0778507ca2d5c008abb9a6d6315d0909263a8817
* | Merge "Switch pthread_cond_t to <stdatomic.h>."Yabin Cui2015-02-102-41/+61
|\ \ | |/ |/|
| * Switch pthread_cond_t to <stdatomic.h>.Yabin Cui2015-02-092-41/+61
| | | | | | | | | | Bug: 17574458 Change-Id: Ic7f79861df4fe751cfa6c6b20b71123cc31e7114
* | Merge "Stop including <linux/param.h> in <sys/param.h>."Yabin Cui2015-02-091-1/+1
|\ \
| * | Stop including <linux/param.h> in <sys/param.h>.Yabin Cui2015-02-041-1/+1
| | | | | | | | | | | | | | | Bug: 19092844 Change-Id: I1a4a0c84a196a187ea32e58491de744cf3c0f404
* | | Remove stray log line.Narayan Kamath2015-02-091-4/+0
| | | | | | | | | | | | Change-Id: Id948ae37a91dadd9d40e91de97f18774bdccfc78
* | | Merge "Switch kernel header parsing to python libclang"Tao Bao2015-02-06670-33699/+33781
|\ \ \
| * | | Switch kernel header parsing to python libclangTao Bao2015-02-06670-33699/+33781
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
* | | | Merge "Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirs"Colin Cross2015-02-061-20/+25
|\ \ \ \
| * | | | Use LOCAL_C_INCLUDES instead of LOCAL_CFLAGS for include dirsColin Cross2015-02-061-20/+25
| | | | | | | | | | | | | | | | | | | | Change-Id: If61d6faae5d91c3bbe198e733e5922cd877ba353
* | | | | Merge "Use the libcxxabi __cxa_demangle."Elliott Hughes2015-02-052-19/+5
|\ \ \ \ \
| * | | | | Use the libcxxabi __cxa_demangle.Elliott Hughes2015-02-052-19/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 18930951 Change-Id: If2ea3633ac6dfd4ec975c0f16bdf3dd58e05c614
* | | | | | Apparently, logd does need the NULs.Elliott Hughes2015-02-051-4/+4
|/ / / / / | | | | | | | | | | | | | | | Change-Id: I04b834e65c26c5821b952f78a0de7f92527cbdba
* | | | | Merge changes Ib87855e8,I4b46ae20,I66364a5c,Id3fcf680Colin Cross2015-02-055-63/+21
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * changes: Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architectures Fix typo in cpu variant makefile depenendency for arm64 Remove libc_static_common_src_files Share LP32 makefile settings between arches
| * | | | Use LOCAL_LDFLAGS_64 instead of enumerating 64-bit architecturesColin Cross2015-02-041-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LOCAL_LDFLAGS_<arch> was being set for arm64, mips64, and x86_64. Use LOCAL_LDFLAGS_64 instead. Change-Id: Ib87855e8a7783f82461b707fffa7f1663e6be9c8
| * | | | Fix typo in cpu variant makefile depenendency for arm64Colin Cross2015-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cpu_variank_mk -> cpu_variant_mk Change-Id: I4b46ae20de72ed2dc8820d62ac35ddc6b915a195
| * | | | Remove libc_static_common_src_filesColin Cross2015-02-041-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | libc_static_common_src_files is never set after c3f114037dbf028896310609fd28cf2b3da99c4d, remove the remaining references to it. Change-Id: I66364a5c1b031ad69d608f6f44244049192944f6
| * | | | Share LP32 makefile settings between archesColin Cross2015-02-044-55/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add <var>_32 to patch-up-arch-specific-flags, and move the LP32 cruft varaibles from the 32-bit arch specific makefiles into the top level Android.mk. Change-Id: Id3fcf6805d4af048c2524c94b1295416ebe7d057
* | | | | Set INCLUDE_UNI_CORE_DATA=1 when rebuilding ICU4C time zone data.Fredrik Roubert2015-02-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is now necessary to build .dat files that are useable for ICU4J as well, and will need to be used for any future updates of the .dat file: https://android.googlesource.com/platform/external/icu/+/6b52738 Change-Id: Ifa3a7469a66ab932db20876697e45814f0c5ddc3
* | | | | Merge "Switch sem_t from bionic atomics to stdatomic.h."Yabin Cui2015-02-042-68/+89
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Switch sem_t from bionic atomics to stdatomic.h.Yabin Cui2015-02-032-68/+89
| | |_|/ | |/| | | | | | | | | | | | | | Bug: 17572887 Change-Id: If66851ba9b831cdd698b9f1303289bb14448bd03
* | | | Merge "Add test about pthread_mutex_t owner tid limit."Yabin Cui2015-02-031-24/+3
|\ \ \ \
| * | | | Add test about pthread_mutex_t owner tid limit.Yabin Cui2015-02-031-24/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 19216648 Change-Id: I7b12955bdcad31c13bf8ec2740ff88ba15223ec0
* | | | | Ensure raw fchmod/fchmodat syscalls are hidden.Nick Kralevich2015-02-0316-38/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In https://android-review.googlesource.com/#/c/127908/5/libc/SYSCALLS.TXT@116 Elliott said: for LP64 these will be hidden. for LP32 we were cowards and left them all public for compatibility (though i don't think we ever dremeled to see whether it was needed). we don't have an easy way to recognize additions, though, so we can't prevent adding new turds. Add a mechanism to prevent the adding of new turds, and use that mechanism on the fchmod/fchmodat system calls. Bug: 19233951 Change-Id: I98f98345970b631a379f348df57858f9fc3d57c0
* | | | | Merge "Switch pthread_mutex_t from bionic atomics to <stdatomic.h>."Hans Boehm2015-02-032-317/+295
|\ \ \ \ \ | |/ / / /
| * | | | Switch pthread_mutex_t from bionic atomics to <stdatomic.h>.Yabin Cui2015-02-022-317/+295
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 17574456 Change-Id: I5ce3d3dc07e804e9ce55c42920f47531b56e04de
* | | | | Merge "Clean up SEEK_SET definitions."Elliott Hughes2015-02-032-21/+10
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Clean up SEEK_SET definitions.Elliott Hughes2015-02-022-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we lose the #ifndef, the compiler will tell us if the definitions of SEEK_SET and friends ever get out of sync. Change-Id: I357cabec7c9cd451c604342344f210bba20fb6bc
* | | | | Merge "Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH support"Nick Kralevich2015-02-0216-35/+176
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add fchmodat(AT_SYMLINK_NOFOLLOW) and fchmod O_PATH supportNick Kralevich2015-02-0216-35/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many libc functions have an option to not follow symbolic links. This is useful to avoid security sensitive code from inadvertantly following attacker supplied symlinks and taking inappropriate action on files it shouldn't. For example, open() has O_NOFOLLOW, chown() has lchown(), stat() has lstat(), etc. There is no such equivalent function for chmod(), such as lchmod(). To address this, POSIX introduced fchmodat(AT_SYMLINK_NOFOLLOW), which is intended to provide a way to perform a chmod operation which doesn't follow symlinks. Currently, the Linux kernel doesn't implement AT_SYMLINK_NOFOLLOW. In GLIBC, attempting to use the AT_SYMLINK_NOFOLLOW flag causes fchmodat to return ENOTSUP. Details are in "man fchmodat". Bionic currently differs from GLIBC in that AT_SYMLINK_NOFOLLOW is silently ignored and treated as if the flag wasn't present. This patch provides a userspace implementation of AT_SYMLINK_NOFOLLOW for bionic. Using open(O_PATH | O_NOFOLLOW), we can provide a way to atomically change the permissions on files without worrying about race conditions. As part of this change, we add support for fchmod on O_PATH file descriptors, because it's relatively straight forward and could be useful in the future. The basic idea behind this implementation comes from https://sourceware.org/bugzilla/show_bug.cgi?id=14578 , specifically comment #10. Change-Id: I1eba0cdb2c509d9193ceecf28f13118188a3cfa7
* | | | | Small logging cleanup.Elliott Hughes2015-02-021-13/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't send the trailing NUL bytes to the logger, call strlen if we already know the length, or cast more specifically than we need to. Change-Id: I68c9388a22bddea49120a1022dda8db8991360c1
* | | | | Merge "Fix clang build."Elliott Hughes2015-02-021-0/+1
|\ \ \ \ \
| * | | | | Fix clang build.Elliott Hughes2015-02-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I863137b5d35602267b4ef3a74399cf394c9994d6
* | | | | | Merge "Fixes to the update-tzdata.py tool"Neil Fuller2015-02-021-2/+9
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Fixes to the update-tzdata.py toolNeil Fuller2015-02-021-2/+9
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We build one too many times. Creating a missing directory is sufficient. The tz2icu needs some files in the CWD. Added symlinks. Bug: 19230091 Change-Id: I58f9817af68b229f48139e56503f50a2b6dbb4fe
* | | | | Fortify poll and ppoll.Elliott Hughes2015-02-023-2/+96
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | And remove the test for FD_ZERO fortification, which never made much sense anyway. Change-Id: Id1009c5298d461fa4722189e8ecaf22f0c529536
* | | | Include <malloc.h> for struct mallinfo.Elliott Hughes2015-01-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | GCC doesn't seem to care, but clang does. Change-Id: I9884820339a9e6f142862928c357f1a538184ae0
* | | | Merge "Break two incorrect transitive includes."Elliott Hughes2015-01-312-3/+8
|\ \ \ \ | |_|_|/ |/| | |
| * | | Break two incorrect transitive includes.Elliott Hughes2015-01-292-3/+8
| | | | | | | | | | | | | | | | Change-Id: I95519caa5258cf5c6b8053f1c7e08ade2a824e49
* | | | Merge "Put back inline definitions if using an old API."Dan Albert2015-01-3014-45/+530
|\ \ \ \
| * | | | Put back inline definitions if using an old API.Dan Albert2015-01-2914-45/+530
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | All these inlines were turned in to out of line definitions in L. This brings us a step closer to being able to just use the current bionic headers for the NDK, rather than having many old versions of them. Change-Id: Ie010bc727d78d3742abc577c70f6578db2e68625
* | | | | Remove unused CONFIG_SECONDS.Elliott Hughes2015-01-291-4/+0
| |/ / / |/| | | | | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=65951 Change-Id: I8ae7057c68e16618de6dd06cf052426c6cad8a3d