summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:33:50 +0000
committerDmitry V. Levin <ldv@altlinux.org>2014-02-05 01:33:50 +0000
commitbce0cc6a2d103e1da4c15a4c5396fdc5676294f7 (patch)
tree25a89204211c047c75d21e19f47a4fa627e99499 /io.c
parenta69ddcb672f326418aaa74f399f600f69d074758 (diff)
downloadstrace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.gz
strace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.bz2
strace-bce0cc6a2d103e1da4c15a4c5396fdc5676294f7.tar.xz
Use XLAT macro
Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index b7bf832..2ed7fa5 100644
--- a/io.c
+++ b/io.c
@@ -319,16 +319,16 @@ sys_sendfile64(struct tcb *tcp)
static const struct xlat splice_flags[] = {
#ifdef SPLICE_F_MOVE
- { SPLICE_F_MOVE, "SPLICE_F_MOVE" },
+ XLAT(SPLICE_F_MOVE),
#endif
#ifdef SPLICE_F_NONBLOCK
- { SPLICE_F_NONBLOCK, "SPLICE_F_NONBLOCK" },
+ XLAT(SPLICE_F_NONBLOCK),
#endif
#ifdef SPLICE_F_MORE
- { SPLICE_F_MORE, "SPLICE_F_MORE" },
+ XLAT(SPLICE_F_MORE),
#endif
#ifdef SPLICE_F_GIFT
- { SPLICE_F_GIFT, "SPLICE_F_GIFT" },
+ XLAT(SPLICE_F_GIFT),
#endif
{ 0, NULL },
};