Date: 07 Oct 2000 16:52:30 +0200
Content-Type: text/plain; charset=us-ascii
Hello,
I'm trying to compile the following code fragment:
[...]
Unfortunately, I get this compilation error:
gcc -g -Wall -I/gnu/include geom.c -o geom
geom.c: In function `store_get_disk_geometry':
geom.c:19: `_IOT_disk_parms' undeclared (first use in this function)
geom.c:19: (Each undeclared identifier is reported only once
geom.c:19: for each function it appears in.)
geom.c:19: warning: passing arg 3 of `device_get_status' from incompatible pointer
type
I've been trying for many many hours now to track down this
_IOT_disk_parms guy, with no success. What should I include? I'm
getting desperate.
Hmm, you're mixing Mach and Hurd ioctls here, and get bitten by the
fact that the encodining of the ioctls differs between the two. The
Mach/i386 ioctl encoding is specified in <mach/i386/ioccom.h>. The
Hurd ioctl enconding is specified in <bits/ioctls.h>. There are
simply no _IOT_xxx definitions for Mach ioctls.
I'm not sure if mixing the two should work. But in this particular
case, you can
#define _IOT_disk_parms 0x038e
and everything should work fine :-).
By the way, I don't thing V_GETPARMS is supported by oskit-mach.
Mark
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd