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,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.16.106 with SMTP id f10mr8841760pbd.8.1322840676938; Fri, 02 Dec 2011 07:44:36 -0800 (PST) Path: lh20ni59129pbb.0!nntp.google.com!news1.google.com!postnews.google.com!f35g2000yqm.googlegroups.com!not-for-mail From: awdorrin Newsgroups: comp.lang.ada Subject: POSIX.Semaphores question Date: Fri, 2 Dec 2011 07:43:01 -0800 (PST) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 192.35.35.34 Mime-Version: 1.0 X-Trace: posting.google.com 1322840589 10488 127.0.0.1 (2 Dec 2011 15:43:09 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 2 Dec 2011 15:43:09 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f35g2000yqm.googlegroups.com; posting-host=192.35.35.34; posting-account=YkFdLgoAAADpWnfCBA6ZXMWTz2zHNd0j User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESRCNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0,gzip(gfe) Xref: news1.google.com comp.lang.ada:19307 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-12-02T07:43:01-08:00 List-Id: I'm using the Florist POSIX Libraries and have code that is similar to the following: In the spec file: Sem_READY : Semaphore; READY : Semaphore_Descriptor; pragma Export( Ada, READY, "ready"); Then in my body: POSIX.Semaphores.Initialize( Sem_READY, 1); READY := POSIX.Semaphores.Descriptor_Of( Sem_READY ); When executed, READY is always set to null. If I run the code through GDB and print READY, it always displays 0x0. However, if I call POSIX.Semaphores.Descriptor_Of( Sem_Ready ) I get the right address returned: (access posix.c.sem_t) 0x8321540 I have no idea why the assignment is failing and not generating an exception....