* ioctl
@ 2003-11-04 8:51 Adrian Hoe
2003-11-05 3:01 ` ioctl Steve
2003-11-05 20:41 ` ioctl Simon Wright
0 siblings, 2 replies; 4+ messages in thread
From: Adrian Hoe @ 2003-11-04 8:51 UTC (permalink / raw)
Hi,
Is function C_Ioctl in package Gnat.Sockets.Thin equivalent to C's ioctl?
Thanks.
--
Adrian Hoe
m a i l b o x AT a d r i a n h o e . c o m
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ioctl
2003-11-04 8:51 ioctl Adrian Hoe
@ 2003-11-05 3:01 ` Steve
2003-11-05 20:41 ` ioctl Simon Wright
1 sibling, 0 replies; 4+ messages in thread
From: Steve @ 2003-11-05 3:01 UTC (permalink / raw)
If you're on Windows, I would say C_Ioctl is equivalent to "ioctlsocket", as
you can see in the private section of Gnat.Sockets.Thin.
pragma Import (Stdcall, C_Ioctl, "ioctlsocket");
The function "ioctlsocket" is part of the standard Win32 API.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/ioctlsocket_2.asp
Steve
(The Duck)
"Adrian Hoe" <adrianhoe@nowhere.com> wrote in message
news:3FA768A4.7080803@nowhere.com...
> Hi,
>
> Is function C_Ioctl in package Gnat.Sockets.Thin equivalent to C's ioctl?
>
> Thanks.
> --
> Adrian Hoe
> m a i l b o x AT a d r i a n h o e . c o m
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ioctl
2003-11-04 8:51 ioctl Adrian Hoe
2003-11-05 3:01 ` ioctl Steve
@ 2003-11-05 20:41 ` Simon Wright
2003-11-11 2:37 ` ioctl Adrian Hoe
1 sibling, 1 reply; 4+ messages in thread
From: Simon Wright @ 2003-11-05 20:41 UTC (permalink / raw)
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 ..
--
Simon Wright 100% Ada, no bugs.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ioctl
2003-11-05 20:41 ` ioctl Simon Wright
@ 2003-11-11 2:37 ` Adrian Hoe
0 siblings, 0 replies; 4+ messages in thread
From: Adrian Hoe @ 2003-11-11 2:37 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-11-11 2:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` ioctl Adrian Hoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox