From fdf5f1b13123883ac1d5e298e5f32c7ed43578ce Mon Sep 17 00:00:00 2001 From: Bobby Bingham Date: Thu, 6 Feb 2014 22:11:22 -0600 Subject: clone: make clone a wrapper around __clone The architecture-specific assembly versions of clone did not set errno on failure, which is inconsistent with glibc. __clone still returns the error via its return value, and clone is now a wrapper that sets errno as needed. The public clone has also been moved to src/linux, as it's not directly related to the pthreads API. __clone is called by pthread_create, which does not report errors via errno. Though not strictly necessary, it's nice to avoid clobbering errno here. --- src/thread/arm/clone.s | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/thread/arm/clone.s') diff --git a/src/thread/arm/clone.s b/src/thread/arm/clone.s index daf8f556..d146999b 100644 --- a/src/thread/arm/clone.s +++ b/src/thread/arm/clone.s @@ -1,10 +1,7 @@ .text .global __clone -.weak clone .type __clone,%function -.type clone,%function __clone: -clone: stmfd sp!,{r4,r5,r6,r7} mov r7,#120 mov r6,r3 -- cgit v1.2.1