merge from open-source master
Change-Id: I950e9aca87cbb0c35099b1d53cff6378bd0f26f4
Change-Id: I950e9aca87cbb0c35099b1d53cff6378bd0f26f4
merge from open-source master
Change-Id: I483fedf77d978b1c6e52d73eebc14f011bb9f809
Change-Id: I483fedf77d978b1c6e52d73eebc14f011bb9f809
merge from open-source master
Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e
Change-Id: I076e0df8656fdf58c229cc9a168cd6d8e16b6d8e
Merge "linker: fix the undefined weak symbols issue"
linker: fix the undefined weak symbols issue
Merge changes Ibdc6e3c8,I9bcb91a2
* changes:
Correct generic memset implementation
Generic memcpy should define MEMCOPY before including bcopy.c
* changes:
Correct generic memset implementation
Generic memcpy should define MEMCOPY before including bcopy.c
Merge "Atom optimized string and memory routines"
merge from open-source master
Change-Id: I96d2cd063f084fd17116bf7ee08fa7109a3c1ceb
Change-Id: I96d2cd063f084fd17116bf7ee08fa7109a3c1ceb
stdlib: optimize bsearch()
... by checking most probable condition first (elements do differ)
Change-Id: I424eab9c32a6d9eb82b686ca04025ec8c9097035
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
... by checking most probable condition first (elements do differ)
Change-Id: I424eab9c32a6d9eb82b686ca04025ec8c9097035
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Atom optimized string and memory routines
Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991
Change-Id: I27b68bb28551c75c9ac84bb9730e2cd8254d8991
Android hack for size_t
Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b
Change-Id: I3c967fca60f542459dc17be84da47b3b6a26242b
Fix comparison of IPv6 prefixes
Typo assigned prefixlen1 twice instead of to the two different variables
for comparison and difference computation.
Change-Id: I6631b8269ca6aae264c8d7d414127b756838df96
Typo assigned prefixlen1 twice instead of to the two different variables
for comparison and difference computation.
Change-Id: I6631b8269ca6aae264c8d7d414127b756838df96
libc: kernel: update msm_kgsl.h
Change-Id: I8cd5a186071892bdc2b2b29061dd6c1fd927c0f5
Signed-off-by: Dima Zavin <dima@android.com>
Change-Id: I8cd5a186071892bdc2b2b29061dd6c1fd927c0f5
Signed-off-by: Dima Zavin <dima@android.com>
Fix typo that broke recursive mutexes implementation.
Change-Id: I832901604b487c6a50304c311b5ba135e153530d
Change-Id: I832901604b487c6a50304c311b5ba135e153530d
pthread: Use private futexes by default in condition variables
Now that the system properly uses shared condvars when needed, we
can enable the use of private futexes for them too.
Change-Id: Icf8351fc0a2309f764cba45c65bc3af047720cdf
Now that the system properly uses shared condvars when needed, we
can enable the use of private futexes for them too.
Change-Id: Icf8351fc0a2309f764cba45c65bc3af047720cdf
merge from open-source master
Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
Change-Id: I70266ee8c520b216773f267e46c8273d2334c31d
Merge "Fix strtod security bug."
Use private futexes for pthread_mutex_t.
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
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
Merge "bionic: on pthread_join(), avoid extra check in case we find the thread"
Merge "bionic: ftell() returns a long, not an int"
Add pthread_condattr_init/destroy/setpshared/getpshared
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
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
Added support for dladdr()
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
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
Merge "x86 syscall system call implementation"
Merge "Fix pread()/pwrite() stubs"
Fix indentation in pthread mutex implementation.
This is preliminary work to simplify later changes to support
private futexes.
Change-Id: I06750936a93747a5e3f5a10228cbdc29e39c528c
This is preliminary work to simplify later changes to support
private futexes.
Change-Id: I06750936a93747a5e3f5a10228cbdc29e39c528c
Merge "bionic: remove unneeded variable from chk_realloc()"
14 years agoMerge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"
Merge "bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c"
Merge "improve readability of string: fix indentation and remove trailing spaces"
Merge "optimize delete/delete[] operators by removing unneeded branch"
Revert "bionic: pthread: use private futexes by default for mutexes and condvars"
This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
bionic: pthread: use private futexes by default for mutexes and condvars
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
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
Merge "Only use NEON memcpy if __ARM_NEON__ is defined"
Only use NEON memcpy if __ARM_NEON__ is defined
Change-Id: I32e6b9385d46efeec15dee8e395a82eef24ba3ea
Change-Id: I32e6b9385d46efeec15dee8e395a82eef24ba3ea
Fix strtod security bug.
To avoid introducing NULL checks everytime a Bigint computation
is performed, introduce a special value (BIGINT_INVALID) and only
check for it when absolutely needed (which means when the code
needs to access the Bigint's internal structure fields).
Change-Id: Ie3954523b0985b6a8cb62340802d8dcf63cbf16f
To avoid introducing NULL checks everytime a Bigint computation
is performed, introduce a special value (BIGINT_INVALID) and only
check for it when absolutely needed (which means when the code
needs to access the Bigint's internal structure fields).
Change-Id: Ie3954523b0985b6a8cb62340802d8dcf63cbf16f
Merge "Fix spurious DNS lookups in the C library."
Add an empty CleanSpec.mk
Change-Id: Id233ea6f854253776f57e64196e262c5a057e654
Change-Id: Id233ea6f854253776f57e64196e262c5a057e654
Fix spurious DNS lookups in the C library.
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
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
Fix timezone management in the C library
Define 'timezone' and 'daylight' global variables that are already
defined in <time.h>
Properly update the 'tm_gmtoff' field in 'struct tm' values.
Define 'timezone' and 'daylight' global variables that are already
defined in <time.h>
Properly update the 'tm_gmtoff' field in 'struct tm' values.
x86 syscall system call implementation
Merge "QUalcomm H.264 encoder support."
QUalcomm H.264 encoder support.
am 71fbeecd: (-s ours) am fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Merge commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb'
* commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb':
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Merge commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb'
* commit '71fbeecdbd7bcf2282e4b032ceb2f6ead13dc9cb':
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
am fd5b1bb8: Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Merge commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f' into eclair-mr2-plus-aosp
* commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f':
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Merge commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f' into eclair-mr2-plus-aosp
* commit 'fd5b1bb85d0a971fd8469112a157380c4d3a146f':
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
Add stdlib functions mbstowcs() and wcstombs(). DO NOT MERGE.
As with the other wchar functions in Bionic, these are really
minimally functional stubs.
As with the other wchar functions in Bionic, these are really
minimally functional stubs.
bonic: libc: cpuacct support for setuid functions
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>
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>
libc: kernel: update pmem header with cache flush ioctl
Change-Id: Ied08844035d4526175dcdcb7f219f9f90c4679d2
Signed-off-by: Dima Zavin <dima@android.com>
Change-Id: Ied08844035d4526175dcdcb7f219f9f90c4679d2
Signed-off-by: Dima Zavin <dima@android.com>
add sigaltstack syscall
Fix pthread_sigmask() to return correct error values.
Before that, it returned -1 on error and set errno (not Posix)
After the patch, it returns the error code and leaves errno untouched.
Before that, it returned -1 on error and set errno (not Posix)
After the patch, it returns the error code and leaves errno untouched.
Merge "Implement support for RFC 3484 (address selection/sorting) in bionic. (The Java changes required not to mess up the ordering from bionic will arrive in a later commit.) In particular, this will give us more correct behavior when on a 6to4 network, in that IPv4 will usually be preferred over 6to4."
Implement support for RFC 3484 (address selection/sorting) in bionic. (The
Java changes required not to mess up the ordering from bionic will arrive in a
later commit.) In particular, this will give us more correct behavior when on a
6to4 network, in that IPv4 will usually be preferred over 6to4.
Most of RFC 3484 is implemented -- what's not is rule 3 (avoid deprecated
addresses), 4 (prefer home addresses) and 7 (prefer native transport) as they
require low-level access to the kernel routing table via netlink. (glibc also
started out this way, and these rules are primarily useful in pretty obscure
circumstances, so we should be fine for the time being.)
Also, rule 9 (use longest matching prefix) has been modified so it does not try
to sort IPv4 addresses; given current IPv4 addressing practice these rules are
pretty much meaningless. Finally, I've added support for Teredo as a separate
label, with slightly lower preference than 6to4. (Vista puts the preference
below IPv4 by default. glibc puts the preference together with non-tunneled
IPv6.)
Note that this patch removes support for the "sortlist" directive in
resolv.conf; I've never seen it in actual use, it's irrelevant for Android
(since we don't use resolv.conf anyway), and it's not clear how it would be
implemented alongside RFC 3484.
Java changes required not to mess up the ordering from bionic will arrive in a
later commit.) In particular, this will give us more correct behavior when on a
6to4 network, in that IPv4 will usually be preferred over 6to4.
Most of RFC 3484 is implemented -- what's not is rule 3 (avoid deprecated
addresses), 4 (prefer home addresses) and 7 (prefer native transport) as they
require low-level access to the kernel routing table via netlink. (glibc also
started out this way, and these rules are primarily useful in pretty obscure
circumstances, so we should be fine for the time being.)
Also, rule 9 (use longest matching prefix) has been modified so it does not try
to sort IPv4 addresses; given current IPv4 addressing practice these rules are
pretty much meaningless. Finally, I've added support for Teredo as a separate
label, with slightly lower preference than 6to4. (Vista puts the preference
below IPv4 by default. glibc puts the preference together with non-tunneled
IPv6.)
Note that this patch removes support for the "sortlist" directive in
resolv.conf; I've never seen it in actual use, it's irrelevant for Android
(since we don't use resolv.conf anyway), and it's not clear how it would be
implemented alongside RFC 3484.
bionic: syscalls: Add ioprio_set/ioprio_get syscall wrappers
Signed-off-by: San Mehat <san@google.com>
Signed-off-by: San Mehat <san@google.com>
Merge "Merge memory checking functionality from sandbox"
Merge memory checking functionality from sandbox
Change-Id: I304c789a752c9f4af4944ca14b9bf1e7644da15a
Change-Id: I304c789a752c9f4af4944ca14b9bf1e7644da15a
Fix pread()/pwrite() stubs
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.
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 "Changed __get_h_errno linkage to "C"."
Fix sem_post() behaviour to wake up multiple waiting threads.
Fix sem_trywait() implementation + update changelog.
Fix android_id_from_name to accept "app_0" as a valid ID.
This fixes getpwnam and getpwgrp which returned NULL for "app_0".
"app_0" corresponds to uid/gid 10000 and is perfectly valid.
This fixes getpwnam and getpwgrp which returned NULL for "app_0".
"app_0" corresponds to uid/gid 10000 and is perfectly valid.
Fix debug output in the dynamic linker.
This provides a mini-printf implementation that reduces the
size of the dynamic linker by 25 KB, by preventing the drag of
formatting-related routines from the C library.
Also allow traces to be sent to the log, instead of stdout.
NOTE: You now need to modify Android.mk to enable/disable debug
output.
This provides a mini-printf implementation that reduces the
size of the dynamic linker by 25 KB, by preventing the drag of
formatting-related routines from the C library.
Also allow traces to be sent to the log, instead of stdout.
NOTE: You now need to modify Android.mk to enable/disable debug
output.
bionic/linker: rename ba_prelink to ba_nonprelink
-- fixes b/2432550
-- ba_prelink is used to manage non-prelinked libraries, hence ba_nonprelink is
a more appropriate name for it
Signed-off-by: Iliyan Malchev <malchev@google.com>
-- fixes b/2432550
-- ba_prelink is used to manage non-prelinked libraries, hence ba_nonprelink is
a more appropriate name for it
Signed-off-by: Iliyan Malchev <malchev@google.com>
14 years agoMerge "Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusio...
Merge "Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusion guards"
Fix <sys/epoll.h> and <sys/system_properties.h> to include proper C++ inclusion guards
am 58060c50: am ee424e23: bionic: update processed kernel header a1026.h
Merge commit '58060c50bc4228a7d0253338cae0437211759959'
* commit '58060c50bc4228a7d0253338cae0437211759959':
bionic: update processed kernel header a1026.h
Merge commit '58060c50bc4228a7d0253338cae0437211759959'
* commit '58060c50bc4228a7d0253338cae0437211759959':
bionic: update processed kernel header a1026.h
am ee424e23: bionic: update processed kernel header a1026.h
Merge commit 'ee424e23c10c051ee4760177c85f6003ff20108c' into eclair-plus-aosp
* commit 'ee424e23c10c051ee4760177c85f6003ff20108c':
bionic: update processed kernel header a1026.h
Merge commit 'ee424e23c10c051ee4760177c85f6003ff20108c' into eclair-plus-aosp
* commit 'ee424e23c10c051ee4760177c85f6003ff20108c':
bionic: update processed kernel header a1026.h
bionic: update processed kernel header a1026.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
Correct generic memset implementation
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
Generic memcpy should define MEMCOPY before including bcopy.c
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Chris Dearman <chris@mips.com>
am 1db87472: am ba8bfedd: reconcile main tree with open-source eclair
Merge commit '1db874720a58ff7e3684116d59ad08bc73db26d9'
* commit '1db874720a58ff7e3684116d59ad08bc73db26d9':
android-2.1_r1 snapshot
Merge commit '1db874720a58ff7e3684116d59ad08bc73db26d9'
* commit '1db874720a58ff7e3684116d59ad08bc73db26d9':
android-2.1_r1 snapshot
bionic: equalize the <unknown> program name between ssp.c and libc_init_common.c
... for the consistency sake.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
... for the consistency sake.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
bionic: remove unneeded variable from chk_realloc()
... and simplify the generated code.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
... and simplify the generated code.
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
bionic: on pthread_join(), avoid extra check in case we find the thread
... by using similar logic as used in pthread_detach().
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
... by using similar logic as used in pthread_detach().
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
bionic: ftell() returns a long, not an int
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
am ba8bfedd: reconcile main tree with open-source eclair
Merge commit 'ba8bfedd04824eea944236ffc885f866c5e9c651' into eclair-plus-aosp
* commit 'ba8bfedd04824eea944236ffc885f866c5e9c651':
android-2.1_r1 snapshot
Merge commit 'ba8bfedd04824eea944236ffc885f866c5e9c651' into eclair-plus-aosp
* commit 'ba8bfedd04824eea944236ffc885f866c5e9c651':
android-2.1_r1 snapshot
reconcile main tree with open-source eclair
am c0472409: am d0996bb4: bionic: update processed kernel header tpa2018d1.h
Merge commit 'c0472409d14eebf797df962dd78fc31afbc4bd07'
* commit 'c0472409d14eebf797df962dd78fc31afbc4bd07':
bionic: update processed kernel header tpa2018d1.h
Merge commit 'c0472409d14eebf797df962dd78fc31afbc4bd07'
* commit 'c0472409d14eebf797df962dd78fc31afbc4bd07':
bionic: update processed kernel header tpa2018d1.h
am 7ec87a19: am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h
Merge commit '7ec87a1926250d3c1f74193bf36417707e691e10'
* commit '7ec87a1926250d3c1f74193bf36417707e691e10':
bionic: add processed kernel headers a1026.h and tpa2018d1.h
Merge commit '7ec87a1926250d3c1f74193bf36417707e691e10'
* commit '7ec87a1926250d3c1f74193bf36417707e691e10':
bionic: add processed kernel headers a1026.h and tpa2018d1.h
am d0996bb4: bionic: update processed kernel header tpa2018d1.h
Merge commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d' into eclair-plus-aosp
* commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d':
bionic: update processed kernel header tpa2018d1.h
Merge commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d' into eclair-plus-aosp
* commit 'd0996bb4cd6b6d0fa7c643a809f01e33adc2638d':
bionic: update processed kernel header tpa2018d1.h
am 276313ec: bionic: add processed kernel headers a1026.h and tpa2018d1.h
Merge commit '276313ec18c18a07e867dffe568a377583cfd905' into eclair-plus-aosp
* commit '276313ec18c18a07e867dffe568a377583cfd905':
bionic: add processed kernel headers a1026.h and tpa2018d1.h
Merge commit '276313ec18c18a07e867dffe568a377583cfd905' into eclair-plus-aosp
* commit '276313ec18c18a07e867dffe568a377583cfd905':
bionic: add processed kernel headers a1026.h and tpa2018d1.h
bionic: update processed kernel header tpa2018d1.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
bionic: add processed kernel headers a1026.h and tpa2018d1.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
bionic: update processed kernel header msm_camera.h
Signed-off-by: Iliyan Malchev <malchev@google.com>
Signed-off-by: Iliyan Malchev <malchev@google.com>
improve readability of string: fix indentation and remove trailing spaces
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
optimize delete/delete[] operators by removing unneeded branch
Remove redundant not NULL check already done in free().
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Remove redundant not NULL check already done in free().
Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
reconcile android-2.1_r1 snapshot
Merge "Implement clone() C library function properly."
Implement clone() C library function properly.
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).
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).
Fix typo in a comment.
Align TEXT section to 4K boundary so that we can use both ld and gold.
Add Bionic Changelog in libc/docs/CHANGES.TXT
Add implementation of fdprintf, clearenv, and stubs for ttyname_r, *usershell
Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
Change-Id: I5fe7e8b6ee5edbb49e707c3b6737a58563781fa3
Add killpg function
Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e
Change-Id: I9bc347d264fe38faf2d0f9935d2ebb43a353196e
Add fts, err, and sys/queue for grep
Change-Id: Id47514a1812d828e95efa2fab0e9c15c5b682b58
Change-Id: Id47514a1812d828e95efa2fab0e9c15c5b682b58
mntent.h requires stdio.h
Change-Id: If69f64cf088dedb19602bf47627d03400abb9095
Change-Id: If69f64cf088dedb19602bf47627d03400abb9095
Add definition of rlim_t
Change-Id: Ie8c2451360cbcce9fc1587528a95aca09a03d0de
Change-Id: Ie8c2451360cbcce9fc1587528a95aca09a03d0de
Import change from ctype.h revision 1.20 from openbsd
Fixes builds with gcc >= 4.3 with -std=gnu99
Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435
Fixes builds with gcc >= 4.3 with -std=gnu99
Change-Id: I8729b7f4237fd7a99a82b2fe60573a7afe66b435
Import include/arpa/telnet.h from BSD
Change-Id: I684251bfb8ef04f0706866ea55dceebcd2a5b0e1
Change-Id: I684251bfb8ef04f0706866ea55dceebcd2a5b0e1
Import regex from OpenBSD
Change-Id: I7ad7d907ef65e4e345f94777d730813b1270a612
Change-Id: I7ad7d907ef65e4e345f94777d730813b1270a612
Merge "Use correct TLS codepath for linker"
Use correct TLS codepath for linker
Replicate ARM libc build's HAVE_ARM_TLS_REGISTER preprocessor definition
logic, to ensure that the runtime linker uses the correct codepath for
accessing the TLS address
Replicate ARM libc build's HAVE_ARM_TLS_REGISTER preprocessor definition
logic, to ensure that the runtime linker uses the correct codepath for
accessing the TLS address