IEEE 1003 5 INT 1-2006 en Information Technology - POSIX Ada Language Interfaces - Part 1 Binding for System Application Program Interface (API) - Amendment 2 P.pdf
《IEEE 1003 5 INT 1-2006 en Information Technology - POSIX Ada Language Interfaces - Part 1 Binding for System Application Program Interface (API) - Amendment 2 P.pdf》由会员分享,可在线阅读,更多相关《IEEE 1003 5 INT 1-2006 en Information Technology - POSIX Ada Language Interfaces - Part 1 Binding for System Application Program Interface (API) - Amendment 2 P.pdf(3页珍藏版)》请在麦多课文档分享上搜索。
1、IEEE-SA - IEEE Std 1003.5-1992 interpretationsIEEE Standards Interpretations for IEEE Std 1003.5 (1999 Edition) - IEEE Standard for Information Technology-POSIX Ada Language Interfaces-PART 1: Binding for System Application Program Interface Copyright 2006 by the Institute of Electrical and Electron
2、ics Engineers, Inc. All Rights Reserved.This is an interpretation of IEEE Std 1003.5 (1999 Edition). Interpretations are issued to explain and clarify the intent of a standard and are not intended to constitute an alteration to the original standard or to supply consulting information. Permission is
3、 hereby granted to download and print one copy of this document. Individuals seeking permission to reproduce and/or distribute this document in its entirety or portions of this document must contact the IEEE Standard Department for the appropriate license. Use of the information contained in this do
4、cument is at your own risk.IEEE Standards Department Copyrights and Permissions 445 Hoes Lane, P. O. Box 1331 Piscataway, New Jersey 08855-1331, USADecember 2006 Interpretation Number: #1 Topic: Open_And_Map_Shared_Memory and Open_Or_Create_And_Map_Shared_Memory functions. Relevant Clauses: 12.5.1.2
5、Interpretation request #1 This standard states that these functions are equivalent to a sequence of calls. This includes a call to Open_Shared_Memory, with the Mode parameter set as follows: “If the value of Protection is set to Allow_Write, Mode is Read_Write; otherwise Mode is Read_Only.“However,
6、Protection is a /set/ of options and may be set to “Allow_Write + Allow_Read“. By following the standard literally, this would lead to a Mode of Read_Only, which was clearly not what was intended.This interpretation would make these functions unusable for opening or creating a shared memory mapping
7、with both read and write access, which this user supposes is the most commonly desired mode of operation.However, this user sees two possible interpretations that would make the functions usable:1. The quoted sentence above should be interpreted as “If the value of Protection /includes/ Allow_Write,
8、 Mode is Read_Write; otherwise Mode is Read_Only.“2. As it is not specified exactly how the Protection parameter should be used in the subsequent call to Map_Memory, a possible interpretation would be that one should always add the Allow_Read option in the call to Map_Memory.http:/standards.ieee.org
9、/findstds/interps/1003.5-1999.html (1 of 3)11/4/2011 10:16:17 PMIEEE-SA - IEEE Std 1003.5-1992 interpretationsIn this users opinion, number #2 (above) is counterintuitive, as one would expect the protection parameters passed on to Map_Memory being the same as those initially submitted. And besides t
10、hat, this would decrease the flexibility by not allowing the user to create a write-only mapping.To illustrate the problematics, a simple example will follow. The example consists of two Ada functions which communicate via a shared memory area. With a common implementation of the IEEE 1003.5 (Floris
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- IEEE10035INT12006ENINFORMATIONTECHNOLOGYPOSIXADALANGUAGEINTERFACESPART1BINDINGFORSYSTEMAPPLICATIONPROGRAMINTERFACEAPIAMENDMENT2PPDF

链接地址:http://www.mydoc123.com/p-1247978.html