1e0efbb18d
microblaze: fix several syscall entries
...
* linux/microblaze/syscallent.h (signalfd4, eventfd2, epoll_create1,
dup3, pipe2, inotify_init1, recvmmsg): Set sys_func.
2015-07-21 19:09:35 +00:00
be547c19da
hppa: fix several syscall entries
...
* linux/hppa/syscallent.h (remap_file_pages, mq_open, mq_unlink,
mq_timedsend, mq_timedreceive, mq_notify, mq_getsetattr,
clock_nanosleep, signalfd, timerfd): Set sys_func.
2015-07-21 19:09:35 +00:00
d00eb1f58d
ia64: fix getpagesize syscall entry
...
* linux/ia64/syscallent.h (getpagesize): Fux nargs.
2015-07-21 19:09:35 +00:00
76c9f0ecb7
avr32: fix fstatat64 syscall entry
...
* linux/avr32/syscallent.h (fstatat64): Set sys_func.
2015-07-21 19:09:35 +00:00
ecabdcf959
alpha: fix 2 dummy osf syscall entries
...
* linux/alpha/syscallent.h (osf_set_program_attributes): Fix nargs.
(osf_sigstack): Fix nargs and sys_name.
2015-07-21 19:09:35 +00:00
82841f7e7e
alpha, arm, ia64, mips, sh64: fix semop syscall entries
...
* linux/alpha/syscallent.h (semop): Fix nargs, set sys_func.
* linux/ia64/syscallent.h (semop): Set sys_func.
* linux/mips/syscallent-n32.h (semop): Likewise.
* linux/mips/syscallent-n64.h (semop): Likewise.
* linux/arm/syscallent.h (semop): Fix nargs.
* linux/sh64/syscallent.h (semop): Likewise.
2015-07-21 19:09:35 +00:00
ece9ce6fea
m68k: fix getpagesize decoding
...
* linux/m68k/syscallent.h (getpagesize): Set sys_func.
* mem.c [M68K] (sys_getpagesize): Define.
2015-07-21 19:09:35 +00:00
f1548d93f1
tests/ip_mreq: skip if basic setsockopt operations fail
...
* tests/ip_mreq.c (main): Return 77 if basic
IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP options cannot be set.
2015-07-21 19:09:35 +00:00
95eaf19644
tests: use -lpthread instead of -pthread
...
On some obscure systems, -lpthread is more likely to work than -pthread.
* tests/Makefile.am (filter_unavailable_LDFLAGS): Rename to
filter_unavailable_LDADD and change to -lpthread.
2015-07-21 19:09:35 +00:00
ce93bbdef1
mips o32: fix utimensat syscall entry
...
* linux/mips/syscallent-o32.h (utimensat): set sys_flags and sys_func.
2015-07-21 19:09:35 +00:00
ba8b9556bb
linux/mips/syscallent-compat.h: use designated initializers
...
Change linux/mips/syscallent-compat.h to use designated initializers
like normal syscallent.h files.
* linux/mips/syscallent-compat.h: Use designated initializers.
2015-07-21 19:09:35 +00:00
a3eb3b410d
linux/mips/syscallent-compat.h: fix initalization of empty entries
...
This complements commit 140ecf876686d49085c6eb3a2306e2ea6ea641bc.
* linux/mips/syscallent-compat.h: Fix initalization of empty entries.
2015-07-21 19:09:35 +00:00
716fb20263
Remove unused parsers of getmsg and putmsg
...
* stream.c [SPARC || SPARC64] (sys_putmsg, sys_getmsg): Remove.
Stop including "xlat/msgflags.h".
* xlat/msgflags.in: Remove.
2015-07-20 22:41:56 +00:00
fa6c0879c7
sigreturn: make use of RVAL_DECODED
...
* sigreturn.c (arch_sigreturn): New function.
(sys_sigreturn): Use it. Return RVAL_DECODED.
* linux/alpha/arch_sigreturn.c: Update.
* linux/crisv10/arch_sigreturn.c: Likewise.
* linux/m68k/arch_sigreturn.c: Likewise.
* linux/microblaze/arch_sigreturn.c: Likewise.
* linux/x86_64/arch_sigreturn.c: Likewise.
2015-07-20 22:03:07 +00:00
eebb5616bf
or1k_atomic.c: make use of RVAL_DECODED
...
* or1k_atomic.c (sys_or1k_atomic): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
57ae04e402
Update openat parser for the RVAL_DECODED change
...
* open.c (sys_openat): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
d9e87921de
bjm.c: make use of RVAL_DECODED
...
* bjm.c (sys_create_module, sys_delete_module, sys_init_module,
sys_finit_module): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
0b2eabeed4
access.c: make use of RVAL_DECODED
...
* access.c (decode_access, sys_faccessat): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
8aa2a81233
affinity.c: make use of RVAL_DECODED
...
* affinity.c (sys_sched_setaffinity): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a52375f748
affinity.c: use printaddr and umove_or_printaddr
...
* affinity.c (print_affinitylist): Use printaddr and umove_or_printaddr.
(sys_sched_getaffinity): Remove redundant u_rval check.
2015-07-20 22:03:07 +00:00
07eaf50848
aio.c: enhance io_* syscalls decoding
...
* aio.c (sys_io_setup): Use printnum_int64 and printnum_long.
(sys_io_destroy, sys_io_submit): Update for RVAL_DECODED.
(sys_io_submit): Use umove_or_printaddr and printaddr.
Enclose iocb array in square brackets.
Change to traditional structure output format.
(print_io_event): New function.
(sys_io_cancel, sys_io_getevents): Use it.
(sys_io_cancel): Use umove_or_printaddr and printaddr.
(sys_io_getevents): Use printaddr.
2015-07-20 22:03:07 +00:00
4b6fc98816
cacheflush.c: make use of RVAL_DECODED
...
* cacheflush.c (sys_cacheflush): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
bb16ee1f65
cacheflush.c: use printaddr
...
* cacheflush.c (sys_cacheflush): Use printaddr.
2015-07-20 22:03:07 +00:00
ff33aac4e9
capability.c: make use of RVAL_DECODED
...
* capability.c (sys_capset): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
c70da7c15e
capability.c: use printaddr and umove_or_printaddr
...
* capability.c (get_cap_header): Use printaddr.
(print_cap_data): Use printaddr and umove_or_printaddr.
2015-07-20 22:03:07 +00:00
474083a189
chdir.c: make use of RVAL_DECODED
...
* chdir.c (sys_chdir): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a4d45720d0
chmod.c: make use of RVAL_DECODED
...
* chmod.c (decode_chmod): Change to return void.
(sys_chmod, sys_fchmodat): Update callers. Update for RVAL_DECODED.
(sys_fchmod): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
10e407dfb3
clone.c: make use of RVAL_DECODED
...
* clone.c (sys_setns, sys_unshare, sys_fork): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
cbabaf9141
Alias sys_epoll_create to printargs_ld
...
* desc.c (sys_epoll_create): Remove.
* linux/dummy.h (sys_epoll_create): Alias to printargs_ld.
2015-07-20 22:03:07 +00:00
df0c18c4a3
desc.c: make use of RVAL_DECODED
...
* desc.c (sys_flock, sys_close, sys_dup, do_dup2, sys_epoll_create1,
sys_epoll_ctl, do_eventfd, sys_perf_event_open): Update
for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
e6019fd424
desc.c: do not use xmalloc, use umove_or_printaddr and printaddr
...
* desc.c (printflock64, printflock): Use umove_or_printaddr.
(decode_select): Do not use xmalloc. Use umoven_or_printaddr
and printaddr.
(sys_oldselect): Use printaddr.
(sys_epoll_ctl): Use umoven_or_printaddr and printaddr.
(print_epoll_event_array): New function.
(sys_epoll_wait_common): Use it.
(sys_pselect6): Use umove_or_printaddr.
(sys_eventfd2): Use printaddr.
2015-07-20 22:03:07 +00:00
d4b3f6a8e2
xlat/epollctls.in: add default values
...
* xlat/epollctls.in (EPOLL_CTL_ADD, EPOLL_CTL_DEL, EPOLL_CTL_MOD): Add
default values.
2015-07-20 22:03:07 +00:00
3ef50217c1
dirent.c: do not use xmalloc
...
* dirent.c (print_old_dirent): Use umove_or_printaddr.
(sys_readdir): Use printaddr.
(sys_getdents, sys_getdents64): Do not use xmalloc for dirents,
treat malloc failure the same way as umoven failure. Use printaddr.
2015-07-20 22:03:07 +00:00
7e56b4e5ae
execve.c: make use of RVAL_DECODED
...
* execve.c (sys_execve, sys_execv): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
ad18132608
execve.c: use printaddr and umove_or_printaddr
...
* execve.c (printargv): Use umoven_or_printaddr.
(sys_execve, sys_execv): Use printaddr.
2015-07-20 22:03:07 +00:00
429c6775d4
fadvise.c: make use of RVAL_DECODED
...
* fadvise.c (sys_fadvise64, sys_fadvise64_64): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
5dcf3b1642
fallocate.c: make use of RVAL_DECODED
...
* fallocate.c (sys_fallocate): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a3a7ffee58
fanotify.c: make use of RVAL_DECODED
...
* fanotify.c (sys_fanotify_init, sys_fanotify_mark): Update
for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
f891bb4373
fchownat.c: make use of RVAL_DECODED
...
* fchownat.c (sys_fchownat): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
b6d80ffe02
file.c: use umove_or_printaddr
...
* file.c (printstat32, printstatsol): Remove.
(printstat, printstat64, printoldstat): Use umove_or_printaddr.
2015-07-20 22:03:07 +00:00
b5821091ee
futex.c: enhance futex syscall decoding
...
* futex.c (sys_futex): Use switch statement. Use printaddr.
Print uint32_t syscall arguments using %u format.
Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
a9183c3958
get_robust_list.c: use printnum_long
...
* get_robust_list.c (sys_get_robust_list): Use printnum_long.
2015-07-20 22:03:07 +00:00
bc863e9cae
getcpu.c: use printnum_int and printaddr
...
* getcpu.c (sys_getcpu): Use printnum_int and printaddr.
2015-07-20 22:03:07 +00:00
071193f620
getcwd.c: use printaddr
...
* getcwd.c (sys_getcwd): Use printaddr.
2015-07-20 22:03:07 +00:00
aa9f687ff3
getrandom.c: use printaddr
...
* getrandom.c (sys_getrandom): Use printaddr.
2015-07-20 22:03:07 +00:00
3aced79818
hostname.c: make use of RVAL_DECODED
...
* hostname.c (sys_sethostname): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
3f08e2d4d5
hostname.c: use printaddr
...
* hostname.c (sys_gethostname): Use printaddr.
2015-07-20 22:03:07 +00:00
fe3cdfc68d
inotify.c: make use of RVAL_DECODED
...
* inotify.c (sys_inotify_add_watch, sys_inotify_rm_watch,
sys_inotify_init1): Update for RVAL_DECODED.
2015-07-20 22:03:07 +00:00
1f255fd968
io.c: make use of RVAL_DECODED
...
* io.c (sys_write, sys_writev, sys_pwrite, sys_pwritev, sys_sendfile,
sys_sendfile64, sys_tee, sys_splice, sys_vmsplice): Update
for RVAL_DECODED.
2015-07-20 22:03:06 +00:00
dd5f0cef93
Use printnum_int64 instead of print_loff_t
...
* defs.h (print_loff_t): Remove.
* io.c (print_loff_t): Remove.
(sys_sendfile64, sys_splice): Use printnum_int64 instead of print_loff_t.
* mtd.c (mtd_ioctl): Likewise.
2015-07-20 22:03:06 +00:00