IEEE-1003.5-1999.pdf

上传人:哈尼dd 文档编号:3771156 上传时间:2019-09-23 格式:PDF 页数:889 大小:4.70MB
返回 下载 相关 举报
IEEE-1003.5-1999.pdf_第1页
第1页 / 共889页
IEEE-1003.5-1999.pdf_第2页
第2页 / 共889页
IEEE-1003.5-1999.pdf_第3页
第3页 / 共889页
IEEE-1003.5-1999.pdf_第4页
第4页 / 共889页
IEEE-1003.5-1999.pdf_第5页
第5页 / 共889页
亲,该文档总共889页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《IEEE-1003.5-1999.pdf》由会员分享,可在线阅读,更多相关《IEEE-1003.5-1999.pdf(889页珍藏版)》请在三一文库上搜索。

1、 POSIX is a registered trademark of the Institute of Electrical and Electronics Engineers, Inc. IEEE Std 1003.5, 1999 Edition (Incorporates IEEE Std 1003.5-1992, IEEE Std 1003.5b-1996, and IEEE Std 1003.5c-1998) IEEE Standard for Information Technology POSIX Ada Language Interfaces Part 1: Binding f

2、or System Application Program Interface (API) Includes Amendment 1: Realtime Extensions and Amendment 2: Protocol-Independent Interfaces Sponsor Portable Applications Standards Committee of the IEEE Computer Society Approved 8 December 1998 IEEE Standards Board Abstract: This standard is part of the

3、 POSIX series of standards for applications and user inter- faces to open systems. It defines the Ada language bindings as package specifications and accom- panying textual descriptions of the application program interface (API). This standard supports application portability at the source code leve

4、l through the binding between ISO 8652:1995 (Ada) and ISO/IEC 9945-1:1996 (IEEE Std 1003.1-1996) (POSIX) as amended by IEEE P1003.1g/D6.6. Terminology and general requirements, process primitives, the process environment, files and directories, input and output primaries, device- and class-specific

5、functions, language-specific services for Ada, system databases, synchronization, memory management, execution scheduling, clocks and timers, message passing, task management, the XTI and socket detailed network inter- faces, event management, network support functions, and protocol-specific mapping

6、s are covered. It also specifies behavior to support the binding that must be proviced by the Ada. Keywords: Ada, API, application portability, computer language bindings, information exchange, interprocess communication, networks, open systems, operating systems, portable application, POSIX, POSIX

7、language bindings, protocol-specific, protocol-independent, real-time, sockets, thread, XTI. Copyright The Institute of Electrical and Electronics Engineers, Inc. Provided by IHS under license with IEEELicensee=NASA Technical Standards 1/9972545001 Not for Resale, 04/20/2007 08:17:53 MDTNo reproduct

8、ion or networking permitted without license from IHS -,-,- IEEE Std 1003.5, 1999 Edition (Incorporates IEEE Std 1003.5-1992, IEEE Std 1003.5b-1996, and IEEE Std 1003.5c-1998) The Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue, New York, NY 10016-5997, USA Copyright 1999 by the

9、 Institute of Electrical and Electronics Engineers, Inc. All rights reserved. Published 3 December 1999. Printed in the United States of America. Print: ISBN 0-7381-1539-8 SH94710 PDF: ISBN 0-7381-1540-1 SS94710 No part of this publication may be reproduced in any form, in an electronic retrieval sy

10、stem or otherwise, without the prior written permission of the publisher. Copyright The Institute of Electrical and Electronics Engineers, Inc. Provided by IHS under license with IEEELicensee=NASA Technical Standards 1/9972545001 Not for Resale, 04/20/2007 08:17:53 MDTNo reproduction or networking p

11、ermitted without license from IHS -,-,- IEEE Standards documents are developed within the IEEE Societies and the Standards Coordinating Com- mittees of the IEEE Standards Association (IEEE-SA) Standards Board. Members of the committees serve voluntarily and without compensation. They are not necessa

12、rily members of the Institute. The standards developed within IEEE represent a consensus of the broad expertise on the subject within the Institute as well as those activities outside of IEEE that have expressed an interest in participating in the development of the standard. Use of an IEEE Standard

13、 is wholly voluntary. The existence of an IEEE Standard does not imply that there are no other ways to produce, test, measure, purchase, market, or provide other goods and services related to the scope of the IEEE Standard. Furthermore, the viewpoint expressed at the time a standard is approved and

14、issued is subject to change brought about through developments in the state of the art and comments received from users of the standard. Every IEEE Standard is subjected to review at least every fi ve years for revision or reaffi rmation. When a document is more than fi ve years old and has not been

15、 reaffi rmed, it is rea- sonable to conclude that its contents, although still of some value, do not wholly refl ect the present state of the art. Users are cautioned to check to determine that they have the latest edition of any IEEE Standard. Comments for revision of IEEE Standards are welcome fro

16、m any interested party, regardless of membership affi liation with IEEE. Suggestions for changes in documents should be in the form of a proposed change of text, together with appropriate supporting comments. Interpretations: Occasionally questions may arise regarding the meaning of portions of stan

17、dards as they relate to specifi c applications. When the need for interpretations is brought to the attention of IEEE, the Institute will initiate action to prepare appropriate responses. Since IEEE Standards represent a consensus of all concerned interests, it is important to ensure that any interp

18、retation has also received the concurrence of a balance of interests. For this reason, IEEE and the members of its societies and Standards Coordinating Committees are not able to provide an instant response to interpretation requests except in those cases where the matter has previously received for

19、mal consideration. Comments on standards and requests for interpretations should be addressed to: Secretary, IEEE-SA Standards Board 445 Hoes Lane P.O. Box 1331 Piscataway, NJ 08855-1331 USA Authorization to photocopy portions of any individual standard for internal or personal use is granted by the

20、 Institute of Electrical and Electronics Engineers, Inc., provided that the appropriate fee is paid to Copyright Clearance Center. To arrange for payment of licensing fee, please contact Copyright Clearance Center, Cus- tomer Service, 222 Rosewood Drive, Danvers, MA 01923 USA; (978) 750-8400. Permis

21、sion to photocopy portions of any individual standard for educational classroom use can also be obtained through the Copy- right Clearance Center. Note: Attention is called to the possibility that implementation of this standard may require use of subject matter covered by patent rights. By publicat

22、ion of this standard, no position is taken with respect to the existence or validity of any patent rights in connection therewith. The IEEE shall not be responsible for identifying patents for which a license may be required by an IEEE standard or for conducting inquiries into the legal validity or

23、scope of those patents that are brought to its attention. Copyright The Institute of Electrical and Electronics Engineers, Inc. Provided by IHS under license with IEEELicensee=NASA Technical Standards 1/9972545001 Not for Resale, 04/20/2007 08:17:53 MDTNo reproduction or networking permitted without

24、 license from IHS -,-,- Contents PAGE Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .vi Section 1: General. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 1.1Scope. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25、. .1 1.2Normative References. . . . . . . . . . . . . . . . . . . . . . . . . . . .3 1.3Conformance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 Section 2: Terminology and General Requirements. . . . . . . . . . . . . . . .9 2.1Editorial Conventions . . . . . . . . . . . . .

26、. . . . . . . . . . . . . . . .9 2.2 Defi nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 2.3General Concepts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 2.4Package POSIX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 2.5Packag

27、e POSIX_Options. . . . . . . . . . . . . . . . . . . . . . . . . .76 2.6Package POSIX_Limits . . . . . . . . . . . . . . . . . . . . . . . . . . .82 2.7Package Ada_Streams . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 2.8Package System . . . . . . . . . . . . . . . . . . . . . . . . . .

28、. . . . . .88 2.9Package System_Storage_Elements . . . . . . . . . . . . . . . . . . .89 2.10 Package POSIX_Page_Alignment . . . . . . . . . . . . . . . . . . . . .90 2.11 Environment Description . . . . . . . . . . . . . . . . . . . . . . . . . . .91 Section 3: Process Primitives . . . . . . . . .

29、. . . . . . . . . . . . . . . . . . . .95 3.1Package POSIX_Process_Primitives . . . . . . . . . . . . . . . . . .95 3.2Package POSIX_Unsafe_Process_Primitives . . . . . . . . . . . . .108 3.3Package POSIX_Signals. . . . . . . . . . . . . . . . . . . . . . . . . .115 Section 4: Process Environment. .

30、 . . . . . . . . . . . . . . . . . . . . . . . . .149 4.1Package POSIX_Process_Identification . . . . . . . . . . . . . . .149 4.2Package POSIX_Process_Times . . . . . . . . . . . . . . . . . . . . . .156 4.3Package POSIX_Process_Environment . . . . . . . . . . . . . . . . .157 4.4Package POSIX_Cale

31、ndar . . . . . . . . . . . . . . . . . . . . . . . . . .164 4.5Package POSIX_Configurable_System_Limits . . . . . . . . . . . .167 Section 5: Files and Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . .175 5.1Package POSIX_Permissions. . . . . . . . . . . . . . . . . . . . . . .175

32、5.2Package POSIX_Files . . . . . . . . . . . . . . . . . . . . . . . . . . . .178 5.3Package POSIX_File_Status. . . . . . . . . . . . . . . . . . . . . . .190 5.4Package POSIX_Configurable_File_Limits. . . . . . . . . . . . .194 Section 6: I/O Primitives . . . . . . . . . . . . . . . . . . . . . . .

33、 . . . . . . . . .205 6.1Package POSIX_IO. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205 ii Copyright The Institute of Electrical and Electronics Engineers, Inc. Provided by IHS under license with IEEELicensee=NASA Technical Standards 1/9972545001 Not for Resale, 04/20/2007 08:17:53 M

34、DTNo reproduction or networking permitted without license from IHS -,-,- 6.2Package POSIX_File_Locking . . . . . . . . . . . . . . . . . . . . . . .232 6.3Package POSIX_Asynchronous_IO. . . . . . . . . . . . . . . . . . . .234 Section 7: Device- and Class-Specifi c Functions. . . . . . . . . . . . .

35、 . . . . .253 7.1General Terminal Interface. . . . . . . . . . . . . . . . . . . . . . . . .253 7.2Package POSIX_Terminal_Functions . . . . . . . . . . . . . . . . . .260 Section 8: Language-Specifi c Services for Ada. . . . . . . . . . . . . . . . . . .279 8.1Interoperable Ada I/O Services. . . . .

36、 . . . . . . . . . . . . . . . . . .279 8.2Package POSIX_Supplement_to_Ada_IO . . . . . . . . . . . . . . . . .283 Section 9: System Databases. . . . . . . . . . . . . . . . . . . . . . . . . . . . .287 9.1Package POSIX_User_Database . . . . . . . . . . . . . . . . . . . . . .287 9.2Package POSIX_Gr

37、oup_Database . . . . . . . . . . . . . . . . . . . . .289 Section 10: Data Interchange Format. . . . . . . . . . . . . . . . . . . . . . . .293 Section 11: Synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .295 11.1 Package POSIX_Semaphores . . . . . . . . . . . . . . . . . .

38、 . . . . . .295 11.2 Package POSIX_Mutexes. . . . . . . . . . . . . . . . . . . . . . . . . .304 11.3 Package POSIX_Condition_Variables . . . . . . . . . . . . . . . . .314 Section 12: Memory Management. . . . . . . . . . . . . . . . . . . . . . . . . .323 12.1 Package POSIX_Memory_Locking . . . . .

39、 . . . . . . . . . . . . . . . .324 12.2 Package POSIX_Memory_Range_Locking . . . . . . . . . . . . . . . . .326 12.3 Package POSIX_Memory_Mapping . . . . . . . . . . . . . . . . . . . . .328 12.4 Package POSIX_Shared_Memory_Objects . . . . . . . . . . . . . . . .337 12.5 Package POSIX_Generic_Share

40、d_Memory . . . . . . . . . . . . . . . .341 Section 13: Execution Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . .349 13.1 Scheduling Concepts and Terminology . . . . . . . . . . . . . . . . . . .349 13.2 Package POSIX_Process_Scheduling . . . . . . . . . . . . . . . . . .349 13.3 Ta

41、sk Scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .354 13.4 Synchronization Scheduling . . . . . . . . . . . . . . . . . . . . . . . . .356 Section 14: Clocks and Timers. . . . . . . . . . . . . . . . . . . . . . . . . . . .357 14.1 Package POSIX_Timers . . . . . . . . . .

42、. . . . . . . . . . . . . . . . .357 14.2 High Resolution Delay . . . . . . . . . . . . . . . . . . . . . . . . . . . .366 Section 15: Message Passing. . . . . . . . . . . . . . . . . . . . . . . . . . . . .367 15.1 Package POSIX_Message_Queues . . . . . . . . . . . . . . . . . . . . .367 Section 16

43、: Task Management. . . . . . . . . . . . . . . . . . . . . . . . . . . .383 16.1 Package Ada_Task_Identification . . . . . . . . . . . . . . . . . . .383 Section 17: Detailed Network Interface - XTI . . . . . . . . . . . . . . . . . . . .385 17.1 Introduction . . . . . . . . . . . . . . . . . . . .

44、. . . . . . . . . . . . . .385 17.2 States and Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .391 17.3 The Use of Options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .399 17.4 Package POSIX_XTI. . . . . . . . . . . . . . . . . . . . . . . . . . . . .410 iii Copyrigh

45、t The Institute of Electrical and Electronics Engineers, Inc. Provided by IHS under license with IEEELicensee=NASA Technical Standards 1/9972545001 Not for Resale, 04/20/2007 08:17:53 MDTNo reproduction or networking permitted without license from IHS -,-,- Section 18: Detailed Network Interface - S

46、ocket . . . . . . . . . . . . . . . . . .487 18.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .487 18.2 Events and States . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .489 18.3 Use of Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

47、. . . .498 18.4 Package POSIX_Sockets. . . . . . . . . . . . . . . . . . . . . . . . . .498 Section 19: Event Management . . . . . . . . . . . . . . . . . . . . . . . . . . . .535 19.1 Package POSIX_Event_Management . . . . . . . . . . . . . . . . . . . .535 Annex A (informative) Bibliography . . .

48、. . . . . . . . . . . . . . . . . . . . . .547 Annex B (informative) Rationale and Notes . . . . . . . . . . . . . . . . . . . . .549 B.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .549 B.2 Terminology and General Requirements . . . . . . . . . . . . . . . . . .5

49、63 B.3 Process Primitives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .575 B.4 Process Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . .592 B.5 Files and Directories. . . . . . . . . . . . . . . . . . . . . . . . . . . . .598 B.6 Input and Output Primitives. . . . . . . . . . . . . . . . . . . . . . . .602 B.7 Device- and Class-Specif

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1