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
|
36443fd542a96d2ed71fc294f70fed08c115af55 |
|
29-Jul-2015 |
Elliott Hughes <enh@google.com> |
Remove PAGE_SIZE from <limits.h>. It turns out that everyone's still getting PAGE_SIZE from <sys/user.h> via <sys/ucontext.h> via <signal.h> anyway. glibc has PAGE_SIZE in <sys/user.h> rather than <limits.h> so this part is good. The bad part is that we have such wide transitive inclusion of <sys/user.h>! Bug: http://b/22735893 Change-Id: I363adffe4a27b4ca1eedf695ea621f5dd2d5ca10
|
820a86f2df90419d4b0e7ae6004eb73bb804fc7e |
|
29-Jul-2015 |
Elliott Hughes <enh@google.com> |
Remove PAGESIZE. This was pretty much unused, and isn't in glibc. Bug: http://b/22735893 Change-Id: If17f0dcd931c90ef1ccb134a3950c3b0011a03f4
|
afab3ffcce1054ec887fb347700819d69a9c8151 |
|
28-Jul-2015 |
Elliott Hughes <enh@google.com> |
Move PAGE_MASK into <sys/user.h>. I'm removing the TODO on the assumption that being compatible with glibc is more useful than BSD. The new internal "bionic_page.h" header factors out some duplication between libc and the linker. Bug: http://b/22735893 Change-Id: I4aec4dcba5886fb6f6b9290a8f85660643261321
|
0589777a33a08b88682e31cfbc008889b3f258d0 |
|
29-Oct-2014 |
Yongqin Liu <yongqin.liu@linaro.org> |
limits.h: add define for HOST_NAME_MAX according to the rules defined here: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/limits.h.html add the definition for HOST_NAME_MAX to limits.h file, and set the default value to _POSIX_HOST_NAME_MAX as 255 Change-Id: Iddd5c6c569f4e0a14994c7a7c54985f3e7809fc4 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
|
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
|
04303f5a8ab9a992f3671d46b6ee2171582cbd61 |
|
19-Sep-2014 |
Elliott Hughes <enh@google.com> |
Add semaphore tests, fix sem_destroy. Bug: https://code.google.com/p/android/issues/detail?id=76088 Change-Id: I4a0561b23e90312384d40a1c804ca64ee98f4066
|
3b9da0f99a6629d5283844922327711c985c78eb |
|
06-Jun-2014 |
Elliott Hughes <enh@google.com> |
Fix the printf family for non-ASCII. The bug here turned out to be that we hadn't increased the constant corresponding to the maximum number of bytes in a character to match our new implementation, so any character requiring more than a byte in UTF-8 would break our printf family. Bug: 15439554 (cherry picked from commit 69f05d291d848de654c72e5278de8ca06fbf5d2f) Change-Id: Ia5467e22ccb022e8d118de82291916050656147e
|
69f05d291d848de654c72e5278de8ca06fbf5d2f |
|
06-Jun-2014 |
Elliott Hughes <enh@google.com> |
Fix the printf family for non-ASCII. The bug here turned out to be that we hadn't increased the constant corresponding to the maximum number of bytes in a character to match our new implementation, so any character requiring more than a byte in UTF-8 would break our printf family. Bug: 15439554 Change-Id: I693e5e6eb11c640b5886e848502908ec5fff53b1
|
eab395e4a88ee8ca7eeb7b6b2d6dfde364afbfcc |
|
29-Apr-2014 |
Calin Juravle <calin@google.com> |
Reserve space in mbstate to allow for proper wchar support Bug: 14382788 Change-Id: If023ac9bb65f95135cae7ebe89147e3985a69a96
|
1b0dc40980c259aa0d9a416cd1ccf497e6efe138 |
|
02-Apr-2014 |
Elliott Hughes <enh@google.com> |
Remove <machine/limits.h>. Change-Id: I7f9e9538517f726d4f08bf1f4b8d57c54d3f1676
|
0e44bc3baeb1677e5fbdda87a737b9c508c95132 |
|
25-Feb-2014 |
Elliott Hughes <enh@google.com> |
Remove <asm/page.h>. If we have PAGE_SIZE/PAGESIZE, POSIX says they should be in <limits.h>. Change-Id: I3c2d574ea2aea81f524874a156361411a4ffa18e
|
f8a2c51bf3b85bf86bff905dd1232299d333dafe |
|
13-Sep-2012 |
David 'Digit' Turner <digit@android.com> |
LONG_LONG_MIN/MAX: Move declarations to <limits.h> LONG_LONG_MIN, LONG_LONG_MAX and ULONG_LONG_MAX are GLibc-specific macros that are better defined in <limits.h> instead of the current exotic location (<pthread.h>). Note that GCC's <limits.h> only defines these macros when __GNU_LIBRARY__ is also defined. This is only the case when building against GLibc, so manually redefine the macros here. Note that using LLONG_MIN/LLONG_MAX/ULLONG_MAX is the C99-compliant way to get these values, but it's easier to define these compatibility macros for the sake of porting existing code. Change-Id: I8023918d73b4685238054932f94a4006c1ca7d03
|
6331db3fd251ddc350913cc1e8a7941740c25f63 |
|
10-Jan-2012 |
Arun Raghavan <arun.raghavan@collabora.co.uk> |
limits.h: Include page.h when relying on PAGE_SIZE limits.h relies on PAGE_SIZE being defined without actually including page.h. Make sure this is included to avoid compilation failures. Signed-off-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
|
50ace4fec5e8cb5afcbc656a4556fa528adfd760 |
|
17-Jun-2010 |
David 'Digit' Turner <digit@google.com> |
Remove compiler warnings when building Bionic. Also add missing declarations to misc. functions. Fix clearerr() implementation (previous was broken). Handle feature test macros like _POSIX_C_SOURCE properly. Change-Id: Icdc973a6b9d550a166fc2545f727ea837fe800c4
|
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
|
a27d2baa0c1a2ec70f47ea9199b1dd6762c8a349 |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
|