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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5edee74b13d8e50a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!26g2000yqv.googlegroups.com!not-for-mail From: Mark Lorenzen Newsgroups: comp.lang.ada Subject: Re: The "black magic" of ioctl Date: Thu, 21 Oct 2010 04:50:37 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <74b46743-fb81-48cc-a478-ffd069db2fc6@k22g2000yqh.googlegroups.com> NNTP-Posting-Host: 193.163.1.105 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1287661837 1510 127.0.0.1 (21 Oct 2010 11:50:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Oct 2010 11:50:37 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 26g2000yqv.googlegroups.com; posting-host=193.163.1.105; posting-account=Srm5lQoAAAAEMX9rv2ilEKR6FDPapmSq User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; da; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:15621 Date: 2010-10-21T04:50:37-07:00 List-Id: On 21 Okt., 13:31, Francesco Piraneo Giuliano wrote: > But my application still need to be written and has to run under linux > so to collect some data about linux' framebuffer I have to use ioctl; > the only solution is to write all low level interfacing (open the > device, get informations about, map it into memory) in C then write > the upper level in Ada? No you don't need to write anything in C. > Any other suggestions will be strongly appreciated! It's difficult to know your exact requirements since ioctl is a variadic system call. Maybe you can post the equivalent C-code showing how you call ioctl in C and then we can translate it into Ada. - Mark L