summaryrefslogtreecommitdiffstats
path: root/libc/arch-x86
Commit message (Collapse)AuthorAgeFilesLines
* libc: add <sys/eventfd.h> and corresponding implementations.David 'Digit' Turner2010-09-282-0/+27
| | | | Change-Id: Ide040884c456190226e580513099fdb8377e015b
* libc: Add missing waitid() implementation.David 'Digit' Turner2010-09-282-4/+4
| | | | Change-Id: I312ee608dbf9249e4886a10d45d13e3cda8a9042
* libc: Add missing fdatasync() implementationDavid 'Digit' Turner2010-09-282-0/+24
| | | | Change-Id: I04bb655d77e414021e1f2a973329167ad76ca1c4
* libc: Add missing pipe2() declaration and implementation.David 'Digit' Turner2010-09-272-0/+27
| | | | Change-Id: Iacb914bd6ac5adc60c5671e6fef680ede21f9b0c
* libc: fix fstatfs() implementation.David 'Digit' Turner2010-07-082-4/+4
| | | | | | The syscall expects the size of the buffer as the second argument. Change-Id: I99ede2fec7fcd385ca03ff022c2cffa4297bea8d
* Allow static C++ destructors to be properly called on dlclose().David 'Digit' Turner2010-06-183-7/+13
| | | | | | | | | | | | | | | | | | | | | | | With this patch, _and_ an upcoming build/ patch, the destruction of static C++ objects contained in shared libraries will happen properly when dlclose() is called. Note that this change introduces crtbegin_so.S and crtend_so.S which are currently ignored by the build system. + move definition of __dso_handle to the right place (before that, all shared libraries used the __dso_handle global variable from the C library). Note that we keep a 'weak' __dso_handle in aeabi.c to avoid breaking the build until the next patch to build/core/combo/ appears. We will be able to remove that later. + move bionic/aeabi.c to arch-arm/bionic/ (its proper location) Change-Id: Ie771aa204e3acbdf02fd30ebd4150373a1398f39 NOTE: The NDK will need to be modified to enable this feature in the shared libraries that are generated through it.
* Add missing sysinfo() implementation (already declared in <sys/sysinfo.h>) - ↵David 'Digit' Turner2010-06-092-0/+24
| | | | | | DO NOT MERGE Change-Id: Iac4eb5911ffe4a7ab72b84df44e907685ac816af
* merge from open-source masterThe Android Open Source Project2010-03-3113-0/+7342
|\ | | | | | | Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e
| * Merge "Atom optimized string and memory routines"David Turner2010-03-2913-0/+7342
| |\
| | * Atom optimized string and memory routinesBruce Beare2010-03-2613-0/+7342
| | | | | | | | | | | | Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991
* | | merge from open-source masterThe Android Open Source Project2010-03-291-3/+16
|\ \ \ | |/ / | | | | | | Change-Id: I96d2cd063f084fd17116bf7ee08fa7109a3c1ceb
| * | Android hack for size_tBruce Beare2010-03-261-3/+16
| |/ | | | | | | Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b
* | merge from open-source masterThe Android Open Source Project2010-03-221-0/+52
|\ \ | |/ | | | | Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
| * x86 syscall system call implementationBruce Beare2010-03-041-0/+52
| |
* | Use private futexes for pthread_mutex_t.David 'Digit' Turner2010-03-182-104/+32
| | | | | | | | | | | | | | | | | | | | This does not change the implementation of conditional variables since we're waiting for other system components to properly use pthread_condattr_init/setpshared before that. Also remove an obsolete x86 source file. Change-Id: Ia3e3fbac35b87a534fb04d4381c3c66b975bc8f7
* | Revert "bionic: pthread: use private futexes by default for mutexes and ↵Fabrice Di Meglio2010-03-111-37/+0
| | | | | | | | | | | | condvars" This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
* | bionic: pthread: use private futexes by default for mutexes and condvarsDavid 'Digit' Turner2010-03-111-0/+37
| | | | | | | | | | | | | | | | | | | | 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-024-12/+12
| | | | | | | | | | | | | | | | | | 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/+27
| |
* | bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappersSan Mehat2010-02-233-0/+57
| | | | | | | | Signed-off-by: San Mehat <san@google.com>
* | Implement clone() C library function properly.David 'Digit' Turner2010-01-253-8/+16
|/ | | | | | | 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).
* Revert "Fix the C library initialization to avoid calling static C++ ↵David 'Digit' Turner2009-06-032-30/+18
| | | | | | constructors twice." This reverts commit 03eabfe65e1e2c36f4d26c78a730fa19a3bdada3.
* Fix the C library initialization to avoid calling static C++ constructors twice.David 'Digit' Turner2009-06-022-18/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | The problem was due to the fact that, in the case of dynamic executables, the dynamic linker calls the DT_PREINIT_ARRAY, DT_INIT and DT_INIT_ARRAY constructors when loading shared libraries and dynamic executables, *before* calling the executable's entry point (i.e. arch-$ARCH/bionic/crtbegin_dynamic.c) which in turns call __libc_init() in libc.so, as defined by bionic/libc_init_dynamic.c The latter did call these constructors array again, mistakenly. The patch also updates the documentation of many related functions. Also adds a new section to linker/README.TXT explaining restrictions on C library usage. The patch has been tested on a Dream for stability issues with proprietary blobs: - H264 decoding works - Camera + Video recording works - GPS works - Sensors work The tests in system/extra/tests/bionic/libc/common/test_static_cpp_mutex.cpp has been run and shows the static C++ constructor being called only once.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03215-0/+7212
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-03215-7212/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1742-45/+1529
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-21184-0/+5728