Browse Source

cleanup unused defines and includes from clone.S

Waldemar Brodkorb 6 years ago
parent
commit
3094aaa2f5

+ 0 - 8
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 <bits/errno.h>
 
-#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

+ 0 - 7
libc/sysdeps/linux/arm/clone.S

@@ -27,13 +27,6 @@
 #include <bits/arm_asm.h>
 #include <bits/arm_bx.h>
 
-#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_LINUXTHREADS__
-#include <sysdep-cancel.h>
-#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); */
 

+ 0 - 1
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

+ 0 - 4
libc/sysdeps/linux/microblaze/clone.S

@@ -23,10 +23,6 @@
 #define _ERRNO_H	1
 #include <bits/errno.h>
 
-#if defined __UCLIBC_HAS_THREADS__ && !defined __UCLIBC_HAS_LINUXTHREADS__
-#include <sysdep-cancel.h>
-#endif
-
 /* int clone (int (*fn)(void *arg), void *child_stack, int flags, void *arg,
               pid_t *ptid, struct user_desc *tls, pid_t *ctid);
 

+ 0 - 3
libc/sysdeps/linux/mips/clone.S

@@ -25,9 +25,6 @@
 #define _ERRNO_H        1
 #include <bits/errno.h>
 
-#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) */
 

+ 0 - 3
libc/sysdeps/linux/nds32/clone.S

@@ -28,9 +28,6 @@
 #define _ERRNO_H	1
 #include <bits/errno.h>
 
-#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)  */
 

+ 0 - 1
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

+ 0 - 3
libc/sysdeps/linux/powerpc/clone.S

@@ -21,9 +21,6 @@
 #include <bits/errno.h>
 #include <sysdep.h>
 
-#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.  */

+ 0 - 1
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

+ 0 - 4
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 <asm/unistd.h>
 #include <sysdep.h>
 
-#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); */
 

+ 0 - 4
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 <bits/errno.h>
 #include <sys/syscall.h>
 
-#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:

+ 0 - 5
libc/sysdeps/linux/xtensa/clone.S

@@ -22,7 +22,6 @@
 #define _ERRNO_H	1
 #include <bits/errno.h>
 #define __ASSEMBLY__
-#include <linux/sched.h>
 
 /* 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 */