And POSIX1 X/Open
Total Page:16
File Type:pdf, Size:1020Kb
Standards Conformance Guide 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. Part No: 802-1953-10 A Sun Microsystems, Inc. Business Revision A, November 1995 1995 Sun Microsystems, Inc. 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Portions of this product may be derived from the UNIX® system, licensed from UNIX System Laboratories, Inc., a wholly owned subsidiary of Novell, Inc., and from the Berkeley 4.3 BSD system, licensed from the University of California. Third-party software, including font technology in this product, is protected by copyright and licensed from Sun’s suppliers. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. The product described in this manual may be protected by one or more U.S. patents, foreign patents, or pending applications. TRADEMARKS Sun, Sun Microsystems, the Sun logo, SunSoft, the SunSoft logo, Solaris, SunOS, OpenWindows, DeskSet, ONC, ONC+, and NFS are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. UNIX is a registered trademark in the United States and other countries, exclusively licensed through X/Open Company, Ltd. OPEN LOOK is a registered trademark of Novell, Inc. PostScript and Display PostScript are trademarks of Adobe Systems, Inc. OSF is a trademark of the Open Software Foundation, Inc. /usr/group® is a registered trademark of UniForum. Intel is a registered trademark of Intel Corporation. XENIX® is a registered trademark of Microsoft Corporation. SCO Professional™ is a trademark of Santa Cruz Operation Inc. Microsoft® is a registered trademark of Microsoft Corporation. Informix® is a registered trademark of Informix Software Inc. Crystal Write™ is a trademark of Syntactics Inc. Crystal™ is a trademark of Syntactics Inc. All SPARC trademarks are trademarks or registered trademarks of SPARC International, Inc. in the United States and other countries. SPARCcenter, SPARCcluster, SPARCompiler, SPARCdesign, SPARC811, SPARCengine, SPARCprinter, SPARCserver, SPARCstation, SPARCstorage, SPARCworks, microSPARC, microSPARC-II, and UltraSPARC are licensed exclusively to Sun Microsystems, Inc. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK® and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. X Window System is a trademark of X Consortium, Inc. THIS PUBLICATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN. THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE PUBLICATION. SUN MICROSYSTEMS, INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAMS(S) DESCRIBED IN THIS PUBLICATION AT ANY TIME. Please Recycle Contents Preface. xix 1. A Look at Some Standardization Organizations . 1 Institute of Electrical and Electronics Engineers (IEEE) and POSIX1 X/Open . 2 National Institute of Standards and Technology (NIST). 3 International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC) . 3 The X Consortium . 3 UniForum . 4 American National Standards Institute (ANSI) . 4 The Open Software Foundation . 5 2. UNIX System V Release 4-Based (SVR4) Specifications . 7 UNIX System V Release 4 . 7 Application Binary Interface . 8 SunOS Compliance With the ABI Specification . 8 iii ABI Specifications and Related Publications . 9 System V Interface Definition (SVID) . 9 SunOS Compliance With SVID3 . 10 SVID Specification . 10 Device Driver Interface/Driver-Kernel Interface (DDI/DKI) . 10 SunOS Compliance with the Specification . 11 DDI/DKI and DKI Specifications and Related Publications 11 Data Link Provider Interface (DLPI) . 11 SunOS Compliance With DLPI . 12 DLPI Specification . 12 Transport Provider Interface. 12 SunOS Compliance with TPI . 12 3. X11, PostScript and Sun Microsystems’ OpenWindows . 13 OPEN LOOK . 13 Solaris Compliance With OPEN LOOK . 15 OPEN LOOK Specification and Related References . 16 Licensing the OPEN LOOK Trademark . 16 X Window System, Version 11 (X11) . 17 PostScript Language . 18 Solaris Compliance With X11 . 18 Solaris Compliance with PostScript . 19 X11 Specification and Related Publications . 19 4. Common Desktop Environment. 21 Common Desktop Environment . 21 iv Standards Conformance Guide—November 1995 Developers, End Users, and CDE . 22 Standardizing the Common Desktop Environment . 22 Open Software Foundation/Motif. 22 CDE and Motif . 23 Solaris Compliance With OSF/Motif . 24 The X Window System . 25 CDE Compliance with X11 . 26 Solaris Compliance with PostScript . 26 Future Standardization . 27 X/Open CDE Specification. 27 X/Open Calendaring and Scheduling API. 28 5. X/Open and XPG3 . 29 The X/Open Portability Guide, Issue 3. 29 The X/Open Brand Trademark . 30 X/Open Conformance Statement for Solaris . 32 X/Open Conformance Statement . 32 X/Open Specification and Related Publications . 63 6. X/Open and XPG4 . 65 The X/Open Portability Guide, Issue 4. 65 The X/Open Brand Trademark . 65 The X/Open Conformance Statement for Solaris . 67 X/Open Conformance Statement . 67 7. X/Open Interim UNIX Branding . 105 X/Open Conformance Statement for SPARC. 105 Contents v X/Open Conformance Statement . 105 X/Open Conformance Statement for x86 . 106 X/Open Conformance Statement . 106 8. POSIX.1. 109 Portable Operating System Interface for Computer Environments (POSIX.1). 109 Amending POSIX.1: The IEEE Standards 1003.1b and 1003.1c 109 Scope . 110 C Standard Compliance . 110 Audience . 110 Notation Used in the Remainder of this Chapter . 111 Implementation-Defined Areas of POSIX.1 . 111 POSIX.1 Section 1: General . 111 1.3.1 Implementation Conformance . 111 POSIX.1 Section 2, Terminology and General Requirements . 112 2.2.2 General Terms . 112 2.3 General Concepts. 113 2.4 Error Numbers . 114 2.5 Primitive System Data Types . 115 2.6 Environment Description . 116 2.7 C Language Definitions. 116 2.8 Numerical Limits . 116 2.9 Symbolic Constants . 118 POSIX.1 Section 3, Process Primitives . 120 vi Standards Conformance Guide—November 1995 3.1.1.2 Process Creation: Description. 120 3.1.1.4 Errors . 120 3.1.2.2 Execute a File: Description . 120 3.1.2.4 Execute a File: Errors . 121 3.2.1.2 Wait for Process Termination: Description . 122 3.2.2.2 Terminate a Process: Description . 122 3.3.1.1 Signal Names . 123 3.3.1.2 Signal Generation and Delivery. 123 3.3.1.3 Signal Actions. 124 3.3.2.2 Send a Signal to a Process: Description. 125 3.3.3.4 Manipulate Signal Sets: Errors . 125 3.3.4.2 Examine and Change Signal Action: Description . 126 3.3.6.4 Examine Pending Signals: Errors. 126 3.3.8.2 Synchronously Accept a Signal: Description . 126 POSIX.1 Section 4, Process Environment . 126 4.2.4.4 Get User Name: Errors . 126 4.4.1.2 Get System Name: Description . 127 4.5.1.4 Get System Time: Errors . 127 4.6.1.4 Environment Variables: Errors . 127 4.7.1.4 Generate Terminal Pathname: Errors . 127 4.7.2.4 Determine Terminal Device Name: Errors . 128 POSIX.1 Section 5, Files and Directories . 128 5.1.1 Format of Directory Entries . 128 5.1.2.4 Directory Operations: Errors . 128 Contents vii 5.2.2.4 Get Working Directory Pathname: Errors. 129 5.3.1.2 Open a File: Description . ..