comp.lang.ada
 help / color / mirror / Atom feed
From: "REH" <me@you.com>
Subject: Re: aliased and parameters
Date: Tue, 01 Aug 2006 00:35:37 GMT
Date: 2006-08-01T00:35:37+00:00	[thread overview]
Message-ID: <tlxzg.9008$uH6.5886@twister.nyroc.rr.com> (raw)
In-Reply-To: tYuzg.11401$E02.3978@newsb.telia.net

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 849 bytes --]


"Bj�rn Persson" <spam-away@nowhere.nil> wrote in message 
news:tYuzg.11401$E02.3978@newsb.telia.net...
> 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

That's a good idea, thank you.

REH





  reply	other threads:[~2006-08-01  0:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-31 18:05 aliased and parameters REH
2006-07-31 18:37 ` Jeffrey R. Carter
2006-07-31 19:02   ` REH
     [not found]     ` <1154373046.777655.292010@m79g2000cwm.googlegroups.com>
2006-07-31 19:26       ` REH
2006-07-31 19:59         ` REH
2006-07-31 21:52     ` Björn Persson
2006-08-01  0:35       ` REH [this message]
2006-08-01  1:31     ` Jeffrey R. Carter
2006-08-01  2:28       ` REH
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox