summaryrefslogtreecommitdiffstats
path: root/libc
Commit message (Collapse)AuthorAgeFilesLines
* Merge "support _POSIX_REALTIME_SIGNALS"Yabin Cui2014-12-0913-1/+248
|\
| * support _POSIX_REALTIME_SIGNALSYabin Cui2014-12-0813-1/+248
| | | | | | | | | | Bug: 18489947 Change-Id: I2e834d68bc10ca5fc7ebde047b517a3074179475
* | Merge "Change _POSIX_CPUTIME macro to make it compitable with glibc."Yabin Cui2014-12-092-4/+12
|\ \
| * | Change _POSIX_CPUTIME macro to make it compitable with glibc.Yabin Cui2014-12-092-4/+12
| | | | | | | | | | | | Change-Id: I7a8dbb74bd622693c9fef60bd779687207517b7d
* | | Simplify our endian.h implementation.Elliott Hughes2014-12-087-472/+21
| | | | | | | | | | | | | | | | | | | | | We can rely on the compiler's builtins. Tested on arm, arm64, mips, x86, and x86-64. Change-Id: I0f774ed7e85b3c791a3178d8ef17c6500e6a9ace
* | | Merge mips setjmp/longjmp family.Elliott Hughes2014-12-089-773/+287
| | | | | | | | | | | | | | | Bug: 16918359 Change-Id: I9033a7d178d431ddb09f1cfa6e4bf95ae02346e9
* | | Switch arch-mips64/include/machine to a symlink.Elliott Hughes2014-12-087-659/+1
| | | | | | | | | | | | | | | | | | | | | Imagination already did the work to make the contents of these directories identical. Let's take advantage of that fact. Change-Id: Ib101ba39041fb500c9c618fa2020e72aa2ccd9c2
* | | Use 64-bit units in the aarch64 setjmp implementation.Elliott Hughes2014-12-081-50/+39
| | | | | | | | | | | | | | | | | | | | | The use of 32-bit units for 64-bit stores and loads was driving me crazy. Bug: 16918359 Change-Id: Ifb73aad8f8985a2adfcf5913b783ad9424f23e06
* | | Switch arm and arm64 over to the x86 style of jmpbuf.Elliott Hughes2014-12-082-45/+25
| | | | | | | | | | | | | | | | | | | | | | | | Specifically, use the argument to sigsetjmp as a flag in the buffer to indicate whether or not the signal mask is valid. Bug: 16918359 Change-Id: I5bb1f1220f14c105c6bc57e0c28c1dc366d1438f
* | | Merge "Fix signal mask save/restore for x86-64."Elliott Hughes2014-12-081-10/+14
|\ \ \ | |/ / |/| |
| * | Fix signal mask save/restore for x86-64.Elliott Hughes2014-12-081-10/+14
| | | | | | | | | | | | | | | Bug: 16918359 Change-Id: I30bf61e7d5f1c21daa3a1a21d361e98d77220bf3
* | | Fix signal mask save/restore for arm64.Elliott Hughes2014-12-062-25/+20
|/ / | | | | | | | | Bug: 16918359 Change-Id: Ieb15f7f1658f5accee05665b72ba17831a80ea9d
* | Clean up the x86-64 and x86 setjmp families.Elliott Hughes2014-12-059-468/+181
| | | | | | | | | | Bug: 16918359 Change-Id: Ic8ca0af9ea99636bc71f19d46071f1cea6eef982
* | Clean up arm setjmp family.Elliott Hughes2014-12-055-314/+146
| | | | | | | | | | Bug: 16918359 Change-Id: I9b986bdbdbaefe9d9896a820ee8cfe860adfe5c5
* | Clean up the arm64 setjmp.Elliott Hughes2014-12-057-314/+148
| | | | | | | | | | | | | | | | Note that this doesn't address the fact that we don't save/restore the real-time signals. But it does let us pass the tests we currently fail. Bug: 16918359 Change-Id: I063a6926164289a71026a412da7f5dd2ca9a74b3
* | Merge "Add cache related sysconf queries"Tao Bao2014-12-052-0/+34
|\ \
| * | Add cache related sysconf queriesTao Bao2014-12-042-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | Several cache related queries are added, such as _SC_LEVEL1_DCACHE_LINESIZE, _SC_LEVEL1_DCACHE_SIZE and etc. For the moment, we always return 0 for these queries. Change-Id: I36f67af8128672d8c1eef49d6f2431cca5a94719
* | | Merge "Restore symbols from <arpa/nameser.h>."Elliott Hughes2014-12-041-74/+45
|\ \ \
| * | | Restore symbols from <arpa/nameser.h>.Elliott Hughes2014-12-041-74/+45
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 18627252 Bug: https://code.google.com/p/android/issues/detail?id=81690 Change-Id: I45b6c09cf2b5aabb80900e267d27cc0ec93d4dd8
* | | | Merge "implement posix_madvise"Yabin Cui2014-12-044-1/+52
|\ \ \ \ | |/ / / |/| | |
| * | | implement posix_madviseYabin Cui2014-12-044-1/+52
| | | | | | | | | | | | | | | | | | | | Bug: 18472477 Change-Id: I8183de6c281acf69ed5f7f88351b056b9827b162
* | | | Make the missing symbols script more useful.Elliott Hughes2014-12-041-12/+17
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | If something's in POSIX, we don't need to show it in the glibc list. If something's not implemented by glibc, we don't need to show it in the POSIX list (because it's probably either a macro or obsolete). Change-Id: Ied0f8d97d3fffb280c22e9cdf6782430d776c02f
* | | Code using neon uses ARCH_ARM_HAVE_NEON.Elliott Hughes2014-12-031-16/+0
| | | | | | | | | | | | | | | Bug: 18556103 Change-Id: Ia8674dda223f81d616d15ee47b402ab4a3f98079
* | | Remove __ARM_HAVE_VFP.Elliott Hughes2014-12-033-18/+0
| | | | | | | | | | | | | | | Bug: 18556103 Change-Id: I6d4cc6a1b359ad2df1ce6687fd26f392059f6efd
* | | Merge "Implement <pty.h>."Elliott Hughes2014-12-043-2/+130
|\ \ \
| * | | Implement <pty.h>.Elliott Hughes2014-12-033-2/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Based on the package/apps/Terminal implementation. I'll switch them over shortly. This also lets us build the toybox version of netcat. Change-Id: Ia922a100141a67409264b43b937eeca07b21f344
* | | | Merge "change argument type in madvise"Yabin Cui2014-12-032-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | change argument type in madviseYabin Cui2014-12-032-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make madvise prototype the same as linux man page. Bug: 18539500 Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b
* | | | Merge "Switch x86 and x86-64 to __builtin_bswap*."Elliott Hughes2014-12-032-47/+8
|\ \ \ \
| * | | | Switch x86 and x86-64 to __builtin_bswap*.Elliott Hughes2014-12-022-47/+8
| |/ / / | | | | | | | | | | | | | | | | Bug: 18597513 Change-Id: I0781208efb3b560d7c6fa48f41be7bc6fc83521e
* | | | Switch aarch64 to __builtin_bswap16.Elliott Hughes2014-12-021-6/+1
|/ / / | | | | | | | | | | | | | | | | | | It generates the same code. Bug: 18597513 Change-Id: I164296da8c676668983dd93697c6dfa05f10ec56
* | | Remove __ARM_HAVE_HALFWORD_MULTIPLY.Elliott Hughes2014-12-021-5/+0
|/ / | | | | | | | | Bug: 18556103 Change-Id: I17e498539f77ddf7d1fb980ee93155d3c3ccd85e
* | Remove __ARM_HAVE_LDREXD.Elliott Hughes2014-12-031-8/+0
| | | | | | | | | | | | No one uses this. Bug: 18556103 Change-Id: Icecc3a7b5cb0a36960f27d030d8f4f8ee471f86c
* | Kill <machine/exec.h>.Elliott Hughes2014-12-026-547/+0
| | | | | | | | | | Bug: 18546535 Change-Id: I479e003deab21e31eb5caa5393067ed1dc558387
* | Avoid pathological behavior in OpenBSD's fread.Elliott Hughes2014-12-022-2/+18
| | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=81155 Bug: 18556607 Change-Id: Idc60976b79610e2202cc42dc393dcb4ca6c42e05
* | Use mmap to create the pthread_internal_t.Yabin Cui2014-12-024-11/+29
| | | | | | | | | | Bug: 16847284 Change-Id: I488fa236f57aa3acb29b4ffbbab2fab51b0653be
* | Merge "Specify .cpu cortex-a15"Christopher Ferris2014-12-021-0/+1
|\ \
| * | Specify .cpu cortex-a15Bernhard Rosenkränzer2014-11-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When building with clang without this change, as errors out saying pldw is an unsupported instruction (because it isn't part of the ARMv7 core instruction set). Let as know using pldw is fine. Change-Id: Ie1f9c4b873e93ab2b3b374d2d46e476a4e581710 Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
* | | Build our benchmarks against glibc too.Elliott Hughes2014-12-012-5/+9
| | | | | | | | | | | | | | | Bug: 18556607 Change-Id: I455ac8b93c0835836180e549486bc52d393ee6a6
* | | Merge "support _POSIX_CPUTIME"Yabin Cui2014-12-014-1/+54
|\ \ \
| * | | support _POSIX_CPUTIMEYabin Cui2014-11-264-1/+54
| | |/ | |/| | | | | | | | | | Bug: 18490039 Change-Id: I01fa83b48e1b908de1f227b6e4f98e280bcd50ee
| * | Revert "Use mmap to create the pthread_internal_t."Nicolas Geoffray2014-11-264-34/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Unfortunately, this change provokes random crashes for ART, and I have seen libc crashes on the device that might be related to it. Reverting it fixes the ART crashes. there is unfortunately no stack trace for the crashes, but just a "Segmentation fault" message. This reverts commit cc5f6543e3f91385b9a912438965b7e8265df54a. Change-Id: I68dca8e1e9b9edcce7eb84596e8db619e40e8052
| * | Use mmap to create the pthread_internal_t.Yabin Cui2014-11-254-11/+34
| | | | | | | | | | | | | | | Bug: 16847284 Change-Id: Ic8c85f95afac1d8422ecb69674c688d1fecb6a44
* | | libc: Fix headers to allow direct inclusion.David 'Digit' Turner2014-12-013-2/+5
| |/ |/| | | | | | | | | | | | | | | These headers are missing a few #includes to allow their direct inclusion from C http://b.android.com/79841 Change-Id: Ifc712c17f4da70b26adb67d4d49ed659f53c3621
* | Add error-check when mapping socket to fdRobert Alm2014-11-271-0/+9
| | | | | | | | | | | | | | | | | | | | The call to fdopen can fail in several ways. The fprintf on the next line will then dereference a NULL-pointer FILE*. Added a NULL-check, closed the socket, returned system error and added a comment about it. Change-Id: I7a6b26aa3c79452b1fdd76af12dfa75da88cbad7
* | Move a private x86-64 header file out of the limelight.Elliott Hughes2014-11-261-65/+0
| | | | | | | | | | | | | | Currently this is on everyone's include path and is getting exported via the NDK. Change-Id: Ia417839fb65c7e0afddcd9fae3438665dae8e752
* | [MIPS] Rewrite of setjmp/longjmp for mips64 and mipsr6Duane Sand2014-11-2513-594/+497
|/ | | | Change-Id: Idcd13413520dd503bc9cf782553675313e500a83
* Merge "flesh out sysconf(3) and the _POSIX_* constants"Yabin Cui2014-11-244-139/+254
|\
| * flesh out sysconf(3) and the _POSIX_* constantsYabin Cui2014-11-214-139/+254
| | | | | | | | | | Bug: 17571891 Change-Id: I81036615486bde65969ae5662587fcc88348474e
* | Merge "Sync with upstream OpenBSD fts.c."Elliott Hughes2014-11-234-15/+66
|\ \