[Top][All Lists]

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

Re: Hurd ioctls.

From: Marcus Brinkmann
Subject: Re: Hurd ioctls.
Date: Tue, 15 Jul 2003 03:58:51 -0500
User-agent: Mutt/1.5.3i

On Mon, Jul 14, 2003 at 09:15:01PM +0200, Marco Gerards wrote:
> I'm trying to implement the SIOCADDRT ioctl for the Hurd. I've
> encountered a problem in the Hurd/glibc while doing this.
> The format of an ioctl request "bits/ioctls.h" is defined. In this
> request there are only 5 bits defined to store the size of a
> parameter. SIOCADDRT uses "struct rtentry", a structure with the size
> of 84 bytes.

Right, that is only of limited usefulness.

> So without any serious changes the ioctl cannot be implemented. Can
> someone please give me some hints what to do? I can only think of
> extending pfinet.defs with a pfinet_addroute instead of adding an
> ioctl, but this does not solve the ioctl problem :(. Another option is
> changing the size of the request from 32 bits to 64 bits, but this
> will break binary compatibility for other ioctls.

See what I did for the SIOCGIFCONF.  You need to excempt it from the
normal handling and write a wrapper function for it.


reply via email to

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