Remove dependencies on obsolete __ARCH_WANT_SYSCALL_NO_FLAGS syscalls.

(aarch64 kernels only have the newer system calls.)

Also expose the new functionality that's exposed by glibc in our header files.

Change-Id: I45d2d168a03f88723d1f7fbf634701006a4843c5
This commit is contained in:
Elliott Hughes
2013-10-23 09:48:29 -07:00
parent ec40edc918
commit cac7b9d6ec
29 changed files with 224 additions and 135 deletions

View File

@@ -4,8 +4,8 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(dup2)
movl $__NR_dup2, %eax
ENTRY(dup3)
movl $__NR_dup3, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
@@ -15,4 +15,4 @@ ENTRY(dup2)
orq $-1, %rax
1:
ret
END(dup2)
END(dup3)

View File

@@ -4,8 +4,8 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(epoll_create)
movl $__NR_epoll_create, %eax
ENTRY(epoll_create1)
movl $__NR_epoll_create1, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
@@ -15,4 +15,4 @@ ENTRY(epoll_create)
orq $-1, %rax
1:
ret
END(epoll_create)
END(epoll_create1)

View File

@@ -4,8 +4,8 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(inotify_init)
movl $__NR_inotify_init, %eax
ENTRY(inotify_init1)
movl $__NR_inotify_init1, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
@@ -15,4 +15,4 @@ ENTRY(inotify_init)
orq $-1, %rax
1:
ret
END(inotify_init)
END(inotify_init1)

View File

@@ -1,18 +0,0 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <asm/unistd.h>
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(pipe)
movl $__NR_pipe, %eax
syscall
cmpq $-MAX_ERRNO, %rax
jb 1f
negl %eax
movl %eax, %edi
call __set_errno
orq $-1, %rax
1:
ret
END(pipe)