diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv')
-rw-r--r-- | sysdeps/unix/sysv/linux/riscv/kernel-features.h (renamed from sysdeps/unix/sysv/linux/riscv/arch-fork.h) | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/arch-fork.h b/sysdeps/unix/sysv/linux/riscv/kernel-features.h index f6f5d73343..37f4d99a92 100644 --- a/sysdeps/unix/sysv/linux/riscv/arch-fork.h +++ b/sysdeps/unix/sysv/linux/riscv/kernel-features.h @@ -1,5 +1,6 @@ -/* Internal definitions for thread-friendly fork implementation. Linux/RISC-V. - Copyright (C) 2002-2018 Free Software Foundation, Inc. +/* Set flags signalling availability of kernel features based on given + kernel version number. RISC-V version. + Copyright (C) 2018 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 @@ -16,11 +17,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ -#include <sched.h> -#include <sysdep.h> -#include <tls.h> +#include_next <kernel-features.h> -#define ARCH_FORK() \ - INLINE_SYSCALL (clone, 5, \ - CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID | SIGCHLD, 0, \ - NULL, NULL, &THREAD_SELF->tid) +#undef __ASSUME_CLONE_DEFAULT +#define __ASSUME_CLONE_BACKWARDS 1 |