Commit f922d99b authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Linus Torvalds

[PATCH] parisc: new syscalls

Add new syscalls:
tkill, waitid, fadvise64_64, set_tid_address, tgkill, mbind,
[sg]et_mempolicy, {,l,f}{set,get,list,remove}xattr,
timer_{create,settime,gettime,getoverrun,delete},
clock_{settime,gettime,getres,nanosleep}
Committed-by: default avatarMatthew Wilcox <willy@parisc-linux.org>
parent 91f116cb
......@@ -234,6 +234,14 @@ asmlinkage ssize_t parisc_readahead(int fd, unsigned int high, unsigned int low,
return sys_readahead(fd, (loff_t)high << 32 | low, count);
}
asmlinkage long parisc_fadvise64_64(int fd,
unsigned int high_off, unsigned int low_off,
unsigned int high_len, unsigned int low_len, int advice)
{
return sys_fadvise64_64(fd, (loff_t)high_off << 32 | low_off,
(loff_t)high_len << 32 | low_len, advice);
}
asmlinkage unsigned long sys_alloc_hugepages(int key, unsigned long addr, unsigned long len, int prot, int flag)
{
return -ENOMEM;
......
/* System Call Table
*
* Copyright (C) 1999-2003 Matthew Wilcox <willy at parisc-linux.org>
* Copyright (C) 1999-2004 Matthew Wilcox <willy at parisc-linux.org>
* Copyright (C) 2000-2001 John Marvin <jsm at parisc-linux.org>
* Copyright (C) 2000 Alan Modra <amodra at parisc-linux.org>
* Copyright (C) 2000-2003 Paul Bame <bame at parisc-linux.org>
......@@ -308,19 +308,18 @@
ENTRY_OURS(ftruncate64) /* 200 */
ENTRY_SAME(getdents64)
ENTRY_COMP(fcntl64)
ENTRY_SAME(ni_syscall)
ENTRY_SAME(ni_syscall)
ENTRY_SAME(ni_syscall) /* 205 */
ENTRY_SAME(ni_syscall) /* attrctl -- dead */
ENTRY_SAME(ni_syscall) /* acl_get -- dead */
ENTRY_SAME(ni_syscall) /* 205 (acl_set -- dead) */
ENTRY_SAME(gettid)
ENTRY_OURS(readahead)
ENTRY_SAME(ni_syscall) /* tkill */
ENTRY_SAME(tkill)
ENTRY_SAME(sendfile64)
ENTRY_COMP(futex) /* 210 */
ENTRY_COMP(sched_setaffinity)
ENTRY_COMP(sched_getaffinity)
ENTRY_SAME(ni_syscall)
ENTRY_SAME(ni_syscall)
ENTRY_SAME(ni_syscall) /* set_thread_area */
ENTRY_SAME(ni_syscall) /* get_thread_area */
ENTRY_SAME(io_setup) /* 215 */
ENTRY_SAME(io_destroy)
ENTRY_SAME(io_getevents)
......@@ -341,5 +340,33 @@
ENTRY_SAME(mq_timedreceive)
ENTRY_SAME(mq_notify)
ENTRY_SAME(mq_getsetattr)
/* Nothing yet */ /* 235 */
ENTRY_COMP(waitid) /* 235 */
ENTRY_OURS(fadvise64_64)
ENTRY_SAME(set_tid_address)
ENTRY_SAME(setxattr)
ENTRY_SAME(lsetxattr)
ENTRY_SAME(fsetxattr) /* 240 */
ENTRY_SAME(getxattr)
ENTRY_SAME(lgetxattr)
ENTRY_SAME(fgetxattr)
ENTRY_SAME(listxattr)
ENTRY_SAME(llistxattr) /* 245 */
ENTRY_SAME(flistxattr)
ENTRY_SAME(removexattr)
ENTRY_SAME(lremovexattr)
ENTRY_SAME(fremovexattr)
ENTRY_COMP(timer_create) /* 250 */
ENTRY_COMP(timer_settime)
ENTRY_COMP(timer_gettime)
ENTRY_SAME(timer_getoverrun)
ENTRY_SAME(timer_delete)
ENTRY_COMP(clock_settime) /* 255 */
ENTRY_COMP(clock_gettime)
ENTRY_COMP(clock_getres)
ENTRY_COMP(clock_nanosleep)
ENTRY_SAME(tgkill)
ENTRY_COMP(mbind) /* 260 */
ENTRY_COMP(get_mempolicy)
ENTRY_COMP(set_mempolicy)
/* Nothing yet */
......@@ -721,14 +721,42 @@
#define __NR_epoll_wait (__NR_Linux + 226)
#define __NR_remap_file_pages (__NR_Linux + 227)
#define __NR_semtimedop (__NR_Linux + 228)
#define __NR_mq_open (__NR_Linux + 229) /* Keep the mq_* syscalls together */
#define __NR_mq_open (__NR_Linux + 229)
#define __NR_mq_unlink (__NR_Linux + 230)
#define __NR_mq_timedsend (__NR_Linux + 231)
#define __NR_mq_timedreceive (__NR_Linux + 232)
#define __NR_mq_notify (__NR_Linux + 233)
#define __NR_mq_getsetattr (__NR_Linux + 234)
#define __NR_waitid (__NR_Linux + 235)
#define __NR_fadvise64_64 (__NR_Linux + 236)
#define __NR_set_tid_address (__NR_Linux + 237)
#define __NR_setxattr (__NR_Linux + 238)
#define __NR_lsetxattr (__NR_Linux + 239)
#define __NR_fsetxattr (__NR_Linux + 240)
#define __NR_getxattr (__NR_Linux + 241)
#define __NR_lgetxattr (__NR_Linux + 242)
#define __NR_fgetxattr (__NR_Linux + 243)
#define __NR_listxattr (__NR_Linux + 244)
#define __NR_llistxattr (__NR_Linux + 245)
#define __NR_flistxattr (__NR_Linux + 246)
#define __NR_removexattr (__NR_Linux + 247)
#define __NR_lremovexattr (__NR_Linux + 248)
#define __NR_fremovexattr (__NR_Linux + 249)
#define __NR_timer_create (__NR_Linux + 250)
#define __NR_timer_settime (__NR_Linux + 251)
#define __NR_timer_gettime (__NR_Linux + 252)
#define __NR_timer_getoverrun (__NR_Linux + 253)
#define __NR_timer_delete (__NR_Linux + 254)
#define __NR_clock_settime (__NR_Linux + 255)
#define __NR_clock_gettime (__NR_Linux + 256)
#define __NR_clock_getres (__NR_Linux + 257)
#define __NR_clock_nanosleep (__NR_Linux + 258)
#define __NR_tgkill (__NR_Linux + 259)
#define __NR_mbind (__NR_Linux + 260)
#define __NR_get_mempolicy (__NR_Linux + 261)
#define __NR_set_mempolicy (__NR_Linux + 262)
#define __NR_Linux_syscalls 235
#define __NR_Linux_syscalls 263
#define HPUX_GATEWAY_ADDR 0xC0000004
#define LINUX_GATEWAY_ADDR 0x100
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment