Linux Standard Base Specification for the IA32 Architecture 1.2 Copyright © 2001, 2002 by 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 were taken from other copyrighted documents in accordance with the respective licenses of those documents. Linux is a trademark of Linus Torvalds. UNIX a registered trademark of the Open Group in the United States and other countries. Intel386 and Itanium are trademarks of Intel Corporation. OpenGL is a registered trademark of Silicon Graphics, Inc. ------------------------------------------------------------------------------- Table of Contents I. Introduction 1. Introduction Introduction Purpose Related Standards Relevant Libraries How to Use this Standard Definitions Terminology II. Low Level System Information 2. Machine Interface Processor Architecture Data Representation 3. Function Calling Sequence CPU Registers Floating Point Registers Stack Frame Arguments Return Values 4. Operating System Interface Virtual Address Space Processor Execution Mode Exception Interface Signal Delivery 5. Process Initialization Special Registers Process Stack (on entry) Auxilliary Vectors Environment 6. Coding Examples Code Model Overview/Architecture Constraints Position-Independent Fucntion Prologue Data Objects Function Calls Branching 7. C Stack Frame Variable Argument List Dynamic Allocation of Stack Space 8. Debug Information III. Object Format 9. ELF Header Machine Information 10. Special Sections Special Sections 11. Symbol Table 12. Relocation Relocation Types IV. Program Loading and Dynamic Linking 13. Program Header Types Flags 14. Program Loading 15. Dynamic Linking Program Interpreter/Dynamic Linker Dynamic Section Global Offset Table Shared Object Dependencies Function Addresses Procedure Linkage Table Initialization and Termination Functions V. Base Libraries 16. Libraries Interfaces for libc Data Definitions for libc Interfaces Definitions for libc Interfaces for libm Data Definitions for libm Interfaces for libpthread Data Definitions for libpthread Interfaces for libdl Data Definitions for libdl Interfaces for libcrypt Data Definitions for libcrypt VI. Package Format and Installation 17. Software Installation Package Architecture Considerations A. Alphabetical Listing of Interfaces libc B. GNU Free Documentation License PREAMBLE APPLICABILITY AND DEFINITIONS VERBATIM COPYING COPYING IN QUANTITY MODIFICATIONS COMBINING DOCUMENTS COLLECTIONS OF DOCUMENTS AGGREGATION WITH INDEPENDENT WORKS TRANSLATION TERMINATION FUTURE REVISIONS OF THIS LICENSE How to use this License for your documents List of Tables 1-1. Related Standards 1-2. Standard Library Names 2-1. Scalar Types 10-1. ELF Special Sections 10-2. Additional Special Sections 16-1. libc Definition 16-2. libc - RPC Function Interfaces 16-3. libc - System Calls Function Interfaces 16-4. libc - Standard I/O Function Interfaces 16-5. libc - Standard I/O Data Interfaces 16-6. libc - Signal Handling Function Interfaces 16-7. libc - Signal Handling Data Interfaces 16-8. libc - Standard Library Function Interfaces 16-9. libc - Standard Library Data Interfaces 16-10. libc - Localization Functions Function Interfaces 16-11. libc - Localization Functions Data Interfaces 16-12. libc - Socket Interface Function Interfaces 16-13. libc - Wide Characters Function Interfaces 16-14. libc - String Functions Function Interfaces 16-15. libc - IPC Functions Function Interfaces 16-16. libc - Regular Expressions Function Interfaces 16-17. libc - Regular Expressions Data Interfaces 16-18. libc - Character Type Functions Function Interfaces 16-19. libc - Character Type Functions Data Interfaces 16-20. libc - Time Manipulation Function Interfaces 16-21. libc - Time Manipulation Data Interfaces 16-22. libc - Terminal Interface Functions Function Interfaces 16-23. libc - System Database Interface Function Interfaces 16-24. libc - Language Support Function Interfaces 16-25. libc - Large File Support Function Interfaces 16-26. libm Definition 16-27. libm - Math Function Interfaces 16-28. libm - Math Data Interfaces 16-29. libpthread Definition 16-30. libpthread - Posix Threads Function Interfaces 16-31. libdl Definition 16-32. libcrypt Definition A-1. libc Function Interfaces I. Introduction Table of Contents 1. Introduction ------------------------------------------------------------------------------- Chapter 1. Introduction Introduction This is version 1.2 of the Linux Standard Base Specification for the IA32 Architecture. An implementation of this version of the specification may not claim to be an implementation of the Linux Standard Base unless it has successfully completed the compliance process as defined by the Free Standards Group. ------------------------------------------------------------------------------- Purpose 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. 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 must 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. The LSB is composed of two basic parts: A common part of the specification describes those parts of the interface that remain constant across all hardware implementations of the LSB, and an architecture-specific part of the specification describes the parts of the specification that are specific to a particular processor architecture. Together, the generic LSB 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. This document is the architecture-specific supplement. It must be used in conjunction with the generic LSB. This document provides architecture-specific information that supplements the generic LSB as well as additional information that is not found in the generic LSB. 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. ------------------------------------------------------------------------------- Related Standards The specifications listed below are referenced in whole or in part by the Linux Standard Base. Such references may be normative or non-normative; a reference to specification shall only be considered normative if it is explicitly cited as such. The LSB may make normative references to a portion of these specifications (that is, to define a specific function or group of functions); in such cases, only the explicitly referenced portion of the specification is to be considered normative. Table 1-1. Related Standards +-----------------------------------------------------------------------------+ |System V Application Binary Interface - DRAFT - |http://www.caldera.com/ | |22 June 2000 |developers/gabi/2000-07-17/ | | |contents.html | |------------------------------------------------+----------------------------| |Filesystem Hierarchy Standard (FHS) 2.2 |http://www.pathname.com/fhs/| |------------------------------------------------+----------------------------| |IEEE Standard for Binary Floating-Point |http://www.ieee.org/ | |Arithmetic | | |------------------------------------------------+----------------------------| |System V Application Binary Interface, Edition |http://www.caldera.com/ | |4.1 |developers/devspecs/ | | |gabi41.pdf | |------------------------------------------------+----------------------------| |The IA-32 Intel® Architecture Software |http://developer.intel.com/ | |Developer's Manual Volume 1: Basic Architecture |design/pentium4/manuals/ | | |245470.htm | |------------------------------------------------+----------------------------| |The IA-32 Intel® Architecture Software |http://developer.intel.com/ | |Developer's Manual Volume 2: Instruction Set |design/pentium4/manuals/ | |Reference |245471.htm | |------------------------------------------------+----------------------------| |The IA-32 Intel® Architecture Software |http://developer.intel.com/ | |Developer's Manual Volume 3: System Programming |design/pentium4/manuals/ | |Guide |245472.htm | |------------------------------------------------+----------------------------| |System V Application Binary Interface - |http://www.caldera.com/ | |Intel386TM Architecture Processor Supplement, |developers/devspecs/ | |Fourth Edition |abi386-4.pdf | |------------------------------------------------+----------------------------| |ISO/IEC 9899: 1990, Programming Languages --C | | |------------------------------------------------+----------------------------| |ISO/IEC 9899: 1999, Programming Languages --C | | |------------------------------------------------+----------------------------| |Linux Assigned Names And Numbers Authority |http://www.lanana.org/ | |------------------------------------------------+----------------------------| |Large File Support |http://www.UNIX-systems.org/| | |version2/whatsnew/ | | |lfs20mar.html | |------------------------------------------------+----------------------------| |LI18NUX 2000 Globalization Specification, |http://www.li18nux.org/docs/| |Version 1.0 with Amendment 4 |html/LI18NUX-2000-amd4.htm | |------------------------------------------------+----------------------------| |Linux Standard Base |http://www.linuxbase.org/ | | |spec/ | |------------------------------------------------+----------------------------| |OpenGL® Application Binary Interface for Linux |http://oss.sgi.com/projects/| | |ogl-sample/ABI/ | |------------------------------------------------+----------------------------| |IEEE Std POSIX 1003.2-1992 (ISO/IEC 9945-2:1993)|http://www.ieee.org/ | |------------------------------------------------+----------------------------| |System V Application Binary Interface PowerPC |http://www.esofta.com/pdfs/ | |Processor Supplement |SVR4abippc.pdf | |------------------------------------------------+----------------------------| |POSIX 1003.1c |http://www.ieee.org/ | |------------------------------------------------+----------------------------| |CAE Specification, May 1996, X/Open Curses, |http://www.opengroup.org/ | |Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), | | |plus Corrigendum U018 | | |------------------------------------------------+----------------------------| |CAE Specification, January 1997, System |http://www.opengroup.org/ | |Interface Definitions (XBD), Issue 5 (ISBN: | | |1-85912-186-1, C605) | | |------------------------------------------------+----------------------------| |CAE Specification, January 1997, Commands and |http://www.opengroup.org/ | |Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, | | |C604) | | |------------------------------------------------+----------------------------| |CAE Specification, February 1997, Networking |http://www.opengroup.org/ | |Services (XNS), Issue 5 (ISBN: 1-85912-165-9, | | |C523) | | |------------------------------------------------+----------------------------| |CAE Specification, January 1997, System |http://www.opengroup.org/ | |Interfaces and Headers (XSH), Issue 5 (ISBN: | | |1-85912-181-0, C606) | | |------------------------------------------------+----------------------------| |The Single UNIX® Specification(SUS) Version 1 |http://www.opengroup.org/ | |(UNIX 95) System Interfaces & Headers | | |------------------------------------------------+----------------------------| |System V Interface Definition, Issue 3 (ISBN | | |0201566524) | | |------------------------------------------------+----------------------------| |System V Interface Definition,Fourth Edition | | |------------------------------------------------+----------------------------| |Double Buffer Extension Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |X Display Power Management Signaling (DPMS) |http://www.x.org/ | |Extension, Library Specification | | |------------------------------------------------+----------------------------| |X Record Extension Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |Security Extension Specification, Version 7.1 |http://www.x.org/ | |------------------------------------------------+----------------------------| |X Nonrectangular Window Shape Extension Library |http://www.x.org/ | |Version 1.0 | | |------------------------------------------------+----------------------------| |MIT-SHM--The MIT Shared Memory Extension |http://www.x.org/ | |------------------------------------------------+----------------------------| |X Synchronization Extension Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |XTEST Extension Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |X11R6.4 X Inter-Client Exchange (ICE) Protocol |http://www.x.org/ | |------------------------------------------------+----------------------------| |X11R6.4 X11 Input Extension Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |X11R6.4 Xlib - C library |http://www.x.org/ | |------------------------------------------------+----------------------------| |X/Open Portability Guide, Issue 4 |http://www.opengroup.org/ | |------------------------------------------------+----------------------------| |X11R6.4 X Session Management Library |http://www.x.org/ | |------------------------------------------------+----------------------------| |X11R6.4 X Toolkit Intrinsics |http://www.x.org/ | |------------------------------------------------+----------------------------| |zlib 1.1.3 Manual |http://www.gzip.org/zlib/ | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Relevant Libraries The libraries listed here shall be available on a Linux Standard Base system. This list is an addition to the list in the general specification. Table 1-2. Standard Library Names +----------------------------+ |Library |Runtime Name | |----------+-----------------| |libm |libm.so.6 | |----------+-----------------| |libdl |libdl.so.2 | |----------+-----------------| |libcrypt |libcrypt.so.1 | |----------+-----------------| |libc |libc.so.6 | |----------+-----------------| |libpthread|libpthread.so.0 | |----------+-----------------| |proginterp|/lib/ld-lsb.so.1 | +----------------------------+ These libraries will be in an implementation-dependent directory which the dynamic linker will search by default. ------------------------------------------------------------------------------- How to Use this Standard The complete LSB specification is composed of a generic LSB specification and this supplemental processor-specific specification. These two documents constitute a specification that should be used in conjunction with the publicly-available standards documents it references. The LSB enumerates the system components it includes, but descriptions of those components may be included entirely in the LSB, partly in the LSB and partly in other documents, or entirely in other reference documents. ------------------------------------------------------------------------------- Definitions 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. 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. LSB Implementation Conformance An implementation satisfying the following requirements: 1. The implementation shall implement fully the architecture described in the hardware manual for the target processor architecture. 2. The implementation shall be capable of executing compiled applications having the format and using the system interfaces described in this document. 3. 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. 4. The map of virtual memory provided by the implementation shall conform to the requirements of this document. 5. 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. 6. The implementation shall provide all of the mandatory interfaces in their entirety. 7. 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. 8. 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. 9. 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. 10. 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. LSB Application Conformance An application with the following characteristics: 1. Its executable files are either shell scripts or object files in the format defined for the Object File Format system interface. 2. Its object files participate in dynamic linking as defined in the Program Loading and Linking System interface. 3. It employs only the instructions, traps, and other low-level facilities defined in the Low-Level System interface as being for use by applications. 4. 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 is stated in the application's documentation. 5. It does not use any interface or data format that is not required to be provided by a conforming implementation, unless: o If such an interface or data format is supplied by another application through direct invocation of that application during execution, that application is in turn an LSB conforming application. o The use of that interface or data format, as well as its source, is identified in the documentation of the application. 6. It must not use any values for a named interface that are reserved for vendor extensions. A strictly conforming application does 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. Rationale An LSB conforming application is expected to have no dependencies on any vendor extensions to this document. The most common such extensions are additional function entry points and additional libraries other than the ones defined in this document. If an application requires such extensions, it is not portable, since other LSB conforming implementations may not provide those extensions. An LSB conforming application is required to use system services on the implementation on which it is running, rather than importing system routines from some other implementation. Thus, it must link dynamically to any routines in the implementation that perform system traps to kernel services. It is to be expected that some applications may be companion applications to other applications. For example, a query application may be a companion to a database application; a preprocessor may be an adjunct to one or more compilers; a data reformatter may convert data from one document manager to another. In such cases, the application may or may not be LSB conforming, regardless of whether the other application on which it is dependent is LSB conforming. If such an application merely uses data produced by another application, the application's compliance is independent of the other application's compliance. If such an application actually invokes another application during execution (as, for example, a third-party math library), the invoking application is LSB conforming only if it also constitutes a LSB conforming application in combination with the invoked 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. ------------------------------------------------------------------------------- Terminology can Describes a permissible optional feature or behavior available to the user or application. The feature or behavior is mandatory for an implementation that conforms to this document. An application can rely on the existence of the feature or behavior. 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. Same as implementation-dependent. may Describes a feature or behavior that is optional for an implementation that conforms to this document. An application should not rely on the existence of the feature or behavior. An application that relies on such a feature or behavior cannot be assured to be portable across conforming implementations. To avoid ambiguity, the opposite of may is expressed as need not, instead of may not. must Describes a feature or behavior that is mandatory for an application or user. An implementation that conforms to this document shall support this feature or behavior. shall Describes a feature or behavior that is mandatory for an implementation that conforms to this document. An application can rely on the existence of the feature or behavior. should For an implementation that conforms to this document, describes a feature or behavior that is recommended but not mandatory. An application should not rely on the existence of the feature or behavior. An application that relies on such a feature or behavior cannot be assured to be portable across conforming implementations. For an application, describes a feature or behavior that is recommended programming practice for optimum portability. 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. will Same meaning as shall; shall is the preferred term. II. Low Level System Information Table of Contents 2. Machine Interface 3. Function Calling Sequence 4. Operating System Interface 5. Process Initialization 6. Coding Examples 7. C Stack Frame 8. Debug Information ------------------------------------------------------------------------------- Chapter 2. Machine Interface Processor Architecture The IA32 Architecture is specified by the following documents * Intel Architecture Software Developer's Manual, Volume 1: Basic Architecture * Intel Architecture Software Developer's Manual, Volume 2: Instruction Set Reference Manual * Intel Architecture Software Developer's Manual, Volume 3: System Programming Guide Only the features of the Intel486 processor instruction set may be assumed to be present. An application is responsible for determining if any additional instruction set features are available before using those additional features. If a feature is not present, then the application may not use it. Applications conforming to this specification must provide feedback to the user if a feature that is required for correct execution of the application is not present. Applications conforming to this specification should attempt to execute in a diminished capacity if a required instruction set feature is not present. This specfication does not provide any performance guarantees of a conforming system. A system conforming to this specification may be implemented in either hardware or software. ------------------------------------------------------------------------------- Data Representation LSB-conforming applications shall use the data representation as defined in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture Processor Supplement. ------------------------------------------------------------------------------- Byte Ordering ------------------------------------------------------------------------------- Fundamental Types In addition to the fundamental types specified in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture, a 64 bit data type is defined here. Table 2-1. Scalar Types +---------------------------------------------------------------------------+ |Type |C |sizeof|Alignment (bytes)|IntelI386 Architecture| |--------+------------------+------+-----------------+----------------------| | |long long | | | | | |------------------|8 |4 |signed double word | |Integral|signed long long | | | | | |------------------+------+-----------------+----------------------| | |unsigned long long|8 |4 |unsigned double word | +---------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Aggregates and Unions ------------------------------------------------------------------------------- Bit Fields ------------------------------------------------------------------------------- Chapter 3. Function Calling Sequence LSB-conforming applications shall use the function calling sequence as defined in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture Processor Supplement. ------------------------------------------------------------------------------- CPU Registers ------------------------------------------------------------------------------- Floating Point Registers ------------------------------------------------------------------------------- Stack Frame ------------------------------------------------------------------------------- Arguments ------------------------------------------------------------------------------- Integral/Pointer ------------------------------------------------------------------------------- Floating Point ------------------------------------------------------------------------------- Struct and Union Point ------------------------------------------------------------------------------- Variable Arguments ------------------------------------------------------------------------------- Return Values ------------------------------------------------------------------------------- Void ------------------------------------------------------------------------------- Integral/Pointer ------------------------------------------------------------------------------- Floating Point ------------------------------------------------------------------------------- Struct and Union Point ------------------------------------------------------------------------------- Chapter 4. Operating System Interface LSB-conforming applications shall use the Operating System Interfaces as defined in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture Processor Supplement. ------------------------------------------------------------------------------- Virtual Address Space ------------------------------------------------------------------------------- Page Size ------------------------------------------------------------------------------- Virtual Address Assignments ------------------------------------------------------------------------------- Managing the PRocess Stack ------------------------------------------------------------------------------- Coding Guidlines ------------------------------------------------------------------------------- Processor Execution Mode ------------------------------------------------------------------------------- Exception Interface ------------------------------------------------------------------------------- Hardware Exception Types ------------------------------------------------------------------------------- Software Trap Types ------------------------------------------------------------------------------- Signal Delivery ------------------------------------------------------------------------------- Signal Handler Interface ------------------------------------------------------------------------------- Chapter 5. Process Initialization LSB-conforming applications shall use the Process Initialization as defined in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture Processor Supplement. ------------------------------------------------------------------------------- Special Registers ------------------------------------------------------------------------------- Process Stack (on entry) ------------------------------------------------------------------------------- Auxilliary Vectors ------------------------------------------------------------------------------- Environment ------------------------------------------------------------------------------- Chapter 6. Coding Examples LSB-conforming applications may implement fundamental operations using the Coding Examples as defined in Chapter 3 of the System V Application Binary Interface - Intel386 Architecture Processor Supplement. ------------------------------------------------------------------------------- Code Model Overview/Architecture Constraints ------------------------------------------------------------------------------- Position-Independent Fucntion Prologue ------------------------------------------------------------------------------- Data Objects ------------------------------------------------------------------------------- Absolute Load & Store ------------------------------------------------------------------------------- Position Relative Load & Store ------------------------------------------------------------------------------- Function Calls ------------------------------------------------------------------------------- Absolute Direct Function Call ------------------------------------------------------------------------------- Absolute Indirect Function Call ------------------------------------------------------------------------------- Position-Independent Direct Function Call ------------------------------------------------------------------------------- Position-Independent Indirect Function Call ------------------------------------------------------------------------------- Branching ------------------------------------------------------------------------------- Branch Instruction ------------------------------------------------------------------------------- Absolute switch() code ------------------------------------------------------------------------------- Position-Independent switch() code ------------------------------------------------------------------------------- Chapter 7. C Stack Frame Variable Argument List ------------------------------------------------------------------------------- Dynamic Allocation of Stack Space ------------------------------------------------------------------------------- Chapter 8. Debug Information The LSB does not currently specify the format of Debug information. III. Object Format LSB-conforming implementations shall support an object file , called Executable and Linking Format (ELF) as defined by the System V Application Binary Interface, Edition 4.1 , System V Application Binary Interface - DRAFT - 22 June 2000 , System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition and as supplemented by the Linux Standard Base and this document. Table of Contents 9. ELF Header 10. Special Sections 11. Symbol Table 12. Relocation ------------------------------------------------------------------------------- Chapter 9. ELF Header Machine Information LSB-conforming applications shall use the Machine Information as defined in Chapter 4 of the System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition. ------------------------------------------------------------------------------- File Class ------------------------------------------------------------------------------- Data Encoding ------------------------------------------------------------------------------- OS Identification ------------------------------------------------------------------------------- Processor Identification ------------------------------------------------------------------------------- Processor Specific Flags ------------------------------------------------------------------------------- Chapter 10. Special Sections ------------------------------------------------------------------------------- Special Sections Various sections hold program and control information. Sections in the lists bel ow are used by the system and have the indicated types and attributes. ------------------------------------------------------------------------------- ELF Special Sections The following sections are defined in the System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition. Table 10-1. ELF Special Sections +------------------------------------------+ |Name | Type | Attributes | |-----+------------+-----------------------| |.got |SHT_PROGBITS|SHF_ALLOC+SHF_WRITE | |-----+------------+-----------------------| |.plt |SHT_PROGBITS|SHF_ALLOC+SHF_EXECINSTR| |-----+------------+-----------------------| |.sbss|SHT_NOBITS |SHF_ALLOC+SHF_WRITE | +------------------------------------------+ .got This section holds the global offset table. See `Coding Examples' in Chapter 3, `Special Sections' in Chapter 4, and `Global Offset Table' in Chapter 5 of the processor supplement for more information. .plt This section holds the procedure linkage table. .sbss This section holds uninitialized small data that contribute to the program memory image. The system sets the data to zero when the program begins to run. ------------------------------------------------------------------------------- Addition Special Sections The following additional sections are defined here. Table 10-2. Additional Special Sections +----------------------------+ | Name | Type |Attributes | |--------+-------+-----------| |.rel.dyn|SHT_REL|SHF_ALLOC | +----------------------------+ .rel.dyn This section holds relocation information, as described in `Relocation'. These relocations are applied to the .dyn section. ------------------------------------------------------------------------------- Chapter 11. Symbol Table LSB-conforming applications shall use the Symbol Table as defined in Chapter 4 of the System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition. ------------------------------------------------------------------------------- Chapter 12. Relocation LSB-conforming applications shall use Relocations as defined in Chapter 4 of the System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition. ------------------------------------------------------------------------------- Relocation Types IV. Program Loading and Dynamic Linking LSB-conforming implementations shall support the object file information and system actions that create running programs as specified in the System V Application Binary Interface, Edition 4.1 , System V Application Binary Interface - DRAFT - 22 June 2000 , System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition and as supplemented by the Linux Standard Base and this document. Table of Contents 13. Program Header 14. Program Loading 15. Dynamic Linking ------------------------------------------------------------------------------- Chapter 13. Program Header ------------------------------------------------------------------------------- Types ------------------------------------------------------------------------------- Flags ------------------------------------------------------------------------------- Chapter 14. Program Loading ------------------------------------------------------------------------------- Chapter 15. Dynamic Linking ------------------------------------------------------------------------------- Program Interpreter/Dynamic Linker The LSB specifies the Program Interpreter to be * /lib/ld-lsb.so.1 ------------------------------------------------------------------------------- Dynamic Section The following dynamic entries are defined in the System V Application Binary Interface - Intel386TM Architecture Processor Supplement, Fourth Edition. DT_PLTGOT On the Intel386 architecture, this entrys d_ptr member gives the address of the first entry in the global offset table. ------------------------------------------------------------------------------- Global Offset Table ------------------------------------------------------------------------------- Shared Object Dependencies ------------------------------------------------------------------------------- Function Addresses ------------------------------------------------------------------------------- Procedure Linkage Table ------------------------------------------------------------------------------- Initialization and Termination Functions V. Base Libraries Table of Contents 16. Libraries ------------------------------------------------------------------------------- Chapter 16. Libraries An LSB-conforming implementation shall support some base libraries which provide interfaces for accessing the operating system, processor and other hardware in the system. Interfaces that are unique to the IA32 platform are defined here. This section should be used in conjunction with the corresponding section in the Linux Standard Base Specification. ------------------------------------------------------------------------------- Interfaces for libc Table 16-1. libc Definition +-------------------+ |Library:|libc | |--------+----------| |SONAME: |libc.so.6 | +-------------------+ The behavior of the interfaces in this library is specified by the following standards. ISO/IEC 9899: 1999, Programming Languages --C[1] Large File Support[2] LI18NUX 2000 Globalization Specification, Version 1.0 with Amendment 4[3] Linux Standard Base[4] IEEE Std POSIX.1-1996 [ISO/IEC 9945-1:1996][5] CAE Specification, February 1997, Networking Services (XNS), Issue 5 (ISBN: 1-85912-165-9, C523)[6] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606)[7] System V Interface Definition, Issue 3 (ISBN 0201566524)[8] System V Interface Definition,Fourth Edition[9] ------------------------------------------------------------------------------- RPC Table 16-2. libc - RPC Function Interfaces +-----------------------------------------------------------------------------------+ |authnone_create |setdomainname |xdr_array |xdr_int(GLIBC_2.0)|xdr_u_char | |(GLIBC_2.0)[9] |(GLIBC_2.0)[4] |(GLIBC_2.0)|[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_create |svc_getreqset |xdr_bool |xdr_long |xdr_u_long | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_pcreateerror |svcerr_auth |xdr_bytes |xdr_opaque |xdr_u_short | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_perrno |svcerr_decode |xdr_callhdr|xdr_opaque_auth |xdr_union | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_perror |svcerr_noproc |xdr_callmsg|xdr_pointer |xdr_vector | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_spcreateerror|svcerr_noprog |xdr_char |xdr_reference |xdr_void | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_sperrno |svcerr_progvers |xdr_double |xdr_rejected_reply|xdr_wrapstring| |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |clnt_sperror |svcerr_systemerr |xdr_enum |xdr_replymsg |xdrmem_create | |(GLIBC_2.0)[9] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |getdomainname |svcerr_weakauth |xdr_float |xdr_short |xdrrec_create | |(GLIBC_2.0)[4] |(GLIBC_2.0)[8] |(GLIBC_2.0)|(GLIBC_2.0)[8] |(GLIBC_2.0)[8]| | | |[8] | | | |------------------+------------------+-----------+------------------+--------------| |key_decryptsession|xdr_accepted_reply|xdr_free |xdr_string |xdrrec_eof | |(GLIBC_2.1)[8] |(GLIBC_2.1)[8] |(GLIBC_2.1)|(GLIBC_2.1)[8] |(GLIBC_2.1)[8]| | | |[8] | | | +-----------------------------------------------------------------------------------+ ------------------------------------------------------------------------------- System Calls Table 16-3. libc - System Calls Function Interfaces +-----------------------------------------------------------------------------+ |__fxstat |fchown |ioctl |readdir(GLIBC_2.0)[7] |setsid | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[4] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |__getpgid |fcntl |kill |readdir_r(GLIBC_2.0) |setuid | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] |(GLIBC_2.0) | |[4] | |[4] | |[7] | |------------+--------------+-------------+----------------------+------------| |__lxstat |fdatasync |killpg |readlink(GLIBC_2.0)[7]|sleep | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[4] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |__xmknod |flock |lchown |readv(GLIBC_2.0)[7] |statfs | |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | |(GLIBC_2.0) | |[4] | |[7] | |[4] | |------------+--------------+-------------+----------------------+------------| |__xstat |fork |link |rename(GLIBC_2.0)[7] |statvfs | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[4] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |access |fstatfs |lockf |rmdir(GLIBC_2.0)[7] |stime | |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[4] | |------------+--------------+-------------+----------------------+------------| |acct |fsync |lseek |sbrk(GLIBC_2.0)[7] |symlink | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[4] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |alarm |ftime |mkdir |sched_get_priority_max|sync | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |brk |ftruncate |mkfifo |sched_get_priority_min|sysconf | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |chdir |getcontext |mlock |sched_getparam |time | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |chmod |getegid |mlockall |sched_getscheduler |times | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |chown |geteuid |mmap |sched_rr_get_interval |truncate | |(GLIBC_2.1) |(GLIBC_2.1)[7]|(GLIBC_2.1) |(GLIBC_2.1)[7] |(GLIBC_2.1) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |chroot |getgid |mprotect |sched_setparam |ulimit | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |clock |getgroups |msync |sched_setscheduler |umask | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |close |getitimer |munlock |sched_yield(GLIBC_2.0)|uname | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |closedir |getloadavg |munlockall |select(GLIBC_2.0)[6] |unlink | |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[4] | |------------+--------------+-------------+----------------------+------------| |creat |getpagesize |munmap |setcontext(GLIBC_2.0) |utime | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |dup |getpgid |nanosleep |setegid(GLIBC_2.0)[4] |utimes | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |dup2 |getpgrp |nice |seteuid(GLIBC_2.0)[4] |vfork | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |execl |getpid |open |setgid(GLIBC_2.0)[7] |wait | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |execle |getppid |opendir |setitimer(GLIBC_2.0) |wait3 | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |execlp |getpriority |pathconf |setpgid(GLIBC_2.0)[7] |wait4 | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[4] | |------------+--------------+-------------+----------------------+------------| |execv |getrlimit |pause |setpgrp(GLIBC_2.0)[7] |waitid | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |execve |getrusage |pipe |setpriority(GLIBC_2.0)|waitpid | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |execvp |getsid |poll |setregid(GLIBC_2.0)[7]|write | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |exit |getuid |pread |setreuid(GLIBC_2.0)[7]|writev | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | |(GLIBC_2.0) | |[7] | |[7] | |[7] | |------------+--------------+-------------+----------------------+------------| |fchdir |getwd |pwrite |setrlimit(GLIBC_2.0) | | |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) |[7] | | |[7] | |[7] | | | |------------+--------------+-------------+----------------------+------------| |fchmod |initgroups |read |setrlimit64(GLIBC_2.0)| | |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) |[2] | | |[7] | |[7] | | | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Standard I/O Table 16-4. libc - Standard I/O Function Interfaces +-----------------------------------------------------------------------------+ |_IO_feof |fgetpos |fsetpos |putc(GLIBC_2.0) |snprintf | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |_IO_getc |fgets |fstatvfs |putc_unlocked |sprintf | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |_IO_putc |fgetwc_unlocked|ftell(GLIBC_2.0)|putchar |sscanf | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |_IO_puts |fileno |ftello |putchar_unlocked|telldir | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |alphasort |flockfile |fwrite |puts(GLIBC_2.0) |tempnam | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |clearerr |fopen |getc(GLIBC_2.0) |putw(GLIBC_2.0) |ungetc | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |[7] |[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |ctermid |fprintf |getc_unlocked |remove |vasprintf | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[4] | |---------------+---------------+----------------+----------------+-----------| |fclose |fputc |getchar |rewind |vdprintf | |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)| | | | | |[4] | |---------------+---------------+----------------+----------------+-----------| |fdopen |fputs |getchar_unlocked|rewinddir |vfprintf | |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)[7] |(GLIBC_2.1)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |feof(GLIBC_2.0)|fread |gets(GLIBC_2.0) |scanf(GLIBC_2.0)|vprintf | |[7] |(GLIBC_2.0)[7] |[7] |[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |ferror |freopen |getw(GLIBC_2.0) |seekdir |vsnprintf | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |fflush |fscanf |pclose |setbuf |vsprintf | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[7] | |---------------+---------------+----------------+----------------+-----------| |fflush_unlocked|fseek |popen(GLIBC_2.0)|setbuffer |wprintf | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0)[4] |(GLIBC_2.0)| | | | | |[1] | |---------------+---------------+----------------+----------------+-----------| |fgetc |fseeko |printf |setvbuf |wscanf | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)| | | | | |[1] | +-----------------------------------------------------------------------------+ Table 16-5. libc - Standard I/O Data Interfaces +--------------------------------+ |stderr[7]|stdin[7]|stdout[7]| | | +--------------------------------+ ------------------------------------------------------------------------------- Signal Handling Table 16-6. libc - Signal Handling Function Interfaces +-----------------------------------------------------------------------------+ |__libc_current_sigrtmax|sigaddset |sighold |sigpause |sigsuspend | |(GLIBC_2.1)[4] |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1) | | |[7] |[7] |[7] |[7] | |-----------------------+------------+-------------+------------+-------------| |__libc_current_sigrtmin|sigaltstack |sigignore |sigpending |sigtimedwait | |(GLIBC_2.1)[4] |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1) | | |[7] |[7] |[7] |[7] | |-----------------------+------------+-------------+------------+-------------| |__sigsetjmp(GLIBC_2.0) |sigandset |siginterrupt |sigprocmask |sigwait | |[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | |[4] |[7] |[7] |[7] | |-----------------------+------------+-------------+------------+-------------| |__sysv_signal |sigblock |sigisemptyset|sigqueue |sigwaitinfo | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | |[4] |[4] |[7] |[7] | |-----------------------+------------+-------------+------------+-------------| |bsd_signal(GLIBC_2.0) |sigdelset |sigismember |sigrelse | | |[7] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[7] |[7] |[7] | | |-----------------------+------------+-------------+------------+-------------| |psignal(GLIBC_2.0)[4] |sigemptyset |siglongjmp |sigreturn | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[7] |[7] |[4] | | |-----------------------+------------+-------------+------------+-------------| |raise(GLIBC_2.0)[7] |sigfillset |signal |sigset | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[7] |[7] |[7] | | |-----------------------+------------+-------------+------------+-------------| |sigaction(GLIBC_2.0)[7]|siggetmask |sigorset |sigstack | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[4] |[4] |[7] | | +-----------------------------------------------------------------------------+ Table 16-7. libc - Signal Handling Data Interfaces +------------------------+ |_sys_siglist[4] | | | | | +------------------------+ ------------------------------------------------------------------------------- Standard Library Table 16-8. libc - Standard Library Function Interfaces +-----------------------------------------------------------------------------+ |_Exit |erand48 |hsearch |lsearch |setstate | |(GLIBC_2.1.1)[1]|(GLIBC_2.1.1)[7]|(GLIBC_2.1.1)|(GLIBC_2.1.1) |(GLIBC_2.1.1)| | | |[7] |[7] |[7] | |----------------+----------------+-------------+---------------+-------------| |__assert_fail |err(GLIBC_2.0) |htonl |makecontext |srand | |(GLIBC_2.0)[4] |[4] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[6] | |[7] | |----------------+----------------+-------------+---------------+-------------| |__cxa_atexit |error |htons |malloc |srand48 | |(GLIBC_2.1.3)[4]|(GLIBC_2.1.3)[4]|(GLIBC_2.1.3)|(GLIBC_2.1.3) |(GLIBC_2.1.3)| | | |[6] |[7] |[7] | |----------------+----------------+-------------+---------------+-------------| |__errno_location|errx(GLIBC_2.0) |imaxabs |memmem |srandom | |(GLIBC_2.0)[4] |[4] |(GLIBC_2.0) |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |__fpending |fcvt(GLIBC_2.2) |imaxdiv |mkstemp |strtod | |(GLIBC_2.2)[4] |[7] |(GLIBC_2.2) |(GLIBC_2.2)[7] |(GLIBC_2.2) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |__getpagesize |fmtmsg |inet_addr |mktemp |strtol | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[6] | |[7] | |----------------+----------------+-------------+---------------+-------------| |__sysconf |fnmatch |inet_aton |mrand48 |strtoul | |(GLIBC_2.2)[4] |(GLIBC_2.2)[7] |(GLIBC_2.2) |(GLIBC_2.2)[7] |(GLIBC_2.2) | | | |[6] | |[7] | |----------------+----------------+-------------+---------------+-------------| |_exit(GLIBC_2.0)|fpathconf |inet_ntoa |nftw(GLIBC_2.0)|swapcontext | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |[7] |(GLIBC_2.0) | | | |[6] | |[7] | |----------------+----------------+-------------+---------------+-------------| |_longjmp |free(GLIBC_2.0) |initstate |nrand48 |syslog | |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[7] | |----------------+----------------+-------------+---------------+-------------| |_setjmp |ftrylockfile |insque |ntohl |system | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[6] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |a64l(GLIBC_2.0) |ftw(GLIBC_2.0) |ioperm |ntohs |textdomain | |[7] |[7] |(GLIBC_2.0) |(GLIBC_2.0)[6] |(GLIBC_2.0) | | | |[4] | |[3] | |----------------+----------------+-------------+---------------+-------------| |abort(GLIBC_2.0)|funlockfile |iopl |openlog |tfind | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[4] | |[7] | |----------------+----------------+-------------+---------------+-------------| |abs(GLIBC_2.0) |gcvt(GLIBC_2.0) |isatty |perror |tmpfile | |[7] |[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[7] | |----------------+----------------+-------------+---------------+-------------| |atexit |getcwd |isblank |posix_memalign |tmpnam | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[5] |(GLIBC_2.0) | | | |[4] | |[7] | |----------------+----------------+-------------+---------------+-------------| |atof(GLIBC_2.0) |getdate |isinf |ptsname |tsearch | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |atoi(GLIBC_2.0) |getenv |isinfl |putenv |ttyname | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |atol(GLIBC_2.0) |getlogin |isnan |qsort |ttyname_r | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |basename |getopt |isnanf |rand(GLIBC_2.0)|twalk | |(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) |[7] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |bindtextdomain |getopt_long |isnanl |rand_r |unlockpt | |(GLIBC_2.0)[3] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |bsearch |getopt_long_only|jrand48 |random |unsetenv | |(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |calloc |getsubopt |l64a |random_r |usleep | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | |[7] | |[7] | |----------------+----------------+-------------+---------------+-------------| |closelog |gettimeofday |labs |realloc |verrx | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |confstr |glob(GLIBC_2.0) |lcong48 |realpath |vsyslog | |(GLIBC_2.0)[7] |[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |cuserid |glob64 |ldiv |remque |warn | |(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |daemon |globfree |lfind |seed48 |warnx | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | |[7] | |[4] | |----------------+----------------+-------------+---------------+-------------| |dirname |globfree64 |llabs |setenv |wordexp | |(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |div(GLIBC_2.0) |grantpt |lldiv |sethostid |wordfree | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | |[1] | |[7] | |----------------+----------------+-------------+---------------+-------------| |drand48 |hcreate |longjmp |sethostname | | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[4] | | | | |[7] | | | |----------------+----------------+-------------+---------------+-------------| |ecvt(GLIBC_2.0) |hdestroy |lrand48 |setlogmask | | |[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7] | | | | |[7] | | | +-----------------------------------------------------------------------------+ Table 16-9. libc - Standard Library Data Interfaces +---------------------------------------------------------------+ |__environ[4]|_sys_errlist[4]|getdate_err[7]|opterr[4]|optopt[4]| |------------+---------------+--------------+---------+---------| |_environ[4] |environ[7] |optarg[7] |optind[4]| | +---------------------------------------------------------------+ ------------------------------------------------------------------------------- Localization Functions Table 16-10. libc - Localization Functions Function Interfaces +------------------------------------------------------------------------------+ |__dcgettext(GLIBC_2.0) |catgets |dcngettext |gettext |nl_langinfo | |[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | |[7] |[3] |[4] |[7] | |-----------------------+------------+-------------+-------------+-------------| |bind_textdomain_codeset|catopen |dgettext |iconv |setlocale | |(GLIBC_2.2)[3] |(GLIBC_2.2) |(GLIBC_2.2) |(GLIBC_2.2) |(GLIBC_2.2) | | |[7] |[3] |[7] |[7] | |-----------------------+------------+-------------+-------------+-------------| |catclose(GLIBC_2.0)[7] |dcgettext |dngettext |localeconv | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[3] |[3] |[7] | | +------------------------------------------------------------------------------+ Table 16-11. libc - Localization Functions Data Interfaces +----------------------------+ |_nl_msg_cat_cntr[4] | | | | | +----------------------------+ ------------------------------------------------------------------------------- Socket Interface Table 16-12. libc - Socket Interface Function Interfaces +-----------------------------------------------------------------------------+ |__h_errno_location|gethostbyname_r |getsockopt |send |socket | |(GLIBC_2.0)[4] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[6] |[6] |[6] | |------------------+----------------+-------------+-------------+-------------| |accept(GLIBC_2.0) |gethostid |listen |sendmsg |socketpair | |[6] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0) | | | |[6] |[6] |[6] | |------------------+----------------+-------------+-------------+-------------| |bind(GLIBC_2.0)[6]|gethostname |recv |sendto | | | |(GLIBC_2.0)[6] |(GLIBC_2.0) |(GLIBC_2.0) | | | | |[6] |[6] | | |------------------+----------------+-------------+-------------+-------------| |bindresvport |getpeername |recvfrom |setsockopt | | |(GLIBC_2.0)[4] |(GLIBC_2.0)[6] |(GLIBC_2.0) |(GLIBC_2.0) | | | | |[6] |[6] | | |------------------+----------------+-------------+-------------+-------------| |connect(GLIBC_2.0)|getsockname |recvmsg |shutdown | | |[6] |(GLIBC_2.0)[6] |(GLIBC_2.0) |(GLIBC_2.0) | | | | |[6] |[6] | | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Wide Characters Table 16-13. libc - Wide Characters Function Interfaces +-----------------------------------------------------------------------------+ |__wcstod_internal |mbrlen |vswscanf |wcsncmp |wcstoul | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7]|(GLIBC_2.0)[1]|(GLIBC_2.0)[7]|(GLIBC_2.0) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |__wcstof_internal |mbrtowc |vwprintf |wcsncpy |wcstoull | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7]|(GLIBC_2.0)[1]|(GLIBC_2.0)[7]|(GLIBC_2.0) | | | | | |[1] | |------------------+--------------+--------------+--------------+-------------| |__wcstol_internal |mbsinit |vwscanf |wcsnlen |wcstoumax | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7]|(GLIBC_2.0)[1]|(GLIBC_2.0)[4]|(GLIBC_2.0) | | | | | |[1] | |------------------+--------------+--------------+--------------+-------------| |__wcstold_internal|mbsnrtowcs |wcpcpy |wcsnrtombs |wcstouq | |(GLIBC_2.0)[4] |(GLIBC_2.0)[4]|(GLIBC_2.0)[4]|(GLIBC_2.0)[4]|(GLIBC_2.0) | | | | | |[4] | |------------------+--------------+--------------+--------------+-------------| |__wcstoul_internal|mbsrtowcs |wcpncpy |wcspbrk |wcswcs | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7]|(GLIBC_2.0)[4]|(GLIBC_2.0)[1]|(GLIBC_2.0) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |btowc(GLIBC_2.0) |mbstowcs |wcrtomb |wcsrchr |wcswidth | |[7] |(GLIBC_2.0)[7]|(GLIBC_2.0)[7]|(GLIBC_2.0)[7]|(GLIBC_2.0) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fgetwc(GLIBC_2.2) |mbtowc |wcscasecmp |wcsrtombs |wcsxfrm | |[7] |(GLIBC_2.2)[7]|(GLIBC_2.2)[4]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fgetws(GLIBC_2.2) |putwc |wcscat |wcsspn |wctob | |[1] |(GLIBC_2.2)[1]|(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fputwc(GLIBC_2.2) |putwchar |wcschr |wcsstr |wctomb | |[1] |(GLIBC_2.2)[1]|(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fputws(GLIBC_2.2) |swprintf |wcscmp |wcstod |wctrans | |[1] |(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fwide(GLIBC_2.2) |swscanf |wcscoll |wcstof |wctype | |[1] |(GLIBC_2.2)[1]|(GLIBC_2.2)[7]|(GLIBC_2.2)[1]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fwprintf |towctrans |wcscpy |wcstoimax |wcwidth | |(GLIBC_2.2)[4] |(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2)[1]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |fwscanf(GLIBC_2.2)|towlower |wcscspn |wcstok |wmemchr | |[1] |(GLIBC_2.2)[1]|(GLIBC_2.2)[7]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |getwc(GLIBC_2.2) |towupper |wcsdup |wcstol |wmemcmp | |[1] |(GLIBC_2.2)[7]|(GLIBC_2.2)[4]|(GLIBC_2.2)[7]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |getwchar |ungetwc |wcsftime |wcstold |wmemcpy | |(GLIBC_2.2)[7] |(GLIBC_2.2)[1]|(GLIBC_2.2)[1]|(GLIBC_2.2)[1]|(GLIBC_2.2) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |iconv_close |vfwprintf |wcslen |wcstoll |wmemmove | |(GLIBC_2.1)[7] |(GLIBC_2.1)[1]|(GLIBC_2.1)[7]|(GLIBC_2.1)[1]|(GLIBC_2.1) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |iconv_open |vfwscanf |wcsncasecmp |wcstombs |wmemset | |(GLIBC_2.1)[7] |(GLIBC_2.1)[1]|(GLIBC_2.1)[4]|(GLIBC_2.1)[7]|(GLIBC_2.1) | | | | | |[7] | |------------------+--------------+--------------+--------------+-------------| |mblen(GLIBC_2.0) |vswprintf |wcsncat |wcstoq | | |[7] |(GLIBC_2.0)[1]|(GLIBC_2.0)[7]|(GLIBC_2.0)[4]| | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- String Functions Table 16-14. libc - String Functions Function Interfaces +----------------------------------------------------------------------------+ |__mempcpy |bzero |strcasestr |strncasecmp |strtoimax | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[4] | |[1] | |-------------------+-------------+-------------+--------------+-------------| |__rawmemchr |ffs |strcat |strncat |strtok | |(GLIBC_2.1)[4] |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1)[7]|(GLIBC_2.1) | | |[7] |[7] | |[7] | |-------------------+-------------+-------------+--------------+-------------| |__stpcpy(GLIBC_2.0)|index |strchr |strncmp |strtok_r | |[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[7] | |[4] | |-------------------+-------------+-------------+--------------+-------------| |__strdup(GLIBC_2.0)|memccpy |strcmp |strncpy |strtold | |[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[7] | |[1] | |-------------------+-------------+-------------+--------------+-------------| |__strtod_internal |memchr |strcoll |strndup |strtoll | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | | |[7] |[7] | |[1] | |-------------------+-------------+-------------+--------------+-------------| |__strtof_internal |memcmp |strcpy |strnlen |strtoq | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | | |[7] |[7] | |[4] | |-------------------+-------------+-------------+--------------+-------------| |__strtok_r |memcpy |strcspn |strpbrk |strtoull | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[7] | |[1] | |-------------------+-------------+-------------+--------------+-------------| |__strtol_internal |memmove |strdup |strptime |strtoumax | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | | |[7] |[7] | |[1] | |-------------------+-------------+-------------+--------------+-------------| |__strtold_internal |memrchr |strerror |strrchr |strtouq | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[4] |[7] | |[4] | |-------------------+-------------+-------------+--------------+-------------| |__strtoll_internal |memset |strerror_r |strsep |strverscmp | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | | |[7] |[4] | |[4] | |-------------------+-------------+-------------+--------------+-------------| |__strtoul_internal |rindex |strfmon |strsignal |strxfrm | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[4]|(GLIBC_2.0) | | |[7] |[7] | |[7] | |-------------------+-------------+-------------+--------------+-------------| |__strtoull_internal|stpcpy |strfry |strspn |swab | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[4] |[4] | |[7] | |-------------------+-------------+-------------+--------------+-------------| |bcmp(GLIBC_2.0)[7] |stpncpy |strftime |strstr | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | |[4] |[7] | | | |-------------------+-------------+-------------+--------------+-------------| |bcopy(GLIBC_2.0)[7]|strcasecmp |strlen |strtof | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[1]| | | |[7] |[7] | | | +----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- IPC Functions Table 16-15. libc - IPC Functions Function Interfaces +-----------------------------------------------------------------------------+ |ftok(GLIBC_2.0)[7]|msgrcv(GLIBC_2.0) |semget(GLIBC_2.0) |shmctl(GLIBC_2.0) | | | |[7] |[7] |[7] | | |------------------+------------------+------------------+------------------+-| |msgctl(GLIBC_2.0) |msgsnd(GLIBC_2.0) |semop(GLIBC_2.0) |shmdt(GLIBC_2.0) | | |[7] |[7] |[7] |[7] | | |------------------+------------------+------------------+------------------+-| |msgget(GLIBC_2.0) |semctl(GLIBC_2.0) |shmat(GLIBC_2.0) |shmget(GLIBC_2.0) | | |[7] |[7] |[7] |[7] | | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Regular Expressions Table 16-16. libc - Regular Expressions Function Interfaces +-----------------------------------------------------------------------------+ |advance(GLIBC_2.0)|re_exec(GLIBC_2.0)|regerror |regfree(GLIBC_2.0)| | |[7] |[7] |(GLIBC_2.0)[7] |[7] | | |------------------+------------------+------------------+------------------+-| |re_comp(GLIBC_2.0)|regcomp(GLIBC_2.0)|regexec(GLIBC_2.0)|step(GLIBC_2.0)[7]| | |[7] |[7] |[7] | | | +-----------------------------------------------------------------------------+ Table 16-17. libc - Regular Expressions Data Interfaces +---------------------------+ |loc1[7]|loc2[7]|locs[7]| | | +---------------------------+ ------------------------------------------------------------------------------- Character Type Functions Table 16-18. libc - Character Type Functions Function Interfaces +-----------------------------------------------------------------------------+ |__ctype_get_mb_cur_max|isdigit |iswalnum |iswlower |toascii | |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[7] | |[7] | |----------------------+------------+-------------+--------------+------------| |_tolower(GLIBC_2.0)[7]|isgraph |iswalpha |iswprint |tolower | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[7] | |[7] | |----------------------+------------+-------------+--------------+------------| |_toupper(GLIBC_2.0)[7]|islower |iswblank |iswpunct |toupper | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0) | | |[7] |[4] | |[7] | |----------------------+------------+-------------+--------------+------------| |isalnum(GLIBC_2.0)[7] |isprint |iswcntrl |iswspace | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | |[7] |[7] | | | |----------------------+------------+-------------+--------------+------------| |isalpha(GLIBC_2.0)[7] |ispunct |iswctype |iswupper | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | |[7] |[4] | | | |----------------------+------------+-------------+--------------+------------| |isascii(GLIBC_2.0)[7] |isspace |iswdigit |iswxdigit | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | |[7] |[7] | | | |----------------------+------------+-------------+--------------+------------| |iscntrl(GLIBC_2.0)[7] |isupper |iswgraph |isxdigit | | | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | |[7] |[7] | | | +-----------------------------------------------------------------------------+ Table 16-19. libc - Character Type Functions Data Interfaces +------------------------------------------------------+ |__ctype_b[4]|__ctype_tolower[4]|__ctype_toupper[4]| | | +------------------------------------------------------+ ------------------------------------------------------------------------------- Time Manipulation Table 16-20. libc - Time Manipulation Function Interfaces +------------------------------------------------------------------------------+ |adjtime |asctime_r |difftime |localtime |tzset | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | | | |[7] | |---------------+---------------+---------------+----------------+-------------| |adjtimex |ctime |gmtime |localtime_r |ualarm | |(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) | | | | | |[7] | |---------------+---------------+---------------+----------------+-------------| |asctime |ctime_r |gmtime_r |mktime | | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] | | +------------------------------------------------------------------------------+ Table 16-21. libc - Time Manipulation Data Interfaces +-----------------------------------------+ |__daylight[4]|__tzname[4]|timezone[7]| | | |-------------+-----------+-----------+-+-| |__timezone[4]|daylight[7]|tzname[7] | | | +-----------------------------------------+ ------------------------------------------------------------------------------- Terminal Interface Functions Table 16-22. libc - Terminal Interface Functions Function Interfaces +----------------------------------------------------------------------------+ |cfgetispeed |cfsetispeed |tcdrain |tcgetattr |tcsendbreak | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0)[7] | | | |[7] | | | |---------------+---------------+-------------+--------------+---------------| |cfgetospeed |cfsetospeed |tcflow |tcgetpgrp |tcsetattr | |(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0)[7] | | | |[7] | | | |---------------+---------------+-------------+--------------+---------------| |cfmakeraw |cfsetspeed |tcflush |tcgetsid |tcsetpgrp | |(GLIBC_2.0)[4] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7]|(GLIBC_2.0)[7] | | | |[7] | | | +----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- System Database Interface Table 16-23. libc - System Database Interface Function Interfaces +-----------------------------------------------------------------------------+ |endgrent |getgrgid |getpwnam |getutxent |setprotoent | |(GLIBC_2.0)[7]|(GLIBC_2.0)[7] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[6]| | | | |[7] | | |--------------+-----------------+---------------+-------------+--------------| |endhostent |getgrnam |getpwnam_r |getutxid |setpwent | |(GLIBC_2.0)[6]|(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | | |[7] | | |--------------+-----------------+---------------+-------------+--------------| |endnetent |gethostbyaddr |getpwuid |getutxline |setservent | |(GLIBC_2.0)[6]|(GLIBC_2.0)[6] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[6]| | | | |[7] | | |--------------+-----------------+---------------+-------------+--------------| |endprotoent |gethostbyname |getpwuid_r |pututxline |setutent | |(GLIBC_2.0)[6]|(GLIBC_2.0)[4] |(GLIBC_2.0)[7] |(GLIBC_2.0) |(GLIBC_2.0)[4]| | | | |[7] | | |--------------+-----------------+---------------+-------------+--------------| |endpwent |getnetbyaddr |getservbyname |setgrent |setutxent | |(GLIBC_2.0)[7]|(GLIBC_2.0)[6] |(GLIBC_2.0)[4] |(GLIBC_2.0) |(GLIBC_2.0)[7]| | | | |[7] | | |--------------+-----------------+---------------+-------------+--------------| |endservent |getprotobyname |getservbyport |setgroups | | |(GLIBC_2.0)[6]|(GLIBC_2.0)[4] |(GLIBC_2.0)[6] |(GLIBC_2.0) | | | | | |[4] | | |--------------+-----------------+---------------+-------------+--------------| |endutent |getprotobynumber |getservent |sethostent | | |(GLIBC_2.0)[7]|(GLIBC_2.0)[6] |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | | | |[6] | | |--------------+-----------------+---------------+-------------+--------------| |endutxent |getprotoent |getutent |setmntent | | |(GLIBC_2.1)[7]|(GLIBC_2.1)[4] |(GLIBC_2.1)[4] |(GLIBC_2.1) | | | | | |[4] | | |--------------+-----------------+---------------+-------------+--------------| |getgrent |getpwent |getutent_r |setnetent | | |(GLIBC_2.0)[7]|(GLIBC_2.0)[7] |(GLIBC_2.0)[4] |(GLIBC_2.0) | | | | | |[6] | | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Language Support Table 16-24. libc - Language Support Function Interfaces +-----------------------------------------------------------------------------+ |__divdi3(GLIBC_2.0) |__moddi3 |__umoddi3 |_obstack_newchunk | | |[4] |(GLIBC_2.0)[4]|(GLIBC_2.0)[4] |(GLIBC_2.0)[4] | | |--------------------+--------------+------------------+--------------------+-| |__libc_start_main |__udivdi3 |_obstack_begin |obstack_free | | |(GLIBC_2.0)[4] |(GLIBC_2.0)[4]|(GLIBC_2.0)[4] |(GLIBC_2.0)[4] | | +-----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Large File Support Table 16-25. libc - Large File Support Function Interfaces +----------------------------------------------------------------------------+ |__fxstat64 |fopen64 |ftello64 |mkstemp64 |readdir64 | |(GLIBC_2.2)[4] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2]| |---------------+--------------+---------------+--------------+--------------| |__lxstat64 |freopen64 |ftruncate64 |mmap64 |tmpfile64 | |(GLIBC_2.2)[4] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2]| |---------------+--------------+---------------+--------------+--------------| |__xstat64 |fseeko64 |ftw64 |nftw64 |truncate64 | |(GLIBC_2.2)[4] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2] |(GLIBC_2.2)[2]|(GLIBC_2.2)[2]| |---------------+--------------+---------------+--------------+--------------| |alphasort64 |fsetpos64 |getrlimit64 |open64 | | |(GLIBC_2.1)[4] |(GLIBC_2.1)[2]|(GLIBC_2.1)[2] |(GLIBC_2.1)[2]| | |---------------+--------------+---------------+--------------+--------------| |creat64 |fstatfs64 |lockf64 |pread64 | | |(GLIBC_2.1)[2] |(GLIBC_2.1)[2]|(GLIBC_2.1)[2] |(GLIBC_2.1)[2]| | |---------------+--------------+---------------+--------------+--------------| |fgetpos64 |fstatvfs64 |lseek64 |pwrite64 | | |(GLIBC_2.1)[2] |(GLIBC_2.1)[2]|(GLIBC_2.1)[2] |(GLIBC_2.1)[2]| | +----------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Data Definitions for libc ------------------------------------------------------------------------------- errno.h #define EDEADLK 35 #define ENAMETOOLONG 36 #define ENOLCK 37 #define ENOSYS 38 #define ENOTEMPTY 39 #define ELOOP 40 #define ENOMSG 42 #define EIDRM 43 #define ECHRNG 44 #define EL2NSYNC 45 #define EL3HLT 46 #define EL3RST 47 #define ELNRNG 48 #define EUNATCH 49 #define ENOANO 55 #define EBADRQC 56 #define EBADSLT 57 #define EBFONT 59 #define ENOSTR 60 #define ENODATA 61 #define ETIME 62 #define ENOSR 63 #define ENONET 64 #define ENOPKG 65 #define EREMOTE 66 #define ENOLINK 67 #define EADV 68 #define ESRMNT 69 #define ECOMM 70 #define EPROTO 71 #define EMULTIHOP 72 #define EDOTDOT 73 #define EBADMSG 74 #define EOVERFLOW 75 #define ENOTUNIQ 76 #define EBADFD 77 #define EREMCHG 78 #define ELIBACC 79 #define ELIBBAD 80 #define ELIBSCN 81 #define ELIBMAX 82 #define ELIBEXEC 83 #define EILSEQ 84 #define ERESTART 85 #define ESTRPIPE 86 #define EUSERS 87 #define ENOTSOCK 88 #define EDESTADDRREQ 89 #define EMSGSIZE 90 #define EPROTOTYPE 91 #define ENOPROTOOPT 92 #define EPROTONOSUPPORT 93 #define ESOCKTNOSUPPORT 94 #define EOPNOTSUPP 95 #define EPFNOSUPPORT 96 #define EAFNOSUPPORT 97 #define EADDRINUSE 98 #define EADDRNOTAVAIL 99 ------------------------------------------------------------------------------- signal.h #define SIGUSR1 10 #define SIGUSR2 12 #define SIGSTKFLT 16 #define SIGCHLD 17 #define SIGCONT 18 #define SIGSTOP 19 #define SIGTSTP 20 #define SIGTTIN 21 #define SIGTTOU 22 #define SIGURG 23 #define SIGXCPU 24 #define SIGXFSZ 25 #define SIGVTALRM 26 #define SIGPROF 27 #define SIGWINCH 28 #define SIGIO 29 #define SIGPWR 30 #define SIGSYS 31 #define SIGUNUSED 31 #define SIGBUS 7 struct _fpreg { unsigned short significand[4]; unsigned short exponent; } ; struct _fpxreg { unsigned short significand[4]; unsigned short exponent; unsigned short padding[3]; } ; struct _xmmreg { unsigned long element[4]; } ; struct _fpstate { unsigned long cw; unsigned long sw; unsigned long tag; unsigned long ipoff; unsigned long cssel; unsigned long dataoff; unsigned long datasel; struct _fpreg _st[8]; unsigned short status; unsigned short magic; unsigned long _fxsr_env[6]; unsigned long mxcsr; unsigned long reserved; struct _fpxreg _fxsr_st[8]; struct _xmmreg _xmm[8]; unsigned long padding[56]; } ; struct sigcontext { unsigned short gs; unsigned short __gsh; unsigned short fs; unsigned short __fsh; unsigned short es; unsigned short __esh; unsigned short ds; unsigned short __dsh; unsigned long edi; unsigned long esi; unsigned long ebp; unsigned long esp; unsigned long ebx; unsigned long edx; unsigned long ecx; unsigned long eax; unsigned long trapno; unsigned long err; unsigned long eip; unsigned short cs; unsigned short __csh; unsigned long eflags; unsigned long esp_at_signal; unsigned short ss; unsigned short __ssh; struct _fpstate fpstate; unsigned long oldmask; unsigned long cr2; } ; ------------------------------------------------------------------------------- sys/ioctl.h #define TIOCNOTTY 0x5422 ------------------------------------------------------------------------------- sys/msg.h typedef unsigned long msgqnum_t; typedef unsigned long msglen_t; ------------------------------------------------------------------------------- sys/shm.h typedef unsigned long shmatt_t; ------------------------------------------------------------------------------- ucontext.h typedef int greg_t; #define NGREG 19 typedef greg_t gregset_t[19]; struct _libc_fpreg { unsigned short significand[4]; unsigned short exponent; } ; struct _libc_fpstate { unsigned long cw; unsigned long sw; unsigned long tag; unsigned long ipoff; unsigned long cssel; unsigned long dataoff; unsigned long datasel; struct _libc_fpreg _st[8]; unsigned long status; } ; typedef struct _libc_fpstate *fpregset_t; ------------------------------------------------------------------------------- Interfaces Definitions for libc Table of Contents __divdi3 -- mathematic operation ioperm -- set port input/output permissions iopl -- change I/O privilege level __divdi3 Name __divdi3 -- mathematic operation Synopsis DItype __divdi3(DItype u, DItype v); Description __divdi3() divides two DItypes(unsigned ints). __divdi3 is not in the source standard; it is only in the binary standard. ioperm Name ioperm -- set port input/output permissions Synopsis #include /* for libc5 */ #include /* for glibc */ int ioperm(unsigned long from, unsigned long num, int turn_on); Description ioperm sets the port access permission bits for the process for num bytes starting from port address from to the value turn_on. The use of ioperm requires root privileges. Only the first 0x3ff I/O ports can be specified in this manner. For more ports, the iopl function must be used. Permissions are not inherited on fork, but on exec they are. This is useful for giving port access permissions to non-privileged tasks. Return Value On success, zero is returned. On error, -1 is returned, and errno is set appropriately. Notes Libc5 treats it as a system call and has a prototype in . Glibc1 does not have a prototype. Glibc2 has a prototype both in and in . Avoid the latter, it is available on i386 only. iopl Name iopl -- change I/O privilege level Synopsis #include /* for libc5 */ #include /* for glibc */ int iopl(int level); Description iopl changes the I/O privilege level of the current process, as specified in level. This call is necessary to allow 8514-compatible X servers to run under Linux. Since these X servers require access to all 65536 I/O ports, the ioperm call is not sufficient. In addition to granting unrestricted I/O port access, running at a higher I/O privilege level also allows the process to disable interrupts. This will probably crash the system, and is not recommended. Permissions are inherited by fork and exec. The I/O privilege level for a normal process is 0. Return Value On success, zero is returned. On error, -1 is returned, and errno is set appropriately. Errors EINVAL level is greater than 3. EPERM The current user is not the super-user. Notes from the Kernel Source iopl has to be used when you want to access the I/O ports beyond the 0x3ff range: to get the full 65536 ports bitmapped you'd need 8kB of bitmaps/process, which is a bit excessive. Notes Libc5 treats it as a system call and has a prototype in . Glibc1 does not have a prototype. Glibc2 has a prototype both in and in . Avoid the latter, it is available on i386 only. ------------------------------------------------------------------------------- Interfaces for libm Table 16-26. libm Definition +-------------------+ |Library:|libm | |--------+----------| |SONAME: |libm.so.6 | +-------------------+ The behavior of the interfaces in this library is specified by the following standards. ISO/IEC 9899: 1999, Programming Languages --C[10] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606)[11] ------------------------------------------------------------------------------- Math Table 16-27. libm - Math Function Interfaces +-----------------------------------------------------------------------------+ |acos |ceilf |erfcl(GLIBC_2.0) |j1(GLIBC_2.0) |remainderl | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |[11] |(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |acosf |ceill |erff(GLIBC_2.0) |j1f(GLIBC_2.0) |remquo | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |[10] |(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |acosh |cexp |erfl(GLIBC_2.0) |j1l(GLIBC_2.0) |remquof | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |[10] |(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |acoshf |cexpf |exp(GLIBC_2.0) |jn(GLIBC_2.0) |remquol | |(GLIBC_2.0) |(GLIBC_2.0) |[11] |[11] |(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |acoshl |cexpl |expm1(GLIBC_2.0) |jnf(GLIBC_2.0) |rint(GLIBC_2.0)| |(GLIBC_2.0) |(GLIBC_2.0) |[11] |[10] |[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |acosl |cimag |fabs(GLIBC_2.0) |jnl(GLIBC_2.0) |rintf | |(GLIBC_2.0) |(GLIBC_2.0) |[11] |[10] |(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asin |cimagf |fabsf(GLIBC_2.0) |ldexp |rintl | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[11]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asinf |cimagl |fabsl(GLIBC_2.0) |ldexpf |round | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asinh |clog |fdim(GLIBC_2.0) |ldexpl |roundf | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asinhf |clog10 |fdimf(GLIBC_2.0) |lgamma |roundl | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[11]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asinhl |clog10f |fdiml(GLIBC_2.0) |lgamma_r |scalb | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[11]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |asinl |clog10l |feclearexcept |lgammaf |scalbf | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atan |clogf |fegetenv |lgammaf_r |scalbl | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atan2 |clogl |fegetexceptflag |lgammal |scalbln | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atan2f |conj |fegetround |lgammal_r |scalblnf | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atan2l |conjf |feholdexcept |llrint |scalblnl | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atanf |conjl |feraiseexcept |llrintf |scalbn | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atanh |copysign |fesetenv |llrintl |scalbnf | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atanhf |copysignf |fesetexceptflag |llround |scalbnl | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atanhl |copysignl |fesetround |llroundf |significand | |(GLIBC_2.0) |(GLIBC_2.0) |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |atanl |cos(GLIBC_2.0)|fetestexcept |llroundl |significandf | |(GLIBC_2.0) |[11] |(GLIBC_2.0)[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[10] | | | | | |------------+--------------+-----------------+---------------+---------------| |cabs |cosf |feupdateenv |log(GLIBC_2.1) |significandl | |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1)[10] |[11] |(GLIBC_2.1)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cabsf |cosh |finite(GLIBC_2.1)|log10 |sin(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |(GLIBC_2.1)[11]|[11] | |[10] |[11] | | | | |------------+--------------+-----------------+---------------+---------------| |cabsl |coshf |finitef |log1p |sincos | |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1)[10] |(GLIBC_2.1)[11]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacos |coshl |finitel |logb(GLIBC_2.1)|sincosf | |(GLIBC_2.1) |(GLIBC_2.1) |(GLIBC_2.1)[10] |[11] |(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacosf |cosl |floor(GLIBC_2.1) |lrint |sincosl | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacosh |cpow |floorf(GLIBC_2.1)|lrintf |sinf(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacoshf |cpowf |floorl(GLIBC_2.1)|lrintl |sinh(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacoshl |cpowl |fma(GLIBC_2.1) |lround |sinhf | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cacosl |cproj |fmaf(GLIBC_2.1) |lroundf |sinhl | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |carg |cprojf |fmal(GLIBC_2.1) |lroundl |sinl(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cargf |cprojl |fmax(GLIBC_2.1) |matherr |sqrt(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cargl |creal |fmaxf(GLIBC_2.1) |modf(GLIBC_2.1)|sqrtf | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |[11] |(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casin |crealf |fmaxl(GLIBC_2.1) |modff |sqrtl | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casinf |creall |fmin(GLIBC_2.1) |modfl |tan(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casinh |csin |fminf(GLIBC_2.1) |nan(GLIBC_2.1) |tanf(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |[10] |[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casinhf |csinf |fminl(GLIBC_2.1) |nanf(GLIBC_2.1)|tanh(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |[10] |[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casinhl |csinh |fmod(GLIBC_2.1) |nanl(GLIBC_2.1)|tanhf | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |[10] |(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |casinl |csinhf |fmodf(GLIBC_2.1) |nearbyint |tanhl | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catan |csinhl |fmodl(GLIBC_2.1) |nearbyintf |tanl(GLIBC_2.1)| |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catanf |csinl |frexp(GLIBC_2.1) |nearbyintl |tgamma | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catanh |csqrt |frexpf(GLIBC_2.1)|nextafter |tgammaf | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[11]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catanhf |csqrtf |frexpl(GLIBC_2.1)|nextafterf |tgammal | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catanhl |csqrtl |gamma(GLIBC_2.1) |nextafterl |trunc | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |catanl |ctan |gammaf(GLIBC_2.1)|nexttoward |truncf | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|(GLIBC_2.1)[10]| |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cbrt |ctanf |gammal(GLIBC_2.0)|nexttowardf |truncl | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[10]|(GLIBC_2.0)[10]| |[11] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cbrtf |ctanh |hypot(GLIBC_2.0) |nexttowardl |y0(GLIBC_2.0) | |(GLIBC_2.0) |(GLIBC_2.0) |[11] |(GLIBC_2.0)[10]|[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |cbrtl |ctanhf |hypotf(GLIBC_2.0)|pow(GLIBC_2.0) |y0f(GLIBC_2.0) | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |[10] |[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |ccos |ctanhl |hypotl(GLIBC_2.1)|pow10 |y0l(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |ccosf |ctanl |ilogb(GLIBC_2.1) |pow10f |y1(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[11] |(GLIBC_2.1)[10]|[11] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |ccosh |dremf |ilogbf(GLIBC_2.1)|pow10l |y1f(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[10]|[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |ccoshf |dreml |ilogbl(GLIBC_2.1)|powf(GLIBC_2.1)|y1l(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |[10] |[10] | |[10] |[10] | | | | |------------+--------------+-----------------+---------------+---------------| |ccoshl |erf(GLIBC_2.1)|j0(GLIBC_2.1)[11]|powl(GLIBC_2.1)|yn(GLIBC_2.1) | |(GLIBC_2.1) |[11] | |[10] |[11] | |[10] | | | | | |------------+--------------+-----------------+---------------+---------------| |ccosl |erfc |j0f(GLIBC_2.1) |remainder |ynf(GLIBC_2.1) | |(GLIBC_2.1) |(GLIBC_2.1) |[10] |(GLIBC_2.1)[11]|[10] | |[10] |[11] | | | | |------------+--------------+-----------------+---------------+---------------| |ceil |erfcf |j0l(GLIBC_2.0) |remainderf |ynl(GLIBC_2.0) | |(GLIBC_2.0) |(GLIBC_2.0) |[10] |(GLIBC_2.0)[10]|[10] | |[11] |[10] | | | | +-----------------------------------------------------------------------------+ Table 16-28. libm - Math Data Interfaces +--------------------+ |signgam[11] | | | | | +--------------------+ ------------------------------------------------------------------------------- Data Definitions for libm ------------------------------------------------------------------------------- Interfaces for libpthread Table 16-29. libpthread Definition +-------------------------+ |Library:|libpthread | |--------+----------------| |SONAME: |libpthread.so.0 | +-------------------------+ The behavior of the interfaces in this library is specified by the following standards. Linux Standard Base[12] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606)[13] ------------------------------------------------------------------------------- Posix Threads Table 16-30. libpthread - Posix Threads Function Interfaces +----------------------------------------------------------------------------------------------------------------------------------------+ |pthread_attr_destroy |pthread_attr_setstackaddr|pthread_getspecific |pthread_once(GLIBC_2.0)[13] |pthread_setcanceltype | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |(GLIBC_2.0)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getdetachstate |pthread_attr_setstacksize|pthread_join(GLIBC_2.0)[13] |pthread_rwlock_destroy |pthread_setconcurrency| |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getguardsize |pthread_cancel(GLIBC_2.1)|pthread_key_create |pthread_rwlock_init |pthread_setschedparam | |(GLIBC_2.1)[13] |[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getinheritsched|pthread_cond_broadcast |pthread_key_delete |pthread_rwlock_rdlock |pthread_setspecific | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getschedparam |pthread_cond_destroy |pthread_kill(GLIBC_2.0)[13] |pthread_rwlock_timedrdlock |pthread_sigmask | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getschedpolicy |pthread_cond_init |pthread_mutex_destroy |pthread_rwlock_timedwrlock |pthread_testcancel | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getscope |pthread_cond_signal |pthread_mutex_init |pthread_rwlock_tryrdlock |sem_close(GLIBC_2.0) | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getstackaddr |pthread_cond_timedwait |pthread_mutex_lock |pthread_rwlock_trywrlock |sem_destroy(GLIBC_2.1)| |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_getstacksize |pthread_cond_wait |pthread_mutex_trylock |pthread_rwlock_unlock |sem_getvalue | |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_init(GLIBC_2.1)|pthread_condattr_destroy |pthread_mutex_unlock |pthread_rwlock_wrlock |sem_init(GLIBC_2.1) | |[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setdetachstate |pthread_condattr_init |pthread_mutexattr_destroy |pthread_rwlockattr_destroy |sem_open(GLIBC_2.0) | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setguardsize |pthread_create(GLIBC_2.1)|pthread_mutexattr_getpshared|pthread_rwlockattr_getpshared|sem_post(GLIBC_2.1) | |(GLIBC_2.1)[13] |[13] |(GLIBC_2.1)[13] |(GLIBC_2.1)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setinheritsched|pthread_detach(GLIBC_2.0)|pthread_mutexattr_gettype |pthread_rwlockattr_init |sem_timedwait | |(GLIBC_2.0)[13] |[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[12] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setschedparam |pthread_equal(GLIBC_2.0) |pthread_mutexattr_init |pthread_rwlockattr_setpshared|sem_trywait(GLIBC_2.0)| |(GLIBC_2.0)[13] |[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setschedpolicy |pthread_exit(GLIBC_2.0) |pthread_mutexattr_setpshared|pthread_self(GLIBC_2.0)[13] |sem_unlink(GLIBC_2.0) | |(GLIBC_2.0)[13] |[13] |(GLIBC_2.0)[13] | |[13] | |----------------------------+-------------------------+----------------------------+-----------------------------+----------------------| |pthread_attr_setscope |pthread_getschedparam |pthread_mutexattr_settype |pthread_setcancelstate |sem_wait(GLIBC_2.0) | |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |(GLIBC_2.0)[13] |[13] | +----------------------------------------------------------------------------------------------------------------------------------------+ ------------------------------------------------------------------------------- Data Definitions for libpthread ------------------------------------------------------------------------------- signal.h #define SIGUSR1 10 #define SIGUSR2 12 #define SIGSTKFLT 16 #define SIGCHLD 17 #define SIGCONT 18 #define SIGSTOP 19 #define SIGTSTP 20 #define SIGTTIN 21 #define SIGTTOU 22 #define SIGURG 23 #define SIGXCPU 24 #define SIGXFSZ 25 #define SIGVTALRM 26 #define SIGPROF 27 #define SIGWINCH 28 #define SIGIO 29 #define SIGPWR 30 #define SIGSYS 31 #define SIGUNUSED 31 #define SIGBUS 7 struct _fpreg { unsigned short significand[4]; unsigned short exponent; } ; struct _fpxreg { unsigned short significand[4]; unsigned short exponent; unsigned short padding[3]; } ; struct _xmmreg { unsigned long element[4]; } ; struct _fpstate { unsigned long cw; unsigned long sw; unsigned long tag; unsigned long ipoff; unsigned long cssel; unsigned long dataoff; unsigned long datasel; struct _fpreg _st[8]; unsigned short status; unsigned short magic; unsigned long _fxsr_env[6]; unsigned long mxcsr; unsigned long reserved; struct _fpxreg _fxsr_st[8]; struct _xmmreg _xmm[8]; unsigned long padding[56]; } ; struct sigcontext { unsigned short gs; unsigned short __gsh; unsigned short fs; unsigned short __fsh; unsigned short es; unsigned short __esh; unsigned short ds; unsigned short __dsh; unsigned long edi; unsigned long esi; unsigned long ebp; unsigned long esp; unsigned long ebx; unsigned long edx; unsigned long ecx; unsigned long eax; unsigned long trapno; unsigned long err; unsigned long eip; unsigned short cs; unsigned short __csh; unsigned long eflags; unsigned long esp_at_signal; unsigned short ss; unsigned short __ssh; struct _fpstate fpstate; unsigned long oldmask; unsigned long cr2; } ; ------------------------------------------------------------------------------- Interfaces for libdl Table 16-31. libdl Definition +--------------------+ |Library:|libdl | |--------+-----------| |SONAME: |libdl.so.2 | +--------------------+ ------------------------------------------------------------------------------- Dynamic Loader ------------------------------------------------------------------------------- Data Definitions for libdl ------------------------------------------------------------------------------- Interfaces for libcrypt Table 16-32. libcrypt Definition +-----------------------+ |Library:|libcrypt | |--------+--------------| |SONAME: |libcrypt.so.1 | +-----------------------+ ------------------------------------------------------------------------------- Encryption ------------------------------------------------------------------------------- Data Definitions for libcrypt VI. Package Format and Installation Table of Contents 17. Software Installation ------------------------------------------------------------------------------- Chapter 17. Software Installation ------------------------------------------------------------------------------- Package Architecture Considerations All packages must specify an architecture of i486. A LSB runtime environment must accept an architecture of i486 even if the native architecture is different. ------------------------------------------------------------------------------- Appendix A. Alphabetical Listing of Interfaces ------------------------------------------------------------------------------- libc The behaviour of the interfaces in this library is specified by the following Standards. Linux Standard Base Table A-1. libc Function Interfaces +--------------------------------------------------------+ |__divdi3(GLIBC_2.0)[4]|__udivdi3[4]|ioperm(GLIBC_2.0)[4]| |----------------------+------------+--------------------| |__moddi3[4] |__umoddi3[4]|iopl()[4] | +--------------------------------------------------------+ ------------------------------------------------------------------------------- Appendix B. GNU Free Documentation License Version 1.1, March 2000 Copyright (C) 2000 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ------------------------------------------------------------------------------- PREAMBLE The purpose of this License is to make a manual, textbook, or other written document "free" in the sense of freedom: to assure everyone the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others. This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the GNU General Public License, which is a copyleft license designed for free software. We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose is instruction or reference. ------------------------------------------------------------------------------- APPLICABILITY AND DEFINITIONS This License applies to any manual or other work that contains a notice placed by the copyright holder saying it can be distributed under the terms of this License. The "Document", below, refers to any such manual or work. Any member of the public is a licensee, and is addressed as "you". A "Modified Version" of the Document means any work containing the Document or a portion of it, either copied verbatim, or with modifications and/or translated into another language. A "Secondary Section" is a named appendix or a front-matter section of the Document that deals exclusively with the relationship of the publishers or authors of the Document to the Document's overall subject (or to related matters) and contains nothing that could fall directly within that overall subject. (For example, if the Document is in part a textbook of mathematics, a Secondary Section may not explain any mathematics.) The relationship could be a matter of historical connection with the subject or with related matters, or of legal, commercial, philosophical, ethical or political position regarding them. The "Invariant Sections" are certain Secondary Sections whose titles are designated, as being those of Invariant Sections, in the notice that says that the Document is released under this License. The "Cover Texts" are certain short passages of text that are listed, as Front-Cover Texts or Back-Cover Texts, in the notice that says that the Document is released under this License. A "Transparent" copy of the Document means a machine-readable copy, represented in a format whose specification is available to the general public, whose contents can be viewed and edited directly and straightforwardly with generic text editors or (for images composed of pixels) generic paint programs or (for drawings) some widely available drawing editor, and that is suitable for input to text formatters or for automatic translation to a variety of formats suitable for input to text formatters. A copy made in an otherwise Transparent file format whose markup has been designed to thwart or discourage subsequent modification by readers is not Transparent. A copy that is not "Transparent" is called "Opaque". Examples of suitable formats for Transparent copies include plain ASCII without markup, Texinfo input format, LaTeX input format, SGML or XML using a publicly available DTD, and standard-conforming simple HTML designed for human modification. Opaque formats include PostScript, PDF, proprietary formats that can be read and edited only by proprietary word processors, SGML or XML for which the DTD and/or processing tools are not generally available, and the machine-generated HTML produced by some word processors for output purposes only. The "Title Page" means, for a printed book, the title page itself, plus such following pages as are needed to hold, legibly, the material this License requires to appear in the title page. For works in formats which do not have any title page as such, "Title Page" means the text near the most prominent appearance of the work's title, preceding the beginning of the body of the text. ------------------------------------------------------------------------------- VERBATIM COPYING You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices, and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute. However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in section 3. You may also lend copies, under the same conditions stated above, and you may publicly display copies. ------------------------------------------------------------------------------- COPYING IN QUANTITY If you publish printed copies of the Document numbering more than 100, and the Document's license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in other respects. If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover, and continue the rest onto adjacent pages. If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy along with each Opaque copy, or state in or with each Opaque copy a publicly-accessible computer-network location containing a complete Transparent copy of the Document, free of added material, which the general network-using public has access to download anonymously at no charge using public-standard network protocols. If you use the latter option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or retailers) of that edition to the public. It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a chance to provide you with an updated version of the Document. ------------------------------------------------------------------------------- MODIFICATIONS You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version: A. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version gives permission. B. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together with at least five of the principal authors of the Document (all of its principal authors, if it has less than five). C. State on the Title page the name of the publisher of the Modified Version, as the publisher. D. Preserve all the copyright notices of the Document. E. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices. F. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this License, in the form shown in the Addendum below. G. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice. H. Include an unaltered copy of this License. I. Preserve the section entitled "History", and its title, and add to it an item stating at least the title, year, new authors, and publisher of the Modified Version as given on the Title Page. If there is no section entitled "History" in the Document, create one stating the title, year, authors, and publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence. J. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives permission. K. In any section entitled "Acknowledgements" or "Dedications", preserve the section's title, and preserve in the section all the substance and tone of each of the contributor acknowledgements and/or dedications given therein. L. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered part of the section titles. M. Delete any section entitled "Endorsements". Such a section may not be included in the Modified Version. N. Do not retitle any existing section as "Endorsements" or to conflict in title with any Invariant Section. If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the Modified Version's license notice. These titles must be distinct from any other section titles. You may add a section entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example, statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard. You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by) any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the old one. The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply endorsement of any Modified Version. ------------------------------------------------------------------------------- COMBINING DOCUMENTS You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions, provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant Sections of your combined work in its license notice. The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section titles in the list of Invariant Sections in the license notice of the combined work. In the combination, you must combine any sections entitled "History" in the various original documents, forming one section entitled "History"; likewise combine any sections entitled "Acknowledgements", and any sections entitled "Dedications". You must delete all sections entitled "Endorsements." ------------------------------------------------------------------------------- COLLECTIONS OF DOCUMENTS You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim copying of each of the documents in all other respects. You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into the extracted document, and follow this License in all other respects regarding verbatim copying of that document. ------------------------------------------------------------------------------- AGGREGATION WITH INDEPENDENT WORKS A compilation of the Document or its derivatives with other separate and independent documents or works, in or on a volume of a storage or distribution medium, does not as a whole count as a Modified Version of the Document, provided no compilation copyright is claimed for the compilation. Such a compilation is called an "aggregate", and this License does not apply to the other self-contained works thus compiled with the Document, on account of their being thus compiled, if they are not themselves derivative works of the Document. If the Cover Text requirement of section 3 is applicable to these copies of the Document, then if the Document is less than one quarter of the entire aggregate, the Document's Cover Texts may be placed on covers that surround only the Document within the aggregate. Otherwise they must appear on covers around the whole aggregate. ------------------------------------------------------------------------------- TRANSLATION Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in addition to the original versions of these Invariant Sections. You may include a translation of this License provided that you also include the original English version of this License. In case of a disagreement between the translation and the original English version of this License, the original English version will prevail. ------------------------------------------------------------------------------- TERMINATION You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify, sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. ------------------------------------------------------------------------------- FUTURE REVISIONS OF THIS LICENSE The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/. Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation. ------------------------------------------------------------------------------- How to use this License for your documents To use this License in a document you have written, include a copy of the License in the document and put the following copyright and license notices just after the title page: Copyright (c) YEAR YOUR NAME. Permission is granted to copy, distribute and /or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License". If you have no Invariant Sections, write "with no Invariant Sections" instead of saying which ones are invariant. If you have no Front-Cover Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being LIST"; likewise for Back-Cover Texts. If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software. Notes [1] ISO/IEC 9899: 1999, Programming Languages --C [2] Large File Support [3] LI18NUX 2000 Globalization Specification, Version 1.0 with Amendment 4 [4] Linux Standard Base [5] IEEE Std POSIX.1-1996 [ISO/IEC 9945-1:1996] [6] CAE Specification, February 1997, Networking Services (XNS), Issue 5 (ISBN: 1-85912-165-9, C523) [7] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606) [8] System V Interface Definition, Issue 3 (ISBN 0201566524) [9] System V Interface Definition,Fourth Edition [10] ISO/IEC 9899: 1999, Programming Languages --C [11] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606) [12] Linux Standard Base [13] CAE Specification, January 1997, System Interfaces and Headers (XSH), Issue 5 (ISBN: 1-85912-181-0, C606)