summaryrefslogtreecommitdiff
path: root/tests/prlimit64.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: add prlimit64-success and prlimit64-success--pidns-translationEugene Syromyatnikov2021-08-301-14/+37
| | | | | | | | | | | | | | These may be useful in cases where prlimit64 syscall is not available. * tests/.gitignore: Add prlimit64-success and prlimit64-success--pidns-translation. * tests/Makefile.am (check_PROGRAMS): Likewise. * tests/gen_tests.in (prlimit64-success, prlimit64-success--pidns-translation): New tests. * tests/prlimit64-success--pidns-translation.c: New file. * tests/prlimit64-success.c: Likewise. * tests/prlimit64.c: Update to accomodate output when return value is injected.
* tests: relax -a check in prlimit64 testEugene Syromyatnikov2021-07-221-0/+5
| | | | | | | | | | | | | | | | | The initial "-a48" check was too strict as it has hit some false positives on 32-bit arches: -prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented) +prlimit64(15083, RLIMIT_AS, NULL, 0xf7ff4ff0) = -1 ENOSYS (Function not implemented)l Reduce it to the theoretical limit - the width of "prlimit64(0, RLIMIT_AS, NULL, NULL) " string. Also, add the same check to prlimit64--pidns-translation. * tests/gen_tests.in (prlimit64, prlimit64--pidns-translation): Set alignment check to -a36. Fixes: v5.13~13 "tests: use QUIRK:START-OF-TEST-OUTPUT for prlimit64"
* Update copyright headersDmitry V. Levin2021-07-171-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* tests: use QUIRK:START-OF-TEST-OUTPUT for prlimit64Eugene Syromyatnikov2021-07-161-1/+6
| | | | | | | | | | To work around polluting prlimit64(0, RLIMIT_STACK, NULL, ...) call introduced in glibc-2.33.9000-630-gd03511f. * tests/gen_tests.in (prlimit64, prlimit64--pidns-translation): Add QUIRK:START-OF-TEST-OUTPUT. * tests/prlimit64.c: Call prlimit64 with pre-defined arguments to use it as a marker of the beinning of the test output.
* tests/prlimit64: fix -Wmissing-prototypes warningsDmitry V. Levin2021-06-041-1/+1
| | | | * tests/prlimit64.c (sprint_rlim): Add static qualifier.
* tests: assume __NR_prlimit64 is definedDmitry V. Levin2021-06-021-16/+8
| | | | | | | prlimit64 syscall entries are present in syscallent files for all supported architectures. * tests/prlimit64.c: Assume __NR_prlimit64 is defined.
* Change my email addressDmitry V. Levin2020-12-311-1/+1
|
* Update copyright headersDmitry V. Levin2020-09-231-1/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Add tests for PID namespace translationAkosUzonyi/pidnsÁkos Uzonyi2020-08-251-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (CODE_COVERAGE_IGNORE_PATTERN): Add test directories. * tests/.gitignore: Add new test executables. * tests/Makefile.am (check_PROGRAMS): Add new test executables. (DECODER_TESTS) Add new test files. (libtests_a_SOURCES): Add trie_for_tests.c, xmalloc_for_tests.c. * tests/gen_tests.in: Add new tests. * tests/trie_test.c: New file. * tests/trie_for_tests.c: New file. * tests/xmalloc_for_tests.c: New file. * tests/pidns-cache.c: New file. * tests/pidns-cache.test: New file. * tests/fcntl--pidns-translation.c: New file. * tests/fcntl64--pidns-translation.c: New file. * tests/fork--pidns-translation.awk: New file. * tests/fork--pidns-translation.c: New file. * tests/fork--pidns-translation.test: New file. * tests/getpgrp--pidns-translation.c: New file. * tests/getpid--pidns-translation.c: New file. * tests/getsid--pidns-translation.c: New file. * tests/gettid--pidns-translation.c: New file. * tests/gettid--pidns-translation.test: New file. * tests/ioctl_block--pidns-translation.c: New file. * tests/ioctl_block--pidns-translation.test: New file. * tests/ioprio--pidns-translation.c: New file. * tests/kill--pidns-translation.c: New file. * tests/migrate_pages--pidns-translation.c: New file. * tests/move_pages--pidns-translation.c: New file. * tests/net-sockaddr--pidns-translation.c: New file. * tests/netlink_audit--pidns-translation.c: New file. * tests/netlink_audit--pidns-translation.test: New file. * tests/pidfd_open--pidns-translation.c: New file. * tests/pidfd_send_signal--pidns-translation.c: New file. * tests/prlimit64--pidns-translation.c: New file. * tests/process_vm_readv--pidns-translation.c: New file. * tests/process_vm_writev--pidns-translation.c: New file. * tests/rt_sigqueueinfo--pidns-translation.c: New file. * tests/rt_tgsigqueueinfo--pidns-translation.c: New file. * tests/sched_xetaffinity--pidns-translation.c: New file. * tests/sched_xetattr--pidns-translation.c: New file. * tests/sched_xetparam--pidns-translation.c: New file. * tests/sched_xetscheduler--pidns-translation.c: New file. * tests/signal_receive--pidns-translation.c: New file. * tests/so_peercred--pidns-translation.c: New file. * tests/tkill--pidns-translation.c: New file. * tests/tgkill--pidns-translation.c: New file. * tests/xet_robust_list--pidns-translation.c: New file. * tests/xetpgid--pidns-translation.c: New file. * tests/xetpriority--pidns-translation.c: New file. * tests/fcntl-common.c: Print PID translation string after PIDs. * tests/fcntl.c: Likewise. * tests/fcntl64.c: Likewise. * tests/getpgrp.c: Likewise. * tests/getpid.c: Likewise. * tests/getsid.c: Likewise. * tests/gettid.c: Likewise. * tests/ioctl_block.c: Likewise. * tests/ioprio.c: Likewise. * tests/kcmp.c: Likewise. * tests/kill.c: Likewise. * tests/migrate_pages.c: Likewise. * tests/move_pages.c: Likewise. * tests/net-sockaddr.c: Likewise. * tests/netlink_audit.c: Likewise. * tests/pidfd_open.c: Likewise. * tests/pidfd_send_signal.c: Likewise. * tests/prlimit64.c: Likewise. * tests/process_vm_readv_writev.c: Likewise. * tests/rt_sigqueueinfo.c: Likewise. * tests/rt_tgsigqueueinfo.c: Likewise. * tests/sched_xetaffinity.c: Likewise. * tests/sched_xetattr.c: Likewise. * tests/sched_xetparam.c: Likewise. * tests/sched_xetscheduler.c: Likewise. * tests/signal_receive.c: Likewise. * tests/so_peercred.c: Likewise. * tests/tgkill.c: Likewise. * tests/tkill.c: Likewise. * tests/xet_robust_list.c: Likewise. * tests/xetpgid.c: Likewise. * tests/xetpriority.c: Likewise.
* Update copyright headersDmitry V. Levin2019-09-251-0/+1
| | | | | Headers updated automatically using maint/update_copyright_years.sh script.
* Add xlat description structureEugene Syromyatnikov2019-07-241-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename struct xlat to struct xlat_data and make struct xlat an xlat descriptor that contains various information about xlat. So far it's the type and the number of items. As a result, xlookup/printxval now have enough information for handling xlat depending on its type, so *index/*_search API is not needed any longer. * xlat.h (struct xlat_data): Rename from struct xlat. (struct xlat): New type definition. * xlat.c (xlat_search, printxval_sized, printxval_searchn_ex, xlat_idx, printxval_indexn_ex, printxval_dispatch_ex): Remove. (xlookup): Handle xlat_data based on xlat type. (xlat_search_eq_or_less, xlookup_le): New functions. (sprintflags_ex, printflags_ex): Update. * xlat/gen.sh (gen_header): Add handling for #sorted, generate new struct xlat descriptor. * defs.h (arp_hardware_types_size, ethernet_protocols_size, inet_protocols_size, evdev_abs_size, xlat_search, xlat_idx, printxval_searchn_ex, printxval_searchn, printxval_search, printxval_search_ex, printxval_indexn_ex, printxval_indexn, printxval_index, printxval_index_ex, printxval_dispatch_ex, printxval_dispatch): Remove. (enum xlat_style_private_flag_bits): Remove PAF_INDEX_XLAT_SORTED_BIT and PAF_INDEX_XLAT_VALUE_INDEXED_BIT. (enum xlat_style_private_flag): Remove PAF_INDEX_XLAT_SORTED and PAF_INDEX_XLAT_VALUE_INDEXED. (print_array_ex): Remove index_xlat_size argument. (xlookup_le): New declaration. (printxval_ex): New macro. * dyxlat.c (struct dyxlat): Remove used field (use xlat.size instead), embed struct xlat, add pointer to struct xlat_data. (MARK_END): Remove. (dyxlat_alloc, dyxlat_free, dyxlat_get, dyxlat_add_pair): Update in accordance with the structure changes. * evdev.c (evdev_abs_size): Remove. (keycode_ioctl): Use printxval instead of printxval_index. (decode_bitset): Remove. (decode_bitset_): Rename to decode_bitset, remove decode_nr_size and xt arguments, call printxval instead of printxval_dispatch. (bit_ioctl, evdev_read_ioctl): Do not pass xlat type to decode_bitset. * fsconfig.c (SYS_FUNC(fsconfig)): Use printxval instead of printxval_index. * print_fields.h (PRINT_FIELD_XVAL_SORTED_SIZED, PRINT_FIELD_XVAL_INDEX): Remove. * nlattr.h (struct decode_nla_xlat_opts): Remove xlat_size and xt fields. * nlattr.c (decode_nla_meminfo): Do not pass PAF_INDEX_XLAT_VALUE_INDEXED flag and netlink_sk_meminfo_indices size in a print_array_ex call. (decode_nla_xval): Call printxval_ex instead of printxval_dispatch_ex. (decode_nla_ether_proto, decode_nla_ip_proto): Do not pass xlat_size and xt fields in opts. (decode_nla_flags): Remove XT_INDEXED unsupported warning. * process.c (struct_user_offsets_data): Rename from struct_user_offsets, change type to struct xlat_data[]. (struct_user_offsets): New xlat description. (print_user_offset_addr): Rewrite using xlookup_le. * util.c (print_array_ex): Remove index_xlat_size argument, simply call printxval_ex for index printing. * aio.c (tprint_lio_opcode): Use printxval_ex instead of printxval_indexn_ex. * bpf.c: Use printxval instead of printxval_index; use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_INDEX. * bpf_filter.c (print_bpf_filter_code): Use printxval instead of printxval_index. * ioctl.c (evdev_decode_number): Use printxval instead of printxval_indexn. * kvm.c (kvm_ioctl_decode_check_extension): Use printxval64 instead of printxval_index. (kvm_ioctl_run_attach_auxstr): Use xlookup instead of xlat_idx. * net.c: Use printxval instead of printxval_search/printxval_index, use printxval_ex instead of printxval_searchn_ex. * netlink.c (get_fd_nl_family): Rewrite using xlat descriptor structure. * netlink_packet_diag.c (decode_packet_diag_msg): Use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_SORTED_SIZED. * netlink_smc_diag.c (decode_smc_diag_shutdown): Remove ARRSZ_PAIR wrapper. (decode_smc_diag_fallback): Use printxval_ex instead of printxval_search_ex. (decode_smc_diag_msg): Use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_INDEX. * print_statfs.c (print_statfs_type): Use printxval instead of printxval_search. * ptrace_syscall_info.c (print_ptrace_syscall_info): Use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_INDEX. * rtnl_link.c (decode_ifla_inet6_flags, decode_ifla_inet6_agm): Likewise. (decode_nla_tun_type, decode_ifla_xdp_attached): Remove xlat_size, xt fields. (decode_ifla_inet_conf, decode_ifla_inet6_conf, decode_ifla_inet6_stats, decode_ifla_inet6_icmp6_stats): Remove PAF_INDEX_XLAT_VALUE_INDEXED flag and ARRSZ_PAIR wrapper in print_array_ex calls. (decode_ifinfomsg): Use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_SORTED_SIZED. * rtnl_route.c (decode_nla_rt_proto): Use printxval instead of printxval_search. * sock.c (print_ifreq): Use PRINT_FIELD_XVAL instead of PRINT_FIELD_XVAL_SORTED_SIZED. * sockaddr.c (print_sockaddr_data_ll, print_sockaddr_data_bt, print_sockaddr): Use printxval instead of printxval_search and printxval_index. * time.c (getitimer, osf_getitimer, setitimer, osf_setitimer, printclockname): Use printxval instead of printxval_index. (do_adjtimex): Use xlookup instead of xlat_idx. * tests/btrfs.c: Update xlat handling, use struct xlat_data instead of struct xlat for XLAT() arrays. * tests/ioctl_block.c: Likewise. * tests/ioctl_rtc.c: Likewise. * tests/printflags.c: Likewise. * tests/printxval.c: Likewise. * tests/prlimit64.c: Likewise. * tests/setrlimit.c: Likewise. * tests/socketcall.c: Likewise. * tests/xgetrlimit.c: Likewise. * tests/xstatfsx.c: Likewise. * xlat/af_packet_versions.in: Add #value_indexed. * xlat/arp_hardware_types.in: Add #sorted. * xlat/ax25_protocols.in: Likewise. * xlat/bluetooth_l2_cid.in: Likewise. * xlat/bluetooth_l2_psm.in: Likewise. * xlat/ethernet_protocols.in: Likewise. * xlat/evdev_ff_types.in: Likewise. * xlat/fsmagic.in: Likewise. * xlat/hw_breakpoint_type.in: Likewise. * xlat/iffflags.in: Likewise. * xlat/inet6_if_flags.in: Likewise. * xlat/inet_protocols.in: Likewise. * xlat/msgctl_flags.in: Likewise. * xlat/perf_hw_cache_id.in: Likewise. * xlat/perf_hw_cache_op_id.in: Likewise. * xlat/perf_hw_cache_op_result_id.in: Likewise. * xlat/perf_hw_id.in: Likewise. * xlat/perf_sw_ids.in: Likewise. * xlat/perf_type_id.in: Likewise. * xlat/routing_protocols.in: Likewise. * xlat/semctl_flags.in: Likewise. * xlat/shmctl_flags.in: Likewise. * xlat/smc_decl_codes.in: Likewise. * xlat/sock_ax25_options.in: Likewise. * xlat/sock_bluetooth_options.in: Likewise. * xlat/sock_dccp_options.in: Likewise. * xlat/sock_tipc_options.in: Likewise. * xlat/socketlayers.in: Likewise. * xlat/v4l2_control_classes.in: Likewise. * xlat/v4l2_pix_fmts.in: Likewise. * xlat/v4l2_sdr_fmts.in: Likewise. Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
* Consistently define __NR_* constantsDmitry V. Levin2019-07-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include <asm/unistd.h> from "scno.h", include "scno.h" instead of <asm/unistd.h>, do not include <asm/unistd.h> where "scno.h" is already included. * scno.head: Include <asm/unistd.h>. * clone.c: Include "scno.h" instead of <asm/unistd.h>. * syscall.c: Likewise. * tests/_newselect.c: Likewise. * tests/accept.c: Likewise. * tests/accept_compat.h: Likewise. * tests/access.c: Likewise. * tests/acct.c: Likewise. * tests/aio.c: Likewise. * tests/alarm.c: Likewise. * tests/answer.c: Likewise. * tests/attach-f-p.c: Likewise. * tests/brk.c: Likewise. * tests/chmod.c: Likewise. * tests/chown.c: Likewise. * tests/chown32.c: Likewise. * tests/chroot.c: Likewise. * tests/clock_adjtime.c: Likewise. * tests/clock_nanosleep.c: Likewise. * tests/clock_xettime.c: Likewise. * tests/creat.c: Likewise. * tests/delay.c: Likewise. * tests/delete_module.c: Likewise. * tests/dev-yy.c: Likewise. * tests/dup2.c: Likewise. * tests/dup3.c: Likewise. * tests/epoll_create.c: Likewise. * tests/epoll_create1.c: Likewise. * tests/epoll_ctl.c: Likewise. * tests/epoll_pwait.c: Likewise. * tests/epoll_wait.c: Likewise. * tests/eventfd.c: Likewise. * tests/faccessat.c: Likewise. * tests/fadvise64.c: Likewise. * tests/fadvise64_64.c: Likewise. * tests/fallocate.c: Likewise. * tests/fanotify_init.c: Likewise. * tests/fanotify_mark.c: Likewise. * tests/fchdir.c: Likewise. * tests/fchmod.c: Likewise. * tests/fchmodat.c: Likewise. * tests/fchown.c: Likewise. * tests/fchown32.c: Likewise. * tests/fchownat.c: Likewise. * tests/fcntl.c: Likewise. * tests/fcntl64.c: Likewise. * tests/fdatasync.c: Likewise. * tests/file_handle.c: Likewise. * tests/flock.c: Likewise. * tests/fstat.c: Likewise. * tests/fstat64.c: Likewise. * tests/fstatat64.c: Likewise. * tests/fstatfs.c: Likewise. * tests/fstatfs64.c: Likewise. * tests/fsync.c: Likewise. * tests/ftruncate.c: Likewise. * tests/ftruncate64.c: Likewise. * tests/futex.c: Likewise. * tests/futimesat.c: Likewise. * tests/get_mempolicy.c: Likewise. * tests/get_sigset_size.c: Likewise. * tests/getcpu.c: Likewise. * tests/getcwd.c: Likewise. * tests/getdents.c: Likewise. * tests/getdents64.c: Likewise. * tests/getegid32.c: Likewise. * tests/geteuid32.c: Likewise. * tests/getgid.c: Likewise. * tests/getgid32.c: Likewise. * tests/getgroups.c: Likewise. * tests/getgroups32.c: Likewise. * tests/getpgrp.c: Likewise. * tests/getpid.c: Likewise. * tests/getrandom.c: Likewise. * tests/getresgid.c: Likewise. * tests/getresgid32.c: Likewise. * tests/getresuid.c: Likewise. * tests/getresuid32.c: Likewise. * tests/getrlimit.c: Likewise. * tests/getrusage.c: Likewise. * tests/gettid.c: Likewise. * tests/getuid.c: Likewise. * tests/getuid32.c: Likewise. * tests/getxxid.c: Likewise. * tests/init_module.c: Likewise. * tests/inject-nf.c: Likewise. * tests/inotify.c: Likewise. * tests/inotify_init1.c: Likewise. * tests/ioctl_inotify.c: Likewise. * tests/ioctl_loop.c: Likewise. * tests/ioctl_perf.c: Likewise. * tests/ioctl_uffdio.c: Likewise. * tests/ioperm.c: Likewise. * tests/iopl.c: Likewise. * tests/ioprio.c: Likewise. * tests/ipc.c: Likewise. * tests/ipc_msgbuf.c: Likewise. * tests/kexec_load.c: Likewise. * tests/keyctl.c: Likewise. * tests/kill.c: Likewise. * tests/ksysent.c: Likewise. * tests/lchown.c: Likewise. * tests/lchown32.c: Likewise. * tests/libmmsg.c: Likewise. * tests/libsocketcall.c: Likewise. * tests/link.c: Likewise. * tests/linkat.c: Likewise. * tests/llseek.c: Likewise. * tests/localtime.c: Likewise. * tests/lookup_dcookie.c: Likewise. * tests/lseek.c: Likewise. * tests/lstat.c: Likewise. * tests/lstat64.c: Likewise. * tests/madvise.c: Likewise. * tests/migrate_pages.c: Likewise. * tests/mkdir.c: Likewise. * tests/mkdirat.c: Likewise. * tests/mknod.c: Likewise. * tests/mknodat.c: Likewise. * tests/mlock.c: Likewise. * tests/modify_ldt.c: Likewise. * tests/move_pages.c: Likewise. * tests/mq_sendrecv.c: Likewise. * tests/newfstatat.c: Likewise. * tests/nsyscalls.c: Likewise. * tests/old_mmap.c: Likewise. * tests/oldfstat.c: Likewise. * tests/oldlstat.c: Likewise. * tests/oldselect-efault.c: Likewise. * tests/oldselect.c: Likewise. * tests/oldstat.c: Likewise. * tests/open.c: Likewise. * tests/openat.c: Likewise. * tests/osf_utimes.c: Likewise. * tests/pause.c: Likewise. * tests/perf_event_open.c: Likewise. * tests/perf_event_open_nonverbose.c: Likewise. * tests/pipe.c: Likewise. * tests/pipe2.c: Likewise. * tests/poll.c: Likewise. * tests/ppoll.c: Likewise. * tests/prctl-arg2-intptr.c: Likewise. * tests/prctl-dumpable.c: Likewise. * tests/prctl-no-args.c: Likewise. * tests/prctl-pdeathsig.c: Likewise. * tests/prctl-seccomp-filter-v.c: Likewise. * tests/prctl-seccomp-strict.c: Likewise. * tests/prctl-securebits.c: Likewise. * tests/prctl-spec-inject.c: Likewise. * tests/prctl-tid_address.c: Likewise. * tests/prctl-tsc.c: Likewise. * tests/prlimit64.c: Likewise. * tests/process_vm_readv.c: Likewise. * tests/process_vm_writev.c: Likewise. * tests/pselect6.c: Likewise. * tests/ptrace.c: Likewise. * tests/qual_inject-error-signal.c: Likewise. * tests/qual_inject-retval.c: Likewise. * tests/qual_inject-signal.c: Likewise. * tests/quotactl-xfs.c: Likewise. * tests/quotactl.c: Likewise. * tests/read-write.c: Likewise. * tests/readahead.c: Likewise. * tests/readdir.c: Likewise. * tests/readlink.c: Likewise. * tests/readlinkat.c: Likewise. * tests/reboot.c: Likewise. * tests/rename.c: Likewise. * tests/renameat.c: Likewise. * tests/request_key.c: Likewise. * tests/rmdir.c: Likewise. * tests/rt_sigpending.c: Likewise. * tests/rt_sigprocmask.c: Likewise. * tests/rt_sigsuspend.c: Likewise. * tests/rt_sigtimedwait.c: Likewise. * tests/rt_tgsigqueueinfo.c: Likewise. * tests/s390_guarded_storage.c: Likewise. * tests/s390_pci_mmio_read_write.c: Likewise. * tests/s390_runtime_instr.c: Likewise. * tests/s390_sthyi.c: Likewise. * tests/sched_get_priority_mxx.c: Likewise. * tests/sched_rr_get_interval.c: Likewise. * tests/sched_xetaffinity.c: Likewise. * tests/sched_xetattr.c: Likewise. * tests/sched_xetparam.c: Likewise. * tests/sched_xetscheduler.c: Likewise. * tests/sched_yield.c: Likewise. * tests/seccomp-filter-v.c: Likewise. * tests/seccomp-filter.c: Likewise. * tests/seccomp-strict.c: Likewise. * tests/seccomp_get_action_avail.c: Likewise. * tests/select.c: Likewise. * tests/sendfile.c: Likewise. * tests/sendfile64.c: Likewise. * tests/setdomainname.c: Likewise. * tests/setfsgid.c: Likewise. * tests/setfsgid32.c: Likewise. * tests/setfsuid.c: Likewise. * tests/setfsuid32.c: Likewise. * tests/setgid.c: Likewise. * tests/setgid32.c: Likewise. * tests/setgroups.c: Likewise. * tests/setgroups32.c: Likewise. * tests/sethostname.c: Likewise. * tests/setns.c: Likewise. * tests/setregid.c: Likewise. * tests/setregid32.c: Likewise. * tests/setresgid.c: Likewise. * tests/setresgid32.c: Likewise. * tests/setresuid.c: Likewise. * tests/setresuid32.c: Likewise. * tests/setreuid.c: Likewise. * tests/setreuid32.c: Likewise. * tests/setrlimit.c: Likewise. * tests/setuid.c: Likewise. * tests/setuid32.c: Likewise. * tests/sigaction.c: Likewise. * tests/signal.c: Likewise. * tests/signalfd4.c: Likewise. * tests/sigpending.c: Likewise. * tests/sigprocmask.c: Likewise. * tests/sigreturn.c: Likewise. * tests/sigsuspend.c: Likewise. * tests/socketcall.c: Likewise. * tests/splice.c: Likewise. * tests/stack-fcall-3.c: Likewise. * tests/stat.c: Likewise. * tests/stat64.c: Likewise. * tests/statfs.c: Likewise. * tests/statfs64.c: Likewise. * tests/status-none-threads.c: Likewise. * tests/status-unfinished-threads.c: Likewise. * tests/statx.c: Likewise. * tests/swap.c: Likewise. * tests/sxetmask.c: Likewise. * tests/symlink.c: Likewise. * tests/symlinkat.c: Likewise. * tests/sync.c: Likewise. * tests/sync_file_range.c: Likewise. * tests/sync_file_range2.c: Likewise. * tests/syslog.c: Likewise. * tests/tee.c: Likewise. * tests/threads-execve.c: Likewise. * tests/time.c: Likewise. * tests/timer_create.c: Likewise. * tests/timer_xettime.c: Likewise. * tests/timerfd_xettime.c: Likewise. * tests/times-fail.c: Likewise. * tests/times.c: Likewise. * tests/truncate.c: Likewise. * tests/truncate64.c: Likewise. * tests/ugetrlimit.c: Likewise. * tests/umount.c: Likewise. * tests/umount2.c: Likewise. * tests/umoven-illptr.c: Likewise. * tests/umovestr-illptr.c: Likewise. * tests/uname.c: Likewise. * tests/unix-pair-send-recv.c: Likewise. * tests/unlink.c: Likewise. * tests/unlinkat.c: Likewise. * tests/unshare.c: Likewise. * tests/ustat.c: Likewise. * tests/utime.c: Likewise. * tests/utimensat.c: Likewise. * tests/utimes.c: Likewise. * tests/vhangup.c: Likewise. * tests/vmsplice.c: Likewise. * tests/waitid.c: Likewise. * tests/waitpid.c: Likewise. * tests/xet_robust_list.c: Likewise. * tests/xet_thread_area_x86.c: Likewise. * tests/xetitimer.c: Likewise. * tests/xetpgid.c: Likewise. * tests/xetpriority.c: Likewise. * tests/xettimeofday.c: Likewise. * strace.c: Do not include <asm/unistd.h>. * ucopy.c: Likewise. * tests/add_key.c: Likewise. * tests/aio_pgetevents.c: Likewise. * tests/bpf-obj_get_info_by_fd.c: Likewise. * tests/bpf.c: Likewise. * tests/copy_file_range.c: Likewise. * tests/execveat.c: Likewise. * tests/finit_module.c: Likewise. * tests/fsconfig.c: Likewise. * tests/fsmount.c: Likewise. * tests/fsopen.c: Likewise. * tests/fspick.c: Likewise. * tests/getegid.c: Likewise. * tests/geteuid.c: Likewise. * tests/getppid.c: Likewise. * tests/inotify_init.c: Likewise. * tests/io_uring_enter.c: Likewise. * tests/io_uring_register.c: Likewise. * tests/io_uring_setup.c: Likewise. * tests/kcmp.c: Likewise. * tests/kern_features.c: Likewise. * tests/kernel_version.c: Likewise. * tests/kexec_file_load.c: Likewise. * tests/maybe_switch_current_tcp.c: Likewise. * tests/mbind.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/mlock2.c: Likewise. * tests/move_mount.c: Likewise. * tests/open_tree.c: Likewise. * tests/pidfd_send_signal.c: Likewise. * tests/pkey_alloc.c: Likewise. * tests/pkey_free.c: Likewise. * tests/pkey_mprotect.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/ptrace_syscall_info.c: Likewise. * tests/remap_file_pages.c: Likewise. * tests/renameat2.c: Likewise. * tests/riscv_flush_icache.c: Likewise. * tests/set_mempolicy.c: Likewise. * tests/test_printstrn.c: Likewise. * tests/test_ucopy.c: Likewise. * tests/userfaultfd.c: Likewise.
* Update copyright headersDmitry V. Levin2018-12-241-1/+1
|
* tests: change the license to GPL-2.0-or-laterDmitry V. Levin2018-12-101-21/+1
| | | | | strace test suite is now provided under the terms of the GNU General Public License version 2 or later, see tests/COPYING for more details.
* tests: fix "constant is too large" compilation warningsEugene Syromyatnikov2016-11-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alarm.c: In function 'main': alarm.c:41: warning: integer constant is too large for 'long' type aio.c: In function 'main': aio.c:162: warning: integer constant is too large for 'long' type btrfs.c: In function 'btrfs_test_sync_ioctls': btrfs.c:202: warning: integer constant is too large for 'long' type btrfs.c: In function 'btrfs_test_subvol_ioctls': btrfs.c:289: warning: integer constant is too large for 'long' type btrfs.c:290: warning: integer constant is too large for 'long' type dup2.c: In function 'main': dup2.c:12: warning: integer constant is too large for 'long' type dup2.c:13: warning: integer constant is too large for 'long' type dup3.c: In function 'main': dup3.c:13: warning: integer constant is too large for 'long' type dup3.c:14: warning: integer constant is too large for 'long' type epoll_create.c: In function 'main': epoll_create.c:12: warning: integer constant is too large for 'long' type epoll_ctl.c: In function 'invoke_syscall': epoll_ctl.c:14: warning: integer constant is too large for 'long' type faccessat.c: In function 'main': faccessat.c:13: warning: integer constant is too large for 'long' type fchdir.c: In function 'main': fchdir.c:12: warning: integer constant is too large for 'long' type struct_flock.c: In function 'invoke_test_syscall': struct_flock.c:48: warning: integer constant is too large for 'long' type struct_flock.c: In function 'test_flock_einval': struct_flock.c:58: warning: integer constant is too large for 'long' type struct_flock.c:59: warning: integer constant is too large for 'long' type fcntl64.c: In function 'test_flock64_einval': fcntl64.c:44: warning: integer constant is too large for 'long' type fcntl64.c:45: warning: integer constant is too large for 'long' type fcntl.c: In function 'test_flock64_einval': fcntl.c:44: warning: integer constant is too large for 'long' type fcntl.c:45: warning: integer constant is too large for 'long' type fdatasync.c: In function 'main': fdatasync.c:12: warning: integer constant is too large for 'long' type flock.c: In function 'main': flock.c:13: warning: integer constant is too large for 'long' type xstatx.c: In function 'main': xstatx.c:255: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:290: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatx.c:294: warning: integer constant is too large for 'long' type xstatfsx.c: In function 'main': xstatfsx.c:113: warning: integer constant is too large for 'long' type fsync.c: In function 'main': fsync.c:12: warning: integer constant is too large for 'long' type ftruncate64.c: In function 'main': ftruncate64.c:39: warning: integer constant is too large for 'long' type futimesat.c: In function 'main': futimesat.c:52: warning: integer constant is too large for 'long' type futimesat.c:59: warning: integer constant is too large for 'long' type get_mempolicy.c: In function 'main': get_mempolicy.c:83: warning: integer constant is too large for 'long' type get_mempolicy.c:84: warning: integer constant is too large for 'long' type get_mempolicy.c:85: warning: integer constant is too large for 'long' type get_mempolicy.c:86: warning: integer constant is too large for 'long' type getdents.c: In function 'main': getdents.c:109: warning: integer constant is too large for 'long' type getdents.c:110: warning: integer constant is too large for 'long' type getdents.c:114: warning: integer constant is too large for 'long' type getdents64.c: In function 'main': getdents64.c:114: warning: integer constant is too large for 'long' type getdents64.c:115: warning: integer constant is too large for 'long' type getdents64.c:119: warning: integer constant is too large for 'long' type xgetrlimit.c: In function 'main': xgetrlimit.c:71: warning: integer constant is too large for 'long' type ioctl_block.c:44: warning: integer constant is too large for 'long' type ioctl_block.c: In function 'main': ioctl_block.c:136: warning: integer constant is too large for 'long' type ioctl_block.c:137: warning: integer constant is too large for 'long' type ioctl_block.c:161: warning: integer constant is too large for 'long' type ioctl_block.c:170: warning: integer constant is too large for 'long' type ioctl_block.c:171: warning: integer constant is too large for 'long' type ioctl_evdev.c:42: warning: integer constant is too large for 'long' type ioctl_mtd.c:46: warning: integer constant is too large for 'long' type ioctl_rtc.c:40: warning: integer constant is too large for 'long' type ioperm.c: In function 'main': ioperm.c:12: warning: integer constant is too large for 'long' type ioctl_v4l2.c: In function 'main': ioctl_v4l2.c:409: warning: integer constant is too large for 'long' type ipc.c: In function 'ipc_call': ipc.c:52: warning: integer constant is too large for 'long' type kill.c: In function 'main': kill.c:59: warning: integer constant is too large for 'long' type kill.c:62: warning: integer constant is too large for 'long' type kill.c:63: warning: integer constant is too large for 'long' type kill.c:68: warning: integer constant is too large for 'long' type linkat.c: In function 'main': linkat.c:14: warning: integer constant is too large for 'long' type linkat.c:15: warning: integer constant is too large for 'long' type mbind.c: In function 'main': mbind.c:41: warning: integer constant is too large for 'long' type mbind.c:43: warning: integer constant is too large for 'long' type mbind.c:44: warning: integer constant is too large for 'long' type migrate_pages.c: In function 'main': migrate_pages.c:41: warning: integer constant is too large for 'long' type In file included from mkdirat.c:10: umode_t.c: In function 'test_syscall': umode_t.c:47: warning: integer constant is too large for 'long' type mknod.c: In function 'call_mknod': mknod.c:16: warning: integer constant is too large for 'long' type mknod.c: In function 'main': mknod.c:23: warning: integer constant is too large for 'long' type mknod.c:49: warning: integer constant is too large for 'long' type mknod.c:56: warning: integer constant is too large for 'long' type mknodat.c:12: warning: integer constant is too large for 'long' type mknodat.c: In function 'call_mknodat': mknodat.c:17: warning: integer constant is too large for 'long' type mknodat.c: In function 'main': mknodat.c:24: warning: integer constant is too large for 'long' type mknodat.c:50: warning: integer constant is too large for 'long' type mknodat.c:57: warning: integer constant is too large for 'long' type mmap.c: In function 'main': mmap.c:51: warning: integer constant is too large for 'long' type move_pages.c: In function 'print_stat_pages': move_pages.c:139: warning: integer constant is too large for 'long' type move_pages.c: In function 'print_move_pages': move_pages.c:166: warning: integer constant is too large for 'long' type move_pages.c: In function 'main': move_pages.c:188: warning: integer constant is too large for 'long' type mq_sendrecv.c: In function 'main': mq_sendrecv.c:238: warning: integer constant is too large for 'long' type mq_sendrecv.c:401: warning: integer constant is too large for 'long' type mq_sendrecv.c:403: warning: integer constant is too large for 'long' type nsyscalls.c: In function 'test_syscall': nsyscalls.c:64: warning: integer constant is too large for 'long' type nsyscalls.c:65: warning: integer constant is too large for 'long' type nsyscalls.c:66: warning: integer constant is too large for 'long' type nsyscalls.c:67: warning: integer constant is too large for 'long' type nsyscalls.c:68: warning: integer constant is too large for 'long' type nsyscalls.c:69: warning: integer constant is too large for 'long' type preadv-pwritev.c: In function 'main': preadv-pwritev.c:162: warning: comparison between signed and unsigned prlimit64.c: In function 'main': prlimit64.c:65: warning: integer constant is too large for 'long' type prlimit64.c:70: warning: integer constant is too large for 'long' type remap_file_pages.c: In function 'main': remap_file_pages.c:42: warning: integer constant is too large for 'long' type remap_file_pages.c:43: warning: integer constant is too large for 'long' type remap_file_pages.c:45: warning: integer constant is too large for 'long' type renameat.c: In function 'main': renameat.c:15: warning: integer constant is too large for 'long' type renameat.c:16: warning: integer constant is too large for 'long' type rt_sigqueueinfo.c: In function 'main': rt_sigqueueinfo.c:41: warning: integer constant is too large for 'long' type rt_tgsigqueueinfo.c: In function 'k_tgsigqueueinfo': rt_tgsigqueueinfo.c:45: warning: integer constant is too large for 'long' type rt_tgsigqueueinfo.c:46: warning: integer constant is too large for 'long' type rt_tgsigqueueinfo.c:47: warning: integer constant is too large for 'long' type rt_tgsigqueueinfo.c: In function 'main': rt_tgsigqueueinfo.c:67: warning: integer constant is too large for 'long' type sendfile.c: In function 'main': sendfile.c:110: warning: integer constant is too large for 'long' type sendfile64.c: In function 'main': sendfile64.c:100: warning: integer constant is too large for 'long' type set_mempolicy.c: In function 'main': set_mempolicy.c:129: warning: integer constant is too large for 'long' type set_mempolicy.c:130: warning: integer constant is too large for 'long' type setrlimit.c: In function 'main': setrlimit.c:44: warning: integer constant is too large for 'long' type socketcall.c: In function 'test_socketcall': socketcall.c:58: warning: integer constant is too large for 'long' type splice.c: In function 'main': splice.c:41: warning: integer constant is too large for 'long' type splice.c:42: warning: integer constant is too large for 'long' type splice.c:45: warning: integer constant is too large for 'long' type splice.c:46: warning: integer constant is too large for 'long' type symlinkat.c: In function 'main': symlinkat.c:12: warning: integer constant is too large for 'long' type sync_file_range.c: In function 'main': sync_file_range.c:42: warning: integer constant is too large for 'long' type sync_file_range.c:43: warning: integer constant is too large for 'long' type syslog.c: In function 'main': syslog.c:14: warning: integer constant is too large for 'long' type tee.c: In function 'main': tee.c:41: warning: integer constant is too large for 'long' type tee.c:42: warning: integer constant is too large for 'long' type timer_create.c: In function 'main': timer_create.c:52: warning: integer constant is too large for 'long' type timer_create.c:84: warning: integer constant is too large for 'long' type timer_create.c:85: warning: integer constant is too large for 'long' type truncate64.c: In function 'main': truncate64.c:41: warning: integer constant is too large for 'long' type xgetrlimit.c: In function 'main': xgetrlimit.c:71: warning: integer constant is too large for 'long' type umode_t.c: In function 'test_syscall': umode_t.c:46: warning: integer constant is too large for 'long' type unlinkat.c: In function 'main': unlinkat.c:13: warning: integer constant is too large for 'long' type waitpid.c: In function 'main': waitpid.c:43: warning: integer constant is too large for 'long' type waitid.c: In function 'poison': waitid.c:141: warning: integer constant is too large for 'long' type xetpriority.c: In function 'main': xetpriority.c:15: warning: integer constant is too large for 'long' type xetpriority.c:19: warning: integer constant is too large for 'long' type xetpriority.c:20: warning: integer constant is too large for 'long' type xetpgid.c: In function 'main': xetpgid.c:43: warning: integer constant is too large for 'long' type xetpgid.c:47: warning: integer constant is too large for 'long' type xetpgid.c:48: warning: integer constant is too large for 'long' type (SLES 11SP4, i386) * tests/alarm.c (main): Add proper suffix to integer constant. * tests/aio.c (main): Likewise. * tests/btrfs.c (btrfs_test_sync_ioctls, btrfs_test_subvol_ioctls): Likewise. * tests/dup2.c (main): Likewise. * tests/dup3.c (main): Likewise. * tests/epoll_create.c (main): Likewise. * tests/epoll_ctl.c (invoke_syscall): Likewise. * tests/faccessat.c (main): Likewise. * tests/fchdir.c (main): Likewise. * tests/fcntl.c (test_flock64_einval): Likewise. * tests/fcntl64.c (test_flock64_einval): Likewise. * tests/fdatasync.c (main): Likewise. * tests/flock.c (main): Likewise. * tests/fstat64.c (SAMPLE_SIZE): Likewise. * tests/fstat.c (SAMPLE_SIZE): Likewise. * tests/fsync.c (main): Likewise. * tests/ftruncate64.c (main): Likewise. * tests/futimesat.c (main): Likewise. * tests/get_mempolicy.c (main): Likewise. * tests/getdents.c (main): Likewise. * tests/getdents64.c (main): Likewise. * tests/ioctl_block.c (lmagic, main): Likewise. * tests/ioctl_evdev.c (lmagic): Likewise. * tests/ioctl_mtd.c (lmagic): Likewise. * tests/ioctl_rtc.c (lmagic): Likewise. * tests/ioctl_v4l2.c (main): Likewise. * tests/ioperm.c (main): Likewise. * tests/ipc.c (ipc_call): Likewise. * tests/kill.c (main): Likewise. * tests/linkat.c (main): Likewise. * tests/lstat64.c (SAMPLE_SIZE): Likewise. * tests/lstat.c (SAMPLE_SIZE): Likewise. * tests/mbind.c (main): Likewise. * tests/migrate_pages.c (main): Likewise. * tests/mkdirat.c (TEST_SYSCALL_PREFIX_ARGS): Likewise. * tests/mknod.c (call_mknod, main): Likewise. * tests/mknodat.c (fd, call_mknodat, main): Likewise. * tests/mmap.c (main): Likewise. * tests/move_pages.c (print_stat_pages, print_move_pages): Likewise. * tests/mq_sendrecv.c (main): Likewise. * tests/nsyscalls.c (test_syscall): Likewise. * tests/prlimit64.c (main): Likewise. * tests/remap_file_pages.c (main): Likewise. * tests/renameat.c (main): Likewise. * tests/rt_sigqueueinfo.c (main): Likewise. * tests/rt_tgsigqueueinfo.c (k_tgsigqueueinfo, main): Likewise. * tests/sendfile.c (main): Likewise. * tests/sendfile64.c (main): Likewise. * tests/set_mempolicy.c (main): Likewise. * tests/setrlimit.c (main): Likewise. * tests/socketcall.c (test_socketcall): Likewise. * tests/splice.c (main): Likewise. * tests/stat64.c (SAMPLE_SIZE): Likewise. * tests/stat.c (SAMPLE_SIZE): Likewise. * tests/struct_flock.c (invoke_test_syscall, test_flock_einval): Likewise. * tests/symlinkat.c (main): Likewise. * tests/sync_file_range.c (main): Likewise. * tests/syslog.c (main): Likewise. * tests/tee.c (main): Likewise. * tests/timer_create.c (main): Likewise. * tests/truncate64.c (main): Likewise. * tests/umode_t.c (test_syscall): Likewise. * tests/unlinkat.c (main): Likewise. * tests/waitid.c (main): Likewise. * tests/waitpid.c (main): Likewise. * tests/xetpgid.c (main): Likewise. * tests/xetpriority.c (main): Likewise. * tests/xgetrlimit.c (main): Likewise. * tests/xstatfsx.c (main) [CHECK_ODD_SIZE]: Likewise. * tests/xstatx.c (main): Likewise.
* Use <asm/unistd.h> instead of <sys/syscall.h>Dmitry V. Levin2016-08-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are no users of SYS_* macros provided by <sys/syscall.h>, and definitions of __NR_* macros could be obtained directly from <asm/unistd.h>. * defs.h: Include <asm/unistd.h> instead of <sys/syscall.h>. * test/seccomp.c: Likewise. * test/threaded_execve.c: Likewise. * test/x32_lseek.c: Likewise. * test/x32_mmap.c: Likewise. * tests/_newselect.c: Likewise. * tests/access.c: Likewise. * tests/acct.c: Likewise. * tests/aio.c: Likewise. * tests/alarm.c: Likewise. * tests/attach-f-p.c: Likewise. * tests/bpf.c: Likewise. * tests/brk.c: Likewise. * tests/chmod.c: Likewise. * tests/chown.c: Likewise. * tests/chown32.c: Likewise. * tests/chroot.c: Likewise. * tests/clock_adjtime.c: Likewise. * tests/clock_nanosleep.c: Likewise. * tests/clock_xettime.c: Likewise. * tests/copy_file_range.c: Likewise. * tests/creat.c: Likewise. * tests/dup2.c: Likewise. * tests/dup3.c: Likewise. * tests/epoll_create.c: Likewise. * tests/epoll_create1.c: Likewise. * tests/epoll_ctl.c: Likewise. * tests/epoll_pwait.c: Likewise. * tests/epoll_wait.c: Likewise. * tests/eventfd.c: Likewise. * tests/execveat.c: Likewise. * tests/faccessat.c: Likewise. * tests/fchdir.c: Likewise. * tests/fchmod.c: Likewise. * tests/fchmodat.c: Likewise. * tests/fchown.c: Likewise. * tests/fchown32.c: Likewise. * tests/fchownat.c: Likewise. * tests/fcntl.c: Likewise. * tests/fcntl64.c: Likewise. * tests/fdatasync.c: Likewise. * tests/flock.c: Likewise. * tests/fstat.c: Likewise. * tests/fstat64.c: Likewise. * tests/fstatat64.c: Likewise. * tests/fstatfs.c: Likewise. * tests/fstatfs64.c: Likewise. * tests/fsync.c: Likewise. * tests/ftruncate.c: Likewise. * tests/ftruncate64.c: Likewise. * tests/futimesat.c: Likewise. * tests/get_mempolicy.c: Likewise. * tests/getcwd.c: Likewise. * tests/getdents.c: Likewise. * tests/getdents64.c: Likewise. * tests/getegid.c: Likewise. * tests/getegid32.c: Likewise. * tests/geteuid.c: Likewise. * tests/geteuid32.c: Likewise. * tests/getgid.c: Likewise. * tests/getgid32.c: Likewise. * tests/getgroups.c: Likewise. * tests/getgroups32.c: Likewise. * tests/getpgrp.c: Likewise. * tests/getrandom.c: Likewise. * tests/getresgid.c: Likewise. * tests/getresgid32.c: Likewise. * tests/getresuid.c: Likewise. * tests/getresuid32.c: Likewise. * tests/getrlimit.c: Likewise. * tests/getrusage.c: Likewise. * tests/getuid.c: Likewise. * tests/getuid32.c: Likewise. * tests/getxxid.c: Likewise. * tests/ioctl_uffdio.c: Likewise. * tests/ioperm.c: Likewise. * tests/iopl.c: Likewise. * tests/ipc.c: Likewise. * tests/kill.c: Likewise. * tests/lchown.c: Likewise. * tests/lchown32.c: Likewise. * tests/libmmsg.c: Likewise. * tests/libsocketcall.c: Likewise. * tests/link.c: Likewise. * tests/linkat.c: Likewise. * tests/llseek.c: Likewise. * tests/lseek.c: Likewise. * tests/lstat.c: Likewise. * tests/lstat64.c: Likewise. * tests/mbind.c: Likewise. * tests/membarrier.c: Likewise. * tests/memfd_create.c: Likewise. * tests/migrate_pages.c: Likewise. * tests/mkdir.c: Likewise. * tests/mkdirat.c: Likewise. * tests/mknod.c: Likewise. * tests/mknodat.c: Likewise. * tests/mlock.c: Likewise. * tests/mlock2.c: Likewise. * tests/move_pages.c: Likewise. * tests/newfstatat.c: Likewise. * tests/nsyscalls.c: Likewise. * tests/old_mmap.c: Likewise. * tests/oldselect.c: Likewise. * tests/open.c: Likewise. * tests/openat.c: Likewise. * tests/pause.c: Likewise. * tests/poll.c: Likewise. * tests/prctl-seccomp-filter-v.c: Likewise. * tests/prctl-seccomp-strict.c: Likewise. * tests/preadv2-pwritev2.c: Likewise. * tests/prlimit64.c: Likewise. * tests/pselect6.c: Likewise. * tests/ptrace.c: Likewise. * tests/readdir.c: Likewise. * tests/readlink.c: Likewise. * tests/readlinkat.c: Likewise. * tests/reboot.c: Likewise. * tests/remap_file_pages.c: Likewise. * tests/rename.c: Likewise. * tests/renameat.c: Likewise. * tests/renameat2.c: Likewise. * tests/rmdir.c: Likewise. * tests/rt_sigpending.c: Likewise. * tests/rt_sigprocmask.c: Likewise. * tests/rt_sigsuspend.c: Likewise. * tests/rt_sigtimedwait.c: Likewise. * tests/rt_tgsigqueueinfo.c: Likewise. * tests/sched_get_priority_mxx.c: Likewise. * tests/sched_rr_get_interval.c: Likewise. * tests/sched_xetaffinity.c: Likewise. * tests/sched_xetattr.c: Likewise. * tests/sched_xetparam.c: Likewise. * tests/sched_xetscheduler.c: Likewise. * tests/sched_yield.c: Likewise. * tests/seccomp-filter-v.c: Likewise. * tests/seccomp-filter.c: Likewise. * tests/seccomp-strict.c: Likewise. * tests/select.c: Likewise. * tests/sendfile.c: Likewise. * tests/sendfile64.c: Likewise. * tests/set_mempolicy.c: Likewise. * tests/setdomainname.c: Likewise. * tests/setfsgid.c: Likewise. * tests/setfsgid32.c: Likewise. * tests/setfsuid.c: Likewise. * tests/setfsuid32.c: Likewise. * tests/setgid.c: Likewise. * tests/setgid32.c: Likewise. * tests/setgroups.c: Likewise. * tests/setgroups32.c: Likewise. * tests/sethostname.c: Likewise. * tests/setregid.c: Likewise. * tests/setregid32.c: Likewise. * tests/setresgid.c: Likewise. * tests/setresgid32.c: Likewise. * tests/setresuid.c: Likewise. * tests/setresuid32.c: Likewise. * tests/setreuid.c: Likewise. * tests/setreuid32.c: Likewise. * tests/setrlimit.c: Likewise. * tests/setuid.c: Likewise. * tests/setuid32.c: Likewise. * tests/signalfd4.c: Likewise. * tests/socketcall.c: Likewise. * tests/splice.c: Likewise. * tests/stat.c: Likewise. * tests/stat64.c: Likewise. * tests/statfs.c: Likewise. * tests/statfs64.c: Likewise. * tests/swap.c: Likewise. * tests/symlink.c: Likewise. * tests/symlinkat.c: Likewise. * tests/sync.c: Likewise. * tests/sync_file_range.c: Likewise. * tests/sync_file_range2.c: Likewise. * tests/syslog.c: Likewise. * tests/tee.c: Likewise. * tests/time.c: Likewise. * tests/timer_create.c: Likewise. * tests/timer_xettime.c: Likewise. * tests/timerfd_xettime.c: Likewise. * tests/times-fail.c: Likewise. * tests/times.c: Likewise. * tests/truncate.c: Likewise. * tests/truncate64.c: Likewise. * tests/ugetrlimit.c: Likewise. * tests/umount.c: Likewise. * tests/umount2.c: Likewise. * tests/uname.c: Likewise. * tests/unix-pair-send-recv.c: Likewise. * tests/unlink.c: Likewise. * tests/unlinkat.c: Likewise. * tests/userfaultfd.c: Likewise. * tests/utimes.c: Likewise. * tests/vhangup.c: Likewise. * tests/vmsplice.c: Likewise. * tests/waitid.c: Likewise. * tests/waitpid.c: Likewise. * tests/xet_robust_list.c: Likewise. * tests/xetpgid.c: Likewise. * tests/xetpriority.c: Likewise. * tests/xettimeofday.c: Likewise.
* tests: check decoding of prlimit64 syscallDmitry V. Levin2016-06-061-0/+92
* tests/prlimit64.c: New file. * tests/prlimit64.test: New test. * tests/.gitignore: Add prlimit64. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add prlimit64.test.