1、 Reference numberISO/IEC 9945-1:2003(E)Base Definitions, IEEE Std 1003.1, 2003 EditionThe Open Group Technical Standard, Issue 6Information technology Portable Operating System Interface (POSIX) Part 1: Base Definitions Technologies de linformation Interface pour la portabilit des systmes (POSIX) Pa
2、rtie 1: Dfinitions de base National Standard of CanadaCAN/CSA-ISO/IEC 9945-1:05(ISO/IEC 9945-1:2003)International Standard ISO/IEC 9945-1:2003 (fourth edition, 2003-08-15) has been adopted withoutmodification (IDT) as CSA Standard CAN/CSA-ISO/IEC 9945-1:05, which has been approved as a NationalStand
3、ard of Canada by the Standards Council of Canada.ISBN 1-55397-793-9 January 2005The Canadian Standards Association (CSA), under whose auspices this National Standard has been produced, was chartered in 1919 and accredited by the Standards Council of Canada to the National Standards system in 1973. I
4、t is a not-for-profit, nonstatutory, voluntary membership association engaged in standards development and certification activities. CSA standards reflect a national consensus of producers and users including manufacturers, consumers, retailers, unions and professional organizations, and governmenta
5、l agencies. The standards are used widely by industry and commerce and often adopted by municipal, provincial, and federal governments in their regulations, particularly in the fields of health, safety, building and construction, and the environment. Individuals, companies, and associations across C
6、anada indicate their support for CSAs standards development by volunteering their time and skills to CSA Committee work and supporting the Associations objectives through sustaining memberships. The more than 7000 committee volunteers and the 2000 sustaining memberships together form CSAs total memb
7、ership from which its Directors are chosen. Sustaining memberships represent a major source of income for CSAs standards development activities. The Association offers certification and testing services in support of and as an extension to its standards development activities. To ensure the integrit
8、y of its certification process, the Association regularly and continually audits and inspects products that bear the CSA Mark. In addition to its head office and laboratory complex in Toronto, CSA has regional branch offices in major centres across Canada and inspection and testing agencies in eight
9、 countries. Since 1919, the Association has developed the necessary expertise to meet its corporate mission: CSA is an independent service organization whose mission is to provide an open and effective forum for activities facilitating the exchange of goods and services through the use of standards,
10、 certification and related services to meet national and international needs.For further information on CSA services, write toCanadian Standards Association5060 Spectrum Way, Suite 100Mississauga, Ontario, L4W 5N6CanadaThe Standards Council of Canada is the coordinating body of the National Standard
11、s system, a federation of independent, autonomous organizations working towards the further development and improvement of voluntary standardization in the national interest. The principal objects of the Council are to foster and promote voluntary standardization as a means of advancing the national
12、 economy, benefiting the health, safety, and welfare of the public, assisting and protecting the consumer, facilitating domestic and international trade, and furthering international cooperation in the field of standards. A National Standard of Canada is a standard which has been approved by the Sta
13、ndards Council of Canada and one which reflects a reasonable agreement among the views of a number of capable individuals whose collective interests provide to the greatest practicable extent a balance of representation of producers, users, consumers, and others with relevant interests, as may be ap
14、propriate to the subject in hand. It normally is a standard which is capable of making a significant and timely contribution to the national interest. Approval of a standard as a National Standard of Canada indicates that a standard conforms to the criteria and procedures established by the Standard
15、s Council of Canada. Approval does not refer to the technical content of the standard; this remains the continuing responsibility of the accredited standards development organization. Those who have a need to apply standards are encouraged to use National Standards of Canada whenever practicable. Th
16、ese standards are subject to periodic review; therefore, users are cautioned to obtain the latest edition from the organization preparing the standard.The responsibility for approving National Standards of Canada rests with theStandards Council of Canada270 Albert Street, Suite 200Ottawa, Ontario, K
17、1P 6N7CanadaAlthough the intended primary application of this Standard is stated in its Scope, it is importantto note that it remains the responsibility of the users to judge its suitability for their particular purpose.Registered trade-mark of Canadian Standards AssociationCAN/CSA-ISO/IEC 9945-1:05
18、Information technology Portable Operating SystemInterface (POSIX) Part 1: Base DefinitionsJanuary 2005 Canadian Standards Association CSA/1CAN/CSA-ISO/IEC 9945-1:05Information technology Portable Operating System Interface (POSIX) Part 1: Base DefinitionsCSA PrefaceStandards development within the I
19、nformation Technology sector is harmonized with international standards development. Through the CSA Technical Committee on Information Technology (TCIT), Canadians serve as the Canadian Advisory Committee (CAC) on ISO/IEC Joint Technical Committee 1 on Information Technology (ISO/IEC JTC1) for the
20、Standards Council of Canada (SCC), the ISO member body for Canada and sponsor of the Canadian National Committee of the IEC. Also, as a member of the International Telecommunication Union (ITU), Canada participates in the International Telegraph and Telephone Consultative Committee (ITU-T).This Stan
21、dard supersedes CAN/CSA-ISO/IEC 9945-1:04 (adoption of ISO/IEC 9945-1:2002).This International Standard was reviewed by the CSA TCIT under the jurisdiction of the Strategic Steering Committee on Information Technology and deemed acceptable for use in Canada. (A committee membership list is available
22、 on request from the CSA Project Manager.) From time to time, ISO/IEC may publish addenda, corrigenda, etc. The CSA TCIT will review these documents for approval and publication. For a listing, refer to the CSA Information Products catalogue or CSA Info Update or contact a CSA Sales representative.
23、This Standard has been formally approved as a National Standard of Canada by the Standards Council of Canada.January 2005 Canadian Standards Association 2005All rights reserved. No part of this publication may be reproduced in any form whatsoever without the prior permission ofthe publisher. ISO/IEC
24、 material is reprinted with permission. Where the words “this International Standard” appear in the text, they should be interpreted as “this National Standard of Canada”.Inquiries regarding this National Standard of Canada should be addressed toCanadian Standards Association5060 Spectrum Way, Suite
25、 100, Mississauga, Ontario, Canada L4W 5N61-800-463-6727 416-747-4044www.csa.caICS 35.060 Ref. No. ISO/IEC 9945-1:2003/Cor.1:2004(E) ISO/IEC 2004 All rights reserved Information technology Portable Operating System Interface (POSIX) Part 1: Base Definitions TECHNICAL CORRIGENDUM 1 Technologies de li
26、nformation Interface pour la portabilit des systmes (POSIX) Partie 1: Dfinitions de base RECTIFICATIF TECHNIQUE 1 Technical Corrigendum 1 to ISO/IEC 9945-1:2003 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environme
27、nts and system software interfaces. Technical Corrigendum 1:2005 toNational Standard of CanadaCAN/CSA-ISO/IEC 9945-1:05Technical Corrigendum 1:2004 to International Standard ISO/IEC 9945-1:2003 has been adopted withoutmodification (IDT) as Technical Corrigendum 1:2005 to CAN/CSA-ISO/IEC 9945-1:05. T
28、his TechnicalCorrigendum was reviewed by the CSA Technical Committee on Information Technology (TCIT) under thejurisdiction of the Strategic Steering Committe on Information Technology and deemed acceptable for use inCanada.October 2005Reference numberISO/IEC 9945-1:2003(E)Base Definitions, IEEE Std
29、 1003.1, 2003 EditionThe Open Group Technical Standard, Issue 6INTERNATIONAL STANDARD ISO/IEC9945-1Base Definitions,IEEE Std 1003.1, 2003 EditionThe Open Group Technical StandardIncludes IEEE Std 1003.1-2001 and IEEE Std 1003.1-2001/Cor 1-2002Fourth edition2003-08-15Information technology Portable O
30、perating System Interface (POSIX) Part 1: Base Definitions Technologies de linformation Interface pour la portabilit des systmes (POSIX) Partie 1: Dfinitions de base ISO/IEC 9945-1:2003(E) Base Definitions, IEEE Std 1003.1, 2003 Edition The Open Group Technical Standard, Issue 6 PDF disclaimer This
31、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 performing the editing. In downloading this file, parties accept there
32、in 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 this PDF file can be found in the General Info relative to the file; the
33、 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 Central Secretariat at the address given below. ISO Case postale 56 CH-121
34、1 Geneva 20 Tel. + 41 22 749 01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org ISO/IEC 9945-1:2003(E) IEEE Std 1003.1, 2003 Edition The Open Group Technical Standard Base Specifications, Issue 6 Includes IEEE Std 1003.1-2001 and IEEE Std 1003.1-2001/Cor 1-2002 Information Technology Portable Opera
35、ting System Interface (POSIX) Part 1: Base Definitions Sponsor Portable Applications Standards Committee of the IEEE Computer Society and The Open Group Adopted as an International Standard by the International Organization for Standardization and by the International Electrotechnical Commission ISO
36、/IEC 9945-1:2003(E) Base Definitions, IEEE Std 1003.1, 2003 Edition The Open Group Technical Standard, Issue 6 International Standard ISO/IEC 9945-1:2003(E) ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system fo
37、r worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collabo
38、rate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1. International Standards a
39、re drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as a
40、n International Standard requires approval by at least 75% of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this part of ISO/IEC 9945 may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all suc
41、h patent rights. ISO/IEC 9945-1 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 22, Programming languages, their environments and system software interfaces. This fourth edition of ISO/IEC 9945-1 is a minor revision and, together with ISO/IEC 9945-2,
42、ISO/IEC 9945-3, and ISO/IEC 9945-4, cancels and replaces ISO/IEC 9945-1:2002, ISO/IEC 9945-2:2002, ISO/IEC 9945-3:2002 and ISO/IEC 9945-4:2002. ISO/IEC 9945 consists of the following parts, under the general title Information technology Portable Operating System Interface (POSIX): Part 1: Base Defin
43、itions Part 2: System Interfaces Part 3: Shell and Utilities Part 4: Rationale International Organization for Standardization/International Electrotechnical Commission Case postale 56 CH-1211 Genve 20 Switzerland AbstractThis standard is simultaneously ISO/IEC 9945:2003, IEEE Std 1003.1-2001, and fo
44、rms the core of the Single UNIX Specification,Version 3.The IEEE Std 1003.1, 2003 Edition includes IEEE Std 1003.1-2001/Cor 1-2002 incorporated into IEEE Std 1003.1-2001 (basedocument). The Corrigendum addresses problems discovered since the approval of IEEE Std 1003.1-2001. These changes are mainly
45、due to resolving integration issues raised by the merger of the base documents that were incorporated into IEEE Std 1003.1-2001,which is the single common revision to IEEE Std 1003.1TM-1996, IEEE Std 1003.2TM-1992, ISO/IEC 9945-1: 1996, ISO/IEC 9945-2: 1993,and the Base Specifications of The Open Gr
46、oup Single UNIXSpecification, Version 2.This standard defines a standard operating system interface and environment, including a command interpreter (or shell), andcommon utility programs to support applications portability at the source code level. This standard is intended to be used by bothapplic
47、ations developers and system implementors and comprises four major components (each in an associated volume): General terms, concepts, and interfaces common to all volumes of this standard, including utility conventions and C-languageheader definitions, are included in the Base Definitions volume. D
48、efinitions for system service functions and subroutines, language-specific system services for the C programming language,function issues, including portability, error handling, and error recovery, are included in the System Interfaces volume. Definitions for a standard source code-level interface t
49、o command interpretation services (a shell) and common utilityprograms for application programs are included in the Shell and Utilities volume. Extended rationale that did not fit well into the rest of the document structure, which contains historical information concerningthe contents of this standard and why features were included or discarded by the standard developers, is included in theRationale (Informative) volume.The following areas are outside the scope of this standard: Gra