Hide the __bionic_clone and __bionic_clone_entry implementation details.

clone(2) is the public symbol.

Also switch a test from __bionic_clone to clone; testing public API
means the test now works on glibc too.

Change-Id: If59def26a00c3afadb8a6cf9442094c35a59ffde
This commit is contained in:
Elliott Hughes
2014-05-08 19:00:23 -07:00
parent 170daa042c
commit 954cf0d4e2
9 changed files with 15 additions and 17 deletions

View File

@@ -35,7 +35,7 @@ extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_t
extern "C" void __exit(int status);
// Called from the __bionic_clone assembler to call the thread function then exit.
extern "C" void __bionic_clone_entry(int (*fn)(void*), void* arg) {
extern "C" __LIBC_HIDDEN__ void __bionic_clone_entry(int (*fn)(void*), void* arg) {
int status = (*fn)(arg);
__exit(status);
}