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,8f1678ed8a8a296d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.31.165 with SMTP id b5mr2190299pbi.1.1323269239095; Wed, 07 Dec 2011 06:47:19 -0800 (PST) Path: lh20ni79725pbb.0!nntp.google.com!news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Wed, 07 Dec 2011 08:47:18 -0600 From: Robert Matthews Date: Wed, 07 Dec 2011 14:47:16 +0000 User-Agent: KNode/4.7.2 Subject: Re: misaligned actual cannot be passed by reference Newsgroups: comp.lang.ada References: <625d37e2-4b4b-44a8-bafb-48555713802f@d17g2000yql.googlegroups.com> MIME-Version: 1.0 Message-ID: <3fCdndlJWtDr4ULTnZ2dnUVZ8nidnZ2d@brightview.co.uk> X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-lqBC1g6TpqIKGfo7vl5Ky6eg7wieHeBOxwtq7iG0gY+LeCUwDVLZd+1ssiOSVoRO4BoUZ4c89sqFz/0!5dVVRGbB84rtESVnIz8v0rfpHVjz3Z0O8z1Ao2tBOABeHeaAuJme4y0hivzoixg2g8nuSLGKiV1z!ywTKdTPub3wmxzPB1IILlUmr X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1446 Xref: news2.google.com comp.lang.ada:14866 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit Date: 2011-12-07T14:47:16+00:00 List-Id: To share with your C code, this is normally sufficient: pragma Convention(C, FP_SHARED_BUF_TYPE); with no need for the representation clause. GNAT should then give a compatable layout. In addition, I presume: "POSIX.Mutexes.Descriptor_Of (CMN_SHM.LOCK_MISSION_VARS)" is needing the address of the parameter - so shouldn't that component of the record be declared as aliased? Robert