diff options
| author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 16:17:32 +0000 | 
|---|---|---|
| committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2008-06-18 16:17:32 +0000 | 
| commit | 3d17dd647a04ad0837b063a610520fb6defb2d8d (patch) | |
| tree | ca961f6290a7abc8dcb5138f336d2cbce92e82a6 /libc/sysdeps/linux/avr32/clone.c | |
| parent | 43ee769f540704ccfc4e2a12ba11ed4b6eece196 (diff) | |
| download | uClibc-alpine-3d17dd647a04ad0837b063a610520fb6defb2d8d.tar.bz2 uClibc-alpine-3d17dd647a04ad0837b063a610520fb6defb2d8d.tar.xz  | |
Synch libc nios/xtensa/v850/h8300/cris/x86_64/ia64/hppa/i382/nios2/frv/avr32 specific with trunk
Diffstat (limited to 'libc/sysdeps/linux/avr32/clone.c')
| -rw-r--r-- | libc/sysdeps/linux/avr32/clone.c | 34 | 
1 files changed, 17 insertions, 17 deletions
diff --git a/libc/sysdeps/linux/avr32/clone.c b/libc/sysdeps/linux/avr32/clone.c index c5f5a74a8..e43b0f3bf 100644 --- a/libc/sysdeps/linux/avr32/clone.c +++ b/libc/sysdeps/linux/avr32/clone.c @@ -16,26 +16,26 @@   */  int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg)  { -       register int (*_fn)(void *arg) = fn; -       register void *_arg = arg; -       int err; +	register int (*_fn)(void *arg) = fn; +	register void *_arg = arg; +	int err; -       /* Sanity check the arguments */ -       err = -EINVAL; -       if (!fn) -               goto syscall_error; -       if (!child_stack) -               goto syscall_error; +	/* Sanity check the arguments */ +	err = -EINVAL; +	if (!fn) +		goto syscall_error; +	if (!child_stack) +		goto syscall_error; -       err = INLINE_SYSCALL(clone, 2, flags, child_stack); -       if (err < 0) -               goto syscall_error; -       else if (err != 0) -               return err; +	err = INLINE_SYSCALL(clone, 2, flags, child_stack); +	if (err < 0) +		goto syscall_error; +	else if (err != 0) +		return err; -       _exit(_fn(_arg)); +	_exit(_fn(_arg));  syscall_error: -       __set_errno (-err); -       return -1; +	__set_errno (-err); +	return -1;  }  | 
