5704c423c81790195161c1757ae79da188590c51 |
|
26-Jan-2016 |
Elliott Hughes <enh@google.com> |
Implement POSIX lockf. This has been requested a few times over the years. This is basically a very late rebase of https://android-review.googlesource.com/45470 which was abandoned years ago. One addition is that this version has _FILE_OFFSET_BITS=64 support. POSIX puts this in <unistd.h>. glibc also has it in <fcntl.h>. Bug: http://b/13077650 Change-Id: I5862b1dc326e326c01ad92438ecc1578d19ba739
|
af4713e6a5658d46570f37fe791120c60fcd34f2 |
|
04-Sep-2015 |
Dan Albert <danalbert@google.com> |
Unify unistd.h. Make unistd.h usable from all platform versions. Also name all function parameters for Android Studio. Bug: http://b/21952040 Change-Id: Ia1777fd4a6d4e37f25cc402c28fb78c003e481e3
|
afdd15456ad0c7223c690731f5eb0af54cdb0024 |
|
21-Jul-2015 |
Daniel Micay <danielmicay@gmail.com> |
add fortified implementations of write/pwrite{,64} These are just based on the read/pread{,64} implementations with the function calls and error messages adjusted as appropriate. The only difference is that the buffer parameters are const. Change-Id: Ida1597a903807f583f230d74bcedffdb7b24fcf6
|
9101b00400cfb20b96112682169c5da67e065ff2 |
|
20-May-2015 |
Daniel Micay <danielmicay@gmail.com> |
add a fortified implementation of getcwd Change-Id: Ice3e6d3e1ff07788305dc85f8ee4059baad5fac4
|
4c43aac9a5db6de1e34fdab652dab01b32141718 |
|
31-Jul-2015 |
Elliott Hughes <enh@google.com> |
Revert "add a fortified implementation of getcwd" This reverts commit 89a121d43a274131cf9f84b0e685bebf1e70cc1b. Change-Id: Ib6f6fd424acea68a063777e9f324405450e23316
|
89a121d43a274131cf9f84b0e685bebf1e70cc1b |
|
20-May-2015 |
Daniel Micay <danielmicay@gmail.com> |
add a fortified implementation of getcwd Change-Id: I95001ae4fe8f206db83e5c44d129ba11310695ce
|
42281880a8ac8614832ff918a14e4b950f35d05d |
|
17-Apr-2015 |
Daniel Micay <danielmicay@gmail.com> |
add fortified readlink/readlinkat implementations Change-Id: Ia4b1824d20cad3a072b9162047492dade8576779
|
e7e1c875b0f8eefb1d771f200a58f54e64c39d55 |
|
16-Apr-2015 |
Daniel Micay <danielmicay@gmail.com> |
add fortified implementations of pread/pread64 Change-Id: Iec39c3917e0bc94371bd81541619392f5abe29b9
|
7fb680bfda059746c9bb8939ffaed600eecc3a29 |
|
24-Feb-2015 |
Yabin Cui <yabinc@google.com> |
Move getusershell/endusershell/setusershell to ndk_cruft.cpp. Bug: 19108648 Change-Id: I65134040345398dde612c4325d902db58f3bd2be
|
4c5891d93dc151e2f07fc87ae967f23e6c3d6e0c |
|
20-Feb-2015 |
Elliott Hughes <enh@google.com> |
valgrind can't find syscall because we didn't put it in <unistd.h>. Change-Id: I1e47291d4476bd2816138a8cf58f29d4986d39e3
|
68dc20d41193831a94df04b994ff2f601dd38d10 |
|
07-Feb-2015 |
Elliott Hughes <enh@google.com> |
Implement _FILE_OFFSET_BITS (mostly). I still don't think we can make stdio's fseeko and ftello work, but we can have everything else, and very few programs use fseeko/ftello (and they can just refrain from using _FILE_OFFSET_BITS and be no worse off than they are today). Bug: 11865851 Change-Id: Ic3cb409aae6713f4b345de954bcc4241fcd969ec
|
92b9c6ff3ea5bdadf33feb05e06703fa35f34497 |
|
16-Feb-2015 |
Elliott Hughes <enh@google.com> |
POSIX says flock is in <sys/file.h>, not <unistd.h>. Bug: 19392265 Change-Id: I14d0b56883f0354e13db04a1d140b8f60dae08d7
|
1ed337dbdfd419db0365f4457b96fe129d21db90 |
|
02-Feb-2015 |
Elliott Hughes <enh@google.com> |
Clean up SEEK_SET definitions. If we lose the #ifndef, the compiler will tell us if the definitions of SEEK_SET and friends ever get out of sync. Change-Id: I357cabec7c9cd451c604342344f210bba20fb6bc
|
a381fe8ebcd196614a00f4dca3539e0860ef9e84 |
|
10-Dec-2014 |
Elliott Hughes <enh@google.com> |
Fix ptsname(3) and ttyname(3) to use TLS. Be safe by default. Change-Id: I6c4a3f1fd4eee3a651b3162ce95b7e873de57521
|
047d943ee90c7582c08bafe6c2a6de132f12502f |
|
15-Nov-2014 |
Elliott Hughes <enh@google.com> |
sysconf(3) returns long. On LP32, this makes no difference. Not an ABI change. On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit, and the only difference is going to be whether the top bits are clobbered. (cherry picked from commit 60d84af1726225320b26683b726e5e735d9d76e8) Bug: 18390956 Change-Id: I722461498bc5494e2972fb07d5189dffe76e8993
|
60d84af1726225320b26683b726e5e735d9d76e8 |
|
15-Nov-2014 |
Elliott Hughes <enh@google.com> |
sysconf(3) returns long. On LP32, this makes no difference. Not an ABI change. On LP64, results are going to be in %rax or x0 whether they're 32- or 64-bit, and the only difference is going to be whether the top bits are clobbered. Bug: 18390956 Change-Id: I0bd4496231bdded34c1fa03e895021ac0df7f8e1
|
b86a4c7f651ab347611847e4f5a1a50d6ee1827b |
|
08-Nov-2014 |
Elliott Hughes <enh@google.com> |
Add sethostname(2). Not very useful, but helps building stuff like toybox out of the box. Change-Id: I110e39030452bd093a84278e019c5752d293718d
|
55ee845b8ec0861d09197b32fbb5f2d34320155d |
|
07-Oct-2014 |
Dan Albert <danalbert@google.com> |
Inline helpers need to be exported unmangled. __open_2() is used by the fortify implementation of open(2) in fcntl.h, and as such needs an unmangled C name. For some reason (inlining?), this doesn't cause problems at the default optimization level, but does for -O0. The rest of these didn't cause build failures, but they look suspect and probably will, we just haven't caught them yet. (cherry-pick of 658727e111ed6dee7be5239494f0764f7b1b02f8 with conflicts in stdio.h and string.h.) Bug: 17784968 Change-Id: I7391a7a8999ee204eaf6abd14a3d5373ea419d5b
|
658727e111ed6dee7be5239494f0764f7b1b02f8 |
|
07-Oct-2014 |
Dan Albert <danalbert@google.com> |
Inline helpers need to be exported unmangled. __open_2() is used by the fortify implementation of open(2) in fcntl.h, and as such needs an unmangled C name. For some reason (inlining?), this doesn't cause problems at the default optimization level, but does for -O0. The rest of these didn't cause build failures, but they look suspect and probably will, we just haven't caught them yet. Bug: 17784968 Change-Id: I7391a7a8999ee204eaf6abd14a3d5373ea419d5b
|
d87d401ab134996d1f25f5b63cefb48b5b5877c8 |
|
18-Aug-2014 |
Elliott Hughes <enh@google.com> |
Improve <sys/cdefs.h>. Fix and use __RENAME (and lose ___RENAME --- two underscores should be enough for anybody). This was the point of this change, because I want to use __RENAME to support the two basename variants and the two strerror_r variants. Lose a bunch of macros that weren't being used. Lose three dead files from the DNS code. Bug: 17784968 (cherry picked from commit 2cfb4e8e2e217ef0e4140dcbf9b3da809781158c) Change-Id: I5e96146f92c0521248c78c0933bec5e9a9818222
|
31165edf5733dae8fbe79551b18cbc0e56c8d808 |
|
24-Sep-2014 |
Elliott Hughes <enh@google.com> |
CLOEXEC support in fdopen, freopen, and mkostemp/mkostemps. Change-Id: I74ea88e0d4973d6ab3c57da7d8bb643c31592b14
|
a186b2e0ca19620a52b4a49c17835532d13eb30a |
|
22-Sep-2014 |
Elliott Hughes <enh@google.com> |
Clean up fpathconf(3)/pathconf(3). fpathconf(3) and pathconf(3) can share code. There's no such header file as <pathconf.h>. glibc/POSIX and BSD disagree about where the _POSIX_* definitions should go. Change-Id: I4a67f1595c9f5fbb26700a131178eedebd6bf712
|
f4c948a9e9b616c4f133f9495dacb105e51b3e49 |
|
19-Aug-2014 |
Elliott Hughes <enh@google.com> |
Move the meat of <features.h> into <sys/cdefs.h>. This way it's a lot harder for us to screw up (since we should always be including <sys/cdefs.h> anyway). Bug: 14659579 Change-Id: I23070fff3296b0d1c683bb5e3a6e214146327d53
|
2cfb4e8e2e217ef0e4140dcbf9b3da809781158c |
|
18-Aug-2014 |
Elliott Hughes <enh@google.com> |
Improve <sys/cdefs.h>. Fix and use __RENAME (and lose ___RENAME --- two underscores should be enough for anybody). This was the point of this change, because I want to use __RENAME to support the two basename variants and the two strerror_r variants. Lose a bunch of macros that weren't being used. Lose three dead files from the DNS code. Change-Id: I3ef645c566b16a52217bc2e68c7d54b37c7c9522
|
5f5cc45cf0e027f6ca503dc229a4890fc7164b66 |
|
19-Aug-2014 |
Elliott Hughes <enh@google.com> |
Fix <features.h> (_BSD_SOURCE and _GNU_SOURCE). <features.h> is supposed to take user-settable stuff like _GNU_SOURCE and _BSD_SOURCE and turn them into __USE_GNU and __USE_BSD for use in the C library headers. Instead, bionic used to unconditionally define _BSD_SOURCE and _GNU_SOURCE, and then test _GNU_SOURCE in the header files (which makes no sense whatsoever). Bug: 14659579 Change-Id: Ice4cf21a364ea2e559071dc8329e995277d5b987
|
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
|
4916706cfe590eb06c9b5bd4bd402ce056034d51 |
|
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 Change-Id: I0fb36438cd1abf8d4e87c29415f03db9ba13c3c2
|
f4c1a36a4500bc7f12e3065be3da4e8669ee011d |
|
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. Change-Id: I0efbffad2215cfcd75b4d442dfc972444b51d97c
|
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
|
9c07aee83b4ebbf2dba8e23d6896683187b9724e |
|
19-Jul-2014 |
Elliott Hughes <enh@google.com> |
Clean up some misinformation around prctl. prctl shouldn't be in <unistd.h>. Change-Id: I29609fc91c033e1ad143b75d9b4eb17aefbd63d6
|
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
|