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

@@ -50,8 +50,8 @@ syscall_src += arch-x86/syscalls/close.S
syscall_src += arch-x86/syscalls/connect.S
syscall_src += arch-x86/syscalls/delete_module.S
syscall_src += arch-x86/syscalls/dup.S
syscall_src += arch-x86/syscalls/dup2.S
syscall_src += arch-x86/syscalls/epoll_create.S
syscall_src += arch-x86/syscalls/dup3.S
syscall_src += arch-x86/syscalls/epoll_create1.S
syscall_src += arch-x86/syscalls/epoll_ctl.S
syscall_src += arch-x86/syscalls/epoll_wait.S
syscall_src += arch-x86/syscalls/eventfd.S
@@ -97,7 +97,7 @@ syscall_src += arch-x86/syscalls/getuid.S
syscall_src += arch-x86/syscalls/getxattr.S
syscall_src += arch-x86/syscalls/init_module.S
syscall_src += arch-x86/syscalls/inotify_add_watch.S
syscall_src += arch-x86/syscalls/inotify_init.S
syscall_src += arch-x86/syscalls/inotify_init1.S
syscall_src += arch-x86/syscalls/inotify_rm_watch.S
syscall_src += arch-x86/syscalls/ioprio_get.S
syscall_src += arch-x86/syscalls/ioprio_set.S
@@ -128,7 +128,6 @@ syscall_src += arch-x86/syscalls/nanosleep.S
syscall_src += arch-x86/syscalls/pause.S
syscall_src += arch-x86/syscalls/perf_event_open.S
syscall_src += arch-x86/syscalls/personality.S
syscall_src += arch-x86/syscalls/pipe.S
syscall_src += arch-x86/syscalls/pipe2.S
syscall_src += arch-x86/syscalls/poll.S
syscall_src += arch-x86/syscalls/prctl.S

View File

@@ -4,12 +4,14 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(dup2)
ENTRY(dup3)
pushl %ebx
pushl %ecx
mov 12(%esp), %ebx
mov 16(%esp), %ecx
movl $__NR_dup2, %eax
pushl %edx
mov 16(%esp), %ebx
mov 20(%esp), %ecx
mov 24(%esp), %edx
movl $__NR_dup3, %eax
int $0x80
cmpl $-MAX_ERRNO, %eax
jb 1f
@@ -19,7 +21,8 @@ ENTRY(dup2)
addl $4, %esp
orl $-1, %eax
1:
popl %edx
popl %ecx
popl %ebx
ret
END(dup2)
END(dup3)

View File

@@ -4,10 +4,10 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(epoll_create)
ENTRY(epoll_create1)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_epoll_create, %eax
movl $__NR_epoll_create1, %eax
int $0x80
cmpl $-MAX_ERRNO, %eax
jb 1f
@@ -19,4 +19,4 @@ ENTRY(epoll_create)
1:
popl %ebx
ret
END(epoll_create)
END(epoll_create1)

View File

@@ -4,10 +4,10 @@
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(inotify_init)
ENTRY(inotify_init1)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_inotify_init, %eax
movl $__NR_inotify_init1, %eax
int $0x80
cmpl $-MAX_ERRNO, %eax
jb 1f
@@ -19,4 +19,4 @@ ENTRY(inotify_init)
1:
popl %ebx
ret
END(inotify_init)
END(inotify_init1)

View File

@@ -1,22 +0,0 @@
/* Generated by gensyscalls.py. Do not edit. */
#include <asm/unistd.h>
#include <linux/err.h>
#include <machine/asm.h>
ENTRY(pipe)
pushl %ebx
mov 8(%esp), %ebx
movl $__NR_pipe, %eax
int $0x80
cmpl $-MAX_ERRNO, %eax
jb 1f
negl %eax
pushl %eax
call __set_errno
addl $4, %esp
orl $-1, %eax
1:
popl %ebx
ret
END(pipe)