Linux Standard Base Core Specification for PPC64 3.01



Similar documents
Linux Standard Base Core Specification for PPC64 3.1

Motorola 8- and 16-bit Embedded Application Binary Interface (M8/16EABI)

The C Programming Language course syllabus associate level

Example of Standard API

Chapter 10 Case Study 1: LINUX

ELEC 377. Operating Systems. Week 1 Class 3

Chapter 3 Operating-System Structures

OPERATING SYSTEM SERVICES

KITES TECHNOLOGY COURSE MODULE (C, C++, DS)

System Structures. Services Interface Structure

CS222: Systems Programming

Instrumentation for Linux Event Log Analysis

Programming languages, their environments and system software interfaces

Security Overview of the Integrity Virtual Machines Architecture

POSIX : Certified by IEEE and The Open Group a briefing.

How To Write Portable Programs In C

CS3600 SYSTEMS AND NETWORKS

System Calls and Standard I/O

HP-UX Essentials and Shell Programming Course Summary

A real-time satellite system based on UNIX

Embedded Systems. Review of ANSI C Topics. A Review of ANSI C and Considerations for Embedded C Programming. Basic features of C

RPC and TI-RPC Test Suite Test Plan Document

1 The Java Virtual Machine

Red Hat Developer Toolset 1.1

Building Applications Using Micro Focus COBOL

Freescale Semiconductor, I

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

umps software development

Laboratorio di Sistemi Operativi Anno Accademico

Introduction. What is an Operating System?

CS 377: Operating Systems. Outline. A review of what you ve learned, and how it applies to a real operating system. Lecture 25 - Linux Case Study

Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.

Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines

As previously noted, a byte can contain a numeric value in the range Computers don't understand Latin, Cyrillic, Hindi, Arabic character sets!

Operating System Structures

CONSOLIDATED VERSION IEC Medical device software Software life cycle processes. colour inside. Edition

Chapter 6, The Operating System Machine Level

CS420: Operating Systems OS Services & System Calls

Simple Identity Management Profile

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

How to use PDFlib products with PHP

How do Users and Processes interact with the Operating System? Services for Processes. OS Structure with Services. Services for the OS Itself

Service Availability TM Forum Application Interface Specification

Red Hat Linux Internals

The programming language C. sws1 1

NEMA Standards Publication PS 3 Supplement 41. Digital Imaging and Communications in Medicine (DICOM) Digital Signatures

Android NDK Native Development Kit

Exceptions in MIPS. know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine

Open Source Used In Cisco D9865 Satellite Receiver Software Version 2.20

Adapting the PowerPC 403 ROM Monitor Software for a 512Kb Flash Device

WIND RIVER DIAB COMPILER

Leak Check Version 2.1 for Linux TM

Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives

Information technology Programming languages Fortran Enhanced data type facilities

Caml Virtual Machine File & data formats Document version: 1.4

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT COURSE CURRICULUM. Course Title: Advanced Computer Programming (Code: )

Fred Hantelmann LINUX. Start-up Guide. A self-contained introduction. With 57 Figures. Springer

How To Migrate To Redhat Enterprise Linux 4

10 STEPS TO YOUR FIRST QNX PROGRAM. QUICKSTART GUIDE Second Edition

Operating Systems and Networks

VMware and CPU Virtualization Technology. Jack Lo Sr. Director, R&D

Web Services for Management Perl Library VMware ESX Server 3.5, VMware ESX Server 3i version 3.5, and VMware VirtualCenter 2.5

Operating System Components and Services

Q N X S O F T W A R E D E V E L O P M E N T P L A T F O R M v Steps to Developing a QNX Program Quickstart Guide

VxWorks Guest OS Programmer's Guide for Hypervisor 1.1, 6.8. VxWorks GUEST OS PROGRAMMER'S GUIDE FOR HYPERVISOR

TECHNICAL SPECIFICATION

KVM: Kernel-based Virtualization Driver

Lab 2 : Basic File Server. Introduction

The Advanced JTAG Bridge. Nathan Yawn 05/12/09

Chapter 2 System Structures

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

Nios II Software Developer s Handbook

An Implementation Of Multiprocessor Linux

AVG File Server User Manual. Document revision (8/19/2011)

SUSE Linux Enterprise 10 SP2: Virtualization Technology Support

CE 504 Computational Hydrology Computational Environments and Tools Fritz R. Fiedler

How To Write A Windows Operating System (Windows) (For Linux) (Windows 2) (Programming) (Operating System) (Permanent) (Powerbook) (Unix) (Amd64) (Win2) (X

RISC-V Software Ecosystem. Andrew Waterman UC Berkeley

An Oracle Technical Article November Certification with Oracle Linux 6

DATABASE MANAGEMENT SYSTEMS

EMC RepliStor for Microsoft Windows ERROR MESSAGE AND CODE GUIDE P/N REV A02

White Paper. Real-time Capabilities for Linux SGI REACT Real-Time for Linux

Instruction Set Architecture (ISA)

Siebel Application Deployment Manager Guide. Siebel Innovation Pack 2013 Version 8.1/8.2 September 2013

HARFORD COMMUNITY COLLEGE 401 Thomas Run Road Bel Air, MD Course Outline CIS INTRODUCTION TO UNIX

Lecture 16: System-Level I/O

Introduction to Virtual Machines

Hardware Assisted Virtualization

Glossary of Object Oriented Terms

FRONT FLYLEAF PAGE. This page has been intentionally left blank

Operating System Structures

CSC 2405: Computer Systems II

DIABLO VALLEY COLLEGE CATALOG

Server Management Command Line Protocol (SM CLP) Specification

TMS320C67x FastRTS Library Programmer s Reference

Module 20: The Linux System

Professional. SlickEdif. John Hurst IC..T...L. i 1 8 О 7» \ WILEY \ Wiley Publishing, Inc.

Site Configuration SETUP GUIDE. Windows Hosts Single Workstation Installation. May08. May 08

Transcription:

Linux Standard Base Core Specification for PPC64 3.01

Linux Standard Base Core Specification for PPC64 3.01 Copyright 2004, 2005 Free Standards Group Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Portions of the text are copyrighted by the following parties: The Regents of the University of California Free Software Foundation Ian F. Darwin Paul Vixie BSDI (now Wind River) Andrew G Morgan Jean-loup Gailly and Mark Adler Massachusetts Institute of Technology These excerpts are being used in accordance with their respective licenses. Linux is a trademark of Linus Torvalds. UNIX a registered trademark of the Open Group in the United States and other countries. LSB is a trademark of the Free Standards Group in the USA and other countries. AMD is a trademark of Advanced Micro Devices, Inc. Intel and Itanium are registered trademarks and Intel386 is a trademarks of Intel Corporation. PowerPC and PowerPC Architecture are trademarks of the IBM Corporation. OpenGL is a registered trademark of Silicon Graphics, Inc.

Contents Foreword... 2vi Introduction... 2vii I Introductory Elements... 28 1 Scope... 29 1.1 General... 29 1.2 Module Specific Scope... 29 2 Normative References... 210 3 Requirements2.1 Normative References... 10 3.1 Relevant Libraries2.2 Informative References/Bibliography... 13 3.2 LSB Implementation Conformance3 Requirements... 16 3.3 LSB Application Conformance3.1 Relevant Libraries... 16 4 Definitions3.2 LSB Implementation Conformance... 16 5 Terminology3.3 LSB Application Conformance... 17 6 Documentation Conventions4 Definitions... 19 II Executable and Linking Format (ELF)5 Terminology... 20 7 Introduction6 Documentation Conventions... 22 8 Low Level System InformationII Executable and Linking Format (ELF)... 23 8.1 Machine Interface7 Introduction... 24 8.2 Function Calling Sequence8 Low Level System Information... 25 8.3 Traceback Tables8.1 Machine Interface... 25 8.4 Process Initialization8.2 Function Calling Sequence... 26 8.5 Coding Examples8.3 Traceback Tables... 26 9 Object Format8.4 Process Initialization... 26 9.1 Introduction8.5 Coding Examples... 27 9.2 ELF Header9 Object Format... 28 9.3 Special Sections9.1 Introduction... 28 9.4 TOC2 ELF Header... 28 9.5 Symbol Table9.3 Special Sections... 28 9.6 Relocation4 TOC... 30 10 Program Loading and Dynamic Linking9.5 Symbol Table... 30 10.1 Introduction9.6 Relocation... 30 10.2 Program Loading and Dynamic Linking... 31 10.3 Dynamic Linking10.1 Introduction... 31 III Base Libraries10.2 Program Loading... 31 11 Libraries10.3 Dynamic Linking... 31 11.1 Program Interpreter/Dynamic LinkerIII Base Libraries... 32 11.2 Interfaces for libc11 Libraries... 33 11.3 Data Definitions for libc11.1 Program Interpreter/Dynamic Linker33 11.42 Interfaces for libmlibc... 33 11.53 Data Definitions for libmlibc... 60 11.64 Interfaces for libpthreadlibm... 91 11.7 Interfaces for libgcc_s11.5 Data Definitions for libm... 99 11.8 Interface Definitions for libgcc_s11.6 Interfaces for libpthread... 105 11.9 Interfaces for libdl11.7 Data Definitions for libpthread... 109 11.108 Interfaces for libcryptlibgcc_s... 114 IV Utility Libraries11.9 Data Definitions for libgcc_s... 115 12 Libraries11.10 Interface Definitions for libgcc_s... 118 12.11.11 Interfaces for libzlibdl... 124 12.2 Interfaces for libncurses11.12 Data Definitions for libdl... 125 iii

12.11.13 Interfaces for libutillibcrypt... 125 V Package Format and InstallationIV Utility Libraries... 127 13 Software Installation12 Libraries... 128 13.1 Package Dependencies12.1 Interfaces for libz... 128 13.2 Package Architecture Considerations12.2 Data Definitions for libz128 A Alphabetical Listing of Interfaces12.3 Interfaces for libncurses... 129 A.1 libgcc_s12.4 Data Definitions for libncurses... 129 B GNU Free Documentation License12.5 Interfaces for libutil... 135 B.1 PREAMBLEV Package Format and Installation... 136 B.2 APPLICABILITY AND DEFINITIONS13 Software Installation... 137 B.3 VERBATIM COPYING13.1 Package Dependencies... 137 B.4 COPYING IN QUANTITY13.2 Package Architecture Considerations137 B.5 MODIFICATIONSA Alphabetical Listing of Interfaces... 138 B.6 COMBINING DOCUMENTSA.1 libgcc_s... 138 B.7 COLLECTIONS OF DOCUMENTSB GNU Free Documentation License (Informative)... 2139 B.8 AGGREGATION WITH INDEPENDENT WORKSB.1 PREAMBLE... 139 B.9 TRANSLATIONB.2 APPLICABILITY AND DEFINITIONS... 139 B.10 TERMINATIONB.3 VERBATIM COPYING... 140 B.11 FUTURE REVISIONS OF THIS LICENSEB.4 COPYING IN QUANTITY140 B.12 How to use this License for your documentsb.5 MODIFICATIONS... 141 B.6 COMBINING DOCUMENTS... 2142 B.7 COLLECTIONS OF DOCUMENTS... 2143 B.8 AGGREGATION WITH INDEPENDENT WORKS... 2143 B.9 TRANSLATION... 2143 B.10 TERMINATION... 2143 B.11 FUTURE REVISIONS OF THIS LICENSE... 2144 B.12 How to use this License for your documents... 2144 iv

List of Tables 2-1 Normative References... 210 3-1 Standard Library Names2-2 Other References... 13 9-1 ELF Special Sections3-1 Standard Library Names... 16 11-1 libc Definition9-1 ELF Special Sections... 28 11-2 libc - RPC Function Interfaces9-2 Additional Special Sections... 29 11-31 libc - System Calls Function InterfacesDefinition... 33 11-42 libc - Standard I/ORPC Function Interfaces... 33 11-53 libc - Standard I/O DataSystem Calls Function Interfaces... 35 11-64 libc - Signal HandlingStandard I/O Function Interfaces... 39 11-75 libc - Signal HandlingStandard I/O Data Interfaces... 41 11-86 libc - Localization FunctionsSignal Handling Function Interfaces... 41 11-97 libc - Localization FunctionsSignal Handling Data Interfaces... 42 11-108 libc - Socket InterfaceLocalization Functions Function Interfaces... 43 11-119 libc - Wide Characters FunctionLocalization Functions Data Interfaces... 43 11-1210 libc - String FunctionsSocket Interface Function Interfaces... 44 11-1311 libc - IPC FunctionsWide Characters Function Interfaces... 45 11-1412 libc - Regular ExpressionsString Functions Function Interfaces... 47 11-1513 libc - Character TypeIPC Functions Function Interfaces... 49 11-1614 libc - Time ManipulationRegular Expressions Function Interfaces... 50 11-1715 libc - Time Manipulation DataCharacter Type Functions Function Interfaces50 11-1816 libc - Terminal Interface FunctionsTime Manipulation Function Interfaces 51 11-1917 libc - System Database Interface FunctionTime Manipulation Data Interfaces... 52 11-2018 libc - Language SupportTerminal Interface Functions Function Interfaces. 52 11-2119 libc - Large File SupportSystem Database Interface Function Interfaces... 53 11-2220 libc - Standard LibraryLanguage Support Function Interfaces... 54 11-2321 libc - Standard Library DataLarge File Support Function Interfaces... 55 11-24 libm Definition11-22 libc - Standard Library Function Interfaces... 55 11-25 libm - Math Function23 libc - Standard Library Data Interfaces... 59 11-2624 libm - Math Data InterfacesDefinition... 91 11-27 libpthread Definition11-25 libm - Math Function Interfaces... 92 11-28 libpthread - Realtime Threads Function26 libm - Math Data Interfaces... 99 11-2927 libpthread - Posix Threads Function InterfacesDefinition... 105 11-3028 libpthread - Thread aware versions of libc interfacesrealtime Threads Function Interfaces... 105 11-31 libgcc_s Definition11-29 libpthread - Posix Threads Function Interfaces... 106 11-32 libgcc_s - Unwind Library30 libpthread - Thread aware versions of libc interfaces Function Interfaces... 109 11-33 libdl31 libgcc_s Definition... 114 11-34 libdl - Dynamic Loader32 libgcc_s - Unwind Library Function Interfaces... 114 11-35 libcrypt33 libdl Definition... 124 11-36 libcrypt - Encryption34 libdl - Dynamic Loader Function Interfaces... 124 12-1 libz11-35 libcrypt Definition... 125 12-2 libncurses Definition11-36 libcrypt - Encryption Function Interfaces... 126 12-3 libutil1 libz Definition... 128 12-4 libutil - Utility Functions Function Interfaces12-2 libncurses Definition... 129 A-1 libgcc_s Function Interfaces12-3 libutil Definition... 135 12-4 libutil - Utility Functions Function Interfaces... 2135 A-1 libgcc_s Function Interfaces... 2138 v

1 2 3 4 5 Foreword This is version 3.01 of the Linux Standard Base Core Specification for PPC64. This specification is part of a family of specifications under the general title "Linux Standard Base". Developers of applications or implementations interested in using the LSB trademark should see the Free Standards Group Certification Policy for details. vi

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 Introduction The LSB defines a binary interface for application programs that are compiled and packaged for LSB-conforming implementations on many different hardware architectures. Since a binary specification shall include information specific to the computer processor architecture for which it is intended, it is not possible for a single document to specify the interface for all possible LSB-conforming implementations. Therefore, the LSB is a family of specifications, rather than a single one. This document should be used in conjunction with the documents it references. This document enumerates the system components it includes, but descriptions of those components may be included entirely or partly in this document, partly in other documents, or entirely in other reference documents. For example, the section that describes system service routines includes a list of the system routines supported in this interface, formal declarations of the data structures they use that are visible to applications, and a pointer to the underlying referenced specification for information about the syntax and semantics of each call. Only those routines not described in standards referenced by this document, or extensions to those standards, are described in the detail. Information referenced in this way is as much a part of this document as is the information explicitly included here. The specification carries a version number of either the form x.y or x.y.z. This version number carries the following meaning: The first number (x) is the major version number. All versions with the same major version number should share binary compatibility. Any addition or deletion of a new library results in a new version number. Interfaces marked as deprecated may be removed from the specification at a major version change. The second number (y) is the minor version number. Individual interfaces may be added if all certified implementations already had that (previously undocumented) interface. Interfaces may be marked as deprecated at a minor version change. Other minor changes may be permitted at the discretion of the LSB workgroup. The third number (z), if present, is the editorial level. Only editorial changes should be included in such versions. Since this specification is a descriptive Application Binary Interface, and not a source level API specification, it is not possible to make a guarantee of 100% backward compatibility between major releases. However, it is the intent that those parts of the binary interface that are visible in the source level API will remain backward compatible from version to version, except where a feature marked as "Deprecated" in one release may be removed from a future release. Implementors are strongly encouraged to make use of symbol versioning to permit simultaneous support of applications conforming to different releases of this specification. vii

8 1 I Introductory Elements

1 Scope 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 1.1 General The Linux Standard Base (LSB) defines a system interface for compiled applications and a minimal environment for support of installation scripts. Its purpose is to enable a uniform industry standard environment for high-volume applications conforming to the LSB. These specifications are composed of two basic parts: A common specification ("LSB-generic" or "generic LSB") describing those parts of the interface that remain constant across all implementations of the LSB, and an architecture-specific specification supplement ("LSB-arch" or "archlsb") describing the parts of the interface that vary by processor architecture. Together, the LSB-generic and the architecture-specific supplement for a single hardware architecture provide a complete interface specification for compiled application programs on systems that share a common hardware architecture. The LSB-generic document shall be used in conjunction with an architecture-specific supplement. Whenever a section of the LSB-generic specification shall be supplemented by architecture-specific information, the LSB-generic document includes a reference to the architecture supplement. Architecture supplements may also contain additional information that is not referenced in the LSB-generic document. The LSB contains both a set of Application Program Interfaces (APIs) and Application Binary Interfaces (ABIs). APIs may appear in the source code of portable applications, while the compiled binary of that application may use the larger set of ABIs. A conforming implementation shall provide all of the ABIs listed here. The compilation system may replace (e.g. by macro definition) certain APIs with calls to one or more of the underlying binary interfaces, and may insert calls to binary interfaces as needed. The LSB is primarily a binary interface definition. Not all of the source level APIs available to applications may be contained in this specification. 1.2 Module Specific Scope This is the PPC64 architecture specific Core module of the Linux Standards Base (LSB). This module supplements the generic LSB Core module with those interfaces that differ between architectures. Interfaces described in this module are mandatory except where explicitly listed otherwise. Core interfaces may be supplemented by other modules; all modules are built upon the core. 9

1 2 3 4 2 Normative References The specifications listed below are referenced in whole or in part by the Linux Standard Base. In this specification, where only a particular section of one of these references is identified, then the normative reference is to that section alone, and the rest of the referenced document is informative. 2 References 5 6 7 8 9 10 11 12 13 14 2.1 Normative References The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies. Note: Where copies of a document are available on the World Wide Web, a Uniform Resource Locator (URL) is given for informative purposes only. This may point to a more recent copy of the referenced specification, or may be out of date. Reference copies of specifications at the revision level indicated may be found at the Free Standards Group's Reference Specifications (http://refspecs.freestandards.org) site. Table 2-1 Normative References Name Title URL 64-bit PowerPC ELF ABI Supplement DWARF Debugging Information Format, Revision 2.0.0 DWARF Debugging Information Format, Revision 3.0.0 (Draft) Filesystem Hierarchy Standard IEC 60559/IEEE 754 Floating Point 64-bit PowerPC ELF ABI Supplement, Version 1.7 DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993) DWARF Debugging Information Format, Revision 3.0.0 (Draft) Filesystem Hierarchy Standard (FHS) 2.3 IEC 60559:1989 Binary floating-point arithmetic for microprocessor systems http://www.linuxbase.o rg/spec/elf/ppc64/ http://refspecs.freestand ards.org/dwarf/dwarf-2.0.0.pdf http://refspecs.freestand ards.org/dwarf/ http://www.pathname.c om/fhs/ http://www.ieee.org/ ISO C (1999) ISO/IEC 9899: 1999, Programming Languages --C ISO POSIX (2003) ISO/IEC 9945-1:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 1: Base Definitions ISO/IEC 9945-2:2003 http://www.unix.org/v ersion3/ 10

2 Normative References Name Title URL Information technology -- Portable Operating System Interface (POSIX) -- Part 2: System Interfaces ISO/IEC 9945-3:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 3: Shell and Utilities ISO/IEC 9945-4:2003 Information technology -- Portable Operating System Interface (POSIX) -- Part 4: Rationale Including Technical Cor. 1: 2004 ISO/IEC TR14652 ITU-T V.42 ISO/IEC Technical Report 14652:2002 Specification method for cultural conventions International Telecommunication Union Recommendation V.42 (2002): Error-correcting procedures for DCEs using asynchronous-to-synchro nous conversionituv http://www.itu.int/rec/ recommendation.asp?typ e=folders&lang=e&paren t=t-rec-v.42 Large File Support Large File Support http://www.unix-syste ms.org/version2/whatsn ew/lfs20mar.html Li18nux Globalization Specification Linux Allocated Device Registry PAM LI18NUX 2000 Globalization Specification, Version 1.0 with Amendment 4 LINUX ALLOCATED DEVICES Open Software Foundation, Request For Comments: 86.0, October 1995, V. Samar & R.Schemers (SunSoft) http://www.li18nux.org /docs/html/li18nux-2 000-amd4.htm http://www.lanana.org /docs/device-list/device s.txt http://www.opengroup. org/tech/rfc/mirror-rfc /rfc86.0.txt 11

2 Normative References Name Title URL RFC 1321: The MD5 Message-Digest Algorithm RFC 1833: Binding Protocols for ONC RPC Version 2 RFC 1950: ZLIB Compressed Data Format Specication RFC 1951: DEFLATE Compressed Data Format Specification RFC 1952: GZIP File Format Specification RFC 2440: OpenPGP Message Format RFC 2821:Simple Mail Transfer Protocol RFC 2822:Internet Message Format RFC 791:Internet Protocol SUSv2 SUSv2 Commands and Utilities SVID Issue 3 SVID Issue 4 IETF RFC 1321: The MD5 Message-Digest Algorithm IETF RFC 1833: Binding Protocols for ONC RPC Version 2 IETF RFC 1950: ZLIB Compressed Data Format Specification IETF RFC 1951: DEFLATE Compressed Data Format Specification version 1.3 IETF RFC 1952: GZIP file format specification version 4.3 IETF RFC 2440: OpenPGP Message Format IETF RFC 2821: Simple Mail Transfer Protocol IETF RFC 2822: Internet Message Format IETF RFC 791: Internet Protocol Specification CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) The Single UNIX Specification(SUS) Version 2, Commands and Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, C604) American Telephone and Telegraph Company, System V Interface Definition, Issue 3 ; Morristown, NJ, UNIX Press, 1989.(ISBN 0201566524) System V Interface http://www.ietf.org/rfc /rfc1321.txt http://www.ietf.org/rfc /rfc1833.txt http://www.ietf.org/rfc /rfc1950.txt http://www.ietf.org/rfc /rfc1951.txt http://www.ietf.org/rfc /rfc1952.txt http://www.ietf.org/rfc /rfc2440.txt http://www.ietf.org/rfc /rfc2821.txt http://www.ietf.org/rfc /rfc2822.txt http://www.ietf.org/rfc /rfc791.txt http://www.opengroup. org/publications/catalo g/un.htm http://www.opengroup. org/publications/catalo g/un.htm 12

2 Normative References Name Title URL Definition,Fourth Edition System V ABI System V ABI Update The PowerPC Microprocessor Family System V Application Binary Interface, Edition 4.1 System V Application Binary Interface - DRAFT - 17 December 2003 The PowerPC Microprocessor Family: The Programming Environment Manual for 32 and 64-bit Microprocessors http://www.caldera.co m/developers/devspecs /gabi41.pdf http://www.caldera.co m/developers/gabi/200 3-12-17/contents.html http://refspecs.freestand ards.org/ppc_hrm.2005 mar31.pdf this specification Linux Standard Base http://www.linuxbase.o rg/spec/ 15 16 17 18 19 X/Open Curses CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018 2.2 Informative References/Bibliography http://www.opengroup. org/publications/catalo g/un.htm In addition, the specifications listed below provide essential background information to implementors of this specification. These references are included for information only. Table 2-2 Other References Name Title URL DWARF Debugging Information Format, Revision 2.0.0 DWARF Debugging Information Format, Revision 3.0.0 (Draft) ISO/IEC TR14652 ITU-T V.42 DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993) DWARF Debugging Information Format, Revision 3.0.0 (Draft) ISO/IEC Technical Report 14652:2002 Specification method for cultural conventions International Telecommunication Union Recommendation V.42 (2002): Error-correcting procedures for DCEs http://refspecs.freestand ards.org/dwarf/dwarf-2.0.0.pdf http://refspecs.freestand ards.org/dwarf/ http://www.itu.int/rec/ recommendation.asp?typ e=folders&lang=e&paren t=t-rec-v.42 13

2 Normative References Name Title URL using asynchronous-to-synchro nous conversionituv Li18nux Globalization Specification Linux Allocated Device Registry PAM RFC 1321: The MD5 Message-Digest Algorithm RFC 1831/1832 RPC & XDR RFC 1833: Binding Protocols for ONC RPC Version 2 RFC 1950: ZLIB Compressed Data Format Specication RFC 1951: DEFLATE Compressed Data Format Specification RFC 1952: GZIP File Format Specification RFC 2440: OpenPGP Message Format RFC 2821:Simple Mail Transfer Protocol RFC 2822:Internet Message Format RFC 791:Internet Protocol LI18NUX 2000 Globalization Specification, Version 1.0 with Amendment 4 LINUX ALLOCATED DEVICES Open Software Foundation, Request For Comments: 86.0, October 1995, V. Samar & R.Schemers (SunSoft) IETF RFC 1321: The MD5 Message-Digest Algorithm IETF RFC 1831 & 1832 IETF RFC 1833: Binding Protocols for ONC RPC Version 2 IETF RFC 1950: ZLIB Compressed Data Format Specification IETF RFC 1951: DEFLATE Compressed Data Format Specification version 1.3 IETF RFC 1952: GZIP file format specification version 4.3 IETF RFC 2440: OpenPGP Message Format IETF RFC 2821: Simple Mail Transfer Protocol IETF RFC 2822: Internet Message Format IETF RFC 791: Internet Protocol Specification http://www.li18nux.org /docs/html/li18nux-2 000-amd4.htm http://www.lanana.org /docs/device-list/device s.txt http://www.opengroup. org/tech/rfc/mirror-rfc /rfc86.0.txt http://www.ietf.org/rfc /rfc1321.txt http://www.ietf.org/ http://www.ietf.org/rfc /rfc1833.txt http://www.ietf.org/rfc /rfc1950.txt http://www.ietf.org/rfc /rfc1951.txt http://www.ietf.org/rfc /rfc1952.txt http://www.ietf.org/rfc /rfc2440.txt http://www.ietf.org/rfc /rfc2821.txt http://www.ietf.org/rfc /rfc2822.txt http://www.ietf.org/rfc /rfc791.txt RPM Package Format RPM Package Format http://www.rpm.org/m 14

2 Normative References Name Title URL V3.0 ax-rpm/s1-rpm-file-form at-rpm-file-format.html 20 zlib Manual zlib 1.2 Manual http://www.gzip.org/zl ib/ 15

3 Requirements 1 2 3 4 5 6 3.1 Relevant Libraries The libraries listed in Table 3-1 shall be available on PPC64 Linux Standard Base systems, with the specified runtime names. These names override or supplement the names specified in the generic LSB specification. The specified program interpreter, referred to as proginterp in this table, shall be used to load the shared libraries specified by DT_NEEDED entries at run time. Table 3-1 Standard Library Names 7 Library libm libdl libcrypt libz libncurses libutil libc libpthread proginterp libgcc_s Runtime Name libm.so.6 libdl.so.2 libcrypt.so.1 libz.so.1 libncurses.so.5 libutil.so.1 libc.so.6 libpthread.so.0 /lib64/ld-lsb-ppc64.so.3 libgcc_s.so.1 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 These libraries will be in an implementation-defined directory which the dynamic linker shall search by default. 3.2 LSB Implementation Conformance A conforming implementation is necessarily architecture specific, and must provide the interfaces specified by both the generic LSB Core specification and its relevant architecture specific supplement. Rationale: An implementation must provide at least the interfaces specified in these specifications. It may also provide additional interfaces. A conforming implementation shall satisfy the following requirements: The implementation shall implement fully the architecture described in the hardware manual for the target processor architecture. A processor architecture represents a family of related processors which may not have identical feature sets. The architecture specific supplement to this specification for a given target processor architecture describes a minimum acceptable processor. The implementation shall provide all features of this processor, whether in hardware or through emulation transparent to the application. The implementation shall be capable of executing compiled applications having the format and using the system interfaces described in this document. 16

3 Requirements 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 The implementation shall provide libraries containing the interfaces specified by this document, and shall provide a dynamic linking mechanism that allows these interfaces to be attached to applications at runtime. All the interfaces shall behave as specified in this document. The map of virtual memory provided by the implementation shall conform to the requirements of this document. The implementation's low-level behavior with respect to function call linkage, system traps, signals, and other such activities shall conform to the formats described in this document. The implementation shall provide all of the mandatory interfaces in their entirety. The implementation may provide one or more of the optional interfaces. Each optional interface that is provided shall be provided in its entirety. The product documentation shall state which optional interfaces are provided. The implementation shall provide all files and utilities specified as part of this document in the format defined here and in other referenced documents. All commands and utilities shall behave as required by this document. The implementation shall also provide all mandatory components of an application's runtime environment that are included or referenced in this document. The implementation, when provided with standard data formats and values at a named interface, shall provide the behavior defined for those values and data formats at that interface. However, a conforming implementation may consist of components which are separately packaged and/or sold. For example, a vendor of a conforming implementation might sell the hardware, operating system, and windowing system as separately packaged items. The implementation may provide additional interfaces with different names. It may also provide additional behavior corresponding to data values outside the standard ranges, for standard named interfaces. 3.3 LSB Application Conformance A conforming application is necessarily architecture specific, and must conform to both the generic LSB Core specification and its relevant architecture specific supplement. A conforming application shall satisfy the following requirements: Its executable files are shall be either shell scripts or object files in the format defined for the Object File Format system interface. Its object files shall participate in dynamic linking as defined in the Program Loading and Linking System interface. It employsshall employ only the instructions, traps, and other low-level facilities defined in the Low-Level System interface as being for use by applications. If it requires any optional interface defined in this document in order to be installed or to execute successfully, the requirement for that optional interface isshall be stated in the application's documentation. It doesshall not use any interface or data format that is not required to be provided by a conforming implementation, unless: 17

3 Requirements 68 69 70 71 72 73 74 75 76 77 If such an interface or data format is supplied by another application through direct invocation of that application during execution, that application isshall be in turn an LSB conforming application. The use of that interface or data format, as well as its source, isshall be identified in the documentation of the application. It shall not use any values for a named interface that are reserved for vendor extensions. A strictly conforming application doesshall not require or use any interface, facility, or implementation-defined extension that is not defined in this document in order to be installed or to execute successfully. 18

1 2 4 Definitions For the purposes of this document, the following definitions, as specified in the ISO/IEC Directives, Part 2, 2001, 4th Edition, apply: 3 4 can be able to; there is a possibility of; it is possible to 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 cannot be unable to; there is no possibilty of; it is not possible to may is permitted; is allowed; is permissible need not it is not required that; no...is required shall is to; is required to; it is required that; has to; only...is permitted; it is necessary shall not is not allowed [permitted] [acceptable] [permissible]; is required to be not; is required that...be not; is not to be should it is recommended that; ought to should not it is not recommended that; ought not to 19

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 5 Terminology For the purposes of this document, the following terms apply: archlsb The architectural part of the LSB Specification which describes the specific parts of the interface that are platform specific. The archlsb is complementary to the glsb. Binary Standard The total set of interfaces that are available to be used in the compiled binary code of a conforming application. glsb The common part of the LSB Specification that describes those parts of the interface that remain constant across all hardware implementations of the LSB. implementation-defined Describes a value or behavior that is not defined by this document but is selected by an implementor. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence of the value or behavior. An application that relies on such a value or behavior cannot be assured to be portable across conforming implementations. The implementor shall document such a value or behavior so that it can be used correctly by an application. Shell Script A file that is read by an interpreter (e.g., awk). The first line of the shell script includes a reference to its interpreter binary. Source Standard The set of interfaces that are available to be used in the source code of a conforming application. undefined Describes the nature of a value or behavior not defined by this document which results from use of an invalid program construct or invalid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations. unspecified Describes the nature of a value or behavior not specified by this document which results from use of a valid program construct or valid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations. 20