1242f7eb67c678922b55e2077d9cf2d5cdc85b15 |
|
30-Jul-2014 |
Elliott Hughes <enh@google.com> |
Remove declarations for things that don't exist. The <grp.h> ones prevent gdb from building out of the box. (cherry picked from commit f4c1a36a4500bc7f12e3065be3da4e8669ee011d) Change-Id: I6958f2f1731de8c03df20b383decd414b78100aa
|
2ea0a58e01c1ed6db1da9dd0314ee053f5a32026 |
|
26-Jul-2014 |
Elliott Hughes <enh@google.com> |
Fix linkage of grantpt(3). Also clean up the implementation of all the pty functions, add tests, and fix the stub implementations of ttyname(3) and ttyname_r(3). Bug: https://code.google.com/p/android/issues/detail?id=58888 (cherry picked from commit 4916706cfe590eb06c9b5bd4bd402ce056034d51) Change-Id: I5cb7a1c17b156456e4c4818e65f256eb8d045424
|
de24f1ac00924b9a523d06784867bc8c9312335d |
|
19-Jul-2014 |
Elliott Hughes <enh@google.com> |
Clean up some misinformation around prctl. prctl shouldn't be in <unistd.h>. (cherry picked from commit 9c07aee83b4ebbf2dba8e23d6896683187b9724e) Change-Id: I70cda886fbf4d58d82dc70adaa981506ebff9949
|
462abab12b074c62c0999859e65d5a32ebb41951 |
|
14-Jun-2014 |
Dan Albert <danalbert@google.com> |
Removes getdtablesize(3) from LP64. getdtablesize(3) was removed fro POSIX 2004. Keep the symbol around in LP32 for binary compatibility, but remove the declaration from unistd.h. Bug: 13935372 Change-Id: I1f96cd290bf9176f922dad58bd5a7ab2cae7ef0f
|
b27a840f4b520bfa095db99b0a2e5205634b0003 |
|
11-Jun-2014 |
Elliott Hughes <enh@google.com> |
Add __pure2 to a few more functions, most notably gettid and pthread_self. Change-Id: I7eee9f26f45130038af09d8285782b07f70a996f
|
b4e099c6f741835b11ecb6f8fd0861b1892ff182 |
|
30-May-2014 |
Elliott Hughes <enh@google.com> |
Remove issetugid. Bug: 14569474 Change-Id: I752c77ed53c724f144f0b618443eb95e87f2929a
|
a7821b7121933b361554b28a2f9455783a330591 |
|
22-May-2014 |
Dan Albert <danalbert@google.com> |
Use __typeof__() instead of typeof() typeof() is a gcc builtin and is not always available (such as clang when -std=c*). Both gcc and clang always expose __typeof__(), so just use that. Change-Id: I75e2a990acc35f6f39b2c353f6548100ec03c67f
|
58d9e280d459225aa8dc4533e883182b08215f7d |
|
23-Apr-2014 |
Elliott Hughes <enh@google.com> |
Switch to the upstream OpenBSD getenv/putenv/setenv implementation. This fixes all the bugs found by the new tests. Change-Id: Id5a5f9f39a0620208bafa053f871a044725b4795
|
0133944b09d1c0a35041f7a41eb6bfb660144f4f |
|
21-Feb-2014 |
Elliott Hughes <enh@google.com> |
Clean up our OpenBSD usage. Also undo some of the mess where we have OpenBSD <stdio.h> but a mix of different BSD's implementations. In this first pass, I've only moved easy OpenBSD stuff. Change-Id: Iae67b02cde6dba9d8d06fedeb53efbfdac0a8cf6
|
a6ecba4d233d7b769a05ee81ae908c9105352624 |
|
11-Feb-2014 |
Elliott Hughes <enh@google.com> |
Clean up cacheflush. No cacheflush for LP64; use the GCC builtin instead. Clean up the 32-bit MIPS implementation now we no longer need to worry about old versions of GCC. Bug: 12924756 Change-Id: Ie23955b3ec194e226c4b2bce35b11d5e061f4753
|
ab61eb366ac48addf2bca6093a34455193f5c8df |
|
21-Nov-2013 |
Elliott Hughes <enh@google.com> |
Switch to upstream sleep(3) and usleep(3). Also fix the signature of usleep, and the definition of useconds_t which should be unsigned, as the 'u' in its name implies. This patch also cleans up the existing FreeBSD hacks by moving the libm stuff from <sys/cdefs.h> to a libm-private header, and adding comments about the hacks we use to build FreeBSD source. Change-Id: Ibe5067a380502df94a0a3a7901969b35411085b6
|
cac7b9d6ec1a09814bc028e2f768db732f018891 |
|
23-Oct-2013 |
Elliott Hughes <enh@google.com> |
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
|
f8fcfbc85a3ce3e195626b90736d3a484331494b |
|
22-Oct-2013 |
Elliott Hughes <enh@google.com> |
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
|
b036b5ca36c1e12b075909b3eca6eab73ee611cf |
|
10-Oct-2013 |
Nick Kralevich <nnk@google.com> |
FORTIFY_SOURCE: fortify read() Change-Id: Ic7de163fe121db13e00560adb257331bc709814d
|
8d2532763981d132b02df157e4cc363c39330090 |
|
10-Oct-2013 |
Nick Kralevich <nnk@google.com> |
Revert "FORTIFY_SOURCE: fortify read()" This change reverts * fb3f956d075676c0438f2ee2bf3a5be659dfc04b. * 65c99de2cb7a569ea17ca35e2f8f1e033421864b Change-Id: Id5774eeede41130579115cf67a72ee914f2b47d5
|
65c99de2cb7a569ea17ca35e2f8f1e033421864b |
|
09-Oct-2013 |
Nick Kralevich <nnk@google.com> |
FORTIFY_SOURCE: fortify read() Change-Id: I3d7b4ec86d04efb865117ce7629a2e26917f3331
|
b4f7616fd618875768b8fffc122b58bdb84a9969 |
|
20-Sep-2013 |
Elliott Hughes <enh@google.com> |
Ensure we have the off64_t variant of every function that takes an off_t. Change-Id: Ib2eee0cf13162be3b62559b84e90c6dcf5aab1c3
|
9ae59c02ca68da5bb45152c85c4cab6fd6f7aba2 |
|
18-Sep-2013 |
Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org> |
Declare __page_shift and __page_size with C linkage. __page_shift and __page_size were accidentally declared in unistd.h with C linkage - their implementation needs to use the same linkage. Going forward, though, let's stop the inlining madness and let's kill the non-standard __getpageshift(). This patch takes getpagesize(3) out of line and removes __getpageshift but fixes __page_shift and __page_size for backwards binary compatibility. Change-Id: I35ed66a08989ced1db422eb03e4d154a5d6b5bda Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
|
6524d3cad7a1adfc709ace7e983afb9789fed888 |
|
01-Mar-2013 |
Nick Kralevich <nnk@google.com> |
unistd.h: don't include sys/capability.h Don't pull in unnecessary header files. AFAIK, I've fixed all the code which didn't include the correct header files. Change-Id: If0b7bba74e77cb24a0cf9ce8968aa07400855e58
|
7c0dd555c09c880b71c7c4039993d1d029add109 |
|
26-Feb-2013 |
Nick Kralevich <nnk@google.com> |
libc: create sys/capability.h Per "man capset", sys/capability.h is the appropriate header file for the capget / capset definition, not unistd.h. Fixed. As a short term hack, continue to include sys/capability.h in unistd.h, until we can fix all the code which uses capget / capset. Change-Id: I6e7cf55955d761ca785a14c5e4b7a44125d8fc15
|
1ad10a566e042676c95a0bdbf3cbc48e99ddafb2 |
|
29-Aug-2012 |
Irina Tirdea <irina.tirdea@intel.com> |
Add getsid system call to bionic Add getsid() system call to bionic for all architectures. This is needed for various tools (e.g. perf). Adding the getsid system call was done in 3 steps: () add getsid system call (function name and syscall number) to libc/SYSCALLS.TXT () generate all necessary headers by calling libc/tools/gensyscalls.py. This patch is adding the generated files since the build system does not call gensyscalls.py. () add the system call signature to libc/include/unistd.h Change-Id: Id69a257e13ec02e1a44085a6b217a3f19ab025b1 Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
|
f0ec06ba609a15cf9343aabd5b2486f9a8af9adb |
|
13-Apr-2012 |
Kenny Root <kroot@google.com> |
Add faccessat to syscall list Change-Id: I427a18811089cb280769ac8da3ed8adc00a65a10
|
b083bb57f5cae6b1fa3fd756a2720a3de806da2b |
|
26-May-2011 |
David 'Digit' Turner <digit@android.com> |
libc: Fix prctl() declaration. This change fixes the prctl() declaration to match GLibc, and allow us to build gcc-4.6 for Android (among other things). Note that this does not change the source and binary interfaces. Change-Id: I3900c957f0da8b3548cbe9da8c41d50099dc19d6
|
95d751feacdb58d3fbc36f3f21a895a3ec2f065b |
|
16-Dec-2010 |
David 'Digit' Turner <digit@google.com> |
libc: Add ftruncate64 and improve 64-bit parameter syscall handling. This patch improves the handling of 64-bit parameters in syscalls on ARM. The ARM EABI mandates that 64-bit quantities be passed in even/odd register pairs, which requires special treatment. This allows us to simplify our implementations of pread() and pwrite() and remove the C stubs for pread64() and pwrite64(). Also add ftruncate64() to <unistd.h> Change-Id: I407e2fd223ba0093dd2d0b04c6152fadfc9ce3ef Bug 3107933
|
72e64e08697cc2b3d66397c8b6d34965dd2a7338 |
|
24-Nov-2010 |
Kenny Root <kroot@google.com> |
Add support for pread64/pwrite64 64-bit pread() and pwrite() is needed for ZipFileRO to be able to read ludicrously large ZIP files just in case someone is crazy enough to do it. Also fix a license header that was apparently mangled. Change-Id: I6819ef8b36e46b63b40749c95717b1ecf9307033
|
bb5581ad6eec40041dab4e961149f7a8a3a83497 |
|
09-Oct-2010 |
David 'Digit' Turner <digit@google.com> |
libc: tag missing functions in system headers. This matches recent changes in the NDK header. We enclose missing functions in #if 0 .. #endif blocks with a clear "MISSING" in comments in order to locate them later. Change-Id: I87b3a62e777897e75c9243360fb0a82bcc53d9fb
|
275cd48511daabe4591caa49c3ad0df34a6889ff |
|
27-Sep-2010 |
David 'Digit' Turner <digit@google.com> |
libc: Add missing pipe2() declaration and implementation. Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c
|
2304a0bf86f224efdd67e38f34c97f35c5cf3c56 |
|
11-Aug-2010 |
Jeff Hamilton <jham@android.com> |
Fix pwrite to take a const void* instead of void* for the buffer. Change-Id: I10b315946b8f8f7e34825410dfef37e0220edbee
|
63673645c4da1cf97938d5018d7d373837563174 |
|
06-Aug-2010 |
Dima Zavin <dima@android.com> |
libc: make lseek64 proto be glibc compatible (loff_t -> off64_t) Change-Id: Ib79b99be9ca8d4b1f95ceeba416b6abc04187c3c Signed-off-by: Dima Zavin <dima@android.com>
|
da3019b55305ce51b1b483d8727641e791ce0941 |
|
11-Jun-2010 |
David 'Digit' Turner <digit@google.com> |
libc: add missing truncate() declaration Change-Id: Icb3601bbc9365b75b05ff443a39192f9cd3cbfb7
|
78c1c04ced772298be8bdb5a94b6ce491bb9b3e1 |
|
20-May-2010 |
André Goddard Rosa <andre.goddard@gmail.com> |
pthread: introduce pthread_setname_np() as a mean to give names to threads ... so that each cloned process at the kernel level can be named independently. Tools like 'top' can display the CPU/memory statistics for each process's thread if "Show Threads" mode is on. With this function in place, we can convert dalvik/Thread.c setThreadName() function over this function. This feature ought to be provided by the underlying C library and not coded directly in Dalvik. Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
|
fc10b24accd082fb33c8f92ff8b92481c22fe3dc |
|
14-Jan-2010 |
Colin Cross <ccross@android.com> |
Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
|
99d7907611725e23b6fad3ae7acff4926504e687 |
|
15-Dec-2009 |
Elliott Hughes <enh@google.com> |
Fix usleep(3) return type to be POSIX-compliant. POSIX usleep(3) returns 0 on successful completion, -1 otherwise: http://www.opengroup.org/onlinepubs/007908799/xsh/usleep.html This was found by an external user porting native code: http://groups.google.com/group/android-porting/browse_thread/thread/674848f001db0292
|
cf399f77b83b03cd83da784aa27ef1df71cca78d |
|
05-Oct-2009 |
Elliott Hughes <enh@google.com> |
Add a GNU-compatible TEMP_FAILURE_RETRY. I wondered about #ifndef, but the other macros in here don't use it. I also wondered about __GNUC__, since this macro uses two GCC extensions.
|
1dc9e472e19acfe6dc7f41e429236e7eef7ceda1 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
1767f908af327fa388b1c66883760ad851267013 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
|
9f65adf2ba3bb15feb8b7a7b3eef788df3fd270e |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
|
4e468ed2eb86a2406e14f1eca82072ee501d05fd |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
|
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|