bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get _IOT_disk_parms ?


From: Pontus Lidman
Subject: How to get _IOT_disk_parms ?
Date: 07 Oct 2000 16:52:30 +0200
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Carlsbad Caverns)

Hello,

I'm trying to compile the following code fragment:

#define _GNU_SOURCE /* required for hurd/signal.h */

#include <hurd.h>
#include <sys/ioctl.h> /* for _IOR, which is expansion of V_GETPARMS */
#include <sys/types.h>  /* for u_short */
#include <hurd/store.h> /* for struct store */
#include <hurd/diskfs.h>
#include <mach/i386/disk.h> /* V_GETPARMS */

/* Fill struct disk_params with information from the device underlying
   the store STORE */

error_t
store_get_disk_geometry(struct store *store, struct disk_parms *dp) 
{
  int bufsize=(sizeof (struct disk_parms) / sizeof (int));

  /* query device for geometry */
  return device_get_status(store->port,V_GETPARMS,dp,&bufsize);
}

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.

Regards,

Pontus

-- 
Pontus Lidman, pontus@lysator.liu.se, Software Engineer
No matter how cynical you get, it's impossible to keep up.
Scene: www.dc-s.com | MUD: tyme.envy.com 6969 | irc: irc.quakenet.eu.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]