summaryrefslogtreecommitdiff
path: root/linux
Commit message (Collapse)AuthorAge
* Enhance setns syscall decodingMasatake YAMATO2014-05-13
| | | | | | | | | | * process.c (sys_setns): New function. Decode the 2nd syscall argument using clone_flags. * linux/syscall.h (sys_setns): New prototype. * linux/dummy.h (sys_setns): Remove. Signed-off-by: Masatake YAMATO <yamato@redhat.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
* mips: fix syscall entries that should have TP flag setDmitry V. Levin2014-05-12
|
* xtensa: fix unshare syscall entryDmitry V. Levin2014-05-12
|
* alpha, hppa, mips n64: fix waitid syscall entryDmitry V. Levin2014-05-12
|
* Add TM flag to shmat and shmdt syscall entriesDmitry V. Levin2014-05-12
|
* Alias sys_vfork to sys_forkDmitry V. Levin2014-05-12
| | | | | | | | | * process.c (sys_vfork): Remove. * linux/syscall.h (sys_vfork): Likewise. * linux/dummy.h (sys_vfork): Alias to sys_fork. * linux/alpha/syscallent.h: Fix vfork entry. * util.c (setbpt): Do not check for sys_vfork. * syscall.c (syscall_fixup_for_fork_exec): Likewise.
* Fix preadv/pwritev offset decodingDmitry V. Levin2014-04-17
| | | | | | | | | | | | | | | | | | | | * util.c (printllval): Add align argument. * defs.h (printllval): Update prototype. (printllval_aligned, printllval_unaligned): New macros. * file.c (sys_readahead, sys_truncate64, sys_ftruncate64, sys_fadvise64, sys_fadvise64_64, sys_sync_file_range, sys_sync_file_range2, sys_fallocate): Replace printllval call with printllval_aligned. * io.c (sys_pread, sys_pwrite): Likewise. (sys_preadv, sys_pwritev): Replace printllval call with printllval_unaligned. * linux/arm/syscallent.h: Set the number of preadv and pwritev arguments to 5. * linux/mips/syscallent-o32.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. Reported-by: Dima Kogan <dima@secretsauce.net>
* mips: enable decoding of set_thread_areaDmitry V. Levin2014-04-09
| | | | | * linux/dummy.h [MIPS]: Do not redirect sys_set_thread_area to printargs. * mem.c [MIPS] (sys_set_thread_area): Define.
* x86_64, x32: enable decoding of modify_ldt, get_thread_area, and set_thread_areaDmitry V. Levin2014-04-09
| | | | | * linux/dummy.h [X86_64 || X32]: Do not redirect sys_modify_ldt, sys_get_thread_area, and sys_set_thread_area to printargs.
* Revert "Add support for Altera's Nios-II softcore architecture"Dmitry V. Levin2014-02-14
| | | | | | | | | | The patch originally submitted by Ezequiel García was OK, but I somehow managed to mangle it so that most of the patch was not applied. According to Ezequiel García, an architecture port based on the generic syscall ABI is in progress. This reverts commit 61e426e87ac81be4b4ff9de581635b4ea585624f.
* Add support for Altera's Nios-II softcore architectureEzequiel Garcia2014-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds strace support for Altera's Nios-II official kernel port as found in git://git.rocketboards.org/linux-socfpga.git Notice that this an out-of-tree kernel architectural port, and uses the legacy (non-generic) system call ABI. In particular, the port doesn't support PTRACE_GETREGSET, so the implementation is based on PTRACE_GETREGS. Given it's mandatory for new architectures to support the generic syscall ABI and PTRACE_GETREGSET, if the nios2 architecure is ever mainlined, the strace support will have to be re-factored accordingly. * linux/nios2/ioctlent.h.in: New file. * linux/nios2/syscallent.h: Likewise. * Makefile.am (EXTRA_DIST): Add linux/nios2/ioctlent.h.in and linux/nios2/syscallent.h. * configure.ac: Add NIOS2 to the list of supported architectures. * defs.h [NIOS2]: Use register reading system. * process.c (struct_user_offsets): Add NIOS2 support. * syscall.c (get_regs, get_scno, get_syscall_args, get_syscall_result, get_error): Likewise. * util.c (change_syscall): Likewise. * mem.c (sys_getpagesize): Define on NIOS2. * system.c [NIOS2] (sys_cacheflush, sys_nios2cmpxchg): New functions. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Acked-by: Mike Frysinger <vapier@gentoo.org>
* Implement add_key, keyctl, and request_key decodingDmitry V. Levin2014-02-05
| | | | | | | | | | * keyctl.c: New file. * linux/keyctl.h: Likewise. * Makefile.am (strace_SOURCES): Add keyctl.c. (EXTRA_DIST): Add linux/keyctl.h. * linux/dummy.h (sys_add_key, sys_keyctl, sys_request_key): Remove. * linux/syscall.h (sys_add_key, sys_keyctl, sys_request_key): New prototypes.
* Implement ioprio_get and ioprio_set decodingDmitry V. Levin2014-02-05
| | | | | | | * ioprio.c: New file. * Makefile.am (strace_SOURCES): Add ioprio.c. * linux/dummy.h (sys_ioprio_get, sys_ioprio_set): Remove. * linux/syscall.h (sys_ioprio_get, sys_ioprio_set): New prototypes.
* Implement finit_module decodingDmitry V. Levin2014-02-05
| | | | | | | * bjm.c (module_init_flags): New xlat structure. (sys_finit_module): New function. * linux/dummy.h (sys_finit_module): Remove. * linux/syscall.h (sys_finit_module): New prototype.
* Cleanup inotify syscalls decodingDmitry V. Levin2014-02-05
| | | | | | | | | | | * linux/inotify.h: New file. * file.c (inotify_modes, inotify_init_flags, sys_inotify_add_watch, sys_inotify_rm_watch, sys_inotify_init1): Move... * inotify.c: ... here. (inotify_modes): Rename to inotify_flags, convert to XLAT form. (inotify_init_flags): Convert to XLAT form. * Makefile.am (strace_SOURCES): Add inotify.c. (EXTRA_DIST): Add linux/inotify.h.
* Enhance reboot decodingDmitry V. Levin2014-02-05
| | | | | | | | | * linux/reboot.h: New file. * system.c (bootflags1, bootflags2, bootflags3, sys_reboot): Move... * reboot.c: ... here. (bootflags2, bootflags3): Update constants. * Makefile.am (strace_SOURCES): Add reboot.c. (EXTRA_DIST): Add linux/reboot.h.
* Implement kexec_load decodingDmitry V. Levin2014-02-05
| | | | | | | | | * kexec.c: New file. * linux/kexec.h: Likewise. * Makefile.am (strace_SOURCES): Add kexec.c. (EXTRA_DIST): Add linux/kexec.h. * linux/dummy.h (sys_kexec_load): Remove. * linux/syscall.h (sys_kexec_load): New prototype.
* Use prepared editions of recently imported linux headersDmitry V. Levin2014-02-05
| | | | | * linux/fanotify.h: Replace with edition prepared with headers_install.sh. * linux/personality.h: Likewise.
* Implement fanotify_init and fanotify_mark decodingDmitry V. Levin2014-02-05
| | | | | | | | | | | | | | * fanotify.c: New file. * linux/fanotify.h: Likewise. * Makefile.am (strace_SOURCES): Add fanotify.c. (EXTRA_DIST): Add linux/fanotify.h. * defs.h (print_dirfd): New prototype. * file.c (print_dirfd): Export. * linux/dummy.h (sys_fanotify_init, sys_fanotify_mark): Remove. * linux/syscall.h (sys_fanotify_init, sys_fanotify_mark): New prototypes. * pathtrace.c (pathtrace_match): Handle sys_fanotify_init and sys_fanotify_mark.
* Convert personality_options to XLAT formDmitry V. Levin2014-02-05
| | | | | | | * linux/personality.h: New file. * Makefile.am (EXTRA_DIST): Add it. * system.c: Include <linux/personality.h>. (personality_options): Update PER_* constants, convert to XLAT form.
* Decode ptp ioctlsStefan Sørensen2014-02-04
| | | | | | | | | | | | * defs.h (ptp_ioctl): New prototype. * ioctl.c (ioctl_decode): Call ptp_ioctl when code is '='. * Makefile.am (strace_SOURCES): Add ptp.c. (EXTRA_DIST): Add linux/ptp_clock.h. * ptp.c: New file. * linux/ptp_clock.h: New file. Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
* Add support for ARC Cores from SynopsysVineet Gupta2013-09-11
| | | | | | | | | | | | | | | | | | | | | | | | | | Take #2 on mainlining strace support for ARC (last one was 4.6 based back in March 2011), see http://sourceforge.net/p/strace/mailman/message/27210168/ The syscall ABI is asm-generic/unistd.h based (so no legacy syscalls), hence very similar to metag port. test/* all seem to work well. * linux/arc/ioctlent.h.in: New file. * linux/arc/syscallent.h: Likewise. * Makefile.am (EXTRA_DIST): Add linux/arc/ioctlent.h.in and linux/arc/syscallent.h. * configure.ac: Add ARC to the list of supported architectures. * defs.h: Add ARC support. * process.c (struct_user_offsets): Likewise. * signal.c (sys_sigreturn): Likewise. * syscall.c (print_pc, get_regset, get_regs, get_scno, get_syscall_args, get_syscall_result, get_error): Likewise. * util.c (change_syscall): Likewise. Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Acked-by: Mike Frysinger <vapier@gentoo.org>
* Add support for decoding sync_file_rangeWilliam Manley2013-09-11
| | | | | | | | | | * file.c (sync_file_range_flags): New xlat structure. (sys_sync_file_range, sys_sync_file_range2): New functions. * linux/syscall.h (sys_sync_file_range, sys_sync_file_range2): New prototypes. * linux/dummy.h (sys_sync_file_range, sys_sync_file_range2): Remove. * linux/mips/syscallent-o32.h: Set the number of sync_file_range arguments to 7.
* fanotify_mark: fix number of args for 32bit archesMike Frysinger2013-09-11
| | | | | | | | | | | | | | | | | | | | | | | | The fanotify_mark func takes a 64bit mask, so 32bit arches have to split it up into two fields. When the syscall was added, it was listed as only having 5 fields total (since that's correct for 64bit systems). * linux/arm/syscallent.h: Set the number of fanotify_mark arguments to 6. * linux/bfin/syscallent.h: Likewise. * linux/hppa/syscallent.h: Likewise. * linux/i386/syscallent.h: Likewise. * linux/m68k/syscallent.h: Likewise. * linux/metag/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sparc/syscallent.h: Likewise. * linux/tile/syscallent1.h: Likewise. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Chris Metcalf <cmetcalf@tilera.com> [for tile]
* ioctlent: add UAPI supportv4.8Dmitry V. Levin2013-06-03
| | | | | | | | | * Makefile.am (IOCTLSORT_INCLUDEDIR): Define. (ioctlsort): Use it. * linux/ioctlent.sh (lookup_ioctls): Look into uapi directory tree. Strip "uapi/" prefix from output path names. * linux/ioctlent.h.in: Regenerate from v3.9 headers. * NEWS: Mention it.
* mips o32: fix syscall tableDmitry V. Levin2013-05-11
| | | | | | | * linux/mips/syscallent-o32.h: Add entries for getpmsg, putpmsg, get_mempolicy, set_mempolicy and vserver. Fix names for umount, umount2, mmap, mmap2, pread64, pwrite64, sigaltstack and fstatat64 syscalls.
* mips n64: fix syscall tableDmitry V. Levin2013-05-10
| | | | | | | * linux/mips/syscallent-n64.h: Add entries for get_mempolicy, set_mempolicy and timerfd syscalls. Fix entry for socket syscall. Fix names for pread64, pwrite64, shmat, rt_sigsuspend, sigaltstack and umount2 syscalls.
* mips n32: fix syscall tableDmitry V. Levin2013-05-10
| | | | | | | | * linux/mips/syscallent-n32.h: Add entries for mbind, get_mempolicy, set_mempolicy and timerfd syscalls. Fix entry for socket syscall. Fix handlers for truncate, ftruncate and getdents64 syscalls. Fix names for pread64, pwrite64, shmat, rt_sigsuspend, sigaltstack, umount2, and getdents64 syscalls.
* sync_file_range: fix number of syscall argumentsDmitry V. Levin2013-05-08
| | | | | | | | | | | | | | | | | | | | | * linux/avr32/syscallent.h: Set the number of sync_file_range arguments to 6. * 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/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/s390/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Change sync_file_range to sync_file_range2, set the number of sync_file_range2 arguments to 6. * linux/tile/syscallent.h: Change sync_file_range to sync_file_range2, set the number of sync_file_range2 arguments to 4. * linux/tile/syscallent1.h: Change sync_file_range to sync_file_range2. update handler. * linux/xtensa/syscallent.h: Likewise.
* Add syscall entries for new linux syscallsDmitry V. Levin2013-05-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux/dummy.h: Add printargs aliases for sys_finit_module, sys_kcmp and sys_sync_file_range2. * linux/alpha/syscallent.h: Add entries for process_vm_readv and process_vm_writev. * linux/bfin/syscallent.h: Likewise. * linux/arm/syscallent.h: Add entries for sync_file_range2, kcmp and finit_module. * linux/hppa/syscallent.h: Add entries for process_vm_readv, process_vm_writev, kcmp and finit_module. * linux/tile/syscallent.h: Likewise. * linux/tile/syscallent1.h: Likewise. * linux/ia64/syscallent.h: Add entry for finit_module. * linux/i386/syscallent.h: Add entries for kcmp and finit_module. * linux/m68k/syscallent.h: Likewise. * linux/metag/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/or1k/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Likewise. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise. * linux/s390/syscallent.h: Add entries for s390_runtime_instr, kcmp and finit_module. * linux/s390x/syscallent.h: Likewise. * linux/sparc/syscallent.h: Add entries for kern_features, kcmp and finit_module.
* Move subcall decoding configuration out of the common codeDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | * Makefile.am (EXTRA_DIST): Add linux/subcall.h. * linux/syscall.h (SYS_socket_subcall): Remove. (SYS_socket_nsubcalls, SYS_ipc_subcall, SYS_ipc_nsubcalls): Move to ... * linux/subcall.h: ... new file. * linux/arm/syscallent.h: Define SYS_socket_subcall, include subcall.h. * linux/i386/syscallent.h: Likewise. * linux/m68k/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. Suggested by Mike Frysinger and Chris Metcalf.
* sparc: remove some unused declarations and macrosDmitry V. Levin2013-05-07
| | | | | | | | * linux/syscall.h [SPARC || SPARC64] (sys_msgsys, sys_semsys, sys_shmsys): Remove declarations. [SPARC || SPARC64] (SYS_semsys_subcall, SYS_semsys_nsubcalls, SYS_msgsys_subcall, SYS_msgsys_nsubcalls, SYS_shmsys_subcall, SYS_shmsys_nsubcalls): Remove macros.
* metag: rename llseek syscall to _llseekJames Hogan2013-05-07
| | | | | | | | | The raw llseek syscall is called _llseek from userland, so fix the naming of it for metag to allow the stat test to pass. * linux/metag/syscallent.h: Rename llseek syscall to _llseek. Signed-off-by: James Hogan <james.hogan@imgtec.com>
* metag: disable socket and ipc subcall supportJames Hogan2013-05-07
| | | | | | | | | | The metag architecture also uses dedicated syscalls and doesn't need to multiplex ipc and socket subcalls. * linux/syscall.h [METAG]: Do not define SYS_socket_subcall and SYS_ipc_subcall. Signed-off-by: James Hogan <james.hogan@imgtec.com>
* pread, pwrite: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | The number of pread and pwrite arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of pread and pwrite arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Change the number of pread and pwrite arguments to 5.
* preadv, pwritev: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | | | | The number of preadv and pwritev arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of preadv and pwritev arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/powerpc/syscallent.h: Change the number of preadv and pwritev arguments to 6. * linux/sh/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Likewise.
* ftruncate64, truncate64: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | The number of ftruncate64/truncate64 arguments depends on architecture and personality. For 64bit and ilp32 it equals to 2, for unaligned 32bit it equals to 3, and for aligned 32bit it equals to 4. * linux/or1k/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 3. * linux/sh/syscallent.h: Likewise. * linux/sh64/syscallent.h: Change ftruncate64 and truncate64 handlers. * linux/sparc/syscallent.h: Change ftruncate64 handler, change the number of its arguments to 3. * linux/xtensa/syscallent.h: Change the number of ftruncate64 and truncate64 arguments to 4.
* fallocate: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | The number of fallocate arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for 32bit it equals to 6. * linux/aarch64/syscallent1.h: Change the number of fallocate arguments to 4. * linux/alpha/syscallent.h: Likewise. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/microblaze/syscallent.h: Set fallocate handler and flags.
* fadvise64, fadvise64_64: fix handlers and number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The number of fadvise64 arguments depends on architecture and personality. For 64bit and ilp32 it equals to 4, for unaligned 32bit it equals to 5, and for aligned 32bit it equals to 6. The number of fadvise64_64 arguments is 4 for 64bit and ilp32, for unaligned 32bit and most of aligned 32bit it equals to 6, and for mips o32 it equals to 7. * linux/alpha/syscallent.h: Set fadvise64 handler. * linux/s390/syscallent.h: Likewise. * linux/hppa/syscallent.h: Set fadvise64_64 handler, change the number of syscall arguments to 6. * linux/ia64/syscallent.h: Change the number of fadvise64 arguments to 4. * linux/mips/syscallent-n32.h: Likewise. * linux/tile/syscallent1.h: Change the number of fadvise64 arguments to 5. * linux/mips/syscallent-o32.h: Change the number of fadvise64_64 arguments to 7. * linux/s390x/syscallent.h: Change fadvise64_64 handler. Set fadvise64 handler. Change numbers of fadvise64 and fadvise64_64 arguments to 4. * linux/sh64/syscallent.h: Change fadvise64_64 handler. Change numbers of fadvise64 and fadvise64_64 arguments to 4. * linux/sparc/syscallent.h: Set fadvise64 and fadvise64_64 handlers, change numbers of their arguments to 5 and 6. * linux/x86_64/syscallent.h: Change fadvise64 handler.
* mips: split syscallent.hDmitry V. Levin2013-05-07
| | | | | | | | | | | | linux/mips/syscallent.h consisted of several parts that had little in common. Split them into separate files to ease maintenance. * linux/mips/syscallent-compat.h: New file. * linux/mips/syscallent-n32.h: Likewise. * linux/mips/syscallent-n64.h: Likewise. * linux/mips/syscallent-o32.h: Likewise. * linux/mips/syscallent.h: Include them. * Makefile.am (EXTRA_DIST): Add them.
* readahead: fix number of syscall argumentsDmitry V. Levin2013-05-07
| | | | | | | | | | | | | | | | | | The number of readahead arguments depends on architecture and personality. For 64bit and ilp32 it equals to 3, for unaligned 32bit it equals to 4, and for aligned 32bit it equals to 5. * linux/aarch64/syscallent1.h: Set number of readahead arguments to 3. * linux/alpha/syscallent.h: Likewise. * linux/ia64/syscallent.h: Likewise. * linux/s390x/syscallent.h: Likewise. * linux/sh64/syscallent.h: Likewise. * linux/x32/syscallent.h: Likewise. * linux/x86_64/syscallent.h: Likewise. * linux/or1k/syscallent.h: Set number of readahead arguments to 4. * linux/sh/syscallent.h: Likewise. * linux/tile/syscallent.h: Likewise. * linux/xtensa/syscallent.h: Set number of readahead arguments to 5.
* linux/syscall.h: make subcall decoding configuration more readableDmitry V. Levin2013-05-06
| | | | | | * linux/syscall.h: Inverse and sort the subcall ifdef, add a comment why subcall decoding support is not enabled on some architectures.
* xtensa: disable socket and ipc subcall supportChris Zankel2013-05-06
| | | | | | | | | | The Xtensa architecture also uses dedicated syscalls and doesn't need to multiplex ipc and socket subcalls. * linux/syscall.h [XTENSA]: Do not define SYS_socket_subcall and SYS_ipc_subcall. Signed-off-by: Chris Zankel <chris@zankel.net>
* Fix syscall flagsDmitry V. Levin2013-05-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * linux/aarch64/syscallent1.h: Fix syscall flags for send. * linux/alpha/syscallent.h: Fix syscall flags for fchdir, getcwd, oldumount, sigaltstack, umount, uselib, and utimes. * linux/arm/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, fsync, getdents, getdents64, ioctl, oldfstat, oldselect, open, pipe, poll, pread, pwrite, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/avr32/syscallent.h: Fix syscall flags for inotify_init and unshare. * linux/bfin/syscallent.h: Fix syscall flags for pread64 and pwrite64. * linux/hppa/syscallent.h: Fix syscall flags for fchdir, flistxattr, getcwd, pause, signal, umount2, uselib, utime, and vfork. * linux/ia64/syscallent.h: Fix syscall flags for creat, fchdir, lstat, umount, uselib, and utimes. Fix syscall handlers for fgetxattr, flistxattr, fremovexattr, and fsetxattr. * linux/m68k/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/metag/syscallent.h: Fix syscall flags for fanotify_init, prlimit64, process_vm_readv, process_vm_writev, and quotactl. * linux/microblaze/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fchown32, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, ioctl, oldfstat, oldselect, open, perf_event_open, pipe, poll, pread64, pwrite64, read, readahead, readdir, readv, select, socketcall, write, and writev. * linux/mips/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, getdents, getdents64, getxattr, ioctl, lgetxattr, listxattr, llistxattr, lremovexattr, lsetxattr, oldfstat, open, pipe, pivot_root, poll, pread, pwrite, read, readahead, readv, removexattr, select, setxattr, socketcall, statfs, write, and writev. * linux/or1k/syscallent.h: Fix syscall flags for fchdir and quotactl. * linux/powerpc/syscallent.h: Fix syscall flags for fchdir. * linux/sh/syscallent.h: Fix syscall flags for getcwd. * linux/sparc/syscallent.h: Fix syscall flags for getresgid, getresuid, setresgid, setresgid32, and setresuid. * linux/xtensa/syscallent.h: Fix syscall flags for close, creat, dup, dup2, fallocate, fchdir, fchmod, fchown, fcntl, fcntl64, fdatasync, flock, fsetxattr, fstatfs, fstatfs64, fsync, getdents, getdents64, ioctl, open, pipe, pivot_root, poll, pread64, pwrite64, read, readahead, readv, rt_sigreturn, select, setfsgid, setfsuid, setuid, swapoff, times, utime, write, and writev.
* tile: disable socket and ipc subcall supportChris Metcalf2013-05-06
| | | | | | | | | | The tile arch just has the dedicated syscalls, so disable the logic for parsing subcalls. * linux/syscall.h [TILE]: Do not define SYS_socket_subcall and SYS_ipc_subcall. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
* Blackfin: disable socketcall and ipc subcall supportMike Frysinger2013-05-06
| | | | | | | | The Blackfin arch does not have a socketcall or ipc subcall (it has dedicated syscalls broken out), so disable the logic for it. * linux/syscall.h [BFIN]: Do not define SYS_socket_subcall and SYS_ipc_subcall.
* s390: fix # of args truncate64/ftruncate64 takesMike Frysinger2013-05-05
| | | | * linux/s390/syscallent.h: Change nargs to 3 for truncate64/ftruncate64.
* Decode mtd/ubi ioctlsMike Frysinger2013-05-02
| | | | | | | | | | | | | | | | | Been playing with UBI of late and it'd help if I could see what it was doing. Not entirely sure about the decoding of UBI_IOCVOLUP -- it takes a pointer to a 64bit value, not a strict. * util.c (MAX, MIN): Move to ... * defs.h (MAX, MIN): ... here. (CLAMP): Define. (ubi_ioctl): New prototype. * ioctl.c (ioctl_decode): Call ubi_ioctl when code is 'o' or 'O'. * mtd.c: Include ubi user API header. (ubi_volume_types): New enum decode. (ubi_volume_props): Likewise. (ubi_ioctl): Define. * linux/ubi-user.h: Import from linux 3.8.
* ia64: fix compilation warnings introduced by commit v4.7-174-g44f0ed1Dmitry V. Levin2013-05-02
| | | | | | | * linux/ia64/syscallent.h: Undefine sys_oldlstat, sys_lstat and sys_lstat64 before redefining them to printargs. Reported-by: Mike Frysinger <vapier@gentoo.org>
* x32: fix decoding of i386 truncate and ftruncate syscallsDmitry V. Levin2013-05-02
| | | | * linux/x32/syscallent1.h: Remove sys_*truncate64 redirections.