X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ensc_wrappers%2Fwrappers-ioctl.hc;h=710d9562218a1d34c7294493ed478e98835ba47c;hb=35370e2d11f661d780b71204d61439e31b91fb57;hp=7656bf1d14dcaae2cfbc8ccbc86f181711829656;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/ensc_wrappers/wrappers-ioctl.hc b/ensc_wrappers/wrappers-ioctl.hc index 7656bf1..710d956 100644 --- a/ensc_wrappers/wrappers-ioctl.hc +++ b/ensc_wrappers/wrappers-ioctl.hc @@ -27,3 +27,8 @@ Eioctl(int fd, int request, void *p) FatalErrnoError(res<0, "ioctl()"); } +#define EioctlD(fd, request, p) \ + do { \ + int res = ioctl(fd, request, p); \ + FatalErrnoError(res<0, "ioctl(" #request ")"); \ + } while (0)