ISO-14515-1-2000 9.98.pdf

上传人:爱问知识人 文档编号:3774789 上传时间:2019-09-23 格式:PDF 页数:718 大小:19.33MB
返回 下载 相关 举报
ISO-14515-1-2000 9.98.pdf_第1页
第1页 / 共718页
ISO-14515-1-2000 9.98.pdf_第2页
第2页 / 共718页
ISO-14515-1-2000 9.98.pdf_第3页
第3页 / 共718页
ISO-14515-1-2000 9.98.pdf_第4页
第4页 / 共718页
ISO-14515-1-2000 9.98.pdf_第5页
第5页 / 共718页
亲,该文档总共718页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《ISO-14515-1-2000 9.98.pdf》由会员分享,可在线阅读,更多相关《ISO-14515-1-2000 9.98.pdf(718页珍藏版)》请在三一文库上搜索。

1、INTERNATIONAL STANDARD ISO/IEC 1451 5-1 First edition 2000-1 2-1 5 AMENDMENT 1 2003-1 2-1 5 IEEE Std 2003.1 b-2000 IEEE Std 2003.1 -1 992) (Amendment to Information technology - Portable Operating System interface (POSIX) - Test methods for measuring conformance to POSIX - Part 1: System interfaces

2、AMENDMENT 1 : Realtime Extension (C Language) Technologies 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) Reference number ISOIIEC 1451 5-1

3、:2000/Amd.l:2003(E) (Amendment to IEEE Std 2003.1 -1 992) IEEE Std 2003.1 b-2000 Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking p

4、ermitted without license from IHS -,-,- ISO/IEC 14515-1 :2000/Amd.l:2003(E) IEEE Std 2003.1 b-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 u

5、nless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In downloading this file, parties accept therein the responsibility of not infringing Adobes licensing policy. The IS0 Central Secretariat accepts no liability in this area. Adobe is a tradem

6、ark of Adobe Systems Incorporated. Details of the sofiware products used to create this 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 IS0 member bodies.

7、 In the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below. IS0 Case postale 56 CH-1 21 1 Geneva 20 Tel. + 41 22 749 O 1 11 Fax +41227490947 E-mail copyrightiso.org Copyright International Organization for Standardization Provided

8、by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license from IHS -,-,- ISO/IEC 14515-1 :2000/Amd.l:2003(E) IEEE Std 2003.1 bTM-2000 (Amendment to IEEE Std 2003.1“-1992) Informati

9、on Technology-Portable Operating System Interface (POSIX)-Part 1 : Test method for measuring conformance to POSIX Amendment 1 : Realtime Extension (C Language) Sponsor Portable Applications Standards Committee of the IEEE Computer Society Approved 30 March 2000 IEEE-SA Standards Board Approved 2 Nov

10、ember 2000 American National Standards Institute Adopted as an International Standard by the International Organization for Standardization and by the International Electrotechnical Commission Published by +IEEE The Institute of Electrical and Electronics Engineers, Inc. Copyright International Orga

11、nization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license from IHS -,-,- Abstract: This standard defines the test method specifications for IE

12、EE Std 1003.b-1993 (based on the document corresponding to the merger of IEEE Std 1003.1-1990 and IEEE Std 1003.lb- 1993). The test method specifications consist of assertions to be tested and related test procedures. As an amendment to IEEE Std 1003.1-1990, this standard is structured to amend thos

13、e portions of IEEE Std 2003.1-1992 (the test method specification for IEEE Std 1003.1-1990) that correspond to the amended parts of IEEE Std 1003.1-1990. This standard is aimed primarily at providers of test methods for IEEE Std 1003.1b-1993 and at implementors of IEEE Std 1003.1b-1993. Keywords: as

14、sertion, assertion test, C programming language, POSIX, POSIX Conformance Doc- ument, POSIX Conformance Test Procedure, POSIX Conformance Test Suite, realtime, test meth- od specification, test result code The Institute of Electrical and Electronics Engineers, Inc 3 Park Avenue, New York, NY 10016-5

15、997, USA Copyright O 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. Patent +1 978 750 8400. Permission to photocopy portions of any individual standa

16、rd for educational classroom use can also be obtained through the Copyright Clearance Center. Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or

17、 networking permitted without license from IHS -,-,- Contents Introduction . v111 Organization of This Standard . viii How to Read This Standard . viii Related Standards Activities . ix . . Section1:General . 1 1.1Scope 1 1.2 Normative References . 2 1.3Conformance 3 1.4TestMethods 4 Section 2: Term

18、inology and General Requirements . 19 2.1Conventions 19 2.2Definitions . 20 2.3 General Concepts 28 2.4ErrorNumbers 34 2.5 Primitive System Data Types . 35 2.6 Environment Description 35 2.7 C Language Definitions . 37 2.8 Numerical Limits 40 2.9 Symbolic Constants 43 Section 3: Process Primitives 4

19、8 3.1 Process Creation and Execution . 48 3.1.1 Process Creation . 48 3.1.2 Execute a File . 50 3.2 Process Termination 53 3.2.1 Wait for Process Termination . 53 3.2.2 Terminate a Process . 53 3.3 Signals 55 3.3.1 Signal Concepts 55 3.3.2 Send a Signal to a Process 65 3.3.3 Manipulate Signal Sets 6

20、5 3.3.4 Examine and Change Signal Action . 65 3.3.5 Examine and Change Blocked Signals . 67 3.3.6 Examine Pending Signals 67 3.3.7 Wait for a Signal . 68 3.3.8 Synchronously Accept a Signal 68 3.3.9 Queue a Signal to a Process . 72 3.4 Timer Operations 75 3.4.1 Schedule Alarm 76 3.4.2 Suspend Proces

21、s Execution . 76 3.4.3 Delay Process Execution . 76 V Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license fr

22、om IHS -,-,- Section 4: Process Environment . 78 4.8 Configurable System Variables . 4.8.1 Get Configurable System Variables . 78 78 Section 5: Files and Directories 82 5.1Directories . 82 5.1.1 Format of Directory Entries . 82 5.1.2 Directory Operations 82 5.2 Working Directory . 82 5.2.1 Change Cu

23、rrent Working Directory . 82 5.2.2 Get Working Directory Pathname 83 5.3 General File Creation . 83 5.3.1 Open a File . 83 5.3.2 Create New File or Rewrite an Existing One 84 5.3.3 Set File Creation Mask 84 5.3.4LinktoaFile 85 5.4 Special File Creation . 85 5.4.1 Make a Directory . 85 5.4.2 Make a F

24、IFO Special File . 85 5.5FileRemoval . 86 5.5.1 Remove Directory Entries 86 5.5.2 Remove a Directory . 86 5.5.3 Rename a File . 86 5.6 File Characteristics . 87 5.6.1 File Characteristics: Header and Data Structure 87 5.6.2 Get File Status . 88 5.6.3 Check File Accessibility . 89 5.6.4 Change File M

25、odes . 89 5.6.5 Change Owner and Group of a File . 92 5.6.6 Set File Access and Modification Times . 93 5.6.7 Truncate a File to a Specified Length 93 5.7 Configurable Pathname Variables . 96 5.7.1 Get Configurable Pathname Variables . 96 Section 6: Input and Output Primitives 99 6.1Pipes . 99 6.1.1

26、 Create an Inter-Process Channel . 99 6.2 File Descriptor Manipulation . 99 6.2.1 Duplicate an Open File Descriptor 99 6.3 File Descriptor Deassignment 100 6.3.1 Close a File . 100 6.4 Input and Output 101 6.4.1 Read from a File . 101 6.4.2 Write to a File . 102 6.5 Control Operations on Files 103 6

27、.5.1 Data Definitions for File Control Operations 103 6.5.2 File Control . 103 6.5.3 Reposition Readwrite File Offset 106 6.6 File Synchronization . 107 vi Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Be

28、rnie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license from IHS -,-,- 6.6.1 Synchronize the State of a File . 107 6.6.2 Synchronize the Data of a File . 110 6.7 Asynchronous Input and Output . 112 6.7.1 Data Definitions for Asynchronous Input and Output 1

29、12 6.7.2 Asynchronous Read . 115 6.7.3 Asynchronous Write 121 6.7.4 List Directed I/o . 128 6.7.5 Retrieve Error Status of Asynchronous I/o Operation . 138 6.7.6 Retrieve Return Status of Asynchronous I/o Operation 140 6.7.7 Cancel Asynchronous I/o Request 141 6.7.8 Wait for Asynchronous I/o Request

30、 . 144 6.7.9 Asynchronous File Synchronization . 147 Section 7: Device- and Class- Specific Functions 153 Section 8: Language-Specific Services for the CProgrammingLanguage 154 8.2.2 Open a Stream on a File Descriptor . 154 Section 9: System Databases 155 Section 10: Data Interchange Format 156 Sect

31、ion 11: Synchronization 157 11.1 Semaphore Characteristics 157 11.2 Semaphore Functions 158 11.2.1 Initialize an Unnamed Semaphore . 158 1 1.2.2 Destroy an Unnamed Semaphore 161 11.2.3 Initialize/Open a Named Semaphore . 162 11.2.4 Close a Named Semaphore 168 1 1.2.5 Remove a Named Semaphore 170 11.

32、2.6 Lock a Semaphore . 172 11.2.7 Unlock a Semaphore . 180 11.2.8 GettheValueofaSemaphore 184 Section 12: Memory Management 187 12.1 Memory Locking Functions . 189 12.1.1 LoclUnlock the Address Space of a Process . 189 12.1.2 LoclUnlock a Range of Process Address Space 193 12.2 Memory Mapping Functi

33、ons 197 12.2.1 Map Process Address to a Memory Object . 197 12.2.3 Change Memory Protection 207 12.2.4 Memory Object Synchronization 211 12.3 Shared Memory Functions 215 12.3.1 Open a Shared Memory Object . 215 12.3.2 Remove a Shared Memory Object . 222 Section 13: Execution Scheduling 225 13.1 Sche

34、duling Parameters . 225 vii Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license from IHS -,-,- 13.2 Scheduli

35、ng Policies . 225 13.2.1 SCHEDFIFO 226 13.2.2 SCHEDRR . 228 13.2.3 SCHED-OTHER 228 13.3 Process Scheduling Functions . 229 13.3.1 Set Scheduling Parameters . 229 13.3.2 Get Scheduling Parameters 232 13.3.3 Set Scheduling Policy and Scheduling Parameters . 234 13.3.4 Get Scheduling Policy 238 13.3.5

36、Yield Processor . 239 13.3.6 Get Scheduling Parameter Limits 240 Section 14: Clocks and Timers 245 14.1 Data Definitions for Clocks and Timers 245 14.1.1 Time Value Specification Structures . 245 14.1.2 Timer Event Notification Control Block 246 14.1.3 Type Definitions 246 14.1.4 Manifest Constants

37、246 14.2 Clocks and Timer Functions . 247 14.2.1Clocks 247 14.2.2 Create a Per-Process Timer 253 14.2.3 Delete a Per-Process Timer 257 14.2.4 Per-Process Timers 259 14.2.5 High Resolution Sleep 265 Section 15: Message Passing 269 15.1 Data Definitions for Message Queues 269 15.1.1 Data Structures .

38、269 15.2 Message Passing Functions . 270 15.2.1 Open a Message Queue . 270 15.2.2 Close a Message Queue . 278 15.2.3 Remove a Message Queue . 280 15.2.4 Send a Message to a Message Queue . 282 15.2.5 Receive a Message From a Message Queue 285 15.2.7 Set Message Queue Attributes 289 15.2.8 Get Messag

39、e Queue Attributes 291 15.2.6 Noti% Process that a Message is Available on a Queue . 287 Annex A (normative) Conforming Test Results 293 A.2 Terminology and General Requirements 293 A.3 Process Primitives . 295 A.4 Process Environment . 302 A.5 Files and Directories . 302 A.6 Input and Output Primit

40、ives . 306 A.7 Device- and Class-Specific Functions 314 A.8 Language-Specific Services for the C Programming Language . 314 A.1General . 293 . v111 Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not

41、 for Resale, 04/02/2007 19:12:01 MDTNo reproduction or networking permitted without license from IHS -,-,- A.9 System Databases . 3 14 A . 10 Data Interchange Format . 314 A . 1 1 Synchronization 314 A . 12 Memory Management 319 A.13 Execution Scheduling . 326 A . 14 Clocks and Timers . 330 A . 15 M

42、essage Passing . 335 . . Annex B (informative) Bibliography . 341 B 1 Related Open Systems Standards 341 . B.2 Other Standards . 343 B.3 Historical Documentation and Introductory Texts . 343 B.4 Other Sources of Information 345 IdentifierIndex 347 Alphabetic Topical Index 350 TABLES Table 1-1 . PCTS

43、 Symbols and Values . 6 Table 2- 1 . Minimum Values . 40 Table 2-2 . Run-Time Invariant Values (Possibly Indeterminate) 42 Table 2-3 . Maximum Values . 43 Table 2-4 . Compile-Time Symbolic Constants . 44 Table 2-5 . Execution-Time Symbolic Constants 46 Table 3-1 . Required Signals 55 Table 3-2 . Job

44、 Control Signals . 56 Table 3-3 . Memory Protection Signals 56 Table 4-2 . Configurable System Variables . 80 ix Copyright International Organization for Standardization Provided by IHS under license with ISO Licensee=IHS Employees/1111111001, User=Wing, Bernie Not for Resale, 04/02/2007 19:12:01 MD

45、TNo reproduction or networking permitted without license from IHS -,-,- Introduction (This Introduction is not a normative part of IEEE Std 2003.1b-2000, IEEE Standard for Information Technology-Test Methods Specifications for Measuring Conformance to POSIX-Part 1 : System Application Program Interf

46、ace(AP1)-Amendment 1 : Realtime Extension C Language). This standard defines the test method specifications for IEEE Std 1003.lb-1993 (based on the document corresponding to the merger of IEEE Std 1003.1-1990 and IEEE Std 1003.lb-1993). The test method specifications consist of assertions to be test

47、ed and related test procedures. As an amendment to IEEE Std 1003.1-1990, this standard is structured to amend those portions of IEEE Std. 2003.1-1992 (4) (the test method specification for IEEE Std 1003.1-1990) that correspond to the amended parts of IEEE Std 1003.1-1990. This standard is aimed prim

48、arily at providers OftestmethodsforIEEE Std 1003.1b-1993 andatimplementors ofIEEE Std 1003.lb- 1993. Organization of This Standard This 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) Assertions to test POSIX.lb (3) (Sections 2 through 15) (4) Conforming test results (Annex A) (5) Bibliography (Annex B) This introduction, any fo

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

当前位置:首页 > 其他


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