From: Adrian Hoe <adrianhoe@nowhere.com>
Subject: Re: ioctl
Date: Tue, 11 Nov 2003 10:37:13 +0800
Date: 2003-11-11T10:37:13+08:00 [thread overview]
Message-ID: <3FB04B59.605@nowhere.com> (raw)
In-Reply-To: x7vznfawnte.fsf@smaug.pushface.org
My intention is to open a device file in /dev and read the contents from
the device. I doubt the C_Ioctl function in Gnat.Sockets.Thin is
equivalent to ioctl of C.
Simon Wright wrote:
> Adrian Hoe <adrianhoe@nowhere.com> writes:
>
>
>>Is function C_Ioctl in package Gnat.Sockets.Thin equivalent to C's ioctl?
>>
>
> (a) it looks like the sort of ioctl you use to get a value (rather
> than set it).
>
> I think ioctl is better modelled as a pair of generics (in the type of
> the third parameter). You do need a little code in the body, of course
> ..
>
> (b) not sure you're supposed to be calling the .Thin package ..
>
>
--
Adrian Hoe
m a i l b o x AT a d r i a n h o e . c o m
prev parent reply other threads:[~2003-11-11 2:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-04 8:51 ioctl Adrian Hoe
2003-11-05 3:01 ` ioctl Steve
2003-11-05 20:41 ` ioctl Simon Wright
2003-11-11 2:37 ` Adrian Hoe [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox