]> sourceware.org Git - glibc.git/commitdiff
linux: Define __ASSUME_CLONE3 to 0 for alpha, ia64, nios2, sh, and sparc
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Thu, 24 Aug 2023 16:42:16 +0000 (13:42 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 5 Sep 2023 13:15:48 +0000 (10:15 -0300)
Not all architectures added clone3 syscall.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
sysdeps/unix/sysv/linux/alpha/kernel-features.h
sysdeps/unix/sysv/linux/ia64/kernel-features.h
sysdeps/unix/sysv/linux/nios2/kernel-features.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sh/kernel-features.h
sysdeps/unix/sysv/linux/sparc/kernel-features.h

index 3151e75449e988f646f1654ed93e2a6c356d22d0..d14c010333aab7cf25e103167d7130394634d28b 100644 (file)
@@ -50,4 +50,8 @@
 /* Alpha requires old sysvipc even being a 64-bit architecture.  */
 #undef __ASSUME_SYSVIPC_DEFAULT_IPC_64
 
+/* Alpha does not provide clone3.  */
+#undef __ASSUME_CLONE3
+#define __ASSUME_CLONE3 0
+
 #endif /* _KERNEL_FEATURES_H */
index 98ebfb74bf2a5260c34aa444edfb06041b2f3726..398ec3732833d35e6cfd897ef68673f7a4d1898d 100644 (file)
@@ -34,4 +34,8 @@
 #undef __ASSUME_CLONE_DEFAULT
 #define __ASSUME_CLONE2
 
+/* ia64 does not provide clone3.  */
+#undef __ASSUME_CLONE3
+#define __ASSUME_CLONE3 0
+
 #endif /* _KERNEL_FEATURES_H */
diff --git a/sysdeps/unix/sysv/linux/nios2/kernel-features.h b/sysdeps/unix/sysv/linux/nios2/kernel-features.h
new file mode 100644 (file)
index 0000000..239e507
--- /dev/null
@@ -0,0 +1,24 @@
+/* Set flags signalling availability of kernel features based on given
+   kernel version number.  NIOS2 version.
+   Copyright (C) 2023 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
+   <https://www.gnu.org/licenses/>.  */
+
+#include_next <kernel-features.h>
+
+/* nios2 does not provide clone3.  */
+#undef __ASSUME_CLONE3
+#define __ASSUME_CLONE3 0
index 953fa8dff010a34efd452f2bf0c731809ace61dc..3eaf9e0857e85e51bd5d52958208e5a13adefd4c 100644 (file)
@@ -55,4 +55,8 @@
 # undef __ASSUME_STATX
 #endif
 
+/* sh does not provide clone3.  */
+#undef __ASSUME_CLONE3
+#define __ASSUME_CLONE3 0
+
 #endif
index 98c938c16d9e48b2430a2240a95d8d970a7c95a8..fcb343ef63073ae98ba4cc609e6538abbc0c96e9 100644 (file)
@@ -87,3 +87,7 @@
    (INLINE_CLONE_SYSCALL).  */
 #undef __ASSUME_CLONE_DEFAULT
 #define __ASSUME_CLONE_BACKWARDS       1
+
+/* sparc does not provide clone3.  */
+#undef __ASSUME_CLONE3
+#define __ASSUME_CLONE3 0
This page took 0.053154 seconds and 5 git commands to generate.