parisc: sendfile and sendfile64 syscall cleanups
Helge Deller
maintainerPATCH 1/1 parisc: sendfile and sendfile64 syscall cleanups
commit 375e130d5c9809c99afe56d6640b70f3c002e8ac
Date: Tue Feb 19 22:55:17 2013 +0100
Utilize the existing compat_sys_sendfile function for 64bit kernel and add wrappers for sendfile and sendfile64 to correctly handle the 32/64 bit sign extension.
Signed-off-by Helge Deller <[email protected]>
arch/parisc/include/asm/unistd.h +1 -0
@@ -167,6 +167,7 @@ type name(type1 arg1, type2 arg2, type3 arg3, type4 arg4, type5 arg5) \#define __ARCH_WANT_SYS_FORK#define __ARCH_WANT_SYS_VFORK#define __ARCH_WANT_SYS_CLONE +#define __ARCH_WANT_COMPAT_SYS_SENDFILE#endif /* __ASSEMBLY__ */
arch/parisc/kernel/sys_parisc32.c +13 -32
55 lines not on this page · raw message
arch/parisc/kernel/syscall_table.S +1 -1
@@ -304,7 +304,7 @@ ENTRY_SAME(gettid) ENTRY_OURS(readahead) ENTRY_SAME(tkill) - ENTRY_SAME(sendfile64) + ENTRY_DIFF(sendfile64) ENTRY_COMP(futex) /* 210 */ ENTRY_COMP(sched_setaffinity) ENTRY_COMP(sched_getaffinity)