[roland/nptl-arm] ARM: Convert fork.c to arch-fork.h

Message ID 20140516195512.8A9232C3A06@topped-with-meat.com
State Committed
Headers

Commit Message

Roland McGrath May 16, 2014, 7:55 p.m. UTC
  Verified no code changes on arm-linux-gnueabihf.

OK?


Thanks,
Roland


	* sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
	* sysdeps/unix/sysv/linux/arm/fork.c: File removed.
  

Comments

Joseph Myers May 16, 2014, 8:33 p.m. UTC | #1
On Fri, 16 May 2014, Roland McGrath wrote:

> Verified no code changes on arm-linux-gnueabihf.
> 
> OK?

OK.
  
Roland McGrath May 16, 2014, 8:52 p.m. UTC | #2
Committed.

Thanks,
Roland
  

Patch

--- /dev/null
+++ b/sysdeps/unix/sysv/linux/arm/arch-fork.h
@@ -0,0 +1,27 @@ 
+/* ARCH_FORK definition for Linux fork implementation.  ARM version.
+   Copyright (C) 2014 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
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
+
+#include <sched.h>
+#include <sysdep.h>
+#include <tls.h>
+
+
+#define ARCH_FORK()                                                     \
+  INLINE_SYSCALL (clone, 5,                                             \
+                  CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD,  \
+                  NULL, NULL, NULL, &THREAD_SELF->tid)
--- a/sysdeps/unix/sysv/linux/arm/fork.c
+++ /dev/null
@@ -1,30 +0,0 @@ 
-/* Copyright (C) 2005-2014 Free Software Foundation, Inc.
-   This file is part of the GNU C Library.
-   Contributed by Phil Blundell <pb@nexus.co.uk>, 2005
-
-   The GNU C Library is free software; you can redistribute it and/or
-   modify it under the terms of the GNU Lesser General Public
-   License as published by the Free Software Foundation; either
-   version 2.1 of the License, or (at your option) any later version.
-
-   The GNU C Library is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-   Lesser General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library.  If not, see
-   <http://www.gnu.org/licenses/>.  */
-
-#include <sched.h>
-#include <signal.h>
-#include <sysdep.h>
-#include <tls.h>
-
-
-#define ARCH_FORK()							\
-  INLINE_SYSCALL (clone, 5,						\
-		  CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD,	\
-		  NULL, NULL, NULL, &THREAD_SELF->tid)
-
-#include <nptl/sysdeps/unix/sysv/linux/fork.c>