From 3094aaa2f55622cb3fa85967ff1341831437f2d2 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 20 Jul 2017 20:30:28 +0200 Subject: cleanup unused defines and includes from clone.S --- libc/sysdeps/linux/aarch64/clone.S | 8 -------- libc/sysdeps/linux/arm/clone.S | 7 ------- libc/sysdeps/linux/i386/clone.S | 1 - libc/sysdeps/linux/microblaze/clone.S | 4 ---- libc/sysdeps/linux/mips/clone.S | 3 --- libc/sysdeps/linux/nds32/clone.S | 3 --- libc/sysdeps/linux/or1k/clone.c | 1 - libc/sysdeps/linux/powerpc/clone.S | 3 --- libc/sysdeps/linux/sh/clone.S | 1 - libc/sysdeps/linux/sparc/clone.S | 4 ---- libc/sysdeps/linux/x86_64/clone.S | 4 ---- libc/sysdeps/linux/xtensa/clone.S | 5 ----- 12 files changed, 44 deletions(-) diff --git a/libc/sysdeps/linux/aarch64/clone.S b/libc/sysdeps/linux/aarch64/clone.S index 7437eec8d..74984aabb 100644 --- a/libc/sysdeps/linux/aarch64/clone.S +++ b/libc/sysdeps/linux/aarch64/clone.S @@ -1,7 +1,5 @@ /* Copyright (C) 1996-2017 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 @@ -23,12 +21,6 @@ #define _ERRNO_H 1 #include -#define CLONE_VM_BIT 8 -#define CLONE_VM (1 << CLONE_VM_BIT) - -#define CLONE_THREAD_BIT 16 -#define CLONE_THREAD (1 << CLONE_THREAD_BIT) - /* int clone(int (*fn)(void *arg), x0 void *child_stack, x1 int flags, x2 diff --git a/libc/sysdeps/linux/arm/clone.S b/libc/sysdeps/linux/arm/clone.S index b156e932b..8ca50fce4 100644 --- a/libc/sysdeps/linux/arm/clone.S +++ b/libc/sysdeps/linux/arm/clone.S @@ -27,13 +27,6 @@ #include #include -#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_LINUXTHREADS__ -#include -#endif - -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - #if defined(__NR_clone) /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg); */ diff --git a/libc/sysdeps/linux/i386/clone.S b/libc/sysdeps/linux/i386/clone.S index 68e87b567..ec1aeeaf1 100644 --- a/libc/sysdeps/linux/i386/clone.S +++ b/libc/sysdeps/linux/i386/clone.S @@ -1,5 +1,4 @@ /* Copyright (C) 1996-2000,02,03,04,2005 Free Software Foundation, Inc. - This file is part of the GNU C Library. Contributed by Richard Henderson (rth@tamu.edu) The GNU C Library is free software; you can redistribute it and/or diff --git a/libc/sysdeps/linux/microblaze/clone.S b/libc/sysdeps/linux/microblaze/clone.S index 69c20453f..cbc95ce26 100644 --- a/libc/sysdeps/linux/microblaze/clone.S +++ b/libc/sysdeps/linux/microblaze/clone.S @@ -23,10 +23,6 @@ #define _ERRNO_H 1 #include -#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_LINUXTHREADS__ -#include -#endif - /* int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg, pid_t *ptid, struct user_desc *tls, pid_t *ctid); diff --git a/libc/sysdeps/linux/mips/clone.S b/libc/sysdeps/linux/mips/clone.S index 326d1d34a..f95adaf0d 100644 --- a/libc/sysdeps/linux/mips/clone.S +++ b/libc/sysdeps/linux/mips/clone.S @@ -25,9 +25,6 @@ #define _ERRNO_H 1 #include -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg, void *parent_tidptr, void *tls, void *child_tidptr) */ diff --git a/libc/sysdeps/linux/nds32/clone.S b/libc/sysdeps/linux/nds32/clone.S index 0e6e432de..b28619bf1 100644 --- a/libc/sysdeps/linux/nds32/clone.S +++ b/libc/sysdeps/linux/nds32/clone.S @@ -28,9 +28,6 @@ #define _ERRNO_H 1 #include -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - /* int clone(int (*fn)(void *), void *child_stack, int flags, void *arg); _syscall2(int, clone, int, flags, void *, child_stack) */ diff --git a/libc/sysdeps/linux/or1k/clone.c b/libc/sysdeps/linux/or1k/clone.c index 2b61b638f..2cb39810f 100644 --- a/libc/sysdeps/linux/or1k/clone.c +++ b/libc/sysdeps/linux/or1k/clone.c @@ -1,5 +1,4 @@ /* Copyright (C) 1998, 2002, 2003, 2004 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 diff --git a/libc/sysdeps/linux/powerpc/clone.S b/libc/sysdeps/linux/powerpc/clone.S index 45319d00d..452dc7016 100644 --- a/libc/sysdeps/linux/powerpc/clone.S +++ b/libc/sysdeps/linux/powerpc/clone.S @@ -21,9 +21,6 @@ #include #include -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - /* This is the only really unusual system call in PPC linux, but not because of any weirdness in the system call itself; because of all the freaky stuff we have to do to make the call useful. */ diff --git a/libc/sysdeps/linux/sh/clone.S b/libc/sysdeps/linux/sh/clone.S index 334f83f1a..cfc61e6d6 100644 --- a/libc/sysdeps/linux/sh/clone.S +++ b/libc/sysdeps/linux/sh/clone.S @@ -1,5 +1,4 @@ /* Copyright (C) 1999, 2000, 2003, 2004, 2007 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 diff --git a/libc/sysdeps/linux/sparc/clone.S b/libc/sysdeps/linux/sparc/clone.S index c1e587060..9d979d10d 100644 --- a/libc/sysdeps/linux/sparc/clone.S +++ b/libc/sysdeps/linux/sparc/clone.S @@ -1,6 +1,5 @@ /* Copyright (C) 1996, 1997, 1998, 2000, 2003, 2004, 2007 Free Software Foundation, Inc. - This file is part of the GNU C Library. Contributed by Richard Henderson (rth@tamu.edu). The GNU C Library is free software; you can redistribute it and/or @@ -24,9 +23,6 @@ #include #include -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg, pid_t *ptid, void *tls, pid_t *ctid); */ diff --git a/libc/sysdeps/linux/x86_64/clone.S b/libc/sysdeps/linux/x86_64/clone.S index 3dda8da02..9ffcd49c4 100644 --- a/libc/sysdeps/linux/x86_64/clone.S +++ b/libc/sysdeps/linux/x86_64/clone.S @@ -1,5 +1,4 @@ /* Copyright (C) 2001, 2002, 2003, 2004, 2005 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 @@ -23,9 +22,6 @@ #include #include -#define CLONE_VM 0x00000100 -#define CLONE_THREAD 0x00010000 - /* The userland implementation is: int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg), the kernel entry is: diff --git a/libc/sysdeps/linux/xtensa/clone.S b/libc/sysdeps/linux/xtensa/clone.S index 913ec5a5f..ebfdcc1f6 100644 --- a/libc/sysdeps/linux/xtensa/clone.S +++ b/libc/sysdeps/linux/xtensa/clone.S @@ -22,7 +22,6 @@ #define _ERRNO_H 1 #include #define __ASSEMBLY__ -#include /* int clone(int (*fn)(void *arg), void *child_stack, int flags, void *arg, a2 a3 a4 a5 @@ -69,10 +68,6 @@ ENTRY (__clone) .Lthread_start: -#if CLONE_THREAD != 0x00010000 || CLONE_VM != 0x00000100 -# error invalid values for CLONE_THREAD or CLONE_VM -#endif - /* start child thread */ movi a0, 0 /* terminate the stack frame */ -- cgit v1.2.3