diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-05-13 10:04:20 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-05-13 10:04:20 -0700 |
commit | 58aa195d323d93f1d69a833d5a710396976f7620 (patch) | |
tree | 5360c9afebd9cff126a606257aa31f220a5880de /sysdeps/unix/sysv/linux/arm/fork.c | |
parent | 8c6d01f0b11e699d7d9868a5bf1eb6d9054c91a3 (diff) | |
download | glibc-58aa195d323d93f1d69a833d5a710396976f7620.tar glibc-58aa195d323d93f1d69a833d5a710396976f7620.tar.gz glibc-58aa195d323d93f1d69a833d5a710396976f7620.tar.bz2 glibc-58aa195d323d93f1d69a833d5a710396976f7620.zip |
Verbatim NPTL file moves for ARM/Linux.
Diffstat (limited to 'sysdeps/unix/sysv/linux/arm/fork.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/arm/fork.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/arm/fork.c b/sysdeps/unix/sysv/linux/arm/fork.c new file mode 100644 index 0000000000..0fbea176c3 --- /dev/null +++ b/sysdeps/unix/sysv/linux/arm/fork.c @@ -0,0 +1,30 @@ +/* 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> |