Elliott Hughes
2fa423f49f
am c54e7b8d
: am 79f79c90
: Merge "x86_64: Fix sys/stat.h"
...
* commit 'c54e7b8d30e18eb9fd5320f10707fd57cf831576':
x86_64: Fix sys/stat.h
2013-10-18 13:31:41 -07:00
Pavel Chupin
f68fac8c00
x86_64: Fix sys/stat.h
...
Add 64-bit stat structure mapping 64-bit stat syscall.
Change-Id: Ice517616391bee1d556b6c03e7f5ee610050e6c6
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-18 13:24:25 -07:00
Elliott Hughes
b13ad7a8be
am b956f3ce
: am e9797ac6
: Merge "Fix clone.S for x86_64."
...
* commit 'b956f3ce7a9b4d1d8a15d6debcd36f09e2ef4aa6':
Fix clone.S for x86_64.
2013-10-17 22:58:23 -07:00
Elliott Hughes
938f38daee
Fix clone.S for x86_64.
...
We need to pull the arguments off the child stack and put them into the
registers they're expected to be in.
Change-Id: I064b3258cdd89d513c632857cabb46e52492af2b
2013-10-17 22:22:31 -07:00
Elliott Hughes
05c33a59b9
am 0c72ebc9
: am 8ea34537
: Merge "Add missing aliases for off64_t functions in 64-bit land."
...
* commit '0c72ebc9a1836ce9dda6e28e6b8117b4651e7c8e':
Add missing aliases for off64_t functions in 64-bit land.
2013-10-17 21:48:24 -07:00
Elliott Hughes
8ea3453719
Merge "Add missing aliases for off64_t functions in 64-bit land."
2013-10-18 04:42:09 +00:00
Elliott Hughes
23eeda6ad9
am 6519d76c
: am 88dcfb5e
: Merge "Add ffs and memcmp16 to x86_64."
...
* commit '6519d76c2988f59622892966440577955aed9f49':
Add ffs and memcmp16 to x86_64.
2013-10-17 21:38:00 -07:00
Elliott Hughes
8ca530e559
Add ffs and memcmp16 to x86_64.
...
Change-Id: I652c1356f1c7c52299977181c2cf154386979380
2013-10-17 17:03:22 -07:00
Elliott Hughes
a6519d6306
Add missing aliases for off64_t functions in 64-bit land.
...
See the comment in SYSCALLS.TXT for an explanation.
Change-Id: I33d4056e84160c3cca74b7b588e9924a569753ed
2013-10-17 16:56:40 -07:00
Elliott Hughes
22cf36af18
am 7e12e6af
: am 5b191604
: Merge "Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags."
...
* commit '7e12e6af56e1cc256ea6d9c2c69d8438e6ca95be':
Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags.
2013-10-17 13:50:12 -07:00
Andrei Emeltchenko
43d2137af0
Add SOCK_CLOEXEC and SOCK_NONBLOCK socket flags.
...
SOCK_CLOEXEC is used to atomically set close-on-exec flag for the new
descriptor(s), and SOCK_NONBLOCK is used to mark descriptor(s) as
non-blocking.
Change-Id: I8ba6a70543d23759e3ddcc7ff9c21b567184d681
2013-10-17 13:32:32 -07:00
Elliott Hughes
1732a8da03
am 417c2061
: am 922e2af4
: Merge "O_CLOEXEC is always defined for arm, mips, x86, and x86_64."
...
* commit '417c2061c857015c1b0319646810111423b5223d':
O_CLOEXEC is always defined for arm, mips, x86, and x86_64.
2013-10-17 12:57:57 -07:00
Elliott Hughes
7efbac17bf
am 2039949b
: am 967cd1bc
: Merge "Fix sigaction(3) for 64-bit."
...
* commit '2039949b225a3f6414250385b8d814440c24bab5':
Fix sigaction(3) for 64-bit.
2013-10-17 11:52:30 -07:00
Elliott Hughes
e989399dc2
O_CLOEXEC is always defined for arm, mips, x86, and x86_64.
...
I built all four, just to be sure.
Change-Id: I5c818575c8142fccfc8fb163468832807a535e90
2013-10-17 11:45:22 -07:00
Elliott Hughes
c7e9b23317
Fix sigaction(3) for 64-bit.
...
Also clean up <signal.h> and revert the hacks that were necessary
for 64-bit in linker/debugger.cpp until now.
Change-Id: I3b0554ca8a49ee1c97cda086ce2c1954ebc11892
2013-10-17 11:36:55 -07:00
Ben Cheng
2cda66116c
am a458b609
: am f89f1eaa
: Merge "Refresh libc/kernel/common/linux/auxvec.h"
...
* commit 'a458b609dbbff789a58fe4d2710af947b20d7e29':
Refresh libc/kernel/common/linux/auxvec.h
2013-10-16 16:58:47 -07:00
Ben Cheng
76b795a8ba
Refresh libc/kernel/common/linux/auxvec.h
...
Change-Id: If9bb50a2f233cdb60e91bd979876edb917e0f66d
2013-10-16 16:50:14 -07:00
Ben Cheng
a5e5fad478
am 29351c80
: am 3fdd6b83
: Merge "Add processed uapi kernel headers (common and aarch64-specific)"
...
* commit '29351c8091c4b7338bd47fb6b3e5aed94a2abf32':
Add processed uapi kernel headers (common and aarch64-specific)
2013-10-16 16:33:50 -07:00
Elliott Hughes
b2386fed55
am 4346bd9f
: am bffe261a
: Merge "Sort the syscalls.mk files, give all generated files the same header."
...
* commit '4346bd9fbcfe4144df7ac0e920bdda274d523fc4':
Sort the syscalls.mk files, give all generated files the same header.
2013-10-16 16:33:50 -07:00
Ben Cheng
3fdd6b8337
Merge "Add processed uapi kernel headers (common and aarch64-specific)"
2013-10-16 23:17:52 +00:00
Ben Cheng
2e0b93b01f
am 3b1b9f9f
: am f0447ddb
: Merge "Tweaked the cleanup scripts to handle uapi and aarch64 headers."
...
* commit '3b1b9f9ff6a2dc88ac0d78fd17f3b58448440357':
Tweaked the cleanup scripts to handle uapi and aarch64 headers.
2013-10-16 16:09:44 -07:00
Elliott Hughes
6b9321b858
am d6e117b6
: am 1f29c2f5
: Merge "Switch sigpending over to rt_sigpending."
...
* commit 'd6e117b64bdfbf8d793eb59ea9604b806608ec75':
Switch sigpending over to rt_sigpending.
2013-10-16 16:09:42 -07:00
Ben Cheng
655a7c081f
Add processed uapi kernel headers (common and aarch64-specific)
...
Change-Id: If0be7b83bd8fe7cb02472d173f7c452aabf61124
2013-10-16 16:09:24 -07:00
Elliott Hughes
bffe261a1f
Merge "Sort the syscalls.mk files, give all generated files the same header."
2013-10-16 23:06:48 +00:00
Ben Cheng
8bea2b6fac
Tweaked the cleanup scripts to handle uapi and aarch64 headers.
...
The processed uapi directory is now placed at libc/kernel/uapi as
opposed to libc/kernel/common/uapi as it contains
architectural-dependent headers now.
Change-Id: I53f814704a4d231b452fde398cd94257a0fb2eea
2013-10-16 15:28:56 -07:00
Elliott Hughes
103ccde8fe
Sort the syscalls.mk files, give all generated files the same header.
...
No non-comment changes to the .S files.
Change-Id: Iafcfd004c3ea92b64268f80ab16df615b97cefac
2013-10-16 14:27:59 -07:00
Elliott Hughes
40d105ccb3
Switch sigpending over to rt_sigpending.
...
Change-Id: I7b28984796b5fb343cfbcc47e0afc3a84293d417
2013-10-16 14:07:01 -07:00
Elliott Hughes
d5e5a6a353
am 2426cdb6
: am 26242bf2
: Merge "Remove support for the useless \'custom\' option in SYSCALLS.TXT."
...
* commit '2426cdb63b95435bb09bacfc3af63304d991c4a2':
Remove support for the useless 'custom' option in SYSCALLS.TXT.
2013-10-15 19:57:53 -07:00
Elliott Hughes
afaebc3fef
am 87fc78de
: am 608c65f6
: Merge "Fix sigsuspend to use rt_sigsuspend on all platforms."
...
* commit '87fc78de6c869d0403ccdd2e756ec1f5d456f3d3':
Fix sigsuspend to use rt_sigsuspend on all platforms.
2013-10-15 18:20:32 -07:00
Elliott Hughes
c9da332cce
Remove support for the useless 'custom' option in SYSCALLS.TXT.
...
This cruft dates from a time when bionic would only output syscall
contants for the syscalls mentioned in SYSCALLS.TXT. I fixed that
a long time ago, but never followed through with the removal of what
was then confusingly called "stub" and was recently renamed "custom".
Change-Id: I8f3872a200b2dc8325e357cc5ee505ea4212ef95
2013-10-15 18:18:58 -07:00
Elliott Hughes
1f5af926fa
Fix sigsuspend to use rt_sigsuspend on all platforms.
...
Change-Id: I981c1a66d35480d4457a0a08a1b042dac94daa5b
2013-10-15 18:15:19 -07:00
Elliott Hughes
f2a760dca7
am a85606e1
: am c100a100
: Merge "\'Avoid confusing "read prevented write" log messages\' 2."
...
* commit 'a85606e1563c2153bea3c73dfe4ca1588e778f22':
'Avoid confusing "read prevented write" log messages' 2.
2013-10-15 17:38:17 -07:00
Elliott Hughes
68b67113a4
'Avoid confusing "read prevented write" log messages' 2.
...
This time it's assembler.
Change-Id: Iae6369833b8046b8eda70238bb4ed0cae64269ea
2013-10-15 17:17:05 -07:00
Elliott Hughes
cbfa1afda3
am 0287db52
: am d9913b0b
: Merge "Make pthread_create report sched_setscheduler failures on LP64."
...
* commit '0287db52ed93df39ab45c7f60a241ae621866b90':
Make pthread_create report sched_setscheduler failures on LP64.
2013-10-15 17:14:59 -07:00
Elliott Hughes
d9913b0b0d
Merge "Make pthread_create report sched_setscheduler failures on LP64."
2013-10-16 00:09:54 +00:00
Elliott Hughes
df17ce7858
am 26491483
: am 76725214
: Merge "Avoid confusing "read prevented write" log messages."
...
* commit '264914838d1c22c15ed0069d1217a780835c6d1c':
Avoid confusing "read prevented write" log messages.
2013-10-15 16:58:19 -07:00
Elliott Hughes
b01ebe6d4e
am 14e7482c
: am d16391bb
: Merge "Fix indentation in sched_getaffinity."
...
* commit '14e7482c556820d8ad3b77f025dfc465d55c7262':
Fix indentation in sched_getaffinity.
2013-10-15 16:58:19 -07:00
Elliott Hughes
7672521440
Merge "Avoid confusing "read prevented write" log messages."
2013-10-15 23:53:45 +00:00
Elliott Hughes
98624c3746
Make pthread_create report sched_setscheduler failures on LP64.
...
We couldn't fix this for 32-bit because there's too much broken
code out there. (Pretty much everyone asks for real-time
scheduling for all their threads, and the kernel says "don't be
stupid".)
Change-Id: I43c5271e6b6bb91278b9a19eec08cbf05391e3c4
2013-10-15 16:51:17 -07:00
Elliott Hughes
0cfc95e010
Fix indentation in sched_getaffinity.
...
Change-Id: I966852149a0255ca132cd7a15f135a875ce400d0
2013-10-15 16:49:49 -07:00
Elliott Hughes
d1eda33f01
Avoid confusing "read prevented write" log messages.
...
Moving to a "function: message" style avoids ambiguity.
Change-Id: If9d590e50265c61725d3673bd03796e65edd2d5e
2013-10-15 16:49:28 -07:00
Christopher Ferris
289c460c55
am ac6bc319
: Remove new aligned memcpy path for cortex-a15.
...
* commit 'ac6bc31942e58c8893c0695d9766d0f3e39335fe':
Remove new aligned memcpy path for cortex-a15.
2013-10-15 16:17:14 -07:00
Christopher Ferris
ac6bc31942
Remove new aligned memcpy path for cortex-a15.
...
For some reason the new cortex-a15 memcpy code from ARM is really bad
for really large copies. This change forces us to go down the old path
for all copies.
All of my benchmarks show the new version is faster for large copies, but
something is going on that I don't understand.
Bug: 10838353
Change-Id: I01c16d4a2575e76f4c69862c6f78fd9024eb3fb8
2013-10-15 14:54:02 -07:00
Christopher Ferris
d77ff4f423
am 76d78dc0
: am dc9d8d05
: Merge "Modify prefetch for krait memcpy."
...
* commit '76d78dc0441ba982438ef613a8d6f2f65c6834e0':
Modify prefetch for krait memcpy.
2013-10-15 14:19:27 -07:00
Elliott Hughes
4681f8244e
am 5b3f1d8b
: am 22b83da4
: Merge "Clean up the sigprocmask/pthread_sigmask implementation."
...
* commit '5b3f1d8b3a6a1caf059dc376e4967a27ddd57dac':
Clean up the sigprocmask/pthread_sigmask implementation.
2013-10-15 14:16:02 -07:00
Christopher Ferris
dc9d8d050a
Merge "Modify prefetch for krait memcpy."
2013-10-15 21:12:31 +00:00
Christopher Ferris
c3c58fb560
Modify prefetch for krait memcpy.
...
I originally modified the krait mainloop prefetch from cacheline * 8 to * 2.
This causes a perf degradation for copies bigger than will fit in the cache.
Fixing this back to the original * 8. I tried other multiples, but * 8 is th
sweet spot on krait.
Bug: 11221806
Change-Id: I1f75fad6440f7417e664795a6e7b5616f6a29c45
2013-10-15 12:10:06 -07:00
Elliott Hughes
19e62325c2
Clean up the sigprocmask/pthread_sigmask implementation.
...
Let's have both use rt_sigprocmask, like in glibc. The 64-bit ABIs
can share the same code as the 32-bit ABIs.
Also, let's test the return side of these calls, not just the
setting.
Bug: 11069919
Change-Id: I11da99f85b5b481870943c520d05ec929b15eddb
2013-10-15 11:23:57 -07:00
Stephen Hines
8161b23689
am 4691325d
: am abeafbd6
: Merge "Wrap sprintf()/snprintf() macros to prevent expansion errors."
...
* commit '4691325d48406033632fe84a944ac9c3bd2e5097':
Wrap sprintf()/snprintf() macros to prevent expansion errors.
2013-10-11 16:33:07 -07:00
Stephen Hines
6e38072add
Wrap sprintf()/snprintf() macros to prevent expansion errors.
...
Previously, FORTIFY_SOURCE used single macros to define these standard
functions for use with clang. This can cause conflicts with other macros used
to call these functions, particularly when those macros expand the number of
arguments to the function. This change wraps our macro definitions, so that
expansion properly takes place for programmer arguments first.
Change-Id: I55929b1fd2a643b9d14a17631c4bcab3b0b712cf
2013-10-11 12:14:49 -07:00