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: a07f3367d7,5edee74b13d8e50a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!a37g2000yqi.googlegroups.com!not-for-mail From: Francesco Piraneo Giuliano Newsgroups: comp.lang.ada Subject: Re: The "black magic" of ioctl Date: Fri, 22 Oct 2010 09:47:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9ecc7b48-7b35-4d31-9258-e6ab85b5bf2b@a37g2000yqi.googlegroups.com> References: <74b46743-fb81-48cc-a478-ffd069db2fc6@k22g2000yqh.googlegroups.com> <3ac70a0f-ada2-4e8b-bd68-85cd72c91202@l8g2000yql.googlegroups.com> NNTP-Posting-Host: 81.253.17.34 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1287766075 14192 127.0.0.1 (22 Oct 2010 16:47:55 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 22 Oct 2010 16:47:55 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a37g2000yqi.googlegroups.com; posting-host=81.253.17.34; 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: g2news1.google.com comp.lang.ada:14683 Date: 2010-10-22T09:47:55-07:00 List-Id: Hi Ludovic, I already posted an answer yesterday but it seems that the post was lost! I'll write down again! > >> POSIX[1] defines this function, as "obsolescent" mind you, along with > >> {a big cut - save your bandwidth!} > > You cut a bit too much... Nothing is lost forever! :-D > > Ok Ludovic, thank you for your great answer! > > > So, please don't use ioctl -> black magic -> forbidden! :-) > > That's not what I wrote or meant. Yes, it's true! Just I'm not comfortable to use "obsolescent" things and I hoped that on the opengroup website I could find a suitable replacement function... that's not true unfortunately, they only marked "obsolescent" but actually we don't have any replacement function: we have to import the ioctl as you suggested on your post (that is the most logic choice too). > > Just one question to you: Normally which OS you use with Ada? > > I use Debian GNU/Linux and occasionally Debian GNU/kFreeBSD. > > > Moreover, there is a more suited os to be driven with Ada programs? > > Not that I know, except maybe an OS written in Ada like Lovelace or > MaRTE OS. With these fews rows you gave me more interesting materials to study about! ;-) A+ Francesco