[23/26] x86_64: Do not define __NR_semtimedop in <sysdep.h>

Message ID fe7f3fe7f8b42acb6dd6b9b1610a0cb21226021a.1581279333.git.fweimer@redhat.com
State New
Headers show
Series
  • Linux cleanups enabled by built-in system call tables
Related show

Commit Message

Florian Weimer Feb. 9, 2020, 8:21 p.m.
The definition is always available from the built-in system call table.
---
 sysdeps/unix/sysv/linux/x86_64/sysdep.h | 7 -------
 1 file changed, 7 deletions(-)

-- 
2.24.1

Comments

Adhemerval Zanella Feb. 27, 2020, 11:46 p.m. | #1
On 09/02/2020 17:21, Florian Weimer wrote:
> The definition is always available from the built-in system call table.


LGTM, thanks. 

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>


> ---

>  sysdeps/unix/sysv/linux/x86_64/sysdep.h | 7 -------

>  1 file changed, 7 deletions(-)

> 

> diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h

> index c2eb37e575..b8aa1a2b2f 100644

> --- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h

> +++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h

> @@ -33,13 +33,6 @@

>  #undef SYS_ify

>  #define SYS_ify(syscall_name)	__NR_##syscall_name

>  

> -/* This is to help the old kernel headers where __NR_semtimedop is not

> -   available.  */

> -#ifndef __NR_semtimedop

> -# define __NR_semtimedop 220

> -#endif

> -

> -

>  #ifdef __ASSEMBLER__

>  

>  /* Linux uses a negative return value to indicate syscall errors,

>

Patch

diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
index c2eb37e575..b8aa1a2b2f 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
@@ -33,13 +33,6 @@ 
 #undef SYS_ify
 #define SYS_ify(syscall_name)	__NR_##syscall_name
 
-/* This is to help the old kernel headers where __NR_semtimedop is not
-   available.  */
-#ifndef __NR_semtimedop
-# define __NR_semtimedop 220
-#endif
-
-
 #ifdef __ASSEMBLER__
 
 /* Linux uses a negative return value to indicate syscall errors,