diff options
Diffstat (limited to 'include/asm-ia64/unistd.h')
-rw-r--r-- | include/asm-ia64/unistd.h | 75 |
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 | ||
319 | extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr); | 320 | extern 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 | |||
330 | static inline long | ||
331 | open (const char * name, int mode, int flags) | ||
332 | { | ||
333 | return sys_open(name, mode, flags); | ||
334 | } | ||
335 | |||
336 | static inline long | ||
337 | dup (int fd) | ||
338 | { | ||
339 | return sys_dup(fd); | ||
340 | } | ||
341 | |||
342 | static inline long | ||
343 | close (int fd) | ||
344 | { | ||
345 | return sys_close(fd); | ||
346 | } | ||
347 | |||
348 | static inline off_t | ||
349 | lseek (int fd, off_t off, int whence) | ||
350 | { | ||
351 | return sys_lseek(fd, off, whence); | ||
352 | } | ||
353 | |||
354 | static inline void | ||
355 | _exit (int value) | ||
356 | { | ||
357 | sys_exit(value); | ||
358 | } | ||
359 | |||
360 | #define exit(x) _exit(x) | ||
361 | |||
362 | static inline long | ||
363 | write (int fd, const char * buf, size_t nr) | ||
364 | { | ||
365 | return sys_write(fd, buf, nr); | ||
366 | } | ||
367 | |||
368 | static inline long | ||
369 | read (int fd, char * buf, size_t nr) | ||
370 | { | ||
371 | return sys_read(fd, buf, nr); | ||
372 | } | ||
373 | |||
374 | |||
375 | static inline long | ||
376 | setsid (void) | ||
377 | { | ||
378 | return sys_setsid(); | ||
379 | } | ||
380 | |||
381 | static inline pid_t | ||
382 | waitpid (int pid, int * wait_stat, int flags) | ||
383 | { | ||
384 | return sys_wait4(pid, wait_stat, flags, NULL); | ||
385 | } | ||
386 | |||
387 | |||
388 | extern int execve (const char *filename, char *const av[], char *const ep[]); | ||
389 | extern pid_t clone (unsigned long flags, void *sp); | ||
390 | |||
391 | #endif /* __KERNEL_SYSCALLS__ */ | ||
392 | |||
393 | asmlinkage unsigned long sys_mmap( | 322 | asmlinkage 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, |