summaryrefslogtreecommitdiffstats
path: root/libc/include
Commit message (Collapse)AuthorAgeFilesLines
* Backport (simple cherry-pick) 64b6c43379dba176659bc1313b6bb488ac94cfd6Steinar H. Gunderson2011-01-141-0/+4
| | | | | | to gingerbread. Add a new #define IN6_IS_ADDR_ULA, for testing for Universal Local IPv6 Unicast addresses (ULAs). These replace the old site-local IPv6 addresses.
* libc: fix typo in waitid() declaration.David 'Digit' Turner2010-10-131-1/+1
| | | | | | The implementation file uses the correct spelling. Change-Id: I572e336f8695a9754267c8d2e0a67b1b69bacb06
* libc: tag missing functions in system headers.David 'Digit' Turner2010-10-098-12/+34
| | | | | | | | | 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
* libc: add <sys/eventfd.h> and corresponding implementations.David 'Digit' Turner2010-09-283-0/+54
| | | | Change-Id: Ide040884c456190226e580513099fdb8377e015b
* libc: Add missing waitid() implementation.David 'Digit' Turner2010-09-282-1/+10
| | | | Change-Id: I312ee608dbf9249e4886a10d45d13e3cda8a9042
* libc: Add missing fdatasync() implementationDavid 'Digit' Turner2010-09-282-0/+2
| | | | Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4
* Merge "libc: Add missing C++ guards to <pathconf.h>" into gingerbreadDavid 'Digit' Turner2010-09-281-0/+6
|\
| * libc: Add missing C++ guards to <pathconf.h>David 'Digit' Turner2010-09-271-0/+6
| | | | | | | | Change-Id: I94dad48678181d8b02431b1c1f5d507beafb5406
* | Merge "libc: add missing O_CLOEXEC from <fcntl.h>" into gingerbreadDavid 'Digit' Turner2010-09-281-0/+4
|\ \
| * | libc: add missing O_CLOEXEC from <fcntl.h>David 'Digit' Turner2010-09-271-0/+4
| |/ | | | | | | Change-Id: Ie7ad57898e67800a9fe92bb52589d67ec30e1cd9
* | Merge "libc: Add missing pipe2() declaration and implementation." into ↵David 'Digit' Turner2010-09-283-2/+9
|\ \ | | | | | | | | | gingerbread
| * | libc: Add missing pipe2() declaration and implementation.David 'Digit' Turner2010-09-273-2/+9
| |/ | | | | | | Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c
* | libc: remove C++ comments from public headers.David 'Digit' Turner2010-09-275-6/+6
|/ | | | Change-Id: I4af84f912062cd2ff34711c25122fb323f20c032
* Revert "Set SA_RESTORER in sigaction()"Dima Zavin2010-07-292-4/+1
| | | | This reverts commit e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.
* libc: fix fstatfs() implementation.David 'Digit' Turner2010-07-081-1/+1
| | | | | | The syscall expects the size of the buffer as the second argument. Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d
* Remove compiler warnings when building Bionic.David 'Digit' Turner2010-06-228-14/+141
| | | | | | | | 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
* wchar.h: improve wchar_t support in BionicDavid 'Digit' Turner2010-06-152-3/+11
| | | | Change-Id: Iffd41046fd0933c66542abf7627a1569522dfcb2
* libc: add missing truncate() declarationDavid 'Digit' Turner2010-06-111-0/+1
| | | | Change-Id: Icb3601bbc9365b75b05ff443a39192f9cd3cbfb7
* libc: Add missing <termio.h> headerDavid 'Digit' Turner2010-06-111-0/+32
| | | | Change-Id: Id4e020ed330b3eabf09324f9b6d44d3a0f336d87
* Remove a gcc-4.5 compilation warning:Jing Yu2010-06-091-1/+1
| | | | | | | | | | | bionic/libc/include/../include/stdlib.h: In function 'int grantpt(int)': bionic/libc/include/../include/stdlib.h:138:23: warning: parameter '__fd' set but not used [-Wunused-but-set-parameter] By adding __attribute((unused)) to __fd, the warning is gone, and this attribute is compatible with gcc-4.4.0, gcc-4.3.1 gcc-4.2.1. There is no any side effect. Change-Id: I385f0f4da1013ffd1499e391eac9123aafe1f7a5
* Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - ↵David 'Digit' Turner2010-06-092-0/+2
| | | | | | DO NOT MERGE Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
* resolved conflicts for merge of 7b6e6fa5 to krakenJean-Baptiste Queru2010-06-031-0/+2
|\ | | | | | | Change-Id: I2b9b80a7fa32c56be2b85ff8be0d6e7ac1848afe
| * merge from open-source masterThe Android Open Source Project2010-06-031-0/+2
| |\ | | | | | | | | | Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf
| | * pthread: introduce pthread_setname_np() as a mean to give names to threadsAndré Goddard Rosa2010-05-192-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... 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>
* | | Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)David 'Digit' Turner2010-05-191-0/+35
|/ / | | | | | | Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb
* | merge from open-source masterThe Android Open Source Project2010-05-141-0/+1
|\ \ | |/ | | | | Change-Id: I9c926a3cd680a96ece026cdec71c6e0fb0b7ad7c
| * Merge "Add declaration for sys_signame[] forgotten in change 12489"David Turner2010-05-141-0/+1
| |\
| | * Add declaration for sys_signame[] forgotten in change 12489Thorsten Glaser2010-04-051-0/+1
| | |
* | | merge from open-source masterThe Android Open Source Project2010-05-132-1/+4
|\ \ \ | |/ / | | | | | | Change-Id: I2be62bce462ee53fe9519f433523bd7a44a73d40
| * | Set SA_RESTORER in sigaction()Matt Fischer2010-05-122-1/+4
| |/ | | | | | | | | | | | | | | | | GDB looks for specific opcode sequences when trying to recognize a stack frame as a signal trampoline. The sequences it looks for happen to be those created when SA_RESTORER is set, since glibc always sets a restorer. This patch does the same here, so that the trampolines can be correctly identified. Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04
* | merge from open-source masterThe Android Open Source Project2010-03-221-0/+12
|\ \ | |/ | | | | Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
| * Added support for dladdr()Matt Fischer2010-03-171-0/+12
| | | | | | | | | | | | | | | | dladdr() is a GNU extension function, which allows the caller to retrieve symbol information for a specified memory address. It is useful for things like generating backtrace information at runtime. Change-Id: I3a1def1a6c9c666d93e1e97b7d260dfa5b9b79a9
| * am 5f53a182: Revert "Add qsort_r() implementation to the C library."Mathias Agopian2009-12-031-1/+0
| |\ | | | | | | | | | | | | | | | | | | Merge commit '5f53a18204ec991f5a77872806eeaa185936aa8c' into eclair-plus-aosp * commit '5f53a18204ec991f5a77872806eeaa185936aa8c': Revert "Add qsort_r() implementation to the C library."
| * \ am 754c178a: Add qsort_r() implementation to the C library.David 'Digit' Turner2009-12-031-0/+1
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989' into eclair-plus-aosp * commit '754c178ae551aedcbbfd3bfd1c1c3b710d9ad989': Add qsort_r() implementation to the C library.
| * \ \ merge from open-source masterJean-Baptiste Queru2009-11-081-32/+37
| |\ \ \
* | | | | Add pthread_condattr_init/destroy/setpshared/getpsharedDavid 'Digit' Turner2010-03-181-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that this does not change the implementation of conditional variables which still use shared futexes, independent on the flags being selected. This will be fixed in a later patch, once our system is modified to use pthread_condattr_setpshared(attr, PTHREAD_PROCESS_SHARED) properly. Change-Id: I935de50964cd41f97a13dbfd6626d3407b0406c3
* | | | | Revert "bionic: pthread: use private futexes by default for mutexes and ↵Fabrice Di Meglio2010-03-111-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | condvars" This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
* | | | | bionic: pthread: use private futexes by default for mutexes and condvarsDavid 'Digit' Turner2010-03-111-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Private futexes are a recent kernel addition: faster futexes that cannot be shared between processes. This patch uses them by default, unless the PROCESS_SHARED attribute flag is used when creating a mutex and/or conditional variable. Also introduces pthread_condattr_init/destroy/setpshared/getpshared. Change-Id: I3a0e2116f467072b046524cb5babc00e41057a53
* | | | | bonic: libc: cpuacct support for setuid functionsMike Chan2010-03-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Any of the setuid functions now updates /acct/uid/ with its own tid before changing users. This is so we can properly account for cpu time per uid. Change-Id: I34186cf4d5228cac8439e582a9e26c01ef3011e4 Signed-off-by: Mike Chan <mike@android.com>
* | | | | add sigaltstack syscallAndrei Popescu2010-03-022-0/+2
| | | | |
* | | | | bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappersSan Mehat2010-02-232-0/+8
| | | | | | | | | | | | | | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | | | | Changed __get_h_errno linkage to "C".Nicolas Catania2010-02-121-4/+4
| | | | | | | | | | | | | | | | | | | | Bug:2441631
* | | | | Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ ↵David 'Digit' Turner2010-02-092-0/+12
| | | | | | | | | | | | | | | | | | | | inclusion guards
* | | | | Implement clone() C library function properly.David 'Digit' Turner2010-01-252-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only provide an implementation for ARM at the moment, since it requires specific assembly fragments (the standard syscall stubs cannot be used because the child returns in a different stack).
* | | | | Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershellColin Cross2010-01-152-0/+17
| | | | | | | | | | | | | | | | | | | | Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
* | | | | Add killpg functionColin Cross2010-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e
* | | | | Add fts, err, and sys/queue for grepColin Cross2010-01-153-0/+772
| | | | | | | | | | | | | | | | | | | | Change-Id: Id47514a1812d828e95efa2fab0e9c15c5b682b58
* | | | | mntent.h requires stdio.hColin Cross2010-01-151-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: If69f64cf088dedb19602bf47627d03400abb9095
* | | | | Add definition of rlim_tColin Cross2010-01-151-0/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie8c2451360cbcce9fc1587528a95aca09a03d0de
* | | | | Import change from ctype.h revision 1.20 from openbsdColin Cross2010-01-151-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes builds with gcc >= 4.3 with -std=gnu99 Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435