Skip to content

Commit

Permalink
powerpc: Wireup new syscalls
Browse files Browse the repository at this point in the history
signalfd4, eventfd2, epoll_create1, dup3, pipe2 and inotify_init1

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Tony Breeds authored and Benjamin Herrenschmidt committed Jul 25, 2008
1 parent 1e3519f commit 973b7d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/asm-powerpc/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ asmlinkage int sys_vfork(unsigned long p1, unsigned long p2,
unsigned long p3, unsigned long p4, unsigned long p5,
unsigned long p6, struct pt_regs *regs);
asmlinkage long sys_pipe(int __user *fildes);
asmlinkage long sys_pipe2(int __user *fildes, int flags);
asmlinkage long sys_rt_sigaction(int sig,
const struct sigaction __user *act,
struct sigaction __user *oact, size_t sigsetsize);
Expand Down
6 changes: 6 additions & 0 deletions include/asm-powerpc/systbl.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,3 +316,9 @@ COMPAT_SYS(fallocate)
SYSCALL(subpage_prot)
COMPAT_SYS_SPU(timerfd_settime)
COMPAT_SYS_SPU(timerfd_gettime)
COMPAT_SYS_SPU(signalfd4)
SYSCALL_SPU(eventfd2)
SYSCALL_SPU(epoll_create1)
SYSCALL_SPU(dup3)
SYSCALL_SPU(pipe2)
SYSCALL(inotify_init1)
8 changes: 7 additions & 1 deletion include/asm-powerpc/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,16 @@
#define __NR_subpage_prot 310
#define __NR_timerfd_settime 311
#define __NR_timerfd_gettime 312
#define __NR_signalfd4 313
#define __NR_eventfd2 314
#define __NR_epoll_create1 315
#define __NR_dup3 316
#define __NR_pipe2 317
#define __NR_inotify_init1 318

#ifdef __KERNEL__

#define __NR_syscalls 313
#define __NR_syscalls 319

#define __NR__exit __NR_exit
#define NR_syscalls __NR_syscalls
Expand Down

0 comments on commit 973b7d8

Please sign in to comment.