From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,21c404e5fd4203dc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-10 18:55:43 PST Message-ID: <3FB04B59.605@nowhere.com> Date: Tue, 11 Nov 2003 10:37:13 +0800 From: Adrian Hoe User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020518 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: ioctl References: <3FA768A4.7080803@nowhere.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 219.95.190.26 X-Original-NNTP-Posting-Host: 219.95.190.26 X-Trace: news.tm.net.my 1068518416 219.95.190.26 (11 Nov 2003 10:40:16 +0800) Organization: TMnet Malaysia Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!news-out.cwix.com!newsfeed.cwix.com!news1.tm.net.my Xref: archiver1.google.com comp.lang.ada:2318 Date: 2003-11-11T10:37:13+08:00 List-Id: 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 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