summaryrefslogtreecommitdiff
path: root/linux
Commit message (Collapse)AuthorAge
...
* Implement get_robust_list syscall decoderDmitry V. Levin2012-03-11
| | | | | | * linux/dummy.h (sys_get_robust_list): Remove. * linux/syscall.h (sys_get_robust_list): New prototype. * process.c (sys_get_robust_list): New function.
* Define sys_set_robust_list as an alias to sys_munmapDmitry V. Levin2012-03-11
| | | | * linux/dummy.h (sys_set_robust_list): Redefine to sys_munmap.
* Implement clock_adjtime syscall decoderDmitry V. Levin2012-03-11
| | | | | | | | * linux/dummy.h (sys_clock_adjtime): Remove. * linux/syscall.h (sys_clock_adjtime): New prototype. * time.c (do_adjtimex): New function, based on sys_adjtimex. (sys_adjtimex): Use it. (sys_clock_adjtime): New function.
* Define sys_setns as an alias to sys_inotify_rm_watchDmitry V. Levin2012-03-11
| | | | * linux/dummy.h (sys_setns): Redefine to sys_inotify_rm_watch.
* Sort definitions of dummy parsers. No code changesDmitry V. Levin2012-03-11
| | | | * linux/dummy.h: Sort definitions of parsers implemented as aliases.
* Alias sys_fsync to sys_closeDmitry V. Levin2012-03-11
| | | | | | | | | * file.c (sys_fsync): Remove. * linux/syscall.h (sys_fsync): Likewise. * linux/dummy.h (sys_fsync): Alias to sys_close. * linux/m68k/syscallent.h: Add TD flag to fsync entry. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise.
* Update ioctl entriesDmitry V. Levin2012-03-10
| | | | | * linux/ioctlent.h.in: Regenerate from v3.3 headers. * linux/i386/ioctlent.h.in: Likewise.
* Add syscall entries for new linux syscallsDmitry V. Levin2012-03-10
| | | | | | | | | | | | | | | | | | | | * linux/i386/syscallent.h: Update process_vm_writev handler. * linux/powerpc/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/alpha/syscallent.h: Add entries for accept4 and sendmmsg. * linux/arm/syscallent.h: Add entries for process_vm_readv and process_vm_writev. * linux/m68k/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/ia64/syscallent.h: Add entries for process_vm_readv, process_vm_writev and accept4. * linux/microblaze/syscallent.h: Add entries for sendmmsg, process_vm_readv and process_vm_writev.
* Implement process_vm_writev decoderDmitry V. Levin2012-03-10
| | | | | * process.c (sys_process_vm_writev): New function. * linux/syscall.h (sys_process_vm_writev): New prototype.
* swapon: decode swap flagsDmitry V. Levin2012-03-09
| | | | | | | | * file.c: Include <sys/swap.h>. (swap_flags): New xlat structure. (sys_swapon): New function. * linux/dummy.h (sys_swapon): Remove. * linux/syscall.h (sys_swapon): New declaration.
* Remove stray sys_swapon() declarationDenys Vlasenko2012-02-28
| | | | | | | | | | * linux/syscall.h: Remove stray sys_swapon() declaration. * linux/mips/syscallent.h: Include dummy.h with correct relative path. * linux/dummy.h: Tweak one place where spaces are used instead of tabs. * linux/dummy_check.sh: New script. It helps in finding stray syscall handler declarations. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Correct syscall entries for t[g]killDenys Vlasenko2012-02-27
| | | | | | | | | | | * linux/hppa/syscallent.h: Make tgkill use sys_tgkill, not printargs. * linux/sh/syscallent.h: Change tkill type TD -> TS. * linux/sh64/syscallent.h: Likewise. * linux/mips/syscallent.h: Change tkill type 0 -> TS. * linux/x86_64/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Alias a few more syscall printing functionsDenys Vlasenko2012-02-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | text data bss dec hex filename 237384 672 19044 257100 3ec4c strace.before 236448 672 19044 256164 3e8a4 strace * defs.h: Declare new functions printargs_lu(), printargs_ld() which simply print syscall all args as unsigned or signed longs. * desc.c (sys_epoll_create): Call printargs_ld() instead of open-coding it. * linux/syscall.h: Remove declarations of the following functions: sys_alarm, sys_getresgid, sys_getsid, sys_nice, sys_setgid, sys_setpgid, sys_setpgrp, sys_setregid, sys_setresgid. * process.c (sys_setgid): Delete this function: now aliased to sys_setuid(). (sys_getresgid): Delete this function: now aliased to sys_getresuid(). (sys_setregid): Delete this function: now aliased to sys_setreuid(). (sys_setresgid): Delete this function: now aliased to sys_setresuid(). (sys_setpgrp): Delete this function: now aliased to printargs_lu(). (sys_getsid): Likewise. (sys_setpgid): Likewise. (sys_alarm): Likewise. (sys_getpgrp): Delete this function: was unused - was already shadowed by a define in linux/dummy.h. (sys_setsid): Likewise. (sys_getpgid): Likewise. * resource.c (sys_nice): Delete this function: now aliased to printargs_ld(). * linux/dummy.h: Define new aliases (see above for the list). * syscall.c (printargs_lu): New function. (printargs_ld): New function. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Compress blank linesDmitry V. Levin2012-02-25
| | | | | | Suppress repeated empty lines left after automated code removal. This change was made by filtering every source code file through "cat -s".
* Fix defined(FOO) styleDenys Vlasenko2012-02-25
| | | | | | | | | | | * file.c: Consistently use defined(FOO) instead of defined (FOO). * mem.c: Likewise. * net.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * linux/mips/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Manual removal of non-Linux source, documentation, etc.Denys Vlasenko2012-02-25
| | | | | | | | | | | | | | | | Remove non-Linux source directories: freebsd/, svr4/, sunos4/, svr4/. Remove README-freebsd, README-sunos4, README-svr4, m4/procfs.m4. linux/sparc/{errnoent1,ioctlent1,signalent1}.h used to point to svr4/ files - replace their contents with copies of used (and now deleted) files. Make linux/sparc64/{errnoent1,ioctlent1,signalent1}.h include these files instead of svr4/* ones. Makefile.am: remove references to deleted files. configure.ac: Remove a few tests which make no sense on Linux. Man page: remove non-Linux quirks information. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Remove initialization of native_scno fieldDmitry V. Levin2012-02-20
| | | | | | | | | | * linux/i386/syscallent.h: Remove native_scno initialization for clone, fork and vfork. * linux/ia64/syscallent.h (sys_fork, sys_vfork): Remove redirections to printargs. * linux/syscall.h [IA64]: Do not define SYS_fork and SYS_vfork. * util.c (printcall) [IA64]: Likewise. (setbpt): Use sys_func to check for clone, fork and vfork syscalls.
* Do not use SYS_ipc and SYS_socketcallDmitry V. Levin2012-02-20
| | | | | | | | | | | | | | | | * linux/dummy.h (sys_ipc, sys_socketcall): Remove redirections to printargs. * linux/ia64/syscallent.h: Likewise. * linux/i386/syscallent.h: Remove native_scno initialization for "ipc" and "socketcall". * linux/syscall.h (sys_ipc, sys_socketcall): New prototypes. (SYS_ipc, SYS_socketcall): Remove no longer used constants. [IA64]: Remove undefining of ipc and socket SYS_* constants. [SPARC || SPARC64]: Remove unused ipc SYS_* constants. * ipc.c (sys_ipc): New function. * sock.c (sys_socketcall): Likewise. * syscall.c (trace_syscall_entering): Use sys_func to check for ipc and socket subcalls.
* Remove initialization of native_scno field for most of syscallsDmitry V. Levin2012-02-20
| | | | | | | | | | | | | | | | The native_scno field is not so much used in the code than before. In many cases sys_func is checked instead, and for most of syscall entries there is no need to initialize native_scno. * linux/i386/syscallent.h: Remove native_scno initialization for _exit, read, write, waitpid, execve, wait4, sysfs, readv, writev, pread64, pwrite64, exit_group, waitid, send, recv, sendto and recvfrom syscall entries. * linux/syscall.h: Do not define no longer used SYS_waitid and SYS_sub_* constants. [IA64]: Do not define SYS_waitpid and SYS32_* constants. * defs.h: Do not define no longer used __NR_exit_group constant. * strace.c [USE_PROCFS] (proc_open): Use sys_func to check for execve.
* Remove unused sys_pread64 and sys_pwrite64 parsers on LinuxDmitry V. Levin2012-02-04
| | | | | | | | | | | | * io.c [HAVE_LONG_LONG_OFF_T]: Remove sys_pread64 and sys_pwrite64 aliases. (sys_pread64, sys_pwrite64): Define these functions only on [SVR4 && _LFS64_LARGEFILE] platform. * linux/mips/syscallent.h: Use sys_pread and sys_pwrite to handle appropriate syscalls. * linux/syscall.h (sys_pread64, sys_pwrite64): Remove. * syscall.c (dumpio): Check sys_pread64 and sys_pwrite64 only on [SVR4 && _LFS64_LARGEFILE] platform.
* Use process_vm_readv instead of PTRACE_PEEKDATA to read data blocksDenys Vlasenko2012-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, we use PTRACE_PEEKDATA to read things like filenames and data passed by I/O syscalls. PTRACE_PEEKDATA gets one word per syscall. This is VERY expensive. For example, in order to print fstat syscall, we need to perform more than twenty trips into kernel to fetch one struct stat! Kernel 3.2 got a new syscall, process_vm_readv(), which can be used to copy data blocks out of process' address space. This change uses it in umoven() and umovestr() functions if possible, with fallback to old method if process_vm_readv() fails. If it returns ENOSYS, we don't try to use it anymore, eliminating overhead of trying it on older kernels. Result of "time strace -oLOG ls -l /usr/lib >/dev/null": before patch: 0.372s After patch: 0.262s * util.c (process_vm_readv): Wrapper to call process_vm_readv syscall. (umoven): Use process_vm_readv for block reads of tracee memory. (umovestr): Likewise. * linux/syscall.h: Declare new function sys_process_vm_readv. * process.c (sys_process_vm_readv): Decoder for new syscall. * linux/i386/syscallent.h: Add process_vm_readv, process_vm_writev syscalls. * linux/x86_64/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix sigreturn arg count from 1 to 0 on all architectures.Denys Vlasenko2012-01-10
| | | | | | | | | | | | | | | | | * linux/alpha/syscallent.h: Change [rt_]sigreturn's arg count to 0. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/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/tile/syscallent.h: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* linux/syscall.h: Remove redundant function declarationsDmitry V. Levin2011-11-28
| | | | | Remove 51 function declarations aliased to other declarations in linux/dummy.h file.
* linux/syscall.h: Sort function declarationsDmitry V. Levin2011-11-28
|
* linux/syscall.h: Place one function declaration per lineDmitry V. Levin2011-11-28
|
* Remove redundant parsersDmitry V. Levin2011-11-28
| | | | | | | | | | | | | | | | | | * 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.
* Reflect the fact that nfsservctl syscall was removed from linux kernelsDmitry V. Levin2011-11-28
| | | | linux/dummy.h: Move nfsservctl to "unimplemented" section.
* x86_64: add getcpu syscall entryDmitry V. Levin2011-11-27
| | | | * linux/x86_64/syscallent.h: Add syscall entry for getcpu.
* Add syscall entries for new linux syscallsDmitry V. Levin2011-11-26
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Fix prctl syscall entriesDmitry V. Levin2011-11-26
| | | | | * linux/mips/syscallent.h: Fix prctl handler. * linux/tile/syscallent.h: Likewise.
* arm: fix io_* syscall entriesDmitry V. Levin2011-11-26
| | | | | * linux/arm/syscallent.h: Fix handlers for io_setup, io_destroy, io_getevents, io_submit and io_cancel.
* Fix mincore syscall entriesDmitry V. Levin2011-11-26
| | | | | | | | * linux/arm/syscallent.h: Fix mincore handler. * linux/avr32/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise.
* Fix sendmsg syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | | | * linux/arm/syscallent.h: Fix number of sendmsg arguments. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise.
* Fix epoll_wait syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | * linux/arm/syscallent.h: Fix epoll_wait flags and handler. * linux/m68k/syscallent.h: Fix epoll_wait flags. * linux/microblaze/syscallent.h: Fix number of epoll_wait arguments. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise.
* Fix epoll_ctl syscall entriesDmitry V. Levin2011-11-25
| | | | | | * linux/arm/syscallent.h: Fix epoll_ctl flags and handler. * linux/m68k/syscallent.h: Fix epoll_ctl flags. * linux/x86_64/syscallent.h: Fix number of epoll_ctl arguments.
* arm: fix epoll_create syscall entryDmitry V. Levin2011-11-25
| | | | * linux/arm/syscallent.h: Fix epoll_create handler.
* Fix mlockall syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | * linux/arm/syscallent.h: Fix number of mlockall arguments. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise.
* Fix epoll_pwait syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | | | | | * linux/alpha/syscallent.h: Fix number of epoll_pwait arguments. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise.
* Fix reboot syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | | | | | | * linux/alpha/syscallent.h: Fix number of reboot arguments. * linux/arm/syscallent.h: Likewise. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise.
* Fix swapon syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | | | | | | * linux/arm/syscallent.h: Fix number of swapon arguments. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/alpha/syscallent.h: Fix number of swapon arguments, add TF flag. * linux/hppa/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise.
* Fix sgetmask and ssetmask syscall entriesDmitry V. Levin2011-11-25
| | | | | | | * linux/hppa/syscallent.h: Fix sgetmask and ssetmask entries. * linux/powerpc/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise.
* Rename siggetmask to sgetmask and sigsetmask to ssetmaskDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | * linux/arm/syscallent.h: Rename siggetmask to sgetmask and sigsetmask to ssetmask. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/ia64/syscallent.h: Rename sys_sgetmask to sys_siggetmask, sys_ssetmask to sys_sigsetmask.
* Add TRACE_IPC flag to sys_ipc syscall entriesDmitry V. Levin2011-11-25
| | | | | | | | | | | | | | | | * linux/arm/syscallent.h: Add TI flag to sys_ipc entry. * linux/avr32/syscallent.h: Likewise. * linux/bfin/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise.
* Remove useless and obsolete "#if DONE" sections. No code changesDmitry V. Levin2011-10-14
| | | | | | | | * linux/dummy.h: Remove "#if DONE" section. * linux/sparc/dummy2.h: Likewise. * linux/sparc64/dummy2.h: Likewise. * sunos4/dummy.h: Likewise. * svr4/dummy.h: Likewise.
* Add names for dummy parsers. No code changesDmitry V. Levin2011-10-14
| | | | | | * linux/dummy.h: Add aliases to printargs() for those of dummy parsers that had no own names before. * linux/*/syscallent.h: Use these new names instead of printargs.
* Sort definitions of dummy parsers. No code changesDmitry V. Levin2011-10-14
| | | | | * linux/dummy.h: Sort definitions of parsers implemented as aliases to printargs().
* Implement decoding of splice, tee and vmsplice(2) syscallsDmitry V. Levin2011-10-11
| | | | | | | | | * io.c (print_loff_t): New function. (sys_sendfile64): Use it. (splice_flags): New xlat structure. (sys_tee, sys_splice, sys_vmsplice): New functions. * linux/syscall.h (sys_tee, sys_splice, sys_vmsplice): Declare them. * linux/*/syscallent.h: Use them.
* Define MAX_ARGS to 6 for all Linux archesDenys Vlasenko2011-08-23
| | | | | | | | | | * defs.h: Define MAX_ARGS to 6 for all Linux arches. * linux/ia64/syscallent.h: Change all 8-argument printargs to MA (MAX_ARGS). linux/mips/syscallent.h: Change all two 7-argument printargs to MA (MAX_ARGS). Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Stop using nargs == -1 in syscallent tablesDenys Vlasenko2011-08-23
| | | | | | | | | | | | | | | | | | | | | | | Usage -1 as argument count in syscallent tables necessitates the check for it, a-la: if (sysent[tcp->scno].nargs != -1) tcp->u_nargs = sysent[tcp->scno].nargs; else tcp->u_nargs = MAX_ARGS; which is stupid: we waste cycles checking something which is constant and known at compile time. * defs.h: Make struct sysent::nargs unsigned. * freebsd/i386/syscallent.h: Replace nargs of -1 with MA. * linux/s390/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * svr4/syscallent.h: Likewise. * freebsd/syscalls.pl: Likewise in generator script. * syscallent.sh: Likewise in generator script. * syscall.c: Add define MA MAX_ARGS / undef MA around includes of syscallent[N].h. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Correct sys_sendfile[64] type and nargsDenys Vlasenko2011-08-23
| | | | | | | | | | | | * freebsd/i386/syscallent.h: Correct sys_sendfile nargs 7->8 * linux/mips/syscallent.h: Correct sys_sendfile64 nargs 5->4 * linux/sh/syscallent.h: Correct sys_sendfile64 nargs 5->4 * linux/sh64/syscallent.h: Correct sys_sendfile64 nargs 5->4 * linux/m68k/syscallent.h: Correct sys_sendfile64 type TF->TD|TN * linux/microblaze/syscallent.h: Correct sys_sendfile64 type TF->TD|TN * linux/tile/syscallent.h: Correct sys_sendfile and sys_sendfile64 type TD->TD|TN Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>