Mike Frysinger
f72418c876
ioctlsort: zero pad ioctl codes to 4 places
...
Zero padding the ioctl number will allow simple sorting via shell scripts.
* linux/ioctlsort.c (main): Output ioctl codes zero padded.
* linux/ioctlent.h: Regenerated.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-22 10:23:11 +00:00
7bab9fcc44
Add TRACE_DESC|TRACE_FILE flags to fanotify_* sysentries
...
* linux/*/syscallent.h: Add TD flag to fanotify_init. Add TD|TF flags
to fanotify_mark.
2011-02-20 20:24:52 +00:00
2bc744d7c7
Fix flags of fallocate sysentries
...
* linux/*/syscallent.h: Fix sys_fallocate flags.
2011-02-20 20:17:00 +00:00
b9839ef129
Add TRACE_DESC flag to epoll_create* sysentries
...
* linux/*/syscallent.h: Add TD flag to sys_epoll_create and
sys_epoll_create1.
2011-02-20 19:58:09 +00:00
1e43961de5
Add TRACE_DESC flag to fgetxattr, flistxattr, and fremovexattr sysentries
...
* linux/*/syscallent.h: Add TD flag to sys_fgetxattr, sys_flistxattr,
and fremovexattr.
2011-02-20 19:50:28 +00:00
612e0920c5
Add TRACE_FILE flag to swapoff sysentries
...
* linux/*/syscallent.h: Add TF flag to sys_swapoff.
2011-02-20 19:14:10 +00:00
fdbe3c513a
Add TRACE_DESC flag to fadvise64* sysentries
...
* linux/*/syscallent.h: Add TD flag to sys_fadvise64 and
sys_fadvise64_64.
2011-02-20 15:23:22 +00:00
bde8033605
Add TRACE_DESC flag to mmap, mmap2, and old_mmap sysentries
...
* linux/*/syscallent.h: Add TD flag to sys_mmap and sys_old_mmap.
2011-02-20 15:10:32 +00:00
b2eaa8d7ed
Do not initialize native_scno on platforms with only one personality
...
* linux/bfin/syscallent.h: Remove redundant native_scno initialization.
* linux/m68k/syscallent.h: Likewise.
* linux/microblaze/syscallent.h: Likewise.
2011-02-20 13:25:04 +00:00
e51a87c0dc
Add LOOP_* ioctls defined in linux/loop.h
...
* linux/ioctlent.sh: Add LOOP_* ioctls (0x4C..) defined in linux/loop.h
header file.
* linux/ioctlent.h: Regenerated.
Reported by Mike Frysinger.
2011-02-20 12:25:12 +00:00
Mike Frysinger
330a895bbd
linux/sparc: move to common syscall.h
...
Rather than constantly deal with the sparc/syscall.h going stale, merge
the few sparc-specific pieces into the linux/syscall.h header.
* linux/syscall.h: Add sparc-specific pieces from sparc/syscall.h.
* Makefile.am (EXTRA_DIST): Remove linux/sparc/syscall.h and
linux/sparc64/syscall.h.
* linux/sparc/syscall.h, linux/sparc64/syscall.h: Deleted.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-19 21:40:20 +00:00
Mike Frysinger
e44a4a262a
sparc: add new funcs to syscall.h
...
Sync missing defs from the common syscall.h here.
* linux/sparc/syscall.h: Add sys_setfsuid, sys_pread64, and
sys_pwrite64 prototypes.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-19 20:42:25 +00:00
Mike Frysinger
71a78bc739
sparc: punt unused syscall.h.2
...
I can't find any mention of this header actually being used.
Seems to be a really old copy of the common syscall.h.
* Makefile.am (EXTRA_DIST): Remove linux/sparc/syscall.h.2.
* linux/sparc/syscall.h.2: Deleted.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-19 20:31:49 +00:00
50a218d4ac
Fix decoding of get[ug]id, gete[ug]id and setfs[ug]id return values
...
* defs.h (SYSCALL_NEVER_FAILS): New syscall flag.
* linux/dummy.h: Change redirection for sys_get[ug]id, sys_gete[ug]id
and setfs[ug]id.
* linux/*/syscallent.h: Set SYSCALL_NEVER_FAILS flag for get[ug]id,
gete[ug]id and setfs[ug]id syscalls.
* process.c [LINUX] (sys_getuid, sys_setfsuid): New functions.
* syscall.c (NF): New shorthand macro for use in syscallent.h files.
(get_error): Check SYSCALL_NEVER_FAILS flag.
Reported by Марк Коренберг <socketpair@gmail.com>.
2011-01-19 00:52:15 +00:00
62d0428cf5
* linux/*/syscallent.h: Fix typo in sys_newfstatat syscall flags.
2011-01-19 00:21:07 +00:00
Mike Frysinger
ae6a5f7c4f
Blackfin: update ioctl list
...
* linux/bfin/ioctlent.h: Sync with latest kernel sources.
2011-01-18 00:14:51 +00:00
4dd54320b9
Fix stat64 decoding on mips
...
* linux/mips/syscallent.h: Use sys_stat64() to decode stat64 syscall.
This fixes Debian bug #599028 .
2011-01-17 23:24:54 +00:00
e9e3d70fa1
Update linux/*/syscallent.h files to match Linux kernel v2.6.37
...
* linux/alpha/syscallent.h: Add hooks for fanotify_init, fanotify_mark,
and prlimit64.
* 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/x86_64/syscallent.h: Likewise.
* linux/arm/syscallent.h: Add hooks for accept4, fanotify_init,
fanotify_mark, and prlimit64.
* linux/hppa/syscallent.h: Add hook for prlimit64.
2011-01-17 22:39:33 +00:00
4eb1b51022
Update linux/ioctlent.h
...
* linux/ioctlent.h: Regenerate using linux v2.6.37 headers.
2011-01-14 16:09:40 +00:00
ebc2f28523
Add HDIO_* ioctls defined in linux/hdreg.h
...
* linux/ioctlent.sh: Add HDIO_* ioctls (0x03..) defined in
linux/hdreg.h header file.
This fixes Debian bug #450953 .
2011-01-14 15:30:10 +00:00
Carmelo AMOROSO
d64184f9aa
sh: Add entry for not-multiplexed accept4
...
* linux/sh/syscallent.h: Add specific entry for not-multiplexed accept4
available in kernel mainline since v2.6.37-rc6, see
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=21b6e4c7106b2d68a6710506d8706608272fd78b
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2011-01-10 00:10:51 +00:00
Carmelo AMOROSO
9b977d1067
sh: Add entries for not-multiplexed socket calls
...
* linux/sh/syscallent.h: Add specific entries for not-multiplexed
socket calls (available in kernel mainline since v2.6.37-rc1)
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-12-14 00:14:33 +00:00
Carmelo AMOROSO
f8e5650474
sh: Add support for tracing sys_cacheflush system call
...
* linux/sh/syscallent.h: Update sys_cacheflush entry.
* linux/syscall.h [SH] (sys_cacheflush): New function declaration.
* system.c [SH] (cacheflush_flags): New xlat structure.
[SH] (sys_cacheflush): New function.
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Reviewed-by: Angelo Castello <angelo.castello@st.com>
2010-12-03 17:27:29 +00:00
336a35fd43
Update linux/hppa/syscallent.h to match Linux kernel v2.6.35
...
* linux/hppa/syscallent.h: Add hooks for recvmmsg and accept4.
2010-09-16 16:48:45 +00:00
Mike Frysinger
260e571343
Blackfin: decode new syscalls
...
* linux/bfin/syscallent.h: Add fanotify/prlimit/cacheflush syscalls.
* linux/syscall.h: Add sys_cacheflush() decl.
* system.c: Decode Blackfin's cacheflush syscall.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-09-15 15:36:00 +00:00
Mike Frysinger
1b30f4b7b7
* linux/ioctlent.sh: Search a few non-exported paths.
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-09-15 15:36:00 +00:00
Neil Campbell
ffd2b30926
Correct get/set_robust_list syscall numbers for powerpc
...
* linux/powerpc/syscallent.h: Swap positions of get_ and set_robust_list.
2010-08-09 21:29:01 +00:00
David Daney
670f51126a
Update Linux MIPS syscalls to match 2.6.35-rc6+
...
* linux/mips/syscallent.h: Add and update 405 hooks.
2010-08-05 20:12:53 +00:00
Edgar E. Iglesias
939caba68e
Add support for the MicroBlaze architecture
...
* configure.ac: Recognize MicroBlaze.
* linux/microblaze/syscallent.h: New file.
* Makefile.am (EXTRA_DIST): Add linux/microblaze/syscallent.h
* process.c (change_syscall, struct_user_offsets): Add MicroBlaze
support.
* signal.c (sys_sigreturn): Likewise.
* syscall.c (internal_syscall, get_scno, syscall_fixup, get_error,
syscall_enter): Likewise.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
2010-08-05 20:04:50 +00:00
Frederik Schüler
b7915d15b8
linux/sparc: add missing syscall declarations
...
* linux/sparc/syscall.h: Sync with linux/syscall.h
Signed-off-by: Frederik Schüler <fs@debian.org>
2010-08-05 23:48:49 +04:00
Andreas Schwab
d69fa497f4
Add biarch support for powerpc64
...
* acinclude.m4 (AC_LITTLE_ENDIAN_LONG_LONG): Use int instead of
long.
* configure.ac [$host_cpu = powerpc*]: Also define POWERPC64 if
$host_cpu = powerpc64.
* defs.h (SUPPORTED_PERSONALITIES, PERSONALITY0_WORDSIZE)
(PERSONALITY1_WORDSIZE) [POWERPC64]: Define.
* file.c: (struct stat_powerpc32, printstat_powerpc32) [POWERPC64]:
Define.
(printstat) [LINUX && POWERPC64]: Use printstat_powerpc32 in
32-bit personality.
(sys_newfstatat) [POWERPC64]: Handle personalities.
* signal.c (sys_sigreturn) [POWERPC64]: Likewise.
* util.c (printllval) [POWERPC64]: Likewise.
(printcall) [POWERPC64]: Use wider format for IP prefix.
* syscall.c (get_scno) [POWERPC64]: Check for 64/32 bit mode.
* linux/powerpc/errnoent1.h: New file.
* linux/powerpc/ioctlent1.h: New file.
* linux/powerpc/signalent1.h: New file.
* linux/powerpc/syscallent1.h: New file.
2010-07-13 19:13:03 +02:00
Andreas Schwab
5874322739
Decode TLS syscalls on m68k
...
* linux/m68k/syscallent.h: Add entries for get_thread_area,
set_thread_area, atomic_comxchg_32, atomic_barrier.
* linux/dummy.h (sys_get_thread_area, sys_set_thread_area) [M68K]:
Don't redefine.
* mem.c (sys_get_thread_area, sys_set_thread_area) [LINUX && M68K]: New.
2010-05-28 22:28:51 +02:00
Heiko Carstens
394f60c07e
Fix s390 system call table list
...
* linux/s390/syscallent.h: Add the missing entries for preadv and
pwritev to the system call table list.
* linux/s390x/syscallent.h: Likewise.
2010-04-13 15:15:47 +00:00
ae4db5e1bb
Update linux/ioctlent.h
...
* linux/ioctlent.sh: Search in asm-generic directory as well.
* linux/ioctlent.h: Regenerated.
2010-04-07 11:34:29 +00:00
623003918a
Update linux/*/syscallent.h files to match Linux kernel v2.6.33
...
* linux/alpha/syscallent.h: Add 47 hooks.
* linux/arm/syscallent.h: Update hooks for pselect6, ppoll,
epoll_pwait. Add 11 hooks.
* linux/bfin/syscallent.h: Update hooks for prctl, fallocate,
signalfd4, eventfd2, epoll_create1, dup3, pipe2, perf_event_open.
Hook up recvmmsg.
* linux/hppa/syscallent.h: Update hooks for signalfd4, eventfd2,
epoll_create1, dup3, pipe2, perf_event_open.
* linux/i386/syscallent.h: Fix syscall name for the kexec_load hook.
Add 5 hooks.
* linux/ia64/syscallent.h: Fix syscall name for the kexec_load hook.
Add 4 hooks.
* linux/m68k/syscallent.h: Add 50 hooks.
* linux/powerpc/syscallent.h: Fix hook for timerfd_create. Fix
6 syscall names to match the kernel. Use sys_semop to parse semop.
Add 14 hooks.
* linux/s390/syscallent.h: Fix syscall name for the kexec_load hook.
Add 14 hooks.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Add 13 hooks.
* linux/sh64/syscallent.h: Add 15 hooks.
* linux/sparc/syscallent.h: Add 22 hooks.
* linux/x86_64/syscallent.h: Add 5 hooks.
2010-04-07 10:19:27 +00:00
Andreas Schwab
0873f29af4
Decode recvmmsg syscall
...
* net.c (do_msghr): New function to print struct msghdr.
(printmsghdr): Use it.
(printmmsghdr, sys_recvmmsg): New.
* linux/syscall.h: Declare sys_recvmmsg.
(SYS_sub_recvmmsg): Define.
(SYS_socket_nsubcalls): Bump.
* linux/sparc/syscall.h: Likewise.
* linux/arm/syscallent.h: Add sys_recvmmsg.
* linux/bfin/syscallent.h: Likewise.
* 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.
* linux/ia64/syscallent.h: Adjust.
2010-04-07 10:19:27 +00:00
Mark Wielaard
bab8940674
Hook up inotify_init1 open mode flags printer
...
* file.c [LINUX] (sys_inotify_init1): New function.
* linux/syscall.h: Declare new sys_inotify_init1 handler.
* linux/bfin/syscallent.h: Hook up new handler.
* linux/hppa/syscallent.h: Likewise.
* linux/i386/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
2010-03-23 01:14:03 +00:00
Chris Metcalf
c8c6698ef7
Add support for the TILE architecture
...
* configure.ac: Add TILE to the list of supported architectures.
* defs.h: Define TCB_WAITEXECVE for TILE.
* linux/tile/syscallent.h: New file.
* Makefile.am (EXTRA_DIST): Add linux/tile/syscallent.h
* process.c (change_syscall, struct_user_offsets): Add TILE support.
* syscall.c (get_scno, get_error, syscall_enter): Likewise.
* mem.c (mmap_flags, print_mmap): Add MAP_CACHE_xxx TILE extensions
support.
* signal.c (sigact_flags): Add SA_NOPTRACE.
(sys_sigreturn): Add TILE support.
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2010-02-05 22:09:30 +00:00
fdc45590eb
Decode fifth argument of mremap syscall
...
* mem.c (sys_mremap): Decode fifth argument.
* linux/*/syscallent.h: Update the number of mremap syscall arguments.
2009-12-25 00:20:12 +00:00
Mike Frysinger
5078770858
Move i386-specific files out of common linux dir
...
* linux/syscallent.h: Moved to ...
* linux/i386/syscallent.h: ... here.
* linux/ia64/syscallent.h: Update i386 syscallent.h include.
* linux/sparc/gen.pl: Likewise.
* linux/x86_64/syscallent1.h: Likewise.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-16 11:22:57 +00:00
Andreas Schwab
fe9495369e
Decode fallocate on PowerPC
...
* linux/powerpc/syscallent.h: Decode fallocate.
2009-11-04 17:15:46 +01:00
Andreas Schwab
d45f0a66c1
Correct decoding of readahead and fadvice64(_64) on PowerPC
...
* file.c (sys_readahead): Align 64bit argument. Handle PowerPC64
like other 64bit architectures.
(sys_fadvise64): Likewise.
(sys_fadvise64_64): Handle PowerPC like ARM.
* linux/powerpc/syscallent.h (sys_readahead): Account for 64bit
argument alignment on PowerPC32.
2009-11-03 16:14:29 +01:00
Mike Frysinger
8bfc23e056
Add sys_nanosleep() prototype for sparc
...
* linux/sparc/syscall.h (sys_nanosleep): New prototype.
Reported by Frederik Schüler.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 20:59:48 +00:00
Mike Frysinger
e90cc74275
Blackfin: Update ioctl/syscall lists
...
* linux/bfin/ioctlent.h: Sync list with latest kernel sources.
* linux/bfin/syscallent.h: Likewise.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Mike Frysinger
b065daa71b
ioctlsort: Check ppc hosts too
...
* linux/ioctlsort.c: Check for __powerpc__.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Andreas Schwab
0fda1c59cc
Fix build on ia64
...
* linux/ia64/syscallent.h: Update for addition of accept4 syscall
in ../syscallent.h.
2009-10-07 16:37:40 +02:00
Carlos O'Donell
1dc2061c2a
* linux/hppa/syscallent.h: Update syscalls.
...
Based on work by Kyle McMartin and Helge Deller.
2009-10-05 22:51:12 +00:00
Mike Frysinger
86b23b73b8
Mark shell scripts as executable
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-09-18 12:07:03 +00:00
Mike Frysinger
4651222197
linux/errno: Add ERFKILL
...
* linux/errnoent.h: Change ERRNO_132 to ERFKILL according to errno 132
definition introduced in Linux 2.6.31.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-09-18 12:05:49 +00:00
Paolo Bonzini
8a56b8a8e7
Add accept4 socketcall
...
This second patch in the series adds support for accept4 as a socketcall
sub-call. Besides the need to renumber all system calls, this poses
no problem.
Tested on i686.
* linux/arm/syscallent.h: Add accept4 socketcall.
* 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.
* linux/syscallent.h: Likewise.
* linux/sparc/syscall.h (SYS_sub_accept4): Declare.
(SYS_socket_nsubcalls): Update.
* linux/syscall.h: Likewise.
2009-09-01 19:53:29 +00:00