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.8 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM,PLING_QUERY autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9a5e0182cbfaa45b X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!postnews.google.com!h7g2000yqn.googlegroups.com!not-for-mail From: Francesco PIRANEO GIULIANO Newsgroups: comp.lang.ada Subject: Re: Does mmap gives a right result?! Date: Sun, 3 Oct 2010 12:22:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <459d08e4-1370-4925-9d9f-64ee0f472c19@f25g2000yqc.googlegroups.com> NNTP-Posting-Host: 81.253.30.151 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1286133778 11569 127.0.0.1 (3 Oct 2010 19:22:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 3 Oct 2010 19:22:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h7g2000yqn.googlegroups.com; posting-host=81.253.30.151; posting-account=xw7-jwoAAACQO3jUfKtbSvv-viNG0IGt User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.2.10) Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:14370 Date: 2010-10-03T12:22:58-07:00 List-Id: Bjorn, Jeff, Thank you for your answer. I'm going to download and try GNAT component collection; before this Jeff I think you have reason: The original C code looks like: fbuffer = mmap(NULL, fix.smem_len, PROT_READ | PROT_WRITE, MAP_FILE | MAP_SHARED, fb_fd, 0); and I translated it into: fbindex := mmap(0, fbhandler.fixinfo.smem_len, fbhandler.PROT_READ + fbhandler.PROT_WRITE, fbhandler.MAP_FILE + fbhandler.MAP_SHARED, fbid, 0); ...not the same! :-) Maybe if I'll try to change the "0" to "NULL" it will works... maybe! There is an equivalence of the C's NULL in Ada? Thank you again. Francesco