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 .
*
* $ Id $
*/
/* still unfinished */
2011-10-12 23:03:29 +04:00
# define sys_add_key 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_clock_adjtime printargs
2011-10-12 23:03:29 +04:00
# define sys_get_robust_list printargs
# define sys_fanotify_init printargs
# define sys_fanotify_mark printargs
1999-02-19 03:21:36 +03:00
# define sys_ioperm printargs
# define sys_iopl printargs
2011-10-12 23:03:29 +04:00
# define sys_ioprio_get printargs
# define sys_ioprio_set printargs
# define sys_keyctl printargs
# define sys_kexec_load printargs
# define sys_lookup_dcookie printargs
# define sys_migrate_pages 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
2011-10-12 23:03:29 +04:00
# define sys_perf_event_open printargs
# define sys_prlimit64 printargs
# define sys_request_key printargs
# define sys_rt_tgsigqueueinfo printargs
2011-10-12 20:40:17 +04:00
# define sys_sched_rr_get_interval 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_sendmmsg printargs
# define sys_setns printargs
2011-10-12 23:03:29 +04:00
# define sys_set_robust_list printargs
# define sys_sync_file_range printargs
1999-02-19 03:21:36 +03:00
# define sys_sysfs printargs
2011-10-12 20:40:17 +04:00
# define sys_syslog printargs
2011-10-12 23:03:29 +04:00
# define sys_vm86 printargs
2011-10-12 20:40:17 +04:00
# define sys_vm86old printargs
1999-02-19 03:21:36 +03:00
2002-12-16 02:58:21 +03:00
/* machine-specific */
# ifndef I386
# define sys_modify_ldt printargs
2010-05-29 00:28:51 +04:00
# ifndef M68K
2011-10-12 20:40:17 +04:00
# define sys_get_thread_area printargs
# define sys_set_thread_area printargs
2002-12-16 02:58:21 +03: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
2007-07-05 23:28:35 +04:00
# define sys_delete_module sys_open
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_dup sys_close
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
2011-01-18 20:36:20 +03:00
# define sys_geteuid sys_getuid
2012-02-27 17:18:02 +04:00
# define sys_getegid 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
# define sys_setgid sys_setuid
# define sys_setregid sys_setreuid
# define sys_setresgid sys_setresuid
# define sys_setfsgid sys_setfsuid
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
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
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
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
2012-02-27 17:18:02 +04:00
# define sys_setsid 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
# define sys_setup printargs
2011-10-12 23:03:29 +04:00
# define sys_set_tid_address 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 */
# define sys_getsid printargs_lu
# define sys_getpgrp printargs_lu
# define sys_setpgid printargs_lu
# define sys_setpgrp printargs_lu
# define sys_alarm printargs_lu
# define sys_nice printargs_ld
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_olduname printargs
# define sys_oldolduname printargs
/* no library support */
# ifndef HAVE_SENDMSG
2011-10-12 20:40:17 +04:00
# define sys_sendmsg printargs
# define sys_recvmsg printargs
1999-02-19 03:21:36 +03:00
# endif
2003-01-24 07:39:46 +03:00
# ifndef SYS_getpmsg
2011-10-12 20:40:17 +04:00
# define sys_getpmsg printargs
2003-01-24 07:39:46 +03:00
# endif
# ifndef SYS_putpmsg
2011-10-12 20:40:17 +04:00
# define sys_putpmsg printargs
2003-01-24 07:39:46 +03:00
# endif
2003-06-28 01:20:09 +04:00
# ifndef HAVE_STRUCT___OLD_KERNEL_STAT
2011-10-12 20:40:17 +04:00
# define sys_oldstat printargs
# define sys_oldfstat printargs
# define sys_oldlstat printargs
2003-06-28 01:20:09 +04:00
# endif