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,edbbc0e4a6cfc1c1 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!q16g2000prf.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: Ada and linux: pragma import how to Date: Fri, 1 Oct 2010 16:04:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 75.172.182.165 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1285974299 29721 127.0.0.1 (1 Oct 2010 23:04:59 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 1 Oct 2010 23:04:59 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q16g2000prf.googlegroups.com; posting-host=75.172.182.165; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/531.21.8+(KHTML, like Gecko, Safari/528.16) OmniWeb/v622.11.0,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14348 Date: 2010-10-01T16:04:58-07:00 List-Id: On Oct 1, 1:34=A0pm, Francesco PIRANEO GIULIANO wrote: > Gentleman, > > for an application that want to drive the linux framebuffer I'm trying > to import the open and ioctl C functions to be used with Ada. > > I'm quite new in that language so I need some detailed information on > how to pass and retrieve arguments / results from imported functions / > procedures and well understand differences between import function and > import _valued_ function. > > Can you provide me some documentation source about these two topics? > Does anyone can provide me books reference about using Ada with Linux? > I've found the "Big book of linux ada programming" and obviously the > Ada reference manual but I need something with a more practical > approach to understand... > > Thank you very much! > Francesco If you are using GNAT, see the GNAT User's Guide http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/index.html#Top specifically http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Mixed-Language-Programming.html#= Mixed-Language-Programming or even http://gcc.gnu.org/onlinedocs/gnat_ugn_unw/Generating-Ada-Bindings-for-C-an= d-C_002b_002b-headers.html#Generating-Ada-Bindings-for-C-and-C_002b_002b-he= aders Jerry