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-Thread: a07f3367d7,5edee74b13d8e50a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!feeder.erje.net!news.szaf.org!news.gnuher.de!news.enyo.de!not-for-mail From: Florian Weimer Newsgroups: comp.lang.ada Subject: Re: The "black magic" of ioctl Date: Sun, 24 Oct 2010 19:56:59 +0200 Message-ID: <87fwvv4gpg.fsf@mid.deneb.enyo.de> References: <74b46743-fb81-48cc-a478-ffd069db2fc6@k22g2000yqh.googlegroups.com> <877hh8lkok.fsf@mid.deneb.enyo.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: idssi.enyo.de 1287943020 5247 172.17.135.6 (24 Oct 2010 17:57:00 GMT) X-Complaints-To: news@enyo.de Cancel-Lock: sha1:QjbOC3ydlmWwAJCdaTmNrtEkG1E= Xref: g2news1.google.com comp.lang.ada:14719 Date: 2010-10-24T19:56:59+02:00 List-Id: * Frank J. Lhota: > Actually, you can call a varargs function such as ioctl from > Ada. Declare each ioctl profile that you need, e.g. Perhaps it seems to work for you, but this is not portable. There are popular targets where the varargs calling convention is markedly different from the non-varargs calling convention, such as amd64. It might still work by accident, but all bets are off, really.