From def4bcb29ddc15d9c446264f867c72e293f0efcd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 16 May 2014 11:17:41 -0700 Subject: Split arch-fork.h from fork.h --- sysdeps/unix/sysv/linux/i386/arch-fork.h | 27 +++++++++++++++++++++++++++ sysdeps/unix/sysv/linux/i386/fork.h | 27 --------------------------- sysdeps/unix/sysv/linux/mips/arch-fork.h | 1 + sysdeps/unix/sysv/linux/mips/fork.h | 1 - sysdeps/unix/sysv/linux/powerpc/arch-fork.h | 1 + sysdeps/unix/sysv/linux/powerpc/fork.h | 1 - sysdeps/unix/sysv/linux/x86_64/arch-fork.h | 27 +++++++++++++++++++++++++++ sysdeps/unix/sysv/linux/x86_64/fork.h | 27 --------------------------- 8 files changed, 56 insertions(+), 56 deletions(-) create mode 100644 sysdeps/unix/sysv/linux/i386/arch-fork.h delete mode 100644 sysdeps/unix/sysv/linux/i386/fork.h create mode 100644 sysdeps/unix/sysv/linux/mips/arch-fork.h delete mode 100644 sysdeps/unix/sysv/linux/mips/fork.h create mode 100644 sysdeps/unix/sysv/linux/powerpc/arch-fork.h delete mode 100644 sysdeps/unix/sysv/linux/powerpc/fork.h create mode 100644 sysdeps/unix/sysv/linux/x86_64/arch-fork.h delete mode 100644 sysdeps/unix/sysv/linux/x86_64/fork.h (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/i386/arch-fork.h b/sysdeps/unix/sysv/linux/i386/arch-fork.h new file mode 100644 index 0000000..70f1b19 --- /dev/null +++ b/sysdeps/unix/sysv/linux/i386/arch-fork.h @@ -0,0 +1,27 @@ +/* Internal definitions for thread-friendly fork implementation. Linux/i386. + Copyright (C) 2002-2014 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 2002. + + 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 + . */ + +#include +#include +#include + +#define ARCH_FORK() \ + INLINE_SYSCALL (clone, 5, \ + CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \ + NULL, NULL, &THREAD_SELF->tid) diff --git a/sysdeps/unix/sysv/linux/i386/fork.h b/sysdeps/unix/sysv/linux/i386/fork.h deleted file mode 100644 index 2919ccf..0000000 --- a/sysdeps/unix/sysv/linux/i386/fork.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Internal definitions for thread-friendly fork implementation. Linux/i386. - Copyright (C) 2002-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 2002. - - 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 - . */ - -#include - -#define ARCH_FORK() \ - INLINE_SYSCALL (clone, 5, \ - CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \ - NULL, NULL, &THREAD_SELF->tid) - -#include_next diff --git a/sysdeps/unix/sysv/linux/mips/arch-fork.h b/sysdeps/unix/sysv/linux/mips/arch-fork.h new file mode 100644 index 0000000..5f94537 --- /dev/null +++ b/sysdeps/unix/sysv/linux/mips/arch-fork.h @@ -0,0 +1 @@ +#include diff --git a/sysdeps/unix/sysv/linux/mips/fork.h b/sysdeps/unix/sysv/linux/mips/fork.h deleted file mode 100644 index 14b238a..0000000 --- a/sysdeps/unix/sysv/linux/mips/fork.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/unix/sysv/linux/powerpc/arch-fork.h b/sysdeps/unix/sysv/linux/powerpc/arch-fork.h new file mode 100644 index 0000000..5f94537 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/arch-fork.h @@ -0,0 +1 @@ +#include diff --git a/sysdeps/unix/sysv/linux/powerpc/fork.h b/sysdeps/unix/sysv/linux/powerpc/fork.h deleted file mode 100644 index 14b238a..0000000 --- a/sysdeps/unix/sysv/linux/powerpc/fork.h +++ /dev/null @@ -1 +0,0 @@ -#include diff --git a/sysdeps/unix/sysv/linux/x86_64/arch-fork.h b/sysdeps/unix/sysv/linux/x86_64/arch-fork.h new file mode 100644 index 0000000..97b866b --- /dev/null +++ b/sysdeps/unix/sysv/linux/x86_64/arch-fork.h @@ -0,0 +1,27 @@ +/* Internal definitions for thread-friendly fork implementation. Linux/x86_64. + Copyright (C) 2003-2014 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 2003. + + 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 + . */ + +#include +#include +#include + +#define ARCH_FORK() \ + INLINE_SYSCALL (clone, 4, \ + CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \ + NULL, &THREAD_SELF->tid) diff --git a/sysdeps/unix/sysv/linux/x86_64/fork.h b/sysdeps/unix/sysv/linux/x86_64/fork.h deleted file mode 100644 index 1bd5301..0000000 --- a/sysdeps/unix/sysv/linux/x86_64/fork.h +++ /dev/null @@ -1,27 +0,0 @@ -/* Internal definitions for thread-friendly fork implementation. Linux/x86_64. - Copyright (C) 2003-2014 Free Software Foundation, Inc. - This file is part of the GNU C Library. - Contributed by Ulrich Drepper , 2003. - - 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 - . */ - -#include - -#define ARCH_FORK() \ - INLINE_SYSCALL (clone, 4, \ - CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \ - NULL, &THREAD_SELF->tid) - -#include_next -- cgit v1.1