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!j18g2000yqd.googlegroups.com!not-for-mail From: Francesco Piraneo Giuliano Newsgroups: comp.lang.ada Subject: Re: The "black magic" of ioctl Date: Thu, 21 Oct 2010 04:31:53 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <74b46743-fb81-48cc-a478-ffd069db2fc6@k22g2000yqh.googlegroups.com> NNTP-Posting-Host: 81.253.36.148 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1287660713 4943 127.0.0.1 (21 Oct 2010 11:31:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Oct 2010 11:31:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j18g2000yqd.googlegroups.com; posting-host=81.253.36.148; posting-account=XgjFswoAAADI5HJyvE919iH7TWpN0YaP User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) Gecko/20100922 Ubuntu/10.10 (maverick) Firefox/3.6.10,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:15619 Date: 2010-10-21T04:31:53-07:00 List-Id: > The title of your post is quite correct; ioctl is indeed black > magic :) > > POSIX[1] defines this function, as "obsolescent" mind you, along with > {a big cut - save your bandwidth!} Ok Ludovic, thank you for your great answer! So, please don't use ioctl -> black magic -> forbidden! :-) 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? If this is true I have some philosophical concerns about... ;-) Any other suggestions will be strongly appreciated! Just one question to you: Normally which OS you use with Ada? Moreover, there is a more suited os to be driven with Ada programs? Merci! ;-) Francesco