summaryrefslogtreecommitdiffstats
path: root/libc/unistd
Commit message (Collapse)AuthorAgeFilesLines
* merge from open-source masterThe Android Open Source Project2010-03-222-4/+4
|\ | | | | | | Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
| * Fix pread()/pwrite() stubsMatt Fischer2010-02-122-4/+4
| | | | | | | | | | | | | | On ARM EABI, 64-bit function parameters must be aligned to an even/odd register pair. The weird way these stubs were written (using separate lo/hi parameters) prevented this alignment from being enforced by the compiler.
| * merge from eclairJean-Baptiste Queru2009-11-151-2/+31
| |\
| | * eclair snapshotJean-Baptiste Queru2009-11-121-2/+31
| | |
* | | Fix spurious DNS lookups in the C library.David 'Digit' Turner2010-03-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem was that the 'defdname' field of res_state structure was not properly initialized in __res_vinit(). This field is used to store the default domain name, which is normally build from calling gethostname() (see line 549 of res_init.c). Unfortunately, in the typical Android case, gethostname() returns an error (the hostname is configured) and a random stack string is used later to build the DNS search list (see lines 556+ in res_init.c) For the sake of illustration, let's say the search list is set to a random value like 'xWLK'. The end result is that when trying to result an unknown domain name (e.g. 'www.ptn'), the query fails then the resolver tries to make a new query with the DNS search list path(s) appended (e.g. 'www.ptn.xWLK'). The patch simply initializes 'defdname' to an empty string to avoid this when the net.dns.search system property is not set. Also contains whitespace/formatting fixes
* | | bonic: libc: cpuacct support for setuid functionsMike Chan2010-03-024-1/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 killpg functionColin Cross2010-01-151-0/+45
| | | | | | | | | | | | Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e
* | | Fix ptsname_r(3) return type to match glibcColin Cross2010-01-121-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | The gHardy man pages specify the return type of ptsname_r to be char*, but the return value to be 0 on success, negative on error and the gHardy stdlib.h defines extern int ptsname_r(...). Busybox telnetd fails to run successfully without this change.
* | | Fix usleep(3) return type to be POSIX-compliant.Elliott Hughes2009-12-141-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | merge from open-source masterJean-Baptiste Queru2009-11-092-1/+34
|\ \ \ | |/ /
| * | Add the BSD sys_signame array.Thorsten Glaser2009-11-052-1/+34
| | | | | | | | | | | | Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
* | | am 5f32207a: Wrap ARM abort() to improve stack trace.Andy McFadden2009-10-161-0/+31
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '5f32207a3db0bea3ca1c7f4b2b563c11b895f276' into eclair-mr2-plus-aosp * commit '5f32207a3db0bea3ca1c7f4b2b563c11b895f276': Wrap ARM abort() to improve stack trace.
| * | | Wrap ARM abort() to improve stack trace.Andy McFadden2009-10-151-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code generated for Thumb and Thumb2 targets has different handling for abort(). Because abort() is "noreturn", it doesn't need to preserve the callee-save registers. The Thumb2 version trashes LR and makes it impossible to figure out who called abort(). This inserts a trivial stub function; net effect is stack traces are reasonable after an abort(). For bug 2191452.
* | | | merge from open-source masterJean-Baptiste Queru2009-10-141-2/+2
|\ \ \ \ | |/ / / |/| / / | |/ /
| * | added syscalls for SuperH which automatically generate by gensyscalls.pyTony Sim2009-07-011-2/+2
| |/
* | fix [2170898] abort() doesn't print a stack tarceMathias Agopian2009-10-061-2/+0
|/ | | | | | | the issue here is that abort() can be called from anywhere, in particular from malloc or free. When we try to use the debug_log functions, these can end up calling into some code (like malloc/free) that called abort() in the first place and end up in an infinite recursion loop.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0363-0/+5185
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0363-5185/+0
|
* auto import from //branches/cupcake/...@132569The Android Open Source Project2009-02-201-0/+15
|
* auto import from //branches/cupcake/...@127101The Android Open Source Project2009-01-201-2/+4
|
* auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-1/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-178-47/+301
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-2158-0/+4914