From: Roland McGrath Date: Mon, 4 Dec 1995 17:10:03 +0000 (+0000) Subject: For IOC_VOID request, send ARG itself as integer_t arg in RPC. X-Git-Tag: upstream/2.30~29800 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99cf7e3ebaa2d779c96bc2fa9a4770ef032d58da;p=external%2Fglibc.git For IOC_VOID request, send ARG itself as integer_t arg in RPC. --- diff --git a/sysdeps/mach/hurd/ioctl.c b/sysdeps/mach/hurd/ioctl.c index a1523c6..7c58270 100644 --- a/sysdeps/mach/hurd/ioctl.c +++ b/sysdeps/mach/hurd/ioctl.c @@ -171,6 +171,13 @@ DEFUN(__ioctl, (fd, request), in (_IOT_COUNT1 (type), _IOT_TYPE1 (type)); in (_IOT_COUNT2 (type), _IOT_TYPE2 (type)); } + else if (_IOC_INOUT (request) == IOC_VOID) + { + /* The RPC takes a single integer_t argument. + Rather than pointing to the value, ARG is the value itself. */ + *t++ = io2mach_type (_IOTS (integer_t)); + *((integer_t *) t)++ = (integer_t) arg; + } /* Compute the expected size of the reply. There is a standard header consisting of the message header and the reply code. Then, for out