Make IOCTL_WSTOP more readable

* defs.h: Make IOCTL_WSTOP more readable

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko 2011-06-24 23:07:24 +02:00
parent 13d22f1aa3
commit 9015cd9f9e

5
defs.h
View File

@ -259,9 +259,8 @@ extern int mp_ioctl(int f, int c, void *a, int s);
#define IOCTL(f,c,a) mp_ioctl(f, c, a, sizeof *a)
#define IOCTL_STATUS(t) \
pread(t->pfd_stat, &t->status, sizeof t->status, 0)
#define IOCTL_WSTOP(t) \
(IOCTL(t->pfd, PCWSTOP, (char *)NULL) < 0 ? -1 : \
IOCTL_STATUS(t))
#define IOCTL_WSTOP(t) \
(IOCTL(t->pfd, PCWSTOP, (char *)NULL) < 0 ? -1 : IOCTL_STATUS(t))
#define PR_WHY pr_lwp.pr_why
#define PR_WHAT pr_lwp.pr_what
#define PR_REG pr_lwp.pr_context.uc_mcontext.gregs