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: 103376,386bb25b61f8f5b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!news.glorb.com!newspeer1.se.telia.net!se.telia.net!masternews.telia.net.!newsb.telia.net.POSTED!not-for-mail From: =?ISO-8859-1?Q?Bj=F6rn_Persson?= User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: aliased and parameters References: <1154369116.867649.278950@m73g2000cwd.googlegroups.com> <1154372565.780568.165840@p79g2000cwp.googlegroups.com> In-Reply-To: <1154372565.780568.165840@p79g2000cwp.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Date: Mon, 31 Jul 2006 21:52:25 GMT NNTP-Posting-Host: 83.250.106.238 X-Complaints-To: abuse@telia.com X-Trace: newsb.telia.net 1154382745 83.250.106.238 (Mon, 31 Jul 2006 23:52:25 CEST) NNTP-Posting-Date: Mon, 31 Jul 2006 23:52:25 CEST Organization: Telia Internet Xref: g2news2.google.com comp.lang.ada:6041 Date: 2006-07-31T21:52:25+00:00 List-Id: REH wrote: > recv is the standard POSIX (or BSD) socket receive > function. Can't you import recv like this? function Recv(Socket : in int; Hdr : out Header_Type; Size : in size_t; Flags : in int); pragma Import(C, Recv, "recv"); This should work if your compiler follows the advice in ARM95 B.3, and you won't have to mess with 'Address or pragma Volatile. You should be able to make multiple imports like this, with different types instead of the void pointer. -- Bj�rn Persson PGP key A88682FD omb jor ers @sv ge. r o.b n.p son eri nu