summaryrefslogtreecommitdiff
path: root/stream.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 /stream.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 'stream.c')
-rw-r--r--stream.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/stream.c b/stream.c
index f0c2af4..99d0897 100644
--- a/stream.c
+++ b/stream.c
@@ -56,7 +56,7 @@ struct strbuf {
# endif
static const struct xlat msgflags[] = {
- { RS_HIPRI, "RS_HIPRI" },
+ XLAT(RS_HIPRI),
{ 0, NULL },
};
@@ -155,13 +155,13 @@ sys_getmsg(struct tcb *tcp)
# if defined SYS_putpmsg || defined SYS_getpmsg
static const struct xlat pmsgflags[] = {
# ifdef MSG_HIPRI
- { MSG_HIPRI, "MSG_HIPRI" },
+ XLAT(MSG_HIPRI),
# endif
# ifdef MSG_AND
- { MSG_ANY, "MSG_ANY" },
+ XLAT(MSG_ANY),
# endif
# ifdef MSG_BAND
- { MSG_BAND, "MSG_BAND" },
+ XLAT(MSG_BAND),
# endif
{ 0, NULL },
};
@@ -244,24 +244,24 @@ sys_getpmsg(struct tcb *tcp)
static const struct xlat pollflags[] = {
# ifdef POLLIN
- { POLLIN, "POLLIN" },
- { POLLPRI, "POLLPRI" },
- { POLLOUT, "POLLOUT" },
+ XLAT(POLLIN),
+ XLAT(POLLPRI),
+ XLAT(POLLOUT),
# ifdef POLLRDNORM
- { POLLRDNORM, "POLLRDNORM" },
+ XLAT(POLLRDNORM),
# endif
# ifdef POLLWRNORM
- { POLLWRNORM, "POLLWRNORM" },
+ XLAT(POLLWRNORM),
# endif
# ifdef POLLRDBAND
- { POLLRDBAND, "POLLRDBAND" },
+ XLAT(POLLRDBAND),
# endif
# ifdef POLLWRBAND
- { POLLWRBAND, "POLLWRBAND" },
+ XLAT(POLLWRBAND),
# endif
- { POLLERR, "POLLERR" },
- { POLLHUP, "POLLHUP" },
- { POLLNVAL, "POLLNVAL" },
+ XLAT(POLLERR),
+ XLAT(POLLHUP),
+ XLAT(POLLNVAL),
# endif
{ 0, NULL },
};