2019-05-22  Dmitry V. Levin  <ldv@altlinux.org>

	Prepare for 5.1 release.
	* NEWS: Update for 5.1 release.

	Update copyright headers.
	Headers updated automatically using maint/update_copyright_years.sh
	script.

2019-05-22  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Use xzalloc(sz) instead of xcalloc(1, sz)
	* bpf.c (BEGIN_BPF_CMD_DECODER(BPF_OBJ_GET_INFO_BY_FD)): Use xzalloc
	instead of xcalloc of one-item-sized array.
	* kvm.c (vcpu_alloc): Likewise.
	* perf.c (fetch_perf_event_attr): Likewise.
	* syscall.c (ptrace_get_scno): Likewise.

2019-05-22  Eugene Syromyatnikov  <evgsyr@gmail.com>

	xmalloc: introduce xzalloc.
	* xmalloc.h (xmalloc, xcalloc, xreallocarray): Document.
	(xzalloc): New function, a thin wrapper around xcalloc with xmalloc
	interface.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-05-22  Eugene Syromyatnikov  <evgsyr@gmail.com>

	Rename the stat struct used internally by strace to strace_stat_t.
	* largefile_wrappers.h (struct_stat): Rename to strace_stat_t.
	* strace.c (startup_child): Rename struct_stat to strace_stat_t.
	* util.c (printdev): Likewise.

	Move open_file to largefile_wrappers.h.
	* util.c (open_file): Move it ...
	* largefile_wrappers.h: ... here.

2019-05-21  Dmitry V. Levin  <ldv@altlinux.org>

	tests: robustify bpf-obj_get_info_by_fd test against future kernels.
	* tests/bpf-obj_get_info_by_fd.c (print_prog_load, main): Change
	log_level from 42 to 7, to placate Linux kernels containing commit
	v5.2-rc1~133^2~193^2~18^2~9.

	bpf: add support for new fields in struct bpf_prog_info.
	* bpf_attr.h (struct bpf_prog_info_struct): Add run_time_ns and run_cnt
	fields.
	* bpf.c (print_bpf_prog_info): Decode run_time_ns and run_cnt fields
	introduced by Linux kernel commit v5.1-rc1~178^2~17^2~15^2~2.
	* NEWS: Mention it.
	* tests/bpf-obj_get_info_by_fd.c (main): Update expected output.

	xlat: update FAN_* constants.
	* xlat/fan_mark_flags.in (FAN_MARK_FILESYSTEM): New constant
	introduced by Linux kernel commit v4.20-rc1~75^2~10.
	* tests/fanotify_mark.c (main): Update expected output.

	xlat: update IPV6_* constants.
	* xlat/sock_ipv6_options.in (IPV6_MULTICAST_ALL): New constant
	introduced by Linux kernel commit v4.20-rc1~14^2~384.
	(IPV6_ROUTER_ALERT_ISOLATE): New constant introduced
	by Linux kernel commit v5.1-rc1~178^2~22.
	* NEWS: Mention this.

	xlat: update F_SEAL_* constants.
	* xlat/f_seals.in (F_SEAL_FUTURE_WRITE): New constant introduced
	by Linux kernel commit v5.1-rc1~152^2~49.
	* NEWS: Mention this.

2019-05-21  Dmitry V. Levin  <ldv@altlinux.org>

	btrfs: implement decoding of BTRFS_IOC_FORGET_DEV argument.
	... introduced by Linux kernel commit v5.1-rc1~47^2~47.

	* btrfs.c (btrfs_ioctl) [BTRFS_IOC_FORGET_DEV]: Handle
	BTRFS_IOC_FORGET_DEV.
	* tests/btrfs.c (btrfs_test_device_ioctls) [BTRFS_IOC_FORGET_DEV]:
	Check it.

2019-05-21  Gleb Fotengauer-Malinovskiy  <glebfm@altlinux.org>

	Update ioctl entries from linux v5.1.
	* linux/32/ioctls_inc_align16.h: Update from linux v5.1
	using ioctls_gen.sh.
	* linux/32/ioctls_inc_align32.h: Likewise.
	* linux/32/ioctls_inc_align64.h: Likewise.
	* linux/64/ioctls_inc.h: Likewise.
	* linux/x32/ioctls_inc0.h: Likewise.
	* NEWS: Mention this.
	* tests/ioctl_random.c (main): Update expected output.

	Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>

2019-05-20  Dmitry V. Levin  <ldv@altlinux.org>

	xlat: update FAN_* constants.
	* xlat/fan_init_flags.in (FAN_REPORT_FID): New constant introduced
	by Linux kernel commit v5.1-rc1~139^2~18.
	* xlat/fan_event_flags.in (FAN_ATTRIB, FAN_MOVED_FROM, FAN_MOVED_TO,
	FAN_CREATE, FAN_DELETE, FAN_DELETE_SELF, FAN_MOVE_SELF): New constants
	introduced by Linux kernel commit v5.1-rc1~139^2~9.
	* NEWS: Mention this.
	* tests/fanotify_init.c (main): Update expected output.
	* tests/fanotify_mark.c (main): Likewise.

	xlat: update PR_SPEC_* constants.
	* xlat/pr_spec_get_store_bypass_flags.in (PR_SPEC_DISABLE_NOEXEC):
	New constant introduced by Linux kernel commit v5.1-rc1~168^2.
	* xlat/pr_spec_set_store_bypass_flags.in: Likewise.
	* NEWS: Mention this.
	* tests/prctl-spec-inject.c (get_strs, set_strs): Update.

	xlat: update BPF_* constants.
	* xlat/ebpf_class.in (BPF_JMP32): New constant introduced
	by Linux kernel commit v5.1-rc1~178^2~404^2~4^2~15.
	* xlat/bpf_map_update_elem_flags.in (BPF_F_LOCK): New constant
	introduced by Linux kernel commit v5.1-rc1~178^2~375^2~4^2~3.
	* NEWS: Mention this.

	xlat: update V4L2_* constants.
	* xlat/v4l2_control_ids.in
	(V4L2_CID_MPEG_VIDEO_H264_CONSTRAINED_INTRA_PREDICTION): New constant
	introduced by Linux kernel commit v5.1-rc1~88^2~261.
	(V4L2_CID_MPEG_VIDEO_H264_CHROMA_QP_INDEX_OFFSET): New constant
	introduced by Linux kernel commit v5.1-rc1~88^2~260.
	* xlat/v4l2_pix_fmts.in (V4L2_PIX_FMT_AYUV32, V4L2_PIX_FMT_XYUV32,
	V4L2_PIX_FMT_VUYA32, V4L2_PIX_FMT_VUYX32): New constants
	introduced by Linux kernel commit v5.1-rc1~88^2~90.
	* NEWS: Mention this.

	xlat: update NT_* constants.
	* xlat/nt_descriptor_types.in (NT_ARM_PACA_KEYS, NT_ARM_PACG_KEYS): New
	constants introduced by Linux kernel commit v5.1-rc1~82^2~44.
	* NEWS: Mention this.

2019-05-19  Dmitry V. Levin  <ldv@altlinux.org>

	Implement decoding of io_uring_* syscalls.
	... introduced by Linux kernel commits v5.1-rc1~99^2~14,
	v5.1-rc1~99^2~7, and v5.1-rc7~24^2.

	* configure.ac (AC_CHECK_HEADERS): Add linux/io_uring.h.
	* io_uring.c: New file.
	* Makefile.am (strace_SOURCES): Add it.
	* pathtrace.c (pathtrace_match_set): Add SEN_io_uring_enter,
	SEN_io_uring_register, and SEN_io_uring_setup.
	* xlat/uring_enter_flags.in: New file.
	* xlat/uring_register_opcodes.in: Likewise.
	* linux/32/syscallent.h [425, 426, 427]: Wire up io_uring_setup,
	io_uring_enter, and io_uring_register.
	* linux/64/syscallent.h: Likewise.
	* linux/arm/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/powerpc64/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/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.
	* linux/alpha/syscallent.h [535, 536, 537]: Likewise.
	* linux/ia64/syscallent.h [1024 + 425, 1024 + 426, 1024 + 427]: Likewise.
	* linux/mips/syscallent-n32.h [6425, 6426, 6427]: Likewise.
	* linux/mips/syscallent-n64.h [5425, 5426, 5427]: Likewise.
	* linux/mips/syscallent-o32.h [4425, 4426, 4427]: Likewise.
	* NEWS: Mention this change.
	* tests/io_uring_enter.c: New file.
	* tests/io_uring_register.c: Likewise.
	* tests/io_uring_setup.c: Likewise.
	* tests/gen_tests.in (io_uring_enter, io_uring_register,
	io_uring_setup): New entries.
	* tests/pure_executables.list: Add io_uring_enter, io_uring_register,
	and io_uring_setup.
	* tests/.gitignore: Likewise.

2019-05-18  Dmitry V. Levin  <ldv@altlinux.org>

	Implement decoding of pidfd_send_signal syscall.
	... introduced by Linux kernel commit v5.1-rc1~6^2~1.

	* signal.c (SYS_FUNC(pidfd_send_signal)): New function.
	* linux/32/syscallent.h [424]: Wire up pidfd_send_signal.
	* linux/64/syscallent.h: Likewise.
	* linux/arm/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/powerpc64/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/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.
	* linux/alpha/syscallent.h [534]: Likewise.
	* linux/ia64/syscallent.h [1024 + 424]: Likewise.
	* linux/mips/syscallent-n32.h [6424]: Likewise.
	* linux/mips/syscallent-n64.h [5424]: Likewise.
	* linux/mips/syscallent-o32.h [4424]: Likewise.
	* NEWS: Mention this change.
	* tests/pidfd_send_signal.c: New file.
	* tests/gen_tests.in (pidfd_send_signal): New entry.
	* tests/pure_executables.list: Add pidfd_send_signal.
	* tests/.gitignore: Likewise.

2019-05-17  Dmitry V. Levin  <ldv@altlinux.org>

	tests: check decoding of SO_TIMESTAMP*_NEW control messages.
	* configure.ac (AC_CHECK_TYPES): Check for struct __kernel_timespec
	and struct __kernel_sock_timeval.
	* tests/msg_control.c [HAVE_STRUCT___KERNEL_SOCK_TIMEVAL ||
	HAVE_STRUCT___KERNEL_TIMESPEC]: Include <linux/time_types.h>.
	(test_scm_timestamp): Rename to test_scm_timestamp_old.
	(test_scm_timestampns): Rename to test_scm_timestampns_old.
	(test_scm_timestamping): Rename to test_scm_timestamping_old.
	[HAVE_STRUCT___KERNEL_SOCK_TIMEVAL] (test_scm_timestamp_new): New
	function.
	[HAVE_STRUCT___KERNEL_TIMESPEC] (test_scm_timestampns_new,
	test_scm_timestamping_new): New functions.
	(test_sol_socket): Use them.
	* tests/sockopt-timestamp.c [HAVE_STRUCT___KERNEL_SOCK_TIMEVAL ||
	HAVE_STRUCT___KERNEL_TIMESPEC]: Include <linux/time_types.h>.
	Include "xlat/sock_options.h" in XLAT_MACROS_ONLY mode.
	(print_timestampns_old): Define unconditionally.
	[HAVE_STRUCT___KERNEL_SOCK_TIMEVAL] (print_timestamp_new): New function.
	[HAVE_STRUCT___KERNEL_TIMESPEC] (print_timestampns_new): Likewise.
	(main): Test SO_TIMESTAMPNS_OLD unconditionally.
	[HAVE_STRUCT___KERNEL_SOCK_TIMEVAL]: Test SO_TIMESTAMP_NEW.
	[HAVE_STRUCT___KERNEL_TIMESPEC]: Test SO_TIMESTAMPNS_NEW.

	Implement decoding of SO_TIMESTAMP*_NEW control messages.
	* print_timeval64.c: New file.
	* Makefile.am (strace_SOURCES): Add it.
	* defs.h (print_timeval64_data_size): New prototype.
	* msghdr.c (print_scm_timestamp_new, print_scm_timestampns_new,
	print_scm_timestamping_new): New functions.
	(cmsg_socket_printers): Add SO_TIMESTAMP_NEW, SO_TIMESTAMPNS_NEW,
	and SO_TIMESTAMPING_NEW.
	* NEWS: Mention this change.

2019-05-17  Dmitry V. Levin  <ldv@altlinux.org>

	print_timespec.h: parametrize TIMESPEC_T.tv_nsec.
	This is going to be used to implement a parser of SO_TIMESTAMP_NEW
	control message.

	* print_timespec.h [!TIMESPEC_NSEC] (TIMESPEC_NSEC): Define to tv_sec.
	(TIMESPEC_TO_SEC_NSEC, timespec_fmt, print_timespec_t_utime): Use
	TIMESPEC_NSEC instead of tv_sec.

2019-05-17  Dmitry V. Levin  <ldv@altlinux.org>

	print_timespec.h: conditionalize printers.
	This allows to implement a parser of SO_TIMESTAMP_NEW control message
	without implementing extra unused printers.

	* print_timespec.h (PRINT_TIMESPEC_DATA_SIZE,
	PRINT_TIMESPEC_ARRAY_DATA_SIZE, PRINT_TIMESPEC, SPRINT_TIMESPEC,
	PRINT_TIMESPEC_UTIME_PAIR, PRINT_ITIMERSPEC): Conditionalize.

2019-05-17  Dmitry V. Levin  <ldv@altlinux.org>

	xlat: add SO_TIMESTAMP*_NEW constants.
	* xlat/sock_options.in (SO_TIMESTAMP_NEW, SO_TIMESTAMPNS_NEW,
	SO_TIMESTAMPING_NEW): New constants introduced by Linux commits
	v5.1-rc1~178^2~363^2~4 and v5.1-rc1~178^2~363^2~3.
	* xlat/scmvals.in: Likewise.

2019-05-16  Dmitry V. Levin  <ldv@altlinux.org>

	Use kernel_timeval64_t in definition of kernel_timex64_t.
	* kernel_timex.h: Include "kernel_timeval.h".
	(kernel_timex64_t): Change the type of "time" field from a locally
	defined structure to its equivalent kernel_timeval64_t.

2019-05-16  Dmitry V. Levin  <ldv@altlinux.org>

	Introduce kernel_timeval64_t type.
	This type is going to be used to implement parsers of SO_TIMESTAMP*_NEW
	control messages.

	* kernel_timeval.h: New file.
	* Makefile.am (strace_SOURCES): Add it.

2019-05-15  Dmitry V. Levin  <ldv@altlinux.org>

	xlat: add _OLD suffixes to SO_RCVTIMEO and SO_SNDTIMEO.
	Follow the Linux kernel commit v5.1-rc1~178^2~363^2~1 and rename
	these constants.

	* xlat/sock_options.in (SO_RCVTIMEO): Rename to SO_RCVTIMEO_OLD.
	(SO_SNDTIMEO): Rename to SO_SNDTIMEO_OLD.

2019-05-15  Dmitry V. Levin  <ldv@altlinux.org>

	Rename SO_TIMESTAMP* to SO_TIMESTAMP*_OLD.
	Follow the Linux kernel commit v5.1-rc1~178^2~363^2~8 and rename
	these constants everywhere.

	* xlat/scmvals.in (SO_TIMESTAMP): Rename to SO_TIMESTAMP_OLD.
	(SO_TIMESTAMPNS): Rename to SO_TIMESTAMPNS_OLD.
	(SO_TIMESTAMPING): Rename to SO_TIMESTAMPING_OLD.
	* xlat/sock_options.in: Likewise.
	* xlat/sock_rds_options.in: Likewise.
	* msghdr.c (cmsg_socket_printers): Likewise.
	(print_scm_timestamp): Rename to print_scm_timestamp_old.
	(print_scm_timestampns): Rename to print_scm_timestampns_old.
	(print_scm_timestamping): Rename to print_scm_timestamping_old.
	* tests/msg_control.c (test_scm_timestamp): Rename SO_TIMESTAMP
	to SO_TIMESTAMP_OLD.
	(test_scm_timestampns): Rename SO_TIMESTAMPNS to SO_TIMESTAMPNS_OLD.
	(test_scm_timestamping): Rename SO_TIMESTAMPING to SO_TIMESTAMPING_OLD.
	* tests/sockopt-timestamp.c (main): Rename SO_TIMESTAMP and
	SO_TIMESTAMPNS to SO_TIMESTAMP_OLD and SO_TIMESTAMPNS_OLD, respectively.

2019-05-15  Dmitry V. Levin  <ldv@altlinux.org>

	Replace SCM_TIMESTAMP* constants with SO_TIMESTAMP*
	Besides the fact that SO_TIMESTAMP* constants appear to be more
	standardized than SCM_TIMESTAMP*, new SO_TIMESTAMP*_OLD and
	SO_TIMESTAMP*_NEW constants introduced in Linux 5.1 have no
	SCM_TIMESTAMP*_OLD and SCM_TIMESTAMP*_NEW analogues.

	* xlat/scmvals.in: Replace SCM_WIFI_STATUS, SCM_TXTIME, SCM_TIMESTAMP,
	SCM_TIMESTAMPNS, and SCM_TIMESTAMPING with SO_WIFI_STATUS, SO_TXTIME,
	SO_TIMESTAMP, SO_TIMESTAMPNS, and SO_TIMESTAMPING, respectively.
	* msghdr.c: Include "xlat/sock_options.h" in XLAT_MACROS_ONLY mode.
	(cmsg_socket_printers): Replace SCM_TIMESTAMP, SCM_TIMESTAMPNS, and
	SCM_TIMESTAMPING with SO_TIMESTAMP, SO_TIMESTAMPNS, and SO_TIMESTAMPING,
	respectively.
	* tests/msg_control.c: Include "xlat/sock_options.h" in XLAT_MACROS_ONLY
	mode.
	(test_scm_timestamp): Replace SCM_TIMESTAMP with SO_TIMESTAMP.
	(test_scm_timestampns): Replace SCM_TIMESTAMPNS with SO_TIMESTAMPNS.
	(test_scm_timestamping): Replace SCM_TIMESTAMPING with SO_TIMESTAMPING.
	* tests/sockopt-timestamp.c (main): Replace SCM_TIMESTAMP and
	SCM_TIMESTAMPNS with SO_TIMESTAMP and SO_TIMESTAMPNS, respectively.

2019-05-15  Dmitry V. Levin  <ldv@altlinux.org>

	tests: add another test of SO_TIMESTAMP and SO_TIMESTAMPNS decoding.
	Unlike msg_control test, this new test makes the kernel generate
	SO_TIMESTAMP and SO_TIMESTAMPNS messages.

	* tests/sockopt-timestamp.c: New file.
	* tests/gen_tests.in (sockopt-timestamp): New entry.
	* tests/pure_executables.list: Add sockopt-timestamp.
	* tests/.gitignore: Likewise.

2019-05-12  Dmitry V. Levin  <ldv@altlinux.org>

	print_timespec.c: remove unused printers.
	* print_timespec.c (PRINT_TIMESPEC, SPRINT_TIMESPEC,
	PRINT_TIMESPEC_UTIME_PAIR, PRINT_ITIMERSPEC): Remove.
	(print_timespec, sprint_timespec, print_timespec_utime_pair,
	print_itimerspec): Remove.

	Implement and use new parsers of utimensat syscall.
	* utimes.c (SYS_FUNC(utimensat)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(utimensat_time32)): New function.
	* pathtrace.c (pathtrace_match_set): Replace SEN_utimensat with
	SEN_utimensat_time32.
	* linux/64/syscallent.h: Replace SEN(utimensat) with
	SEN(utimensat_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(utimensat) with
	SEN(utimensat_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of timerfd_gettime and timerfd_settime syscalls
	* time.c (SYS_FUNC(timerfd_gettime), SYS_FUNC(timerfd_settime)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(timerfd_gettime32),
	SYS_FUNC(timerfd_settime32)): New functions.
	* pathtrace.c (pathtrace_match_set): Replace SEN_timerfd_gettime and
	SEN_timerfd_settime with SEN_timerfd_gettime32 and
	SEN_timerfd_settime32, respectively.
	* linux/64/syscallent.h: Replace SEN(timerfd_gettime) and
	SEN(timerfd_settime) with SEN(timerfd_gettime64) and
	SEN(timerfd_settime64), respectively.
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(timerfd_gettime) and
	SEN(timerfd_settime) with SEN(timerfd_gettime32) and
	SEN(timerfd_settime32), respectively.
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of timer_gettime and timer_settime syscalls
	* time.c (SYS_FUNC(timer_gettime), SYS_FUNC(timer_settime)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(timer_gettime32),
	SYS_FUNC(timer_settime32)): New functions.
	* linux/64/syscallent.h: Replace SEN(timer_gettime) and
	SEN(timer_settime) with SEN(timer_gettime64) and SEN(timer_settime64),
	respectively.
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(timer_gettime) and
	SEN(timer_settime) with SEN(timer_gettime32) and SEN(timer_settime32),
	respectively.
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of nanosleep syscall.
	* time.c (SYS_FUNC(nanosleep)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS || HAVE_ARCH_OLD_TIME64_SYSCALLS]
	(do_nanosleep): New function.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(nanosleep_time32)): Likewise.
	[HAVE_ARCH_OLD_TIME64_SYSCALLS] (SYS_FUNC(nanosleep_time64)): Likewise.
	* linux/64/syscallent.h: Replace SEN(nanosleep) with
	SEN(nanosleep_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(nanosleep) with
	SEN(nanosleep_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of clock_nanosleep syscall.
	* time.c (SYS_FUNC(clock_nanosleep)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(clock_nanosleep_time32)): New
	function.
	* linux/64/syscallent.h: Replace SEN(clock_nanosleep) with
	SEN(clock_nanosleep_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(clock_nanosleep) with
	SEN(clock_nanosleep_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of clock_gettime and clock_settime syscalls
	* time.c (SYS_FUNC(clock_gettime), SYS_FUNC(clock_settime)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(clock_gettime32),
	SYS_FUNC(clock_settime32)): New functions.
	* linux/dummy.h (sys_clock_getres): Remove.
	(sys_clock_getres_time32): Redirect to sys_clock_gettime32.
	* linux/64/syscallent.h: Replace SEN(clock_gettime), SEN(clock_settime),
	and SEN(clock_getres) with SEN(clock_gettime64), SEN(clock_settime64),
	and SEN(clock_getres_time64), respectively.
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(clock_gettime), SEN(clock_settime),
	and SEN(clock_getres) with SEN(clock_gettime32), SEN(clock_settime32),
	and SEN(clock_getres_time32), respectively.
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of mq_timedsend and mq_timedreceive syscalls
	* mq.c (SYS_FUNC(mq_timedsend), SYS_FUNC(mq_timedreceive)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(mq_timedsend_time32),
	SYS_FUNC(mq_timedreceive_time32)): New functions.
	* pathtrace.c (pathtrace_match_set): Replace SEN_mq_timedsend and
	SEN_mq_timedreceive with SEN_mq_timedsend_time32 and
	SEN_mq_timedreceive_time32, respectively.
	* syscall.c (dumpio): Likewise.
	* linux/64/syscallent.h: Replace SEN(mq_timedsend) and
	SEN(mq_timedreceive) with SEN(mq_timedsend_time64) and
	SEN(mq_timedreceive_time64), respectively.
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(mq_timedsend) and
	SEN(mq_timedreceive) with SEN(mq_timedsend_time32) and
	SEN(mq_timedreceive_time32), respectively.
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of rt_sigtimedwait syscall.
	* signal.c (SYS_FUNC(rt_sigtimedwait)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(rt_sigtimedwait_time32)): New
	function.
	* linux/64/syscallent.h: Replace SEN(rt_sigtimedwait) with
	SEN(ppoll_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(rt_sigtimedwait) with
	SEN(ppoll_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of sched_rr_get_interval syscall.
	* sched.c (SYS_FUNC(sched_rr_get_interval)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(sched_rr_get_interval_time32)):
	New function.
	* linux/64/syscallent.h: Replace SEN(sched_rr_get_interval) with
	SEN(sched_rr_get_interval_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(sched_rr_get_interval) with
	SEN(sched_rr_get_interval_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of poll syscall.
	* poll.c (SYS_FUNC(poll)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS || HAVE_ARCH_OLD_TIME64_SYSCALLS] (do_poll):
	New function.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(poll_time32)): Likewise.
	[HAVE_ARCH_OLD_TIME64_SYSCALLS] (SYS_FUNC(poll_time64)): Likewise.
	* pathtrace.c (pathtrace_match_set): Replace SEN_poll with
	SEN_poll_time32 and SEN_poll_time64.
	* linux/aarch64/syscallent.h: Replace SEN(poll) with SEN(poll_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/arm/syscallent.h: Replace SEN(poll) with SEN(poll_time32).
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of ppoll syscall.
	* poll.c (SYS_FUNC(ppoll)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(ppoll_time32)): New function.
	* pathtrace.c (pathtrace_match_set): Replace SEN_ppoll with
	SEN_ppoll_time32.
	* linux/64/syscallent.h: Replace SEN(ppoll) with SEN(ppoll_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(ppoll) with SEN(ppoll_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of recvmmsg syscall.
	* mmsghdr.c (SYS_FUNC(recvmmsg)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(recvmmsg_time32)): New function.
	* syscall.c (dumpio): Handle SEN_recvmmsg_time32.
	* linux/subcall32.h (sys_recvmmsg): Redirect to sys_recvmmsg_time32.
	* linux/subcall64.h (sys_recvmmsg): Redirect to sys_recvmmsg_time64.
	* linux/64/syscallent.h: Replace SEN(recvmmsg) with SEN(recvmmsg_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(recvmmsg) with SEN(recvmmsg_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of semtimedop syscall.
	* ipc_sem.c (SYS_FUNC(semtimedop)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(semtimedop_time32)): New function.
	* linux/subcall32.h (sys_semtimedop): Redirect to sys_semtimedop_time32.
	* linux/subcall64.h (sys_semtimedop): Redirect to sys_semtimedop_time64.
	* linux/64/syscallent.h: Replace SEN(semtimedop) with
	SEN(semtimedop_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(semtimedop) with
	SEN(semtimedop_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

2019-05-12  Dmitry V. Levin  <ldv@altlinux.org>

	Introduce subcall32.h and subcall64.h wrappers.
	They are going to be used to implement new parsers for indirect
	time-related syscalls.

	* linux/subcall32.h: New file.
	* linux/subcall64.h: Likewise.
	* Makefile.am (EXTRA_DIST): Add them.
	* linux/arm/syscallent.h: Replace "subcall.h" with "subcall32.h".
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Replace "subcall.h" with "subcall64.h".
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.

2019-05-12  Dmitry V. Levin  <ldv@altlinux.org>

	Implement and use new parsers of futex syscall.
	* futex.c (SYS_FUNC(futex)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(futex_time32)): New function.
	* linux/64/syscallent.h: Replace SEN(futex) with SEN(futex_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(futex) with SEN(futex_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of pselect6 syscall.
	* desc.c (SYS_FUNC(pselect6)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(pselect6_time32)): New function.
	* pathtrace.c (pathtrace_match_set): Replace SEN_pselect6 with
	SEN_pselect6_time32.
	* linux/64/syscallent.h: Replace SEN(pselect6) with
	SEN(pselect6_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(pselect6) with
	SEN(pselect6_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of io_pgetevents syscall.
	* aio.c (SYS_FUNC(io_pgetevents)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(io_pgetevents_time32)): New
	function.
	* linux/64/syscallent.h: Replace SEN(io_pgetevents) with
	SEN(io_pgetevents_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(io_pgetevents) with
	SEN(io_pgetevents_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

	Implement and use new parsers of io_getevents syscall.
	* aio.c (SYS_FUNC(io_getevents)): Remove.
	[HAVE_ARCH_TIME32_SYSCALLS] (SYS_FUNC(io_getevents_time32)): New
	function.
	[HAVE_ARCH_OLD_TIME64_SYSCALLS] (SYS_FUNC(io_getevents_time64)):
	Likewise.
	* linux/64/syscallent.h: Replace SEN(io_getevents) with
	SEN(io_getevents_time64).
	* linux/alpha/syscallent.h: Likewise.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* linux/32/syscallent.h: Replace SEN(io_getevents) with
	SEN(io_getevents_time32).
	* linux/arm/syscallent.h: Likewise.
	* linux/avr32/syscallent.h: Likewise.
	* linux/bfin/syscallent.h: Likewise.
	* linux/hppa/syscallent.h: Likewise.
	* linux/i386/syscallent.h: Likewise.
	* linux/m68k/syscallent.h: Likewise.
	* linux/microblaze/syscallent.h: Likewise.
	* linux/mips/syscallent-n32.h: Likewise.
	* linux/mips/syscallent-o32.h: Likewise.
	* linux/powerpc/syscallent.h: Likewise.
	* linux/s390/syscallent.h: Likewise.
	* linux/sh/syscallent.h: Likewise.
	* linux/sparc/syscallent.h: Likewise.
	* linux/xtensa/syscallent.h: Likewise.

2019-05-11  Dmitry V. Levin  <ldv@altlinux.org>

	Wire up *time64 system calls.
	* linux/32/syscallent.h [403...423]: Wire up clock_gettime64,
	clock_settime64, clock_adjtime64, clock_getres_time64,
	clock_nanosleep_time64, timer_gettime64, timer_settime64,
	timerfd_gettime64, timerfd_settime64, utimensat_time64, pselect6_time64,
	ppoll_time64, io_pgetevents_time64, recvmmsg_time64,
	mq_timedsend_time64, mq_timedreceive_time64, semtimedop_time64,
	rt_sigtimedwait_time64, futex_time64, and sched_rr_get_interval_time64
	introduced by linux commit v5.1-rc1~160^2~2^2.
	* linux/arm/syscallent.h [403...423]: Likewise.
	* linux/hppa/syscallent.h [403...423]: Likewise.
	* linux/i386/syscallent.h [403...423]: Likewise.
	* linux/m68k/syscallent.h [403...423]: Likewise.
	* linux/microblaze/syscallent.h [403...423]: Likewise.
	* linux/mips/syscallent-n32.h [6403...6423]: Likewise.
	* linux/mips/syscallent-o32.h [4403...4423]: Likewise.
	* linux/powerpc/syscallent.h [403...423]: Likewise.
	* linux/s390/syscallent.h [403...423]: Likewise.
	* linux/sh/syscallent.h [403...423]: Likewise.
	* linux/sparc/syscallent.h [403...423]: Likewise.
	* linux/xtensa/syscallent.h [403...423]: Likewise.
	* linux/64/syscallent.h: Add a comment about syscall numbers
	reserved to sync up with other architectures.
	* linux/ia64/syscallent.h: Likewise.
	* linux/mips/syscallent-n64.h: Likewise.
	* linux/powerpc64/syscallent.h: Likewise.
	* linux/s390x/syscallent.h: Likewise.
	* linux/sh64/syscallent.h: Likewise.
	* linux/sparc64/syscallent.h: Likewise.
	* linux/x32/syscallent.h: Likewise.
	* linux/x86_64/syscallent.h: Likewise.
	* pathtrace.c (pathtrace_match_set): Handle SEN_utimensat_time64,
	SEN_pselect6_time64, SEN_ppoll_time64, SEN_mq_timedreceive_time64,
	SEN_mq_timedsend_time64, SEN_timerfd_gettime64, and
	SEN_timerfd_settime64.
	* syscall.c (dumpio): Handle SEN_mq_timedsend_time64,
	SEN_mq_timedreceive_time64, and SEN_recvmmsg_time64.
	* NEWS: Mention this.

	Implement parsers of new *time64 system calls.
	* aio.c (SYS_FUNC(io_pgetevents_time64)): New function.
	* desc.c (SYS_FUNC(pselect6_time64)): Likewise.
	* futex.c (SYS_FUNC(futex_time64)): Likewise.
	* ipc_sem.c (SYS_FUNC(semtimedop_time64)): Likewise.
	* mmsghdr.c (SYS_FUNC(recvmmsg_time64)): Likewise.
	* mq.c (SYS_FUNC(mq_timedsend_time64),
	SYS_FUNC(mq_timedreceive_time64)): Likewise.
	* poll.c (SYS_FUNC(ppoll_time64)): Likewise.
	* sched.c (SYS_FUNC(sched_rr_get_interval_time64)): Likewise.
	* signal.c (SYS_FUNC(rt_sigtimedwait_time64)): Likewise.
	* time.c (SYS_FUNC(clock_settime64), SYS_FUNC(clock_gettime64),
	SYS_FUNC(clock_nanosleep_time64), SYS_FUNC(timer_settime64),
	SYS_FUNC(timer_gettime64), SYS_FUNC(timerfd_settime64),
