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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9277635655f37412 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.0.170 with SMTP id 10mr14887317pbf.2.1322930081468; Sat, 03 Dec 2011 08:34:41 -0800 (PST) Path: lh20ni65218pbb.0!nntp.google.com!news2.google.com!postnews.google.com!h5g2000yqk.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: Re: POSIX.Semaphores question Date: Sat, 3 Dec 2011 08:32:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <7471851b-7c30-4cec-b1db-c4e62ff514d0@s4g2000yqk.googlegroups.com> <4ed9058b$0$6629$9b4e6d93@newsspool2.arcor-online.net> <4ed90656$0$6629$9b4e6d93@newsspool2.arcor-online.net> <30c8549e-63b0-4fd5-a204-9cbb21e0e419@h3g2000yqa.googlegroups.com> NNTP-Posting-Host: 74.69.172.183 Mime-Version: 1.0 X-Trace: posting.google.com 1322930078 20131 127.0.0.1 (3 Dec 2011 16:34:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 3 Dec 2011 16:34:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: h5g2000yqk.googlegroups.com; posting-host=74.69.172.183; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HELCSRUA X-HTTP-UserAgent: Mozilla/5.0 (Linux; U; Android 2.3.4; en-us; Silk/1.1.0-84) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1 Silk-Accelerated=false,gzip(gfe) Xref: news2.google.com comp.lang.ada:14814 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-03T08:32:25-08:00 List-Id: For some reason I used the word "static" above when I meant "constant" Seems like no matter what I do, the moment I try to export the variable, I can no longer assign to it within Ada. I realize that a better way to do this would be to export a procedure or function to pass the Ada Semaphore_Descriptor to a C sem_t*, but this is functioning in the legacy code, so I'm trying to understand if Gnat is doing something different, if exporting variables is no longer allowed, or if there is something specific about a Semaphore_Descriptor that is causing the pragmatic export to lock the variable and treat it as a constant. Thanks