]> granicus.if.org Git - strace/commit
tests: use TAIL_ALLOC_OBJECT_CONST_PTR
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Mar 2017 13:46:36 +0000 (13:46 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 16 Mar 2017 13:46:36 +0000 (13:46 +0000)
commiteabace12c42399f03b8ae1a19df19ac6a1b0a4c0
tree854d0be4ac07e1f432f25c83c250d68393a38b64
parentc36875b1709a3ed3f21ef71a84ef5a7a936c8a8e
tests: use TAIL_ALLOC_OBJECT_CONST_PTR

Automatically convert tests to use TAIL_ALLOC_OBJECT_CONST_PTR macro
with the following sed expression:

sed -ri \
's/^([[:space:]]*)(([^*]+[[:alnum:]_])( \*)?) *\*( *const )?([^ =]+) = tail_alloc\(sizeof\((\2|\*\6)\)\);/\1TAIL_ALLOC_OBJECT_CONST_PTR(\2, \6);/' \
tests/*.c
71 files changed:
tests/adjtimex.c
tests/aio.c
tests/copy_file_range.c
tests/epoll_ctl.c
tests/epoll_pwait.c
tests/epoll_wait.c
tests/execve.c
tests/execveat.c
tests/file_handle.c
tests/file_ioctl.c
tests/futex.c
tests/getcpu.c
tests/getresugid.c
tests/getrusage.c
tests/ioctl_block.c
tests/ioctl_evdev.c
tests/ioctl_loop.c
tests/ioctl_mtd.c
tests/ioctl_rtc.c
tests/ioctl_scsi.c
tests/ioctl_sg_io_v3.c
tests/ioctl_sg_io_v4.c
tests/ioctl_sock_gifconf.c
tests/ioctl_uffdio.c
tests/ioctl_v4l2.c
tests/ip_mreq.c
tests/mq_sendrecv.c
tests/msg_control.c
tests/msg_name.c
tests/net-icmp_filter.c
tests/net-y-unix.c
tests/net-yy-inet.c
tests/net-yy-netlink.c
tests/net-yy-unix.c
tests/perf_event_open.c
tests/perf_event_open_nonverbose.c
tests/ppoll.c
tests/prctl-arg2-intptr.c
tests/prctl-no-args.c
tests/prctl-pdeathsig.c
tests/prctl-tid_address.c
tests/prctl-tsc.c
tests/preadv.c
tests/ptrace.c
tests/quotactl-xfs.c
tests/quotactl.c
tests/rt_sigpending.c
tests/rt_sigprocmask.c
tests/rt_sigsuspend.c
tests/rt_sigtimedwait.c
tests/rt_tgsigqueueinfo.c
tests/sched_rr_get_interval.c
tests/sched_xetattr.c
tests/sched_xetscheduler.c
tests/scm_rights.c
tests/seccomp-filter-v.c
tests/seccomp-filter.c
tests/semop.c
tests/sendfile64.c
tests/setgroups.c
tests/sockname.c
tests/splice.c
tests/sysinfo.c
tests/time.c
tests/uname.c
tests/ustat.c
tests/wait4.c
tests/waitid.c
tests/xet_robust_list.c
tests/xetitimer.c
tests/xstatfsx.c