aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/unistd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ia64/unistd.h')
-rw-r--r--include/asm-ia64/unistd.h75
1 files changed, 2 insertions, 73 deletions
diff --git a/include/asm-ia64/unistd.h b/include/asm-ia64/unistd.h
index f581662c5ab8..53c5c0ee122c 100644
--- a/include/asm-ia64/unistd.h
+++ b/include/asm-ia64/unistd.h
@@ -286,7 +286,8 @@
286/* 1294, 1295 reserved for pselect/ppoll */ 286/* 1294, 1295 reserved for pselect/ppoll */
287#define __NR_unshare 1296 287#define __NR_unshare 1296
288#define __NR_splice 1297 288#define __NR_splice 1297
289/* 1298, 1299 reserved for set_robust_list/get_robust_list */ 289#define __NR_set_robust_list 1298
290#define __NR_get_robust_list 1299
290#define __NR_sync_file_range 1300 291#define __NR_sync_file_range 1300
291#define __NR_tee 1301 292#define __NR_tee 1301
292#define __NR_vmsplice 1302 293#define __NR_vmsplice 1302
@@ -318,78 +319,6 @@
318 319
319extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr); 320extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
320 321
321#ifdef __KERNEL_SYSCALLS__
322
323#include <linux/compiler.h>
324#include <linux/string.h>
325#include <linux/signal.h>
326#include <asm/ptrace.h>
327#include <linux/stringify.h>
328#include <linux/syscalls.h>
329
330static inline long
331open (const char * name, int mode, int flags)
332{
333 return sys_open(name, mode, flags);
334}
335
336static inline long
337dup (int fd)
338{
339 return sys_dup(fd);
340}
341
342static inline long
343close (int fd)
344{
345 return sys_close(fd);
346}
347
348static inline off_t
349lseek (int fd, off_t off, int whence)
350{
351 return sys_lseek(fd, off, whence);
352}
353
354static inline void
355_exit (int value)
356{
357 sys_exit(value);
358}
359
360#define exit(x) _exit(x)
361
362static inline long
363write (int fd, const char * buf, size_t nr)
364{
365 return sys_write(fd, buf, nr);
366}
367
368static inline long
369read (int fd, char * buf, size_t nr)
370{
371 return sys_read(fd, buf, nr);
372}
373
374
375static inline long
376setsid (void)
377{
378 return sys_setsid();
379}
380
381static inline pid_t
382waitpid (int pid, int * wait_stat, int flags)
383{
384 return sys_wait4(pid, wait_stat, flags, NULL);
385}
386
387
388extern int execve (const char *filename, char *const av[], char *const ep[]);
389extern pid_t clone (unsigned long flags, void *sp);
390
391#endif /* __KERNEL_SYSCALLS__ */
392
393asmlinkage unsigned long sys_mmap( 322asmlinkage unsigned long sys_mmap(
394 unsigned long addr, unsigned long len, 323 unsigned long addr, unsigned long len,
395 int prot, int flags, 324 int prot, int flags,