Elliott Hughes
bf425680e4
Let the compiler worry about implementing ffs(3).
...
It does at least as good a job as our old hand-written assembly anyway.
Change-Id: If7c4a1ac508bace0b71ee7b67808caa6eabf11d2
2013-10-24 16:29:40 -07:00
Elliott Hughes
f8dfb6f249
Merge "Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls."
2013-10-24 22:49:49 +00:00
Elliott Hughes
11952073af
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_DEPRECATED system calls.
...
(aarch64 kernels don't have these system calls.)
Change-Id: I6f64075aa412f71520f2df71c3d69b647f91c1ca
2013-10-24 15:48:32 -07:00
Ben Cheng
fcb37b876e
Merge "Add __EXPORTED_HEADERS__ as predefined macro."
2013-10-23 22:47:21 +00:00
Ben Cheng
460fa7033b
Add __EXPORTED_HEADERS__ as predefined macro.
...
To weed out stuff like this in uapi/linux/types.h
ifndef __EXPORTED_HEADERS__
warning "Attempt to use kernel headers from user space, see
http://kernelnewbies.org/KernelHeaders "
endif /* __EXPORTED_HEADERS__ */
Change-Id: I6506cea6248f7a3b44a839b98e91bdd0d3a6c4cd
2013-10-23 14:44:38 -07:00
Elliott Hughes
cdac5f73ac
Merge "MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's."
2013-10-23 18:27:35 +00:00
Elliott Hughes
93de3d881d
Fix header file dependencies.
...
MIPS' asm/fcntl.h assumes a bunch of __kernel_* types are already declared.
Change-Id: Iff701bbb5ede9667a78230c2de3a8f4fe41371c5
2013-10-23 11:25:54 -07:00
Elliott Hughes
b8cf18b4dd
MIPS' pipe(2) is weird, but MIPS' pipe2(2) is the same as everyone else's.
...
arch/mips/kernel/syscall.c has a special sysm_pipe wrapper, but there's
no special treatment of pipe2 because it carries no historical baggage.
Change-Id: I892c0f690b21992c8a48276a9b732126f18fc0ee
2013-10-23 11:21:36 -07:00
Elliott Hughes
cac7b9d6ec
Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.
...
(aarch64 kernels only have the newer system calls.)
Also expose the new functionality that's exposed by glibc in our header files.
Change-Id: I45d2d168a03f88723d1f7fbf634701006a4843c5
2013-10-23 09:48:29 -07:00
Elliott Hughes
f8fcfbc85a
Move away from the __ARCH_WANT_SYSCALL_NO_AT system calls.
...
Modern architectures only get the *at(2) system calls. For example,
aarch64 doesn't have open(2), and expects userspace to use openat(2)
instead.
Change-Id: I87b4ed79790cb8a80844f5544ac1a13fda26c7b5
2013-10-22 16:31:01 -07:00
Serban Constantinescu
debc021491
AArch64: Fix definitions for STDINT_LIMITS
...
This patches fixes the definitions for STDINT_LIMITS on __LP64__
systems.
Change-Id: I5eb1664e9ef7c303432a2b041c99cec663816b75
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
2013-10-22 12:40:16 -07:00
Elliott Hughes
8c39e58b6a
Merge "Make sure we have a mkfifo symbol."
2013-10-22 19:03:57 +00:00
Elliott Hughes
594b1a4af2
Make sure we have a mkfifo symbol.
...
Bug: https://code.google.com/p/android/issues/detail?id=58888
Change-Id: Ic0a883a5f30beb82cb7be3c4e81b6d693d5fbb4d
2013-10-22 12:03:19 -07:00
Serban Constantinescu
7f70c9b64e
AArch64: Fix uses of stack size for 32/64bit libc builds
...
This patch fixes stack size uses to size_t.
Change-Id: I0671c85ddb1c1aceaf9440a7c73c21fe528653fa
Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
2013-10-22 12:01:29 -07:00
Pavel Chupin
33a209e575
Fix 16-byte stack alignment requirement for x86_64 ABI
...
Change-Id: I43304803ac54c8688c61688bd96c7160614172d4
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
2013-10-21 17:36:28 -07:00
Elliott Hughes
f4ac8ba566
Merge "Fix the x86_64 vfork implementation."
2013-10-21 21:20:51 +00:00
Elliott Hughes
53bfdae4ff
Fix the x86_64 clone implementation.
...
Change-Id: Ia75f46dcb4d3222049e9a6a6fabc2b17223b47f7
2013-10-18 19:39:09 -07:00
Elliott Hughes
9ea4d5f3a8
Fix the x86_64 vfork implementation.
...
Change-Id: I599507f5058e6196dc2d5b5653d06d5135dd8ac1
2013-10-18 18:21:11 -07:00
Elliott Hughes
c7fdee72dd
Fix struct statfs for LP64.
...
Change-Id: I9649d881588931a1d672b65ddcf94009daadb0ef
2013-10-18 17:00:11 -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
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
8ea3453719
Merge "Add missing aliases for off64_t functions in 64-bit land."
2013-10-18 04:42:09 +00: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
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
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