CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf

上传人:priceawful190 文档编号:590523 上传时间:2018-12-15 格式:PDF 页数:391 大小:3.51MB
下载 相关 举报
CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf_第1页
第1页 / 共391页
CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf_第2页
第2页 / 共391页
CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf_第3页
第3页 / 共391页
CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf_第4页
第4页 / 共391页
CAN CSA-ISO IEC 14515-1A-2013 Information technology - Portable Operating System Interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1 System interfaces AMEN.pdf_第5页
第5页 / 共391页
亲,该文档总共391页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

1、Information technology Portable Operating System Interface (POSIX) Test methods for measuring conformance to POSIX Part 1: System interfaces AMENDMENT 1: Realtime Extension (C Language) Amendment 1:2013 (IDT) toNational Standard of CanadaCAN/CSA-ISO/IEC 14515-1-02(ISO/IEC 14515-1:2000, IDT)NOT FOR R

2、ESALE. / PUBLICATION NON DESTINE LA REVENTE.Standards Update ServiceAmendment 1:2013 toCAN/CSA-ISO/IEC 14515-1-02January 2013Title: Information technology Portable Operating System Interface (POSIX) Test methods for measuring conformance to POSIX Part 1: System interfaces AMENDMENT 1: Realtime Exten

3、sion (C Language) Pagination:383 pages (xiii preliminary and 370 text)To register for e-mail notification about any updates to this publicationgo to shop.csa.caclick on CSA Update ServiceThe List ID that you will need to register for updates to this publication is 2422256.If you require assistance,

4、please e-mail techsupportcsagroup.org or call 416-747-2233.Visit CSA Groups policy on privacy at csagroup.org/legal to find out how we protect your personal information.Reference numberISO/IEC 14515-1:2000/Amd.1:2003(E)IEEE Std 2003.1b-2000(Amendment to IEEE Std 2003.1-1992)INTERNATIONAL STANDARD IS

5、O/IEC14515-1First edition2000-12-15AMENDMENT 12003-12-15IEEE Std 2003.1b-2000(Amendment toIEEE Std 2003.1-1992)Information technology Portable Operating System Interface (POSIX) Test methods for measuring conformance to POSIX Part 1: System interfaces AMENDMENT 1: Realtime Extension (C Language) Tec

6、hnologies de linformation Interface de systme de fonctionnement portable (POSIX) Mthodes dessai pour mesurer la conformit au POSIX Partie 1: Interfaces de systme AMENDEMENT 1: Extension en temps rel (langage C) Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02ISO/IEC 14515-1:2000/Amd.1:2003(E) IEEE Std

7、 2003.1b-2000 (Amendment to IEEE Std 2003.1-1992) PDF disclaimer This PDF file may contain embedded typefaces. In accordance with Adobes licensing policy, this file may be printed or viewed but shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer

8、performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The ISO Central Secretariat accepts no liability in this area. Adobe is a trademark of Adobe Systems Incorporated. Details of the software products used to create th

9、is PDF file can be found in the General Info relative to the file; the PDF-creation parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In the unlikely event that a problem relating to it is found, please inform the Cent

10、ral Secretariat at the address given below. ISO Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02ISO/IEC 14515-1:2000/Amd.1:2003(E)IEEE Std 2003.1b-2000(Amendment to IEEE Std 2003.1-1992)Information T

11、echnologyPortable Operating System Interface (POSIX)Part 1: Test method for measuring conformance to POSIXAmendment 1: Realtime Extension (C Language)SponsorPortable Applications Standards Committeeof theIEEE Computer SocietyApproved 30 March 2000IEEE-SA Standards BoardApproved 2 November 2000Americ

12、an National Standards InstituteAdopted as an International Standard by theInternational Organization for Standardizationand by theInternational Electrotechnical CommissionPublished byThe Institute of Electrical and Electronics Engineers, Inc.Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02The Institut

13、e of Electrical and Electronics Engineers, Inc.3 Park Avenue, New York, NY 10016-5997, USACopyright 2003 by the Institute of Electrical and Electronics Engineers, Inc.All rights reserved. Published 15 August 2003. Printed in the United States of America.IEEE is a registered trademark in the U.S. Pat

14、ent +1 978 750 8400. Permission to photocopy portions of any individual standard for educationalclassroom use can also be obtained through the Copyright Clearance Center.Note: Attention is called to the possibility that implementation of this standard may require use of subject mat-ter covered by pa

15、tent rights. By publication of this standard, no position is taken with respect to the existence orvalidity of any patent rights in connection therewith. The IEEE shall not be responsible for identifying patentsfor which a license may be required by an IEEE standard or for conducting inquiries into

16、the legal validity orscope of those patents that are brought to its attention.Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02iiContentsIntroductionviiiOrganization of This Standard . viiiHow to Read This Standard . viiiRelated Standards Activities . ixSection 1: General . 11.1 Scope 11.2 Normative Re

17、ferences . 21.3 Conformance 31.4 Test Methods 4Section 2: Terminology and General Requirements . 192.1 Conventions 192.2 Definitions . 202.3 General Concepts 282.4 Error Numbers 342.5 Primitive System Data Types . 352.6 Environment Description 352.7 C Language Definitions . 372.8 Numerical Limits 40

18、2.9 Symbolic Constants 43Section 3: Process Primitives 483.1 Process Creation and Execution . 483.1.1 Process Creation . 483.1.2 Execute a File . 503.2 Process Termination 533.2.1 Wait for Process Termination . 533.2.2 Terminate a Process . 533.3 Signals 553.3.1 Signal Concepts 553.3.2 Send a Signal

19、 to a Process 653.3.3 Manipulate Signal Sets 653.3.4 Examine and Change Signal Action . 653.3.5 Examine and Change Blocked Signals . 673.3.6 Examine Pending Signals 673.3.7 Wait for a Signal . 683.3.8 Synchronously Accept a Signal 683.3.9 Queue a Signal to a Process . 723.4 Timer Operations 753.4.1

20、Schedule Alarm 763.4.2 Suspend Process Execution . 763.4.3 Delay Process Execution . 76Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02iiiSection 4: Process Environment . 784.8 Configurable System Variables . 784.8.1 Get Configurable System Variables . 78Section 5: Files and Directories 825.1 Director

21、ies . 825.1.1 Format of Directory Entries . 825.1.2 Directory Operations 825.2 Working Directory . 825.2.1 Change Current Working Directory . 825.2.2 Get Working Directory Pathname 835.3 General File Creation . 835.3.1 Open a File . 835.3.2 Create New File or Rewrite an Existing One 845.3.3 Set File

22、 Creation Mask 845.3.4 Link to a File 855.4 Special File Creation . 855.4.1 Make a Directory . 855.4.2 Make a FIFO Special File . 855.5 File Removal . 865.5.1 Remove Directory Entries 865.5.2 Remove a Directory . 865.5.3 Rename a File . 865.6 File Characteristics . 875.6.1 File Characteristics: Head

23、er and Data Structure 875.6.2 Get File Status . 885.6.3 Check File Accessibility . 895.6.4 Change File Modes . 895.6.5 Change Owner and Group of a File . 925.6.6 Set File Access and Modification Times . 935.6.7 Truncate a File to a Specified Length 935.7 Configurable Pathname Variables . 965.7.1 Get

24、 Configurable Pathname Variables . 96Section 6: Input and Output Primitives 996.1 Pipes . 996.1.1 Create an Inter-Process Channel . 996.2 File Descriptor Manipulation . 996.2.1 Duplicate an Open File Descriptor 996.3 File Descriptor Deassignment 1006.3.1 Close a File .1006.4 Input and Output 1016.4.

25、1 Read from a File .1016.4.2 Write to a File .1026.5 Control Operations on Files 1036.5.1 Data Definitions for File Control Operations 1036.5.2 File Control .1036.5.3 Reposition Read/Write File Offset 1066.6 File Synchronization .107Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02iv6.6.1 Synchronize t

26、he State of a File .1076.6.2 Synchronize the Data of a File .1106.7 Asynchronous Input and Output .1126.7.1 Data Definitions for Asynchronous Input and Output 1126.7.2 Asynchronous Read .1156.7.3 Asynchronous Write 1216.7.4 List Directed I/O .1286.7.5 Retrieve Error Status of Asynchronous I/O Operat

27、ion.1386.7.6 Retrieve Return Status of Asynchronous I/O Operation 1406.7.7 Cancel Asynchronous I/O Request 1416.7.8 Wait for Asynchronous I/O Request .1446.7.9 Asynchronous File Synchronization .147Section 7: Device- and Class- Specific Functions 153Section 8: Language-Specific Services for the C Pr

28、ogramming Language 1548.2.2 Open a Stream on a File Descriptor .154Section 9: System Databases 155Section 10: Data Interchange Format 156Section 11: Synchronization 15711.1 Semaphore Characteristics 15711.2 Semaphore Functions 15811.2.1 Initialize an Unnamed Semaphore .15811.2.2 Destroy an Unnamed S

29、emaphore 16111.2.3 Initialize/Open a Named Semaphore .16211.2.4 Close a Named Semaphore 16811.2.5 Remove a Named Semaphore 17011.2.6 Lock a Semaphore .17211.2.7 Unlock a Semaphore .18011.2.8 Get the Value of a Semaphore 184Section 12: Memory Management 18712.1 Memory Locking Functions .18912.1.1 Loc

30、k/Unlock the Address Space of a Process .18912.1.2 Lock/Unlock a Range of Process Address Space 19312.2 Memory Mapping Functions 19712.2.1 Map Process Address to a Memory Object .19712.2.3 Change Memory Protection 20712.2.4 Memory Object Synchronization 21112.3 Shared Memory Functions 21512.3.1 Open

31、 a Shared Memory Object .21512.3.2 Remove a Shared Memory Object .222Section 13: Execution Scheduling 22513.1 Scheduling Parameters .225Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02v13.2 Scheduling Policies .22513.2.1 SCHED_FIFO 22613.2.2 SCHED_RR .22813.2.3 SCHED_OTHER 22813.3 Process Scheduling F

32、unctions .22913.3.1 Set Scheduling Parameters .22913.3.2 Get Scheduling Parameters 23213.3.3 Set Scheduling Policy and Scheduling Parameters .23413.3.4 Get Scheduling Policy 23813.3.5 Yield Processor .23913.3.6 Get Scheduling Parameter Limits 240Section 14: Clocks and Timers 24514.1 Data Definitions

33、 for Clocks and Timers 24514.1.1 Time Value Specification Structures .24514.1.2 Timer Event Notification Control Block 24614.1.3 Type Definitions 24614.1.4 Manifest Constants 24614.2 Clocks and Timer Functions .24714.2.1 Clocks 24714.2.2 Create a Per-Process Timer 25314.2.3 Delete a Per-Process Time

34、r 25714.2.4 Per-Process Timers 25914.2.5 High Resolution Sleep 265Section 15: Message Passing 26915.1 Data Definitions for Message Queues 26915.1.1 Data Structures .26915.2 Message Passing Functions .27015.2.1 Open a Message Queue .27015.2.2 Close a Message Queue .27815.2.3 Remove a Message Queue .2

35、8015.2.4 Send a Message to a Message Queue .28215.2.5 Receive a Message From a Message Queue 28515.2.6 Notify Process that a Message is Available on a Queue .28715.2.7 Set Message Queue Attributes 28915.2.8 Get Message Queue Attributes 291Annex A(normative)Conforming Test Results 293A.1 General .293

36、A.2 Terminology and General Requirements 293A.3 Process Primitives .295A.4 Process Environment .302A.5 Files and Directories .302A.6 Input and Output Primitives .306A.7 Device- and Class-Specific Functions 314A.8 Language-Specific Services for the C Programming Language .314Amendment 1:2013 to CAN/C

37、SA-ISO/IEC 14515-1-02viA.9 System Databases .314A.10 Data Interchange Format .314A.11 Synchronization .314A.12 Memory Management .319A.13 Execution Scheduling .326A.14 Clocks and Timers .330A.15 Message Passing .335Annex B(informative)Bibliography .341B.1 Related Open Systems Standards 341B.2 Other

38、Standards .343B.3 Historical Documentation and Introductory Texts .343B.4 Other Sources of Information 345Identifier Index 347Alphabetic Topical Index 350TABLESTable 1-1 G25 PCTS Symbols and Values . 6Table 2-1 G25 Minimum Values . 40Table 2-2 G25 Run-Time Invariant Values (Possibly Indeterminate) 4

39、2Table 2-3 G25 Maximum Values . 43Table 2-4 G25 Compile-Time Symbolic Constants . 44Table 2-5 G25 Execution-Time Symbolic Constants 46Table 3-1 G25 Required Signals 55Table 3-2 G25 Job Control Signals . 56Table 3-3 G25 Memory Protection Signals 56Table 4-2 G25 Configurable System Variables . 80Amend

40、ment 1:2013 to CAN/CSA-ISO/IEC 14515-1-02viiiIntroduction(This Introduction is not a normative part of IEEE Std 2003.1b-2000, IEEE Standard for InformationTechnologyG25Test Methods Specifications for Measuring Conformance to POSIX-Part 1: SystemApplication Program Interface(API)-Amendment 1: Realtim

41、e Extension C Language).This standard defines the test method specifications for IEEE Std 1003.1b-1993 (based on thedocument corresponding to the merger of IEEE Std 1003.1-1990 and IEEE Std 1003.1b-1993).The test method specifications consist of assertions to be tested and related test procedures. A

42、san amendment to IEEE Std 1003.1-1990, this standard is structured to amend those portions ofIEEE Std. 2003.1-1992 4 (the test method specification for IEEE Std 1003.1-1990) thatcorrespond to the amended parts of IEEE Std 1003.1-1990. This standard is aimed primarily atproviders of test methods for

43、IEEE Std 1003.1b-1993 and at implementors of IEEE Std 1003.1b-1993.Organization of This StandardThis document is organized into five parts, as follows:(1) Statement of scope, normative references, conformance requirements, and test methods(Section 1)(2) Conventions and definitions (Section 2)(3) Ass

44、ertions to test POSIX.1b 3 (Sections 2 through 15)(4) Conforming test results (Annex A)(5) Bibliography (Annex B)This introduction, any footnotes, notes accompanying the test, and the informative annexes arenot considered part of this standard. Annex A is normative. Annex B is informative.How to Rea

45、d This StandardThis document is organized using the same section numbering as POSIX.1b 3, in order tofacilitate finding the testing requirements for a particular element of POSIX.1b 3. Subclause1.4 has been added to this document to keep the section numbering consistent with POSIX.1b3 and to provide

46、 a place to describe features relevant to the test methods. It is stronglyrecommended that the reader review 1.4 after reading 1.1, 1.2, and this introduction. Wherepossible, this document tries to use the same assertion numbering that was used as IEEE Std2003.1-1992 4. This document skips over the

47、assertion numbers where there are no assertionsthat correspond to an assertion in IEEE Std 2003.1-1992 4. The assertions have beennumbered with a fractional part where more than one assertion takes the place of a singleassertion in IEEE Std 2003.1-1992 4.Amendment 1:2013 to CAN/CSA-ISO/IEC 14515-1-0

48、21)A Standards Status Report that lists all current IEEE Computer Society standards projects is available from theIEEE Computer Society, 1730 Massachusetts Avenue NW, Washington, DC 20036-1903, Telephone: +1 202371-0101; FAX: +1 202 728-9614.ixIntroductionRelated Standards ActivitiesActivities to ex

49、tend this standard to address additional requirements are in progress, and similarefforts can be anticipated in the future.The following areas are under active consideration at this time, or are expected to become activein the near future: 1)(1) Language-independent service descriptions of this standard(2) C, Ada, and FORTRAN language bindings to (1)(3) Shell and utility facilities(4) Verification testing methods(5) Multithreaded process facilities(6) Secure/trusted system considerations(7) Network interface facilities(8) S

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

当前位置:首页 > 标准规范 > 国际标准 > 其他

copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1