1999-02-19 03:21:36 +03:00
/*
* Copyright ( c ) 1993 Branko Lankester < branko @ hacktic . nl >
* Copyright ( c ) 1993 , 1994 , 1995 Rick Sladkey < jrs @ world . std . com >
* All rights reserved .
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the following conditions
* are met :
* 1. Redistributions of source code must retain the above copyright
* notice , this list of conditions and the following disclaimer .
* 2. Redistributions in binary form must reproduce the above copyright
* notice , this list of conditions and the following disclaimer in the
* documentation and / or other materials provided with the distribution .
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission .
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ` ` AS IS ' ' AND ANY EXPRESS OR
* IMPLIED WARRANTIES , INCLUDING , BUT NOT LIMITED TO , THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED .
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT , INDIRECT ,
* INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT
* NOT LIMITED TO , PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES ; LOSS OF USE ,
* DATA , OR PROFITS ; OR BUSINESS INTERRUPTION ) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT
* ( INCLUDING NEGLIGENCE OR OTHERWISE ) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE , EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE .
*/
2013-05-01 19:56:22 +04:00
# ifndef HAVE_STRUCT___OLD_KERNEL_STAT
# define sys_oldfstat printargs
# define sys_oldstat printargs
# endif
1999-02-19 03:21:36 +03:00
/* still unfinished */
# define sys_ioperm printargs
# define sys_iopl printargs
2013-05-08 20:36:29 +04:00
# define sys_kcmp printargs
2011-10-12 23:03:29 +04:00
# define sys_lookup_dcookie printargs
Add syscall entries for new linux syscalls
* linux/dummy.h: Add printargs parsers for new syscalls.
* linux/arm/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_sendmmsg, sys_setns
and sys_syncfs.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_setns and sys_syncfs.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Add entry for sys_setns.
* linux/bfin/syscallent.h: Add entries for sys_sendmmsg and sys_setns.
* linux/hppa/syscallent.h: Add entries for sys_clock_adjtime,
fanotify_init, fanotify_mark, sys_name_to_handle_at,
sys_open_by_handle_at, sys_sendmmsg, sys_setns and sys_syncfs.
2011-11-27 03:37:23 +04:00
# define sys_name_to_handle_at printargs
# define sys_open_by_handle_at printargs
2014-08-14 12:05:41 +04:00
# define sys_sched_getattr printargs
# define sys_sched_setattr printargs
1999-02-19 03:21:36 +03:00
# define sys_sysfs printargs
2011-10-12 20:40:17 +04:00
# define sys_vm86old printargs
2012-03-11 19:43:04 +04:00
# define sys_vm86 printargs
1999-02-19 03:21:36 +03:00
2002-12-16 02:58:21 +03:00
/* machine-specific */
2014-04-09 16:46:05 +04:00
# if !(defined I386 || defined X86_64 || defined X32)
# define sys_modify_ldt printargs
# ifndef M68K
# define sys_get_thread_area printargs
2014-04-09 17:14:44 +04:00
# ifndef MIPS
# define sys_set_thread_area printargs
# endif
2014-04-09 16:46:05 +04:00
# endif
2010-05-29 00:28:51 +04:00
# endif
2002-12-16 02:58:21 +03:00
1999-02-19 03:21:36 +03:00
/* like another call */
2011-10-12 20:40:17 +04:00
# define sys_acct sys_chdir
Remove redundant parsers
* desc.c (sys_dup): Remove.
* file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot,
sys_unlink, sys_symlink, sys_rename): Remove.
* linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* pathtrace.c (pathtrace_match): Update.
* sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* svr4/dummy.h: Likewise.
* sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
2011-11-29 02:48:53 +04:00
# define sys_chroot sys_chdir
2011-10-12 20:40:17 +04:00
# define sys_clock_getres sys_clock_gettime
1999-02-19 03:21:36 +03:00
# define sys_fchdir sys_close
2011-10-12 20:40:17 +04:00
# define sys_fdatasync sys_close
2012-03-11 19:28:03 +04:00
# define sys_fsync sys_close
2012-02-27 17:18:02 +04:00
# define sys_getegid sys_getuid
2012-03-11 19:43:04 +04:00
# define sys_geteuid sys_getuid
2011-10-12 20:40:17 +04:00
# define sys_getgid sys_getuid
2012-02-27 17:18:02 +04:00
# define sys_getresgid sys_getresuid
2013-05-01 19:56:22 +04:00
# define sys_lstat sys_stat
# define sys_lstat64 sys_stat64
2014-12-01 21:24:55 +03:00
# define sys_mkdir sys_chmod
# define sys_mkdirat sys_fchmodat
2011-10-12 20:40:17 +04:00
# define sys_mlock sys_munmap
Remove redundant parsers
* desc.c (sys_dup): Remove.
* file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot,
sys_unlink, sys_symlink, sys_rename): Remove.
* linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* pathtrace.c (pathtrace_match): Update.
* sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* svr4/dummy.h: Likewise.
* sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
2011-11-29 02:48:53 +04:00
# define sys_mq_unlink sys_chdir
2011-10-12 20:40:17 +04:00
# define sys_munlock sys_munmap
2013-05-01 19:56:22 +04:00
# define sys_oldlstat sys_oldstat
Remove redundant parsers
* desc.c (sys_dup): Remove.
* file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot,
sys_unlink, sys_symlink, sys_rename): Remove.
* linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* pathtrace.c (pathtrace_match): Update.
* sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* svr4/dummy.h: Likewise.
* sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
2011-11-29 02:48:53 +04:00
# define sys_pivotroot sys_link
# define sys_rename sys_link
# define sys_rmdir sys_chdir
2012-02-28 19:39:44 +04:00
# define sys_sched_get_priority_max sys_sched_get_priority_min
2012-03-12 01:57:57 +04:00
# define sys_set_robust_list sys_munmap
2012-03-11 19:43:04 +04:00
# define sys_setfsgid sys_setfsuid
# define sys_setgid sys_setuid
# define sys_setregid sys_setreuid
# define sys_setresgid sys_setresuid
2011-10-12 20:40:17 +04:00
# define sys_swapoff sys_chdir
Remove redundant parsers
* desc.c (sys_dup): Remove.
* file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot,
sys_unlink, sys_symlink, sys_rename): Remove.
* linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* pathtrace.c (pathtrace_match): Update.
* sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* svr4/dummy.h: Likewise.
* sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
2011-11-29 02:48:53 +04:00
# define sys_symlink sys_link
Add syscall entries for new linux syscalls
* linux/dummy.h: Add printargs parsers for new syscalls.
* linux/arm/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_sendmmsg, sys_setns
and sys_syncfs.
* linux/i386/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/mips/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
* linux/alpha/syscallent.h: Add entries for sys_clock_adjtime,
sys_name_to_handle_at, sys_open_by_handle_at, sys_setns and sys_syncfs.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/avr32/syscallent.h: Add entry for sys_setns.
* linux/bfin/syscallent.h: Add entries for sys_sendmmsg and sys_setns.
* linux/hppa/syscallent.h: Add entries for sys_clock_adjtime,
fanotify_init, fanotify_mark, sys_name_to_handle_at,
sys_open_by_handle_at, sys_sendmmsg, sys_setns and sys_syncfs.
2011-11-27 03:37:23 +04:00
# define sys_syncfs sys_close
2011-10-12 20:40:17 +04:00
# define sys_umount sys_chdir
Remove redundant parsers
* desc.c (sys_dup): Remove.
* file.c (sys_pivotroot, sys_rmdir, sys_fchdir, sys_chroot, sys_fchroot,
sys_unlink, sys_symlink, sys_rename): Remove.
* linux/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* linux/dummy.h: Add aliases for sys_chroot, sys_dup, sys_pivotroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* pathtrace.c (pathtrace_match): Update.
* sunos4/dummy.h: Add aliases for sys_chroot, sys_dup, sys_fchdir,
sys_fchroot, sys_rename, sys_rmdir, sys_symlink, sys_unlink.
* svr4/dummy.h: Likewise.
* sunos4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
* svr4/syscall.h (sys_chroot, sys_dup, sys_fchdir, sys_fchroot,
sys_rename, sys_rmdir, sys_symlink, sys_unlink): Remove.
2011-11-29 02:48:53 +04:00
# define sys_unlink sys_chdir
2011-10-12 20:40:17 +04:00
# define sys_uselib sys_chdir
2014-05-12 17:43:10 +04:00
# define sys_vfork sys_fork
1999-02-19 03:21:36 +03:00
/* printargs does the right thing */
2011-10-12 20:40:17 +04:00
# define sys_getpgid printargs
1999-02-19 03:21:36 +03:00
# define sys_getpid printargs
# define sys_getppid printargs
2011-10-12 23:03:29 +04:00
# define sys_gettid printargs
2011-10-12 20:40:17 +04:00
# define sys_idle printargs
2011-10-12 23:03:29 +04:00
# define sys_inotify_init printargs
2011-10-12 20:40:17 +04:00
# define sys_munlockall printargs
# define sys_pause printargs
2011-10-12 23:03:29 +04:00
# define sys_rt_sigreturn printargs
2011-10-12 20:40:17 +04:00
# define sys_sched_yield printargs
2012-03-11 19:43:04 +04:00
# define sys_setsid printargs
2011-10-12 23:03:29 +04:00
# define sys_set_tid_address printargs
2012-03-11 19:43:04 +04:00
# define sys_setup printargs
2011-10-12 20:40:17 +04:00
# define sys_sync printargs
# define sys_timer_delete printargs
# define sys_timer_getoverrun printargs
1999-02-19 03:21:36 +03:00
# define sys_vhangup printargs
2012-02-27 17:18:02 +04:00
/* printargs_lu/ld does the right thing */
2012-03-11 19:43:04 +04:00
# define sys_alarm printargs_lu
2012-02-27 17:18:02 +04:00
# define sys_getpgrp printargs_lu
2012-03-11 19:43:04 +04:00
# define sys_getsid printargs_lu
# define sys_nice printargs_ld
2012-02-27 17:18:02 +04:00
# define sys_setpgid printargs_lu
# define sys_setpgrp printargs_lu
1999-02-19 03:21:36 +03:00
/* unimplemented */
2011-10-12 20:40:17 +04:00
# define sys_afs_syscall printargs
# define sys_break printargs
1999-02-19 03:21:36 +03:00
# define sys_ftime printargs
2011-10-12 20:40:17 +04:00
# define sys_get_kernel_syms printargs
# define sys_gtty printargs
1999-02-19 03:21:36 +03:00
# define sys_lock printargs
# define sys_mpx printargs
2011-11-28 19:53:20 +04:00
# define sys_nfsservctl printargs
2011-10-12 20:40:17 +04:00
# define sys_phys printargs
1999-02-19 03:21:36 +03:00
# define sys_profil printargs
2011-10-12 20:40:17 +04:00
# define sys_prof printargs
2011-10-12 23:03:29 +04:00
# define sys_security printargs
2011-10-12 20:40:17 +04:00
# define sys_stty printargs
2011-10-12 23:03:29 +04:00
# define sys_tuxcall printargs
2011-10-12 20:40:17 +04:00
# define sys_ulimit printargs
1999-02-19 03:21:36 +03:00
# define sys_ustat printargs
2011-10-12 23:03:29 +04:00
# define sys_vserver printargs
1999-02-19 03:21:36 +03:00
/* deprecated */
2011-10-12 20:40:17 +04:00
# define sys_bdflush printargs
1999-02-19 03:21:36 +03:00
# define sys_oldolduname printargs
2012-03-11 19:43:04 +04:00
# define sys_olduname printargs
1999-02-19 03:21:36 +03:00
/* no library support */
# ifndef HAVE_SENDMSG
2011-10-12 20:40:17 +04:00
# define sys_recvmsg printargs
2012-03-11 19:43:04 +04:00
# define sys_sendmsg printargs
1999-02-19 03:21:36 +03:00
# endif
2013-03-05 19:50:12 +04:00
/* Who has STREAMS syscalls?
* Linux hasn ' t . Solaris has ( had ? ) .
* Just in case I miss something , retain in for Sparc .
* Note : SYS_get / putpmsg may be defined even though syscalls
* return ENOSYS . Can ' t just check defined ( SYS_getpmsg ) .
*/
# if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_getpmsg)
2011-10-12 20:40:17 +04:00
# define sys_getpmsg printargs
2003-01-24 07:39:46 +03:00
# endif
2013-03-05 19:50:12 +04:00
# if (!defined(SPARC) && !defined(SPARC64)) || !defined(SYS_putpmsg)
2011-10-12 20:40:17 +04:00
# define sys_putpmsg printargs
2003-01-24 07:39:46 +03:00
# endif