# define MOREDATA 2
# endif
-static const struct xlat msgflags[] = {
- { RS_HIPRI, "RS_HIPRI" },
- { 0, NULL },
-};
+#include "xlat/msgflags.h"
static void
printstrbuf(struct tcb *tcp, struct strbuf *sbp, int getting)
}
# if defined SYS_putpmsg || defined SYS_getpmsg
-static const struct xlat pmsgflags[] = {
-# ifdef MSG_HIPRI
- { MSG_HIPRI, "MSG_HIPRI" },
-# endif
-# ifdef MSG_AND
- { MSG_ANY, "MSG_ANY" },
-# endif
-# ifdef MSG_BAND
- { MSG_BAND, "MSG_BAND" },
-# endif
- { 0, NULL },
-};
+#include "xlat/pmsgflags.h"
# ifdef SYS_putpmsg
int
sys_putpmsg(struct tcb *tcp)
for (i = 1; i < 3; i++)
printstrbufarg(tcp, tcp->u_arg[i], 1);
/* pointer to band */
- printnum(tcp, tcp->u_arg[3], "%d");
+ printnum_int(tcp, tcp->u_arg[3], "%d");
tprints(", ");
/* pointer to flags */
if (tcp->u_arg[4] == 0)
#ifdef HAVE_SYS_POLL_H
-static const struct xlat pollflags[] = {
-# ifdef POLLIN
- { POLLIN, "POLLIN" },
- { POLLPRI, "POLLPRI" },
- { POLLOUT, "POLLOUT" },
-# ifdef POLLRDNORM
- { POLLRDNORM, "POLLRDNORM" },
-# endif
-# ifdef POLLWRNORM
- { POLLWRNORM, "POLLWRNORM" },
-# endif
-# ifdef POLLRDBAND
- { POLLRDBAND, "POLLRDBAND" },
-# endif
-# ifdef POLLWRBAND
- { POLLWRBAND, "POLLWRBAND" },
-# endif
- { POLLERR, "POLLERR" },
- { POLLHUP, "POLLHUP" },
- { POLLNVAL, "POLLNVAL" },
-# endif
- { 0, NULL },
-};
+#include "xlat/pollflags.h"
static int
decode_poll(struct tcb *tcp, long pts)