about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/riscv/sysdep.h
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-27 23:49:24 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-05-29 17:39:57 -0300
commita1950a07583f63f220f30ba7d99ceb619b80ecce (patch)
tree773d288f9e318941df15d9e16ba1649ce0fb79d8 /sysdeps/unix/sysv/linux/riscv/sysdep.h
parent33d7c0e1cb712a3b7ea46d7f88569721805bc2db (diff)
downloadglibc-a1950a07583f63f220f30ba7d99ceb619b80ecce.tar.gz
glibc-a1950a07583f63f220f30ba7d99ceb619b80ecce.tar.xz
glibc-a1950a07583f63f220f30ba7d99ceb619b80ecce.zip
riscv: Add the clone3 wrapper
It follows the internal signature:

  extern int clone3 (struct clone_args *__cl_args, size_t __size,
 int (*__func) (void *__arg), void *__arg);

Checked on riscv64-linux-gnu-rv64imafdc-lp64d.

Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/riscv/sysdep.h')
-rw-r--r--sysdeps/unix/sysv/linux/riscv/sysdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h
index 872c093cfa..5583b96d23 100644
--- a/sysdeps/unix/sysv/linux/riscv/sysdep.h
+++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h
@@ -151,6 +151,7 @@
 
 /* RV32 does not support the gettime VDSO syscalls.  */
 # endif
+# define HAVE_CLONE3_WRAPPER		1
 
 /* List of system calls which are supported as vsyscalls (for RV32 and
    RV64).  */