1 /* ARCH_FORK definition for Linux fork implementation. Stub version.
2 Copyright (C) 2014-2017 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 /* This file should define the function-like macro of no arguments
20 ARCH_FORK to an INLINE_SYSCALL invocation of the clone-like system
21 call, passing the CLONE_CHILD_SETTID and CLONE_CHILD_CLEARTID flags
22 and &THREAD_SELF->tid as the TID address.
24 Machines that lack an arch-fork.h header file will hit an #error in
25 fork.c; this stub file doesn't contain an #error itself mainly for
26 the transition period of migrating old machine-specific fork.c files
27 to machine-specific arch-fork.h instead. */