From a9f1039f0a6a3b5e453107ae2e4c5deff0926ea6 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 1 Aug 2012 20:49:45 +0000 Subject: Remove __ASSUME_VFORK_SYSCALL (and some __NR_vfork conditionals). --- sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S | 26 +---------------------- 1 file changed, 1 insertion(+), 25 deletions(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S') diff --git a/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S b/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S index 6625e207a9..ca20f7bebd 100644 --- a/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S @@ -1,4 +1,4 @@ -/* Copyright (C) 2003 Free Software Foundation, Inc. +/* Copyright (C) 2003-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -26,32 +26,8 @@ and the process ID of the new process to the old process. */ ENTRY (__vfork) - -#ifdef __NR_vfork - DO_CALL (SYS_ify (vfork)) - -# ifdef __ASSUME_VFORK_SYSCALL PSEUDO_RET -# else - bnslr+ - /* Check if vfork syscall is known at all. */ - cmpwi r3,ENOSYS - bne- .Lsyscall_error - -# endif -#endif - -#ifndef __ASSUME_VFORK_SYSCALL - /* If we don't have vfork, fork is close enough. */ - - DO_CALL (SYS_ify (fork)) - bnslr+ - -.Lsyscall_error: - b __syscall_error@local -#endif - PSEUDO_END (__vfork) libc_hidden_def (__vfork) -- cgit 1.4.1