OSDN Git Service

android-x86/bionic.git
10 years agoam cc70de8f: am 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod...
Ben Cheng [Fri, 24 Jan 2014 18:25:55 +0000 (18:25 +0000)]
am cc70de8f: am 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"

* commit 'cc70de8fc3726cf8cc242a4dcb80a7f5af50f4b1':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab

10 years agoam 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
Ben Cheng [Fri, 24 Jan 2014 18:22:48 +0000 (18:22 +0000)]
am 0661bbe2: am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"

* commit '0661bbe2570ff52382552d9c404159f7651101f3':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab

10 years agoam 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"
Ben Cheng [Fri, 24 Jan 2014 18:17:55 +0000 (10:17 -0800)]
am 69d242d2: Merge "Re-export libgcc\'s __aeabi_uidivmod and __popcount_tab"

* commit '69d242d21cb3c40f241eaf7aceecc27bfb9385fa':
  Re-export libgcc's __aeabi_uidivmod and __popcount_tab

10 years agoMerge "Re-export libgcc's __aeabi_uidivmod and __popcount_tab"
Ben Cheng [Fri, 24 Jan 2014 18:11:48 +0000 (18:11 +0000)]
Merge "Re-export libgcc's __aeabi_uidivmod and __popcount_tab"

10 years agoRe-export libgcc's __aeabi_uidivmod and __popcount_tab
Bernhard Rosenkränzer [Fri, 24 Jan 2014 11:55:00 +0000 (12:55 +0100)]
Re-export libgcc's __aeabi_uidivmod and __popcount_tab

This is required to make the Nexus 10 graphics driver work on a system
compiled with gcc 4.9.

Change-Id: If3f3d488652a736d9ea3e583548d74fae3ffa902
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
10 years agoUse arch-specific variable to set up the x86 ld flags.
Ying Wang [Thu, 23 Jan 2014 23:15:28 +0000 (15:15 -0800)]
Use arch-specific variable to set up the x86 ld flags.

Bug: 11654773
Change-Id: I9e9075bac1303cfa39b0f717dd74625ce1dd5fa5

10 years agoam 17758106: am 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
Elliott Hughes [Wed, 15 Jan 2014 21:41:21 +0000 (21:41 +0000)]
am 17758106: am 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"

* commit '17758106e80d9ced66c7cfdae0b0331ebd7696b7':
  Add "__noreturn" to assert and assert2

10 years agoam 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
Elliott Hughes [Wed, 15 Jan 2014 21:39:12 +0000 (21:39 +0000)]
am 06d38ccd: am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"

* commit '06d38ccda067428e0fbd448ad21cd8140fbecc11':
  Add "__noreturn" to assert and assert2

10 years agoam 5b4884fa: Merge "Add "__noreturn" to assert and assert2"
Elliott Hughes [Wed, 15 Jan 2014 21:32:40 +0000 (13:32 -0800)]
am 5b4884fa: Merge "Add "__noreturn" to assert and assert2"

* commit '5b4884fac90753c68d401de73036c2de919958eb':
  Add "__noreturn" to assert and assert2

10 years agoMerge "Add "__noreturn" to assert and assert2"
Elliott Hughes [Wed, 15 Jan 2014 21:26:46 +0000 (21:26 +0000)]
Merge "Add "__noreturn" to assert and assert2"

10 years agoAdd "__noreturn" to assert and assert2
Vadim Markovtsev [Mon, 13 Jan 2014 07:54:42 +0000 (11:54 +0400)]
Add "__noreturn" to assert and assert2

These functions should print assertion violation messages and then
call abort(). They do really not return control flow afterwards.
Consider the declaration of the similar __assert_fail from glibc:

extern void __assert_fail (const char *__assertion,
                           const char *__file,
   unsigned int __line,
                           const char *__function)
     __THROW __attribute__ ((__noreturn__));

Bionic has __noreturn defined in sys/cdefs.h to be that GNU
noreturn attribute.

This patch has a practical value. Consider the following function:

void check(void* ptr) {
  assert(ptr != NULL);
}

Without this patch applied, gcc (and presumably clang) shows even in
debug mode:

warning: unused parameter 'ptr' [-Wunused-parameter]

In release mode, NDEBUG is defined and assert() becomes a no-op, as
one should expect. Thus, the warning is shown correctly then.

Another code sample:

float array[2];
int i = 3;
...
assert(i < 2);
array[i] = 0;

gcc says,

warning: array subscript is below array bounds [-Warray-bounds]

In other words, without noreturn attribute, assertions do not
allow a compiler's static analyzer to properly understand
the preconditions.

Change-Id: I3be92e99787c528899cf243ed448c4730c00c45b
Signed-off-by: Vadim Markovtsev <gmarkhor@gmail.com>
10 years agoam 530093e1: am 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on ...
Elliott Hughes [Wed, 15 Jan 2014 02:48:31 +0000 (02:48 +0000)]
am 530093e1: am 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on -Werror."

* commit '530093e1fd538debdfa06d8c04c8cd824912b1c7':
  Fix libdl build warnings, turn on -Werror.

10 years agoam e83c98e6: am a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where...
Elliott Hughes [Wed, 15 Jan 2014 02:48:31 +0000 (02:48 +0000)]
am e83c98e6: am a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where it belongs."

* commit 'e83c98e6f7575000df7e36803c5349249f8aa982':
  Move _thread_created_hook to where it belongs.

10 years agoam 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on -Werror."
Elliott Hughes [Wed, 15 Jan 2014 02:45:14 +0000 (02:45 +0000)]
am 22d8bd9b: am 12159420: Merge "Fix libdl build warnings, turn on -Werror."

* commit '22d8bd9b93223634e2d0bf5ec1cbddd888e96136':
  Fix libdl build warnings, turn on -Werror.

10 years agoam a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where it belongs."
Elliott Hughes [Wed, 15 Jan 2014 02:45:14 +0000 (02:45 +0000)]
am a17b7ba9: am c8d41263: Merge "Move _thread_created_hook to where it belongs."

* commit 'a17b7ba95d71d59ac5e04d2f01bb1839602912f9':
  Move _thread_created_hook to where it belongs.

10 years agoam 12159420: Merge "Fix libdl build warnings, turn on -Werror."
Elliott Hughes [Wed, 15 Jan 2014 02:38:16 +0000 (18:38 -0800)]
am 12159420: Merge "Fix libdl build warnings, turn on -Werror."

* commit '12159420e1654f6896993eda39aea8b5e5586f80':
  Fix libdl build warnings, turn on -Werror.

10 years agoam c8d41263: Merge "Move _thread_created_hook to where it belongs."
Elliott Hughes [Wed, 15 Jan 2014 02:38:15 +0000 (18:38 -0800)]
am c8d41263: Merge "Move _thread_created_hook to where it belongs."

* commit 'c8d412637a8f98418866a75525de2ad6f8b12b6e':
  Move _thread_created_hook to where it belongs.

10 years agoMerge "Fix libdl build warnings, turn on -Werror."
Elliott Hughes [Wed, 15 Jan 2014 02:33:33 +0000 (02:33 +0000)]
Merge "Fix libdl build warnings, turn on -Werror."

10 years agoMerge "Move _thread_created_hook to where it belongs."
Elliott Hughes [Wed, 15 Jan 2014 02:32:47 +0000 (02:32 +0000)]
Merge "Move _thread_created_hook to where it belongs."

10 years agoFix libdl build warnings, turn on -Werror.
Elliott Hughes [Wed, 15 Jan 2014 01:25:13 +0000 (17:25 -0800)]
Fix libdl build warnings, turn on -Werror.

Change-Id: I71c39b77ac1e9a92482ce71a829449100945ec86

10 years agoMove _thread_created_hook to where it belongs.
Elliott Hughes [Wed, 15 Jan 2014 01:16:18 +0000 (17:16 -0800)]
Move _thread_created_hook to where it belongs.

Change-Id: I643d761c78ccaae25270aeffa2afb811c4e2fcd7

10 years agoam e86a346c: am d0465f50: am d971f729: Merge "Make it possible for code to query...
Elliott Hughes [Tue, 14 Jan 2014 20:15:45 +0000 (20:15 +0000)]
am e86a346c: am d0465f50: am d971f729: Merge "Make it possible for code to query the dynamic linker\'s default search path."

* commit 'e86a346cfe3b2325abeeef9700cf9e2e8208b2ce':
  Make it possible for code to query the dynamic linker's default search path.

10 years agoam d0465f50: am d971f729: Merge "Make it possible for code to query the dynamic linke...
Elliott Hughes [Tue, 14 Jan 2014 20:12:57 +0000 (20:12 +0000)]
am d0465f50: am d971f729: Merge "Make it possible for code to query the dynamic linker\'s default search path."

* commit 'd0465f50aa570a295a1bdad0c379d529a614198e':
  Make it possible for code to query the dynamic linker's default search path.

10 years agoam d971f729: Merge "Make it possible for code to query the dynamic linker\'s default...
Elliott Hughes [Tue, 14 Jan 2014 20:08:32 +0000 (12:08 -0800)]
am d971f729: Merge "Make it possible for code to query the dynamic linker\'s default search path."

* commit 'd971f7290529310df6f8d4ba8b3a30f629ba2946':
  Make it possible for code to query the dynamic linker's default search path.

10 years agoMerge "Make it possible for code to query the dynamic linker's default search path."
Elliott Hughes [Tue, 14 Jan 2014 20:03:20 +0000 (20:03 +0000)]
Merge "Make it possible for code to query the dynamic linker's default search path."

10 years agoam d2124b7c: am 7e997388: am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR...
Elliott Hughes [Tue, 14 Jan 2014 01:15:04 +0000 (01:15 +0000)]
am d2124b7c: am 7e997388: am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"

* commit 'd2124b7c5ca15cb593c824d2488f6a95dce4a519':
  AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()

10 years agoam 7e997388: am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for...
Elliott Hughes [Tue, 14 Jan 2014 01:12:56 +0000 (01:12 +0000)]
am 7e997388: am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"

* commit '7e997388ba63f0b0b4c95542cfc5fbe6e3c93b4d':
  AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()

10 years agoam b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_c...
Elliott Hughes [Tue, 14 Jan 2014 01:06:31 +0000 (17:06 -0800)]
am b5e21103: Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"

* commit 'b5e211031b69963a5f72ff369c66dc325a03e740':
  AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()

10 years agoMerge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"
Elliott Hughes [Tue, 14 Jan 2014 01:01:40 +0000 (01:01 +0000)]
Merge "AArch64: Use LDXR/STXR instead of LDAXR/STLXR for bionic_atomic_cmpxchg()"

10 years agoMake it possible for code to query the dynamic linker's default search path.
Elliott Hughes [Tue, 14 Jan 2014 00:37:47 +0000 (16:37 -0800)]
Make it possible for code to query the dynamic linker's default search path.

We're not going to have init(1) set LD_LIBRARY_PATH globally on 64-bit.
This patch makes it possible for libnativehelper to set LD_LIBRARY_PATH
in each Java VM (to support System.loadLibrary) without also hard-coding
the default search path there.

Change-Id: If13961fae976e06dd80d5ef522f31e8b7eb01154

10 years agoam 3c5323a7: am 490f1755: am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when...
Elliott Hughes [Mon, 13 Jan 2014 21:51:10 +0000 (21:51 +0000)]
am 3c5323a7: am 490f1755: am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."

* commit '3c5323a7318993918a282c31f92ea64fc7c0ae5b':
  Add -Bsymbolic to the ld flags when linking the dynamic linker.

10 years agoam 490f1755: am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the...
Elliott Hughes [Mon, 13 Jan 2014 21:48:15 +0000 (21:48 +0000)]
am 490f1755: am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."

* commit '490f1755d14536915f748a6513399a92f6e0b67f':
  Add -Bsymbolic to the ld flags when linking the dynamic linker.

10 years agoam ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."
Elliott Hughes [Mon, 13 Jan 2014 21:42:55 +0000 (13:42 -0800)]
am ebc1c76d: Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."

* commit 'ebc1c76d77dd604f16126e66b2171e8ee6fa1d22':
  Add -Bsymbolic to the ld flags when linking the dynamic linker.

10 years agoMerge "Add -Bsymbolic to the ld flags when linking the dynamic linker."
Elliott Hughes [Mon, 13 Jan 2014 21:38:16 +0000 (21:38 +0000)]
Merge "Add -Bsymbolic to the ld flags when linking the dynamic linker."

10 years agoAdd -Bsymbolic to the ld flags when linking the dynamic linker.
Elliott Hughes [Mon, 13 Jan 2014 21:33:01 +0000 (13:33 -0800)]
Add -Bsymbolic to the ld flags when linking the dynamic linker.

We don't need this on architectures other than aarch64, and
we're still investigating why we need it on aarch64, but it
doesn't seem unreasonable to have this flag set when linking
the dynamic linker anyway; it's clearly the intended behavior.

Change-Id: I4fa1b4ae543a818979934bf818eabac03bb9154f

10 years agoam 0b9a13f5: am a1595487: am ae189740: Merge "Add some more headers."
Elliott Hughes [Fri, 10 Jan 2014 23:55:16 +0000 (23:55 +0000)]
am 0b9a13f5: am a1595487: am ae189740: Merge "Add some more headers."

* commit '0b9a13f58fa13fc7f29c386e265dcbe56c7c5095':
  Add some more headers.

10 years agoam a1595487: am ae189740: Merge "Add some more headers."
Elliott Hughes [Fri, 10 Jan 2014 23:51:16 +0000 (23:51 +0000)]
am a1595487: am ae189740: Merge "Add some more headers."

* commit 'a1595487faadaf48201ff8f91fdf59c8ae0e7b19':
  Add some more headers.

10 years agoam ae189740: Merge "Add some more headers."
Elliott Hughes [Fri, 10 Jan 2014 23:42:44 +0000 (15:42 -0800)]
am ae189740: Merge "Add some more headers."

* commit 'ae189740de6b03f06a06214122183a3774f5cb62':
  Add some more headers.

10 years agoMerge "Add some more headers."
Elliott Hughes [Fri, 10 Jan 2014 23:35:47 +0000 (23:35 +0000)]
Merge "Add some more headers."

10 years agoAdd some more headers.
Elliott Hughes [Fri, 10 Jan 2014 23:32:31 +0000 (15:32 -0800)]
Add some more headers.

This patch adds trivial implementations of the missing sys headers
needed by strace. All strace needs are the constants and structures,
so this is enough for now. We can come back and add the functions
if/when we ever need them.

Change-Id: Idb87c1a8b6b1c62f6e16ae94f147e1169722b48e

10 years agoam 51e1ca76: am 09a73562: am f784f036: Merge "Add extra libc stubs for mntent related...
JP Abgrall [Fri, 10 Jan 2014 02:08:05 +0000 (02:08 +0000)]
am 51e1ca76: am 09a73562: am f784f036: Merge "Add extra libc stubs for mntent related functions."

* commit '51e1ca76776822e3d020a1dc7e25dbc46ddde1e4':
  Add extra libc stubs for mntent related functions.

10 years agoam 09a73562: am f784f036: Merge "Add extra libc stubs for mntent related functions."
JP Abgrall [Fri, 10 Jan 2014 02:06:03 +0000 (02:06 +0000)]
am 09a73562: am f784f036: Merge "Add extra libc stubs for mntent related functions."

* commit '09a735628269336d29f722ebcdeb3da9534f6020':
  Add extra libc stubs for mntent related functions.

10 years agoam f784f036: Merge "Add extra libc stubs for mntent related functions."
JP Abgrall [Fri, 10 Jan 2014 02:01:06 +0000 (18:01 -0800)]
am f784f036: Merge "Add extra libc stubs for mntent related functions."

* commit 'f784f0365d0c491cba7e6081a072b28ad357fef6':
  Add extra libc stubs for mntent related functions.

10 years agoMerge "Add extra libc stubs for mntent related functions."
JP Abgrall [Fri, 10 Jan 2014 01:54:31 +0000 (01:54 +0000)]
Merge "Add extra libc stubs for mntent related functions."

10 years agoam e48e9c99: am 2872e742: am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."
Elliott Hughes [Fri, 10 Jan 2014 01:54:25 +0000 (01:54 +0000)]
am e48e9c99: am 2872e742: am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."

* commit 'e48e9c9919f1f1130ff09600f6c444e2f3be1689':
  Add NT_PRSTATUS to <elf.h>.

10 years agoAdd extra libc stubs for mntent related functions.
JP Abgrall [Thu, 9 Jan 2014 22:06:20 +0000 (14:06 -0800)]
Add extra libc stubs for mntent related functions.

This adds stubs for setmntent() and endmntent().

Change-Id: I6ccaa044145405cd7226c1c54a25d435c96a2308

10 years agoam 1424b701: am fce55ed3: am 8e6bf35a: Merge "Add <sgidefs.h>."
Elliott Hughes [Fri, 10 Jan 2014 00:23:15 +0000 (00:23 +0000)]
am 1424b701: am fce55ed3: am 8e6bf35a: Merge "Add <sgidefs.h>."

* commit '1424b70152a1cacbfb3125a49b01d158f4028152':
  Add <sgidefs.h>.

10 years agoam fb12b9a7: am ea7c0ea6: am d29c75f0: Merge "Fix x86 user_regs_struct."
Elliott Hughes [Fri, 10 Jan 2014 00:23:14 +0000 (00:23 +0000)]
am fb12b9a7: am ea7c0ea6: am d29c75f0: Merge "Fix x86 user_regs_struct."

* commit 'fb12b9a7a3f6b0d91a201d4f39134edddc93c07c':
  Fix x86 user_regs_struct.

10 years agoam 2a25c30e: am c63fe9fa: am 6114ffb3: Merge "Add the glibc-compatible d_fileno."
Elliott Hughes [Fri, 10 Jan 2014 00:07:22 +0000 (00:07 +0000)]
am 2a25c30e: am c63fe9fa: am 6114ffb3: Merge "Add the glibc-compatible d_fileno."

* commit '2a25c30e33ecf2170709f5ff89588c81480dd23d':
  Add the glibc-compatible d_fileno.

10 years agoam 2872e742: am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."
Elliott Hughes [Fri, 10 Jan 2014 00:02:23 +0000 (00:02 +0000)]
am 2872e742: am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."

* commit '2872e74298ab535b36e03630207d3d685e29d570':
  Add NT_PRSTATUS to <elf.h>.

10 years agoam 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."
Elliott Hughes [Thu, 9 Jan 2014 23:58:59 +0000 (15:58 -0800)]
am 33c3e8d3: Merge "Add NT_PRSTATUS to <elf.h>."

* commit '33c3e8d3b2312be3a3eb9d2632c4a570969e1624':
  Add NT_PRSTATUS to <elf.h>.

10 years agoMerge "Add NT_PRSTATUS to <elf.h>."
Elliott Hughes [Thu, 9 Jan 2014 23:53:58 +0000 (23:53 +0000)]
Merge "Add NT_PRSTATUS to <elf.h>."

10 years agoAdd NT_PRSTATUS to <elf.h>.
Elliott Hughes [Thu, 9 Jan 2014 23:45:07 +0000 (15:45 -0800)]
Add NT_PRSTATUS to <elf.h>.

Needed by aarch64.

Bug: 12476126
Change-Id: I7764664459a06cf4f2a60e707bd968d321a78430

10 years agoam fce55ed3: am 8e6bf35a: Merge "Add <sgidefs.h>."
Elliott Hughes [Thu, 9 Jan 2014 22:37:27 +0000 (22:37 +0000)]
am fce55ed3: am 8e6bf35a: Merge "Add <sgidefs.h>."

* commit 'fce55ed319648f7b80303815ba25f5a5f48be2db':
  Add <sgidefs.h>.

10 years agoam ea7c0ea6: am d29c75f0: Merge "Fix x86 user_regs_struct."
Elliott Hughes [Thu, 9 Jan 2014 22:33:46 +0000 (22:33 +0000)]
am ea7c0ea6: am d29c75f0: Merge "Fix x86 user_regs_struct."

* commit 'ea7c0ea61462691f9466489176c00393641821bc':
  Fix x86 user_regs_struct.

10 years agoam 8e6bf35a: Merge "Add <sgidefs.h>."
Elliott Hughes [Thu, 9 Jan 2014 22:31:31 +0000 (14:31 -0800)]
am 8e6bf35a: Merge "Add <sgidefs.h>."

* commit '8e6bf35a16532f9e90ce85b0674a0ff19dbef557':
  Add <sgidefs.h>.

10 years agoam d29c75f0: Merge "Fix x86 user_regs_struct."
Elliott Hughes [Thu, 9 Jan 2014 22:28:08 +0000 (14:28 -0800)]
am d29c75f0: Merge "Fix x86 user_regs_struct."

* commit 'd29c75f0907f1ea57b37ddbec0a41d8739ece6d8':
  Fix x86 user_regs_struct.

10 years agoMerge "Add <sgidefs.h>."
Elliott Hughes [Thu, 9 Jan 2014 22:24:33 +0000 (22:24 +0000)]
Merge "Add <sgidefs.h>."

10 years agoMerge "Fix x86 user_regs_struct."
Elliott Hughes [Thu, 9 Jan 2014 22:23:34 +0000 (22:23 +0000)]
Merge "Fix x86 user_regs_struct."

10 years agoFix x86 user_regs_struct.
Elliott Hughes [Thu, 9 Jan 2014 22:01:18 +0000 (14:01 -0800)]
Fix x86 user_regs_struct.

I fixed x86-64 yesterday, but didn't fix x86 at the same time.

Change-Id: I5c081f5956dfedb9389af303369b841dd0fc1953

10 years agoAdd <sgidefs.h>.
Elliott Hughes [Thu, 9 Jan 2014 21:54:49 +0000 (13:54 -0800)]
Add <sgidefs.h>.

Change-Id: I543d502a81dcb8d5969f814b8a9a9c819bc4fa2c

10 years agoam c63fe9fa: am 6114ffb3: Merge "Add the glibc-compatible d_fileno."
Elliott Hughes [Thu, 9 Jan 2014 21:49:06 +0000 (21:49 +0000)]
am c63fe9fa: am 6114ffb3: Merge "Add the glibc-compatible d_fileno."

* commit 'c63fe9fa49ee8b7ad17021c1bd418525f9ee0fd0':
  Add the glibc-compatible d_fileno.

10 years agoam 6114ffb3: Merge "Add the glibc-compatible d_fileno."
Elliott Hughes [Thu, 9 Jan 2014 21:43:48 +0000 (13:43 -0800)]
am 6114ffb3: Merge "Add the glibc-compatible d_fileno."

* commit '6114ffb3e16c114c728c31b472263660e2d2210c':
  Add the glibc-compatible d_fileno.

10 years agoMerge "Add the glibc-compatible d_fileno."
Elliott Hughes [Thu, 9 Jan 2014 21:39:21 +0000 (21:39 +0000)]
Merge "Add the glibc-compatible d_fileno."

10 years agoAdd the glibc-compatible d_fileno.
Elliott Hughes [Thu, 9 Jan 2014 20:37:12 +0000 (12:37 -0800)]
Add the glibc-compatible d_fileno.

d_ino is the POSIX name, but glibc also offers d_fileno, and
that's what strace is using.

Change-Id: I3fadbe7a64700b42e78c7f4631620e864d43147b

10 years agoam b1955cc4: am 56d790fc: am c65cbf97: Merge "Fix <sys/resource.h>."
Elliott Hughes [Thu, 9 Jan 2014 19:21:56 +0000 (19:21 +0000)]
am b1955cc4: am 56d790fc: am c65cbf97: Merge "Fix <sys/resource.h>."

* commit 'b1955cc44776dc272eece253e72b567ce32aa185':
  Fix <sys/resource.h>.

10 years agoam 56d790fc: am c65cbf97: Merge "Fix <sys/resource.h>."
Elliott Hughes [Thu, 9 Jan 2014 19:11:47 +0000 (19:11 +0000)]
am 56d790fc: am c65cbf97: Merge "Fix <sys/resource.h>."

* commit '56d790fceed92d7d970da8a1bb598bf7c78db7ee':
  Fix <sys/resource.h>.

10 years agoam c65cbf97: Merge "Fix <sys/resource.h>."
Elliott Hughes [Thu, 9 Jan 2014 19:05:35 +0000 (11:05 -0800)]
am c65cbf97: Merge "Fix <sys/resource.h>."

* commit 'c65cbf97d9769025ad83d6e7f4e7daa58a273a4c':
  Fix <sys/resource.h>.

10 years agoMerge "Fix <sys/resource.h>."
Elliott Hughes [Thu, 9 Jan 2014 19:01:14 +0000 (19:01 +0000)]
Merge "Fix <sys/resource.h>."

10 years agoFix <sys/resource.h>.
Elliott Hughes [Thu, 9 Jan 2014 18:17:03 +0000 (10:17 -0800)]
Fix <sys/resource.h>.

The situation here is a bit confusing. On 64-bit, rlimit and rlimit64 are
the same, and so getrlimit/getrlimit64, setrlimit/setrlimit64,
and prlimit/prlimit64 are all the same. On 32-bit, rlimit and rlimit64 are
different. 32-bit architectures other than MIPS go one step further by having
an even more limited getrlimit system call, so arm and x86 need to use
ugetrlimit instead of getrlimit. Worse, the 32-bit architectures don't have
64-bit getrlimit- and setrlimit-equivalent system calls, and you have to use
prlimit64 instead. There's no 32-bit prlimit system call, so there's no
easy implementation of that --- what should we do if the result of prlimit64
won't fit in a struct rlimit? Since 32-bit survived without prlimit/prlimit64
for this long, I'm not going to bother implementing prlimit for 32-bit.

We need the rlimit64 functions to be able to build strace 4.8 out of the box.

Change-Id: I1903d913b23016a2fc3b9f452885ac730d71e001

10 years agoam e5af4430: am 8c6c9801: am 8276d287: Merge "Our dirent is a dirent64."
Elliott Hughes [Thu, 9 Jan 2014 01:31:07 +0000 (01:31 +0000)]
am e5af4430: am 8c6c9801: am 8276d287: Merge "Our dirent is a dirent64."

* commit 'e5af4430477b3fb8a6faaa5348a6dda4574fcea6':
  Our dirent is a dirent64.

10 years agoam 49fd7864: am 2ab8dd30: am 66f473ef: Merge "Add <sys/reg.h>."
Elliott Hughes [Thu, 9 Jan 2014 01:31:07 +0000 (01:31 +0000)]
am 49fd7864: am 2ab8dd30: am 66f473ef: Merge "Add <sys/reg.h>."

* commit '49fd7864cd997f78ac683c8c54dd009020c3d0e5':
  Add <sys/reg.h>.

10 years agoam 8c6c9801: am 8276d287: Merge "Our dirent is a dirent64."
Elliott Hughes [Thu, 9 Jan 2014 01:26:31 +0000 (01:26 +0000)]
am 8c6c9801: am 8276d287: Merge "Our dirent is a dirent64."

* commit '8c6c9801f175acbd7ebde6e2f855e0b47ae0f96e':
  Our dirent is a dirent64.

10 years agoam 2ab8dd30: am 66f473ef: Merge "Add <sys/reg.h>."
Elliott Hughes [Thu, 9 Jan 2014 01:26:30 +0000 (01:26 +0000)]
am 2ab8dd30: am 66f473ef: Merge "Add <sys/reg.h>."

* commit '2ab8dd30ef455973c94a7386c70f0d4627789bab':
  Add <sys/reg.h>.

10 years agoam 8276d287: Merge "Our dirent is a dirent64."
Elliott Hughes [Thu, 9 Jan 2014 01:20:16 +0000 (17:20 -0800)]
am 8276d287: Merge "Our dirent is a dirent64."

* commit '8276d2875f64587e266567f5bb2c5e0c70ef0a5d':
  Our dirent is a dirent64.

10 years agoam 66f473ef: Merge "Add <sys/reg.h>."
Elliott Hughes [Thu, 9 Jan 2014 01:20:15 +0000 (17:20 -0800)]
am 66f473ef: Merge "Add <sys/reg.h>."

* commit '66f473ef3313a2af7b9639f134e107a804d1e164':
  Add <sys/reg.h>.

10 years agoMerge "Our dirent is a dirent64."
Elliott Hughes [Thu, 9 Jan 2014 01:15:27 +0000 (01:15 +0000)]
Merge "Our dirent is a dirent64."

10 years agoMerge "Add <sys/reg.h>."
Elliott Hughes [Thu, 9 Jan 2014 01:15:10 +0000 (01:15 +0000)]
Merge "Add <sys/reg.h>."

10 years agoam d0a17beb: am 548eddab: am 8a6eec38: Merge "Fix x86_64 register names in <sys/user...
Elliott Hughes [Thu, 9 Jan 2014 00:37:52 +0000 (00:37 +0000)]
am d0a17beb: am 548eddab: am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."

* commit 'd0a17beb73c851babf18736773645dbca206f69b':
  Fix x86_64 register names in <sys/user.h>.

10 years agoam 36a3f941: am 60ff1387: am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h...
Elliott Hughes [Thu, 9 Jan 2014 00:37:51 +0000 (00:37 +0000)]
am 36a3f941: am 60ff1387: am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent.h>."

* commit '36a3f941d07ad58b7df1152b1cfb6041604eb666':
  We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.

10 years agoam 548eddab: am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."
Elliott Hughes [Thu, 9 Jan 2014 00:35:30 +0000 (00:35 +0000)]
am 548eddab: am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."

* commit '548eddab41c1665f1baf20be7d9d5267e9243087':
  Fix x86_64 register names in <sys/user.h>.

10 years agoam 60ff1387: am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset...
Elliott Hughes [Thu, 9 Jan 2014 00:35:30 +0000 (00:35 +0000)]
am 60ff1387: am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent.h>."

* commit '60ff1387f418faa24f0eb6f00e72ad1674b3bcaa':
  We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.

10 years agoOur dirent is a dirent64.
Elliott Hughes [Thu, 9 Jan 2014 00:31:36 +0000 (16:31 -0800)]
Our dirent is a dirent64.

Change-Id: Idc9ebfd900fddd4f7c7ac95bc9b74401ebc801a3

10 years agoam 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."
Elliott Hughes [Thu, 9 Jan 2014 00:30:17 +0000 (16:30 -0800)]
am 8a6eec38: Merge "Fix x86_64 register names in <sys/user.h>."

* commit '8a6eec38eb19b5af317b57c15459f9786df83eba':
  Fix x86_64 register names in <sys/user.h>.

10 years agoam 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent...
Elliott Hughes [Thu, 9 Jan 2014 00:30:17 +0000 (16:30 -0800)]
am 5d5cc227: Merge "We shouldn\'t have a <sys/dirent.h> that\'s a subset of <dirent.h>."

* commit '5d5cc2273f7be6b3d9fe4e5787ab22bc137c811a':
  We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.

10 years agoAdd <sys/reg.h>.
Elliott Hughes [Thu, 9 Jan 2014 00:29:22 +0000 (16:29 -0800)]
Add <sys/reg.h>.

This describes the offsets into ptrace's returned arrays of registers
for x86 and x86-64.

Change-Id: I044f03e286673999a298b73a813d4ad366625845

10 years agoMerge "Fix x86_64 register names in <sys/user.h>."
Elliott Hughes [Thu, 9 Jan 2014 00:24:55 +0000 (00:24 +0000)]
Merge "Fix x86_64 register names in <sys/user.h>."

10 years agoMerge "We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>."
Elliott Hughes [Thu, 9 Jan 2014 00:24:31 +0000 (00:24 +0000)]
Merge "We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>."

10 years agoFix x86_64 register names in <sys/user.h>.
Elliott Hughes [Wed, 8 Jan 2014 23:54:19 +0000 (15:54 -0800)]
Fix x86_64 register names in <sys/user.h>.

Change-Id: Ieb327247a41f6195589716170e324d1cd1251b96

10 years agoWe shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.
Elliott Hughes [Wed, 8 Jan 2014 23:51:13 +0000 (15:51 -0800)]
We shouldn't have a <sys/dirent.h> that's a subset of <dirent.h>.

glibc has no <sys/dirent.h>. If we do have to bring this back, we
should probably just have one file #include the other.

Change-Id: I5c0bf9c03769daf3b23f69778e9f01f81c3de9ec

10 years agoam e4f4ef04: am eac00eb7: am 4c8caf0a: Merge "<sched.h> should offer both __sched_pri...
Elliott Hughes [Wed, 8 Jan 2014 02:53:05 +0000 (02:53 +0000)]
am e4f4ef04: am eac00eb7: am 4c8caf0a: Merge "<sched.h> should offer both __sched_priority and sched_priority."

* commit 'e4f4ef047c7240d5603ad4e65007f4b79a2fefa3':
  <sched.h> should offer both __sched_priority and sched_priority.

10 years agoam fccb66b3: am 4458a5a7: am 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV...
Elliott Hughes [Wed, 8 Jan 2014 02:53:04 +0000 (02:53 +0000)]
am fccb66b3: am 4458a5a7: am 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV_* constants."

* commit 'fccb66b3ab3f6e5672a46d4730d545859308dc8c':
  <fcntl.h> should get you the POSIX_FADV_* constants.

10 years agoam eac00eb7: am 4c8caf0a: Merge "<sched.h> should offer both __sched_priority and...
Elliott Hughes [Wed, 8 Jan 2014 02:50:22 +0000 (02:50 +0000)]
am eac00eb7: am 4c8caf0a: Merge "<sched.h> should offer both __sched_priority and sched_priority."

* commit 'eac00eb72bb6b7cfb9fb949df2dec52783df4bc9':
  <sched.h> should offer both __sched_priority and sched_priority.

10 years agoam 4458a5a7: am 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV_* constants."
Elliott Hughes [Wed, 8 Jan 2014 02:50:21 +0000 (02:50 +0000)]
am 4458a5a7: am 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV_* constants."

* commit '4458a5a78a9036e17d4747e0350e543588d97952':
  <fcntl.h> should get you the POSIX_FADV_* constants.

10 years agoam 4c8caf0a: Merge "<sched.h> should offer both __sched_priority and sched_priority."
Elliott Hughes [Wed, 8 Jan 2014 02:45:48 +0000 (18:45 -0800)]
am 4c8caf0a: Merge "<sched.h> should offer both __sched_priority and sched_priority."

* commit '4c8caf0ad39768e614fb4c1f5ef415aab223adb2':
  <sched.h> should offer both __sched_priority and sched_priority.

10 years agoam 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV_* constants."
Elliott Hughes [Wed, 8 Jan 2014 02:45:48 +0000 (18:45 -0800)]
am 4faf76ca: Merge "<fcntl.h> should get you the POSIX_FADV_* constants."

* commit '4faf76ca114a11cd264b0f5907e517add4585b27':
  <fcntl.h> should get you the POSIX_FADV_* constants.

10 years agoam ec93120e: am 82bbaf7e: am bc4e135a: Merge "Add SWAP_FLAG_* constants to <sys/swap...
Elliott Hughes [Wed, 8 Jan 2014 02:43:02 +0000 (02:43 +0000)]
am ec93120e: am 82bbaf7e: am bc4e135a: Merge "Add SWAP_FLAG_* constants to <sys/swap.h>."

* commit 'ec93120e63b44e88ee4665820b7b29c0757852f7':
  Add SWAP_FLAG_* constants to <sys/swap.h>.

10 years agoMerge "<sched.h> should offer both __sched_priority and sched_priority."
Elliott Hughes [Wed, 8 Jan 2014 02:41:04 +0000 (02:41 +0000)]
Merge "<sched.h> should offer both __sched_priority and sched_priority."

10 years agoMerge "<fcntl.h> should get you the POSIX_FADV_* constants."
Elliott Hughes [Wed, 8 Jan 2014 02:40:44 +0000 (02:40 +0000)]
Merge "<fcntl.h> should get you the POSIX_FADV_* constants."

10 years agoam 82bbaf7e: am bc4e135a: Merge "Add SWAP_FLAG_* constants to <sys/swap.h>."
Elliott Hughes [Wed, 8 Jan 2014 02:40:32 +0000 (02:40 +0000)]
am 82bbaf7e: am bc4e135a: Merge "Add SWAP_FLAG_* constants to <sys/swap.h>."

* commit '82bbaf7e88440dc68f21cfe1b35c5a0f4a7b3dd2':
  Add SWAP_FLAG_* constants to <sys/swap.h>.