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
|
91570ce987ef93f9ba2fa663a5fee1bd2525a2ba |
|
10-Jul-2014 |
Elliott Hughes <enh@google.com> |
Slim down static binaries by avoiding stdio. It's okay for a program to choose to drag in stdio, but it's unfortunate if even the minimal "int main() { return 42; }" drags in stdio... This brings the minimal static binary on ARM down from 78KiB to 46KiB. Given that we don't have a separate -lpthread it's not obvious to me that we can shave this down any further. I'm not sure whether this is a worthwhile change for that reason. (And the fact that dynamic binaries, the usual case, are unaffected either way.) Change-Id: I02f91dcff37d14354314a30b72fed2563f431c88
|
eb664e24c074b88539b743668109d8b4eaa925bd |
|
13-May-2014 |
Elliott Hughes <enh@google.com> |
Add getmntent_r to our collection of <mntent.h> compatibility stubs. This helps build 'external/flo' out of the box. Bug: 14841211 Change-Id: I30dde77239cceaf1f5743163744eb3604d27a266
|
c768874c667794bee278b9fbf207b5ca5df4e7a6 |
|
09-May-2014 |
Calin Juravle <calin@google.com> |
Align struct passwd definition with other variations of libc Add pg_gecos ("real name") field to struct passwd. Bug: 14679430 Bug: 12875898 Change-Id: I833ec2c46f6a6259b7232a8e3f7942968ef0b50d
|
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
|
4e9cb032d1eab7ceaef47f4d5104d2c42d556ce2 |
|
09-Jan-2014 |
JP Abgrall <jpa@google.com> |
Add extra libc stubs for mntent related functions. This adds stubs for setmntent() and endmntent(). Change-Id: I6ccaa044145405cd7226c1c54a25d435c96a2308
|
567a8de3ca5b4c4f033bfbcdd339a3fd59a76227 |
|
25-Oct-2013 |
Elliott Hughes <enh@google.com> |
Start moving 32-bit cruft somewhere it won't pollute 64-bit. Change-Id: I03a6a50a5243f29e50fb58a3cf8b5e7198640baa
|
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>
|
8f2a5a0b40fc82126c691d5c30131d908772aab7 |
|
15-Mar-2013 |
Elliott Hughes <enh@google.com> |
Clean up internal libc logging. We only need one logging API, and I prefer the one that does no allocation and is thus safe to use in any context. Also use O_CLOEXEC when opening the /dev/log files. Move everything logging-related into one header file. Change-Id: Ic1e3ea8e9b910dc29df351bff6c0aa4db26fbb58
|
3e898476c7230b60a0f76968e64ff25f475b48c0 |
|
12-Feb-2013 |
Elliott Hughes <enh@google.com> |
Revert "Revert "More pthreads cleanup."" This reverts commit 6f94de3ca49e4ea147b1c59e5818fa175846518f (Doesn't try to increase the number of TLS slots; that leads to an inability to boot. Adds more tests.) Change-Id: Ia7d25ba3995219ed6e686463dbba80c95cc831ca
|
6f94de3ca49e4ea147b1c59e5818fa175846518f |
|
12-Feb-2013 |
Elliott Hughes <enh@google.com> |
Revert "More pthreads cleanup." This reverts commit 2a1bb4e64677b9abbc17173c79768ed494565047 Change-Id: Ia443d0748015c8e9fc3121e40e68258616767b51
|
2a1bb4e64677b9abbc17173c79768ed494565047 |
|
11-Feb-2013 |
Elliott Hughes <enh@google.com> |
More pthreads cleanup. POSIX says pthread_create returns EAGAIN, not ENOMEM. Also pull pthread_attr_t functions into their own file. Also pull pthread_setname_np into its own file. Also remove unnecessary #includes from pthread_key.cpp. Also account for those pthread keys used internally by bionic, so they don't count against the number of keys available to user code. (They do with glibc, but glibc's limit is the much more generous 1024.) Also factor out the common errno-restoring idiom to reduce gotos. Bug: 6702535 Change-Id: I555e66efffcf2c1b5a2873569e91489156efca42
|
1e980b6bc8315d00a07312b25486531247abd98c |
|
18-Jan-2013 |
Elliott Hughes <enh@google.com> |
Fix the duplication in the debugging code. We had two copies of the backtrace code, and two copies of the libcorkscrew /proc/pid/maps code. This patch gets us down to one. We also had hacks so we could log in the malloc debugging code. This patch pulls the non-allocating "printf" code out of the dynamic linker so everyone can share. This patch also makes the leak diagnostics easier to read, and makes it possible to paste them directly into the 'stack' tool (by using relative PCs). This patch also fixes the stdio standard stream leak that was causing a leak warning every time tf_daemon ran. Bug: 7291287 Change-Id: I66e4083ac2c5606c8d2737cb45c8ac8a32c7cfe8
|
6fa26e21bc69e777222148fc0441fb461ba95c6a |
|
23-Oct-2012 |
Elliott Hughes <enh@google.com> |
Clean up warnings in stubs.cpp. Change-Id: Ie0792846de7cf5f5c72737494bf78ab8dcb8cc3e
|
8a05a01de75d78a45d646115b20b2a3e3c12ba9e |
|
13-Sep-2012 |
Kenny Root <kroot@google.com> |
Print out shared app gids correctly For applications that share resources across users such as forward-locked applications, print out their group name correctly. Change-Id: I06ee0b67e4325cfa415ffd7a03e301700399a66d
|
2a54e5ecd0a96398e8d7d9b1629ecf8fb1633a2b |
|
13-Sep-2012 |
Kenny Root <kroot@google.com> |
Add tests for Android-specific stubs Also fix problem with multi-user IDs that the home directory was returned as "/data" instead of "/" unlike all the other uids. Change-Id: I914d22052e5a86552989f8969b85aadbc748c65d
|
c4d1fecc105063e68a5090a6900b63d1b9a24287 |
|
28-Aug-2012 |
Elliott Hughes <enh@google.com> |
Clean up warnings in the malloc_debug_* files. Also clean up cpplint.py-detected lint. Change-Id: Ia18e89c4c6878764f8d7ed34b8247e7a8d8fe88b
|
de727caee24df86c3052508aa213f7165168913a |
|
14-Aug-2012 |
Elliott Hughes <enh@google.com> |
Clean up warnings in stubs.cpp. Switch to C++ to get extra warnings, and format the code Google style. Change-Id: Ifc0131bf297a6ee8a8a6b8d049a02518b0b1a4b7
|