diff options
| author | Kyle McMartin <kyle@mcmartin.ca> | 2007-09-28 13:25:59 -0400 |
|---|---|---|
| committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2007-10-18 03:58:26 -0400 |
| commit | 2cfc5be7df26b6fbe9a293e2abf388a6e5b9a39e (patch) | |
| tree | b63f6d70adfdb8fe00053fb97dd7114035512a91 | |
| parent | d85714d81cc0408daddb68c10f7fd69eafe7c213 (diff) | |
[PARISC] Wire up sys_fallocate (and compat_sys_fallocate)
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
| -rw-r--r-- | arch/parisc/kernel/sys_parisc32.c | 7 | ||||
| -rw-r--r-- | arch/parisc/kernel/syscall_table.S | 1 | ||||
| -rw-r--r-- | include/asm-parisc/unistd.h | 3 |
3 files changed, 10 insertions, 1 deletions
diff --git a/arch/parisc/kernel/sys_parisc32.c b/arch/parisc/kernel/sys_parisc32.c index 2989c6682bf6..50bbf33ee00c 100644 --- a/arch/parisc/kernel/sys_parisc32.c +++ b/arch/parisc/kernel/sys_parisc32.c | |||
| @@ -473,3 +473,10 @@ long sys32_lookup_dcookie(u32 cookie_high, u32 cookie_low, char __user *buf, | |||
| 473 | return sys_lookup_dcookie((u64)cookie_high << 32 | cookie_low, | 473 | return sys_lookup_dcookie((u64)cookie_high << 32 | cookie_low, |
| 474 | buf, len); | 474 | buf, len); |
| 475 | } | 475 | } |
| 476 | |||
| 477 | asmlinkage long compat_sys_fallocate(int fd, int mode, u32 offhi, u32 offlo, | ||
| 478 | u32 lenhi, u32 lenlo) | ||
| 479 | { | ||
| 480 | return sys_fallocate(fd, mode, ((loff_t)offhi << 32) | offlo, | ||
| 481 | ((loff_t)lenhi << 32) | lenlo); | ||
| 482 | } | ||
diff --git a/arch/parisc/kernel/syscall_table.S b/arch/parisc/kernel/syscall_table.S index 2540786a970f..117438e9eb2a 100644 --- a/arch/parisc/kernel/syscall_table.S +++ b/arch/parisc/kernel/syscall_table.S | |||
| @@ -403,6 +403,7 @@ | |||
| 403 | ENTRY_COMP(signalfd) | 403 | ENTRY_COMP(signalfd) |
| 404 | ENTRY_COMP(timerfd) | 404 | ENTRY_COMP(timerfd) |
| 405 | ENTRY_SAME(eventfd) | 405 | ENTRY_SAME(eventfd) |
| 406 | ENTRY_COMP(fallocate) /* 305 */ | ||
| 406 | 407 | ||
| 407 | /* Nothing yet */ | 408 | /* Nothing yet */ |
| 408 | 409 | ||
diff --git a/include/asm-parisc/unistd.h b/include/asm-parisc/unistd.h index f74099bdca3c..081b4ae61866 100644 --- a/include/asm-parisc/unistd.h +++ b/include/asm-parisc/unistd.h | |||
| @@ -797,8 +797,9 @@ | |||
| 797 | #define __NR_signalfd (__NR_Linux + 302) | 797 | #define __NR_signalfd (__NR_Linux + 302) |
| 798 | #define __NR_timerfd (__NR_Linux + 303) | 798 | #define __NR_timerfd (__NR_Linux + 303) |
| 799 | #define __NR_eventfd (__NR_Linux + 304) | 799 | #define __NR_eventfd (__NR_Linux + 304) |
| 800 | #define __NR_fallocate (__NR_Linux + 305) | ||
| 800 | 801 | ||
| 801 | #define __NR_Linux_syscalls (__NR_eventfd + 1) | 802 | #define __NR_Linux_syscalls (__NR_fallocate + 1) |
| 802 | 803 | ||
| 803 | 804 | ||
| 804 | #define __IGNORE_select /* newselect */ | 805 | #define __IGNORE_select /* newselect */ |
