diff options
author | Carlos O'Donell <carlos@systemhalted.org> | 2014-09-07 16:18:06 -0400 |
---|---|---|
committer | Carlos O'Donell <carlos@systemhalted.org> | 2014-09-07 22:08:36 -0400 |
commit | d83f0734e1522a5e5ea2494565f4dcd25a86d6a0 (patch) | |
tree | 9bda9b95797d592780251903ec6a5a5917a63f6e /sysdeps/unix/sysv/linux/hppa/arch-fork.h | |
parent | 21c83793a223666b8cfe438d81615941896b355c (diff) | |
download | glibc-d83f0734e1522a5e5ea2494565f4dcd25a86d6a0.tar glibc-d83f0734e1522a5e5ea2494565f4dcd25a86d6a0.tar.gz glibc-d83f0734e1522a5e5ea2494565f4dcd25a86d6a0.tar.bz2 glibc-d83f0734e1522a5e5ea2494565f4dcd25a86d6a0.zip |
HPPA: Transition to new non-addon NPTL.
Merge roland/nptl-hppa to master, update and test for hppa-linux-gnu.
This commit squashes and commits the work done by Roland McGrath on
roland/nptl-hppa to migrate hppa to the new non-addon NPTL. Some
additional tweaks were required for tcb-offsets.sym to work correctly
along with clone.S (unique to hppa).
Diffstat (limited to 'sysdeps/unix/sysv/linux/hppa/arch-fork.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/hppa/arch-fork.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/hppa/arch-fork.h b/sysdeps/unix/sysv/linux/hppa/arch-fork.h new file mode 100644 index 0000000000..f4241fa49d --- /dev/null +++ b/sysdeps/unix/sysv/linux/hppa/arch-fork.h @@ -0,0 +1,32 @@ +/* ARCH_FORK definition for Linux fork implementation. HPPA version. + Copyright (C) 2005-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 <signal.h> +#include <sysdep.h> +#include <tls.h> + +/* Argument 1 - Clone flags. + 2 - Child stack pointer. + 3 - Parent tid pointer. + 4 - New TLS area pointer. + 5 - Child tid pointer. */ +#define ARCH_FORK() \ + INLINE_SYSCALL (clone, 5, \ + CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, \ + NULL, NULL, NULL, &THREAD_SELF->tid) |