Linux Standard Base Core Module Specification for AMD64 2.0

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

Portions of the text are copyrighted by the following parties:

  • The Regents of the University of California

  • Free Software Foundation

  • Ian F. Darwin

  • Paul Vixie

  • BSDI (now Wind River)

  • Andrew G Morgan

  • Jean-loup Gailly and Mark Adler

  • Massachusetts Institute of Technology

These excerpts are being used in accordance with their respective licenses.

Linux is a trademark of Linus Torvalds.

UNIX a registered trademark of the Open Group in the United States and other countries.

LSB is a trademark of the Free Standards Group in the USA and other countries.

AMD is a trademark of Advanced Micro Devices, Inc.

Intel and Itanium are registered trademarks and Intel386 is a trademarks of Intel Corporation.

OpenGL is a registered trademark of Silicon Graphics, Inc.

Table of Contents
Specification Introduction
ELF Specification
Linux Standard Base Specification
Linux Packaging Specification

Foreword

This is version 2.0 of the Linux Standard Base Core Module Specification for AMD64. 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.


Introduction

The LSB defines a binary interface for application programs that are compiled and packaged for LSB-conforming implementations on many different hardware architectures. Since a binary specification shall include information specific to the computer processor architecture for which it is intended, it is not possible for a single document to specify the interface for all possible LSB-conforming implementations. Therefore, the LSB is a family of specifications, rather than a single one.

This document should be used in conjunction with the documents it references. This document enumerates the system components it includes, but descriptions of those components may be included entirely or partly in this document, partly in other documents, or entirely in other reference documents. For example, the section that describes system service routines includes a list of the system routines supported in this interface, formal declarations of the data structures they use that are visible to applications, and a pointer to the underlying referenced specification for information about the syntax and semantics of each call. Only those routines not described in standards referenced by this document, or extensions to those standards, are described in the detail. Information referenced in this way is as much a part of this document as is the information explicitly included here.

I. Introductory Elements


Chapter 1. Scope

General

The Linux Standard Base (LSB) defines a system interface for compiled applications and a minimal environment for support of installation scripts. Its purpose is to enable a uniform industry standard environment for high-volume applications conforming to the LSB.

These specifications are composed of two basic parts: A common specification ("LSB-generic") describing those parts of the interface that remain constant across all implementations of the LSB, and an architecture-specific specification ("LSB-arch") describing the parts of the interface that vary by processor architecture. Together, the LSB-generic and the architecture-specific supplement for a single hardware architecture provide a complete interface specification for compiled application programs on systems that share a common hardware architecture.

The LSB-generic document shall be used in conjunction with an architecture-specific supplement. Whenever a section of the LSB-generic specification shall be supplemented by architecture-specific information, the LSB-generic document includes a reference to the architecture supplement. Architecture supplements may also contain additional information that is not referenced in the LSB-generic document.

The LSB contains both a set of Application Program Interfaces (APIs) and Application Binary Interfaces (ABIs). APIs may appear in the source code of portable applications, while the compiled binary of that application may use the larger set of ABIs. A conforming implementation shall provide all of the ABIs listed here. The compilation system may replace (e.g. by macro definition) certain APIs with calls to one or more of the underlying binary interfaces, and may insert calls to binary interfaces as needed.

The LSB is primarily a binary interface definition. Not all of the source level APIs available to applications may be contained in this specification.


Module Specific Scope

This is the AMD64 architecture specific Core module of the Linux Standards Base (LSB). This module supplements the generic LSB Core module with those interfaces that differ between architectures.

Interfaces described in this module are mandatory except where explicitly listed otherwise. Core interfaces may be supplemented by other modules; all modules are built upon the core.


Chapter 2. Normative References

The specifications listed below are referenced in whole or in part by the Linux Standard Base. In this specification, where only a particular section of one of these references is identified, then the normative reference is to that section alone, and the rest of the referenced document is informative.

Table 2-1. Normative References

System V Application Binary Interface - DRAFT - 17 December 2003http://www.caldera.com/developers/gabi/2003-12-17/contents.html
DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993)http://www.eagercon.com/dwarf/dwarf-2.0.0.pdf
Filesystem Hierarchy Standard (FHS) 2.3http://www.pathname.com/fhs/
IEEE Standard 754 for Binary Floating-Point Arithmetichttp://www.ieee.org/
System V Application Binary Interface, Edition 4.1http://www.caldera.com/developers/devspecs/gabi41.pdf
ISO/IEC 9899: 1999, Programming Languages --C
Linux Assigned Names And Numbers Authorityhttp://www.lanana.org/
Large File Supporthttp://www.UNIX-systems.org/version2/whatsnew/lfs20mar.html
LI18NUX 2000 Globalization Specification, Version 1.0 with Amendment 4http://www.li18nux.org/docs/html/LI18NUX-2000-amd4.htm
Linux Standard Basehttp://www.linuxbase.org/spec/
OSF-RFC 86.0http://www.opengroup.org/tech/rfc/mirror-rfc/rfc86.0.txt
RFC 1833: Binding Protocols for ONC RPC Version 2http://www.ietf.org/rfc/rfc1833.txt
RFC 1952: GZIP file format specification version 4.3http://www.ietf.org/rfc/rfc1952.txt
RFC 2440: OpenPGP Message Formathttp://www.ietf.org/rfc/rfc2440.txt
CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018http://www.opengroup.org/publications/catalog/un.htm
The Single UNIX® Specification(SUS) Version 2, Commands and Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, C604)http://www.opengroup.org/publications/catalog/un.htm
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)http://www.opengroup.org/publications/catalog/un.htm
ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3http://www.unix.org/version3/
System V Interface Definition, Issue 3 (ISBN 0201566524)
System V Interface Definition,Fourth Edition
AMD64 Architecture Programmer's Manual, Volume 1: Application Programming 24592 3.08http://www.amd.com/us-en/Processors/DevelopWithAMD/
AMD64 Architecture Programmer's Manual, Volume 2: System Programming 24593 3.08http://www.amd.com/us-en/Processors/DevelopWithAMD/
AMD64 Architecture Programmer's Manual, Volume 3: General Purpose and System Instructions 24594 3.03http://www.amd.com/us-en/Processors/DevelopWithAMD/
AMD64 Architecture Programmer's Manual, Volume 4: 128-bit Media Instructions 26568 3.04http://www.amd.com/us-en/Processors/DevelopWithAMD/
AMD64 Architecture Programmer's Manual, Volume 5: 64-bit Media and x87 Floating-Point Instructions 26569 3.03http://www.amd.com/us-en/Processors/DevelopWithAMD/
System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90http://www.amd64.org/abi.pdf
zlib 1.2 Manualhttp://www.gzip.org/zlib/

Chapter 3. Requirements

Relevant Libraries

The libraries listed in Table 3-1 shall be available on x86-64 Linux Standard Base systems, with the specified runtime names. These names override or supplement the names specified in the generic LSB specification. The specified program interpreter, referred to as proginterp in this table, shall be used to load the shared libraries specified by DT_NEEDED entries at run time.

Table 3-1. Standard Library Names

LibraryRuntime Name
libmlibm.so.6
libdllibdl.so.2
libcryptlibcrypt.so.1
libzlibz.so.1
libncurseslibncurses.so.5
libutillibutil.so.1
libclibc.so.6
libpthreadlibpthread.so.0
proginterp/lib64/ld-lsb-x86-64.so.2
libgcc_slibgcc_s.so.1

These libraries will be in an implementation-defined directory which the dynamic linker shall search by default.


LSB Implementation Conformance

An implementation shall satisfy the following requirements:

  • The implementation shall implement fully the architecture described in the hardware manual for the target processor architecture.

  • The implementation shall be capable of executing compiled applications having the format and using the system interfaces described in this document.

  • The implementation shall provide libraries containing the interfaces specified by this document, and shall provide a dynamic linking mechanism that allows these interfaces to be attached to applications at runtime. All the interfaces shall behave as specified in this document.

  • The map of virtual memory provided by the implementation shall conform to the requirements of this document.

  • The implementation's low-level behavior with respect to function call linkage, system traps, signals, and other such activities shall conform to the formats described in this document.

  • The implementation shall provide all of the mandatory interfaces in their entirety.

  • The implementation may provide one or more of the optional interfaces. Each optional interface that is provided shall be provided in its entirety. The product documentation shall state which optional interfaces are provided.

  • The implementation shall provide all files and utilities specified as part of this document in the format defined here and in other referenced documents. All commands and utilities shall behave as required by this document. The implementation shall also provide all mandatory components of an application's runtime environment that are included or referenced in this document.

  • The implementation, when provided with standard data formats and values at a named interface, shall provide the behavior defined for those values and data formats at that interface. However, a conforming implementation may consist of components which are separately packaged and/or sold. For example, a vendor of a conforming implementation might sell the hardware, operating system, and windowing system as separately packaged items.

  • The implementation may provide additional interfaces with different names. It may also provide additional behavior corresponding to data values outside the standard ranges, for standard named interfaces.


LSB Application Conformance

An application shall satisfy the following requirements:

  • Its executable files are either shell scripts or object files in the format defined for the Object File Format system interface.

  • Its object files participate in dynamic linking as defined in the Program Loading and Linking System interface.

  • It employs only the instructions, traps, and other low-level facilities defined in the Low-Level System interface as being for use by applications.

  • If it requires any optional interface defined in this document in order to be installed or to execute successfully, the requirement for that optional interface is stated in the application's documentation.

  • It does not use any interface or data format that is not required to be provided by a conforming implementation, unless:

    • 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.

    • The use of that interface or data format, as well as its source, is identified in the documentation of the application.

  • It shall not use any values for a named interface that are reserved for vendor extensions.

A strictly conforming application 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.


Chapter 4. Definitions

For the purposes of this document, the following definitions, as specified in the ISO/IEC Directives, Part 2, 2001, 4th Edition, apply:

can

be able to; there is a possibility of; it is possible to

cannot

be unable to; there is no possibilty of; it is not possible to

may

is permitted; is allowed; is permissible

need not

it is not required that; no...is required

shall

is to; is required to; it is required that; has to; only...is permitted; it is necessary

shall not

is not allowed [permitted] [acceptable] [permissible]; is required to be not; is required that...be not; is not to be

should

it is recommended that; ought to

should not

it is not recommended that; ought not to


Chapter 5. Terminology

For the purposes of this document, the following terms apply:

archLSB

The architectural part of the LSB Specification which describes the specific parts of the interface that are platform specific. The archLSB is complementary to the gLSB.

Binary Standard

The total set of interfaces that are available to be used in the compiled binary code of a conforming application.

gLSB

The common part of the LSB Specification that describes those parts of the interface that remain constant across all hardware implementations of the LSB.

implementation-defined

Describes a value or behavior that is not defined by this document but is selected by an implementor. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence of the value or behavior. An application that relies on such a value or behavior cannot be assured to be portable across conforming implementations. The implementor shall document such a value or behavior so that it can be used correctly by an application.

Shell Script

A file that is read by an interpreter (e.g., awk). The first line of the shell script includes a reference to its interpreter binary.

Source Standard

The set of interfaces that are available to be used in the source code of a conforming application.

undefined

Describes the nature of a value or behavior not defined by this document which results from use of an invalid program construct or invalid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations.

unspecified

Describes the nature of a value or behavior not specified by this document which results from use of a valid program construct or valid data input. The value or behavior may vary among implementations that conform to this document. An application should not rely on the existence or validity of the value or behavior. An application that relies on any particular value or behavior cannot be assured to be portable across conforming implementations.


Chapter 1. Machine Interface

Processor Architecture

The AMD64 Architecture is specified by the following documents

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.

Only instructions which do not require elevated privileges may be used.

Applications may not make system calls directly. The interfaces in the C library must be used instead.

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.


Chapter 4. Process Initialization

LSB-conforming applications shall use the Process Initialization as defined in Chapter 3 of the System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90.


Chapter 7. Debug Information

The LSB does not currently specify the format of Debug information.

II. 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 - 17 December 2003 , System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90 and as supplemented by the Linux Standard Base and this document.

Table of Contents
8. ELF Header
9. Sections
10. Symbol Table
11. Relocation

Chapter 9. Sections


Special Sections

The following sections are defined in the System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90.

Table 9-1. ELF Special Sections

NameTypeAttributes
.gotSHT_PROGBITSSHF_ALLOC+SHF_WRITE
.pltSHT_PROGBITSSHF_ALLOC+SHF_EXECINSTR

.got

This section holds the global offset table

.plt

This section holds the procedure linkage table.


Additional Special Sections

The following additional sections are defined here.

Table 9-2. Additional Special Sections

NameTypeAttributes
.rela.dynSHT_RELASHF_ALLOC
.rela.pltSHT_RELASHF_ALLOC

.rela.dyn

This section holds RELA type relocation information for all sections of a shared library except the PLT

.rela.plt

This section holds RELA type relocation information for the PLT section of a shared library or dynamically linked application


Chapter 10. Symbol Table

LSB-conforming applications shall use the Symbol Table as defined in Chapter 4 of the System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90.


Chapter 11. Relocation

LSB-conforming applications shall use Relocations as defined in Chapter 4 of the System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90.

III. 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 - 17 December 2003 , System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90 and as supplemented by the Linux Standard Base and this document.


Chapter 12. Program Header


Chapter 13. Program Loading


Chapter 14. Dynamic Linking


Dynamic Section

The following dynamic entries are defined in the System V Application Binary Interface AMD64 Architecture Processor Supplement, Draft Version 0.90.

DT_JMPREL

This entry is associated with a table of relocation entries for the procedure linkage table. This entry is mandatory both for executable and shared object files

DT_PLTGOT

This entry's d_ptr member gives the address of the first byte in the procedure linkage table

DT_RELACOUNT

The number of relative relocations in .rela.dyn

List of Tables
1-1. libc Definition
1-2. libc - RPC Function Interfaces
1-3. libc - System Calls Function Interfaces
1-4. libc - Standard I/O Function Interfaces
1-5. libc - Standard I/O Data Interfaces
1-6. libc - Signal Handling Function Interfaces
1-7. libc - Signal Handling Data Interfaces
1-8. libc - Localization Functions Function Interfaces
1-9. libc - Localization Functions Data Interfaces
1-10. libc - Socket Interface Function Interfaces
1-11. libc - Socket Interface Deprecated Function Interfaces
1-12. libc - Wide Characters Function Interfaces
1-13. libc - String Functions Function Interfaces
1-14. libc - IPC Functions Function Interfaces
1-15. libc - Regular Expressions Function Interfaces
1-16. libc - Regular Expressions Deprecated Function Interfaces
1-17. libc - Regular Expressions Deprecated Data Interfaces
1-18. libc - Character Type Functions Function Interfaces
1-19. libc - Time Manipulation Function Interfaces
1-20. libc - Time Manipulation Deprecated Function Interfaces
1-21. libc - Time Manipulation Data Interfaces
1-22. libc - Terminal Interface Functions Function Interfaces
1-23. libc - System Database Interface Function Interfaces
1-24. libc - Language Support Function Interfaces
1-25. libc - Large File Support Function Interfaces
1-26. libc - Standard Library Function Interfaces
1-27. libc - Standard Library Data Interfaces
1-28. libm Definition
1-29. libm - Math Function Interfaces
1-30. libm - Math Data Interfaces
1-31. libpthread Definition
1-32. libpthread - Posix Threads Function Interfaces
1-33. libgcc_s Definition
1-34. libgcc_s - Unwind Library Function Interfaces
1-35. libdl Definition
1-36. libdl - Dynamic Loader Function Interfaces
1-37. libcrypt Definition
1-38. libcrypt - Encryption Function Interfaces
2-1. libz Definition
2-2. libncurses Definition
2-3. libutil Definition
2-4. libutil - Utility Functions Function Interfaces
A-1. libgcc_s Function Interfaces

I. Base Libraries

Table of Contents
1. Libraries

Chapter 1. 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 AMD64 platform are defined here. This section should be used in conjunction with the corresponding section in the Linux Standard Base Specification.


Program Interpreter/Dynamic Linker

The LSB specifies the Program Interpreter to be /lib64/ld-lsb-x86-64.so.2.


Interfaces for libc

Table 1-1 defines the library name and shared object name for the libc library

Table 1-1. libc Definition

Library:libc
SONAME:libc.so.6

The behavior of the interfaces in this library is specified by the following specifications:

Large File Support
Linux Standard Base
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)
ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3
System V Interface Definition, Issue 3 (ISBN 0201566524)
System V Interface Definition,Fourth Edition


RPC


Interfaces for RPC

An LSB conforming implementation shall provide the architecture specific functions for RPC specified in Table 1-2, with the full functionality as described in the referenced underlying specification.

Table 1-2. libc - RPC Function Interfaces

authnone_create(GLIBC_2.2.5) [1]pmap_unset(GLIBC_2.2.5) [2]svcerr_weakauth(GLIBC_2.2.5) [3]xdr_float(GLIBC_2.2.5) [3]xdr_u_char(GLIBC_2.2.5) [3]
clnt_create(GLIBC_2.2.5) [1]setdomainname(GLIBC_2.2.5) [2]svctcp_create(GLIBC_2.2.5) [2]xdr_free(GLIBC_2.2.5) [3]xdr_u_int(GLIBC_2.2.5) [2]
clnt_pcreateerror(GLIBC_2.2.5) [1]svc_getreqset(GLIBC_2.2.5) [3]svcudp_create(GLIBC_2.2.5) [2]xdr_int(GLIBC_2.2.5) [3]xdr_u_long(GLIBC_2.2.5) [3]
clnt_perrno(GLIBC_2.2.5) [1]svc_register(GLIBC_2.2.5) [2]xdr_accepted_reply(GLIBC_2.2.5) [3]xdr_long(GLIBC_2.2.5) [3]xdr_u_short(GLIBC_2.2.5) [3]
clnt_perror(GLIBC_2.2.5) [1]svc_run(GLIBC_2.2.5) [2]xdr_array(GLIBC_2.2.5) [3]xdr_opaque(GLIBC_2.2.5) [3]xdr_union(GLIBC_2.2.5) [3]
clnt_spcreateerror(GLIBC_2.2.5) [1]svc_sendreply(GLIBC_2.2.5) [2]xdr_bool(GLIBC_2.2.5) [3]xdr_opaque_auth(GLIBC_2.2.5) [3]xdr_vector(GLIBC_2.2.5) [3]
clnt_sperrno(GLIBC_2.2.5) [1]svcerr_auth(GLIBC_2.2.5) [3]xdr_bytes(GLIBC_2.2.5) [3]xdr_pointer(GLIBC_2.2.5) [3]xdr_void(GLIBC_2.2.5) [3]
clnt_sperror(GLIBC_2.2.5) [1]svcerr_decode(GLIBC_2.2.5) [3]xdr_callhdr(GLIBC_2.2.5) [3]xdr_reference(GLIBC_2.2.5) [3]xdr_wrapstring(GLIBC_2.2.5) [3]
getdomainname(GLIBC_2.2.5) [2]svcerr_noproc(GLIBC_2.2.5) [3]xdr_callmsg(GLIBC_2.2.5) [3]xdr_rejected_reply(GLIBC_2.2.5) [3]xdrmem_create(GLIBC_2.2.5) [3]
key_decryptsession(GLIBC_2.2.5) [3]svcerr_noprog(GLIBC_2.2.5) [3]xdr_char(GLIBC_2.2.5) [3]xdr_replymsg(GLIBC_2.2.5) [3]xdrrec_create(GLIBC_2.2.5) [3]
pmap_getport(GLIBC_2.2.5) [2]svcerr_progvers(GLIBC_2.2.5) [3]xdr_double(GLIBC_2.2.5) [3]xdr_short(GLIBC_2.2.5) [3]xdrrec_eof(GLIBC_2.2.5) [3]
pmap_set(GLIBC_2.2.5) [2]svcerr_systemerr(GLIBC_2.2.5) [3]xdr_enum(GLIBC_2.2.5) [3]xdr_string(GLIBC_2.2.5) [3] 

Referenced Specification(s)


System Calls


Interfaces for System Calls

An LSB conforming implementation shall provide the architecture specific functions for System Calls specified in Table 1-3, with the full functionality as described in the referenced underlying specification.

Table 1-3. libc - System Calls Function Interfaces

__fxstat(GLIBC_2.2.5) [1]fchmod(GLIBC_2.2.5) [2]getwd(GLIBC_2.2.5) [2]read(GLIBC_2.2.5) [2]setrlimit(GLIBC_2.2.5) [2]
__getpgid(GLIBC_2.2.5) [1]fchown(GLIBC_2.2.5) [2]initgroups(GLIBC_2.2.5) [1]readdir(GLIBC_2.2.5) [2]setrlimit64(GLIBC_2.2.5) [3]
__lxstat(GLIBC_2.2.5) [1]fcntl(GLIBC_2.2.5) [1]ioctl(GLIBC_2.2.5) [1]readdir_r(GLIBC_2.2.5) [2]setsid(GLIBC_2.2.5) [2]
__xmknod(GLIBC_2.2.5) [1]fdatasync(GLIBC_2.2.5) [2]kill(GLIBC_2.2.5) [1]readlink(GLIBC_2.2.5) [2]setuid(GLIBC_2.2.5) [2]
__xstat(GLIBC_2.2.5) [1]flock(GLIBC_2.2.5) [1]killpg(GLIBC_2.2.5) [2]readv(GLIBC_2.2.5) [2]sleep(GLIBC_2.2.5) [2]
access(GLIBC_2.2.5) [2]fork(GLIBC_2.2.5) [2]lchown(GLIBC_2.2.5) [2]rename(GLIBC_2.2.5) [2]statvfs(GLIBC_2.2.5) [2]
acct(GLIBC_2.2.5) [1]fstatvfs(GLIBC_2.2.5) [2]link(GLIBC_2.2.5) [2]rmdir(GLIBC_2.2.5) [2]stime(GLIBC_2.2.5) [1]
alarm(GLIBC_2.2.5) [2]fsync(GLIBC_2.2.5) [2]lockf(GLIBC_2.2.5) [2]sbrk(GLIBC_2.2.5) [4]symlink(GLIBC_2.2.5) [2]
brk(GLIBC_2.2.5) [4]ftime(GLIBC_2.2.5) [2]lseek(GLIBC_2.2.5) [2]sched_get_priority_max(GLIBC_2.2.5) [2]sync(GLIBC_2.2.5) [2]
chdir(GLIBC_2.2.5) [2]ftruncate(GLIBC_2.2.5) [2]mkdir(GLIBC_2.2.5) [2]sched_get_priority_min(GLIBC_2.2.5) [2]sysconf(GLIBC_2.2.5) [2]
chmod(GLIBC_2.2.5) [2]getcontext(GLIBC_2.2.5) [2]mkfifo(GLIBC_2.2.5) [2]sched_getparam(GLIBC_2.2.5) [2]time(GLIBC_2.2.5) [2]
chown(GLIBC_2.2.5) [2]getegid(GLIBC_2.2.5) [2]mlock(GLIBC_2.2.5) [2]sched_getscheduler(GLIBC_2.2.5) [2]times(GLIBC_2.2.5) [2]
chroot(GLIBC_2.2.5) [4]geteuid(GLIBC_2.2.5) [2]mlockall(GLIBC_2.2.5) [2]sched_rr_get_interval(GLIBC_2.2.5) [2]truncate(GLIBC_2.2.5) [2]
clock(GLIBC_2.2.5) [2]getgid(GLIBC_2.2.5) [2]mmap(GLIBC_2.2.5) [2]sched_setparam(GLIBC_2.2.5) [2]ulimit(GLIBC_2.2.5) [2]
close(GLIBC_2.2.5) [2]getgroups(GLIBC_2.2.5) [2]mprotect(GLIBC_2.2.5) [2]sched_setscheduler(GLIBC_2.2.5) [2]umask(GLIBC_2.2.5) [2]
closedir(GLIBC_2.2.5) [2]getitimer(GLIBC_2.2.5) [2]msync(GLIBC_2.2.5) [2]sched_yield(GLIBC_2.2.5) [2]uname(GLIBC_2.2.5) [2]
creat(GLIBC_2.2.5) [1]getloadavg(GLIBC_2.2.5) [1]munlock(GLIBC_2.2.5) [2]select(GLIBC_2.2.5) [2]unlink(GLIBC_2.2.5) [1]
dup(GLIBC_2.2.5) [2]getpagesize(GLIBC_2.2.5) [4]munlockall(GLIBC_2.2.5) [2]setcontext(GLIBC_2.2.5) [2]utime(GLIBC_2.2.5) [2]
dup2(GLIBC_2.2.5) [2]getpgid(GLIBC_2.2.5) [2]munmap(GLIBC_2.2.5) [2]setegid(GLIBC_2.2.5) [2]utimes(GLIBC_2.2.5) [2]
execl(GLIBC_2.2.5) [2]getpgrp(GLIBC_2.2.5) [2]nanosleep(GLIBC_2.2.5) [2]seteuid(GLIBC_2.2.5) [2]vfork(GLIBC_2.2.5) [2]
execle(GLIBC_2.2.5) [2]getpid(GLIBC_2.2.5) [2]nice(GLIBC_2.2.5) [2]setgid(GLIBC_2.2.5) [2]wait(GLIBC_2.2.5) [2]
execlp(GLIBC_2.2.5) [2]getppid(GLIBC_2.2.5) [2]open(GLIBC_2.2.5) [1]setitimer(GLIBC_2.2.5) [2]wait3(GLIBC_2.2.5) [1]
execv(GLIBC_2.2.5) [2]getpriority(GLIBC_2.2.5) [2]opendir(GLIBC_2.2.5) [2]setpgid(GLIBC_2.2.5) [2]wait4(GLIBC_2.2.5) [1]
execve(GLIBC_2.2.5) [2]getrlimit(GLIBC_2.2.5) [2]pathconf(GLIBC_2.2.5) [2]setpgrp(GLIBC_2.2.5) [2]waitpid(GLIBC_2.2.5) [1]
execvp(GLIBC_2.2.5) [2]getrusage(GLIBC_2.2.5) [2]pause(GLIBC_2.2.5) [2]setpriority(GLIBC_2.2.5) [2]write(GLIBC_2.2.5) [2]
exit(GLIBC_2.2.5) [2]getsid(GLIBC_2.2.5) [2]pipe(GLIBC_2.2.5) [2]setregid(GLIBC_2.2.5) [2]writev(GLIBC_2.2.5) [2]
fchdir(GLIBC_2.2.5) [2]getuid(GLIBC_2.2.5) [2]poll(GLIBC_2.2.5) [2]setreuid(GLIBC_2.2.5) [2] 

Referenced Specification(s)


Standard I/O


Interfaces for Standard I/O

An LSB conforming implementation shall provide the architecture specific functions for Standard I/O specified in Table 1-4, with the full functionality as described in the referenced underlying specification.

Table 1-4. libc - Standard I/O Function Interfaces

_IO_feof(GLIBC_2.2.5) [1]fgetpos(GLIBC_2.2.5) [2]fsetpos(GLIBC_2.2.5) [2]putchar(GLIBC_2.2.5) [2]sscanf(GLIBC_2.2.5) [2]
_IO_getc(GLIBC_2.2.5) [1]fgets(GLIBC_2.2.5) [2]ftell(GLIBC_2.2.5) [2]putchar_unlocked(GLIBC_2.2.5) [2]telldir(GLIBC_2.2.5) [2]
_IO_putc(GLIBC_2.2.5) [1]fgetwc_unlocked(GLIBC_2.2.5) [1]ftello(GLIBC_2.2.5) [2]puts(GLIBC_2.2.5) [2]tempnam(GLIBC_2.2.5) [2]
_IO_puts(GLIBC_2.2.5) [1]fileno(GLIBC_2.2.5) [2]fwrite(GLIBC_2.2.5) [2]putw(GLIBC_2.2.5) [3]ungetc(GLIBC_2.2.5) [2]
asprintf(GLIBC_2.2.5) [1]flockfile(GLIBC_2.2.5) [2]getc(GLIBC_2.2.5) [2]remove(GLIBC_2.2.5) [2]vasprintf(GLIBC_2.2.5) [1]
clearerr(GLIBC_2.2.5) [2]fopen(GLIBC_2.2.5) [1]getc_unlocked(GLIBC_2.2.5) [2]rewind(GLIBC_2.2.5) [2]vdprintf(GLIBC_2.2.5) [1]
ctermid(GLIBC_2.2.5) [2]fprintf(GLIBC_2.2.5) [2]getchar(GLIBC_2.2.5) [2]rewinddir(GLIBC_2.2.5) [2]vfprintf(GLIBC_2.2.5) [2]
fclose(GLIBC_2.2.5) [2]fputc(GLIBC_2.2.5) [2]getchar_unlocked(GLIBC_2.2.5) [2]scanf(GLIBC_2.2.5) [2]vprintf(GLIBC_2.2.5) [2]
fdopen(GLIBC_2.2.5) [2]fputs(GLIBC_2.2.5) [2]getw(GLIBC_2.2.5) [3]seekdir(GLIBC_2.2.5) [2]vsnprintf(GLIBC_2.2.5) [2]
feof(GLIBC_2.2.5) [2]fread(GLIBC_2.2.5) [2]pclose(GLIBC_2.2.5) [2]setbuf(GLIBC_2.2.5) [2]vsprintf(GLIBC_2.2.5) [2]
ferror(GLIBC_2.2.5) [2]freopen(GLIBC_2.2.5) [1]popen(GLIBC_2.2.5) [2]setbuffer(GLIBC_2.2.5) [1] 
fflush(GLIBC_2.2.5) [2]fscanf(GLIBC_2.2.5) [2]printf(GLIBC_2.2.5) [2]setvbuf(GLIBC_2.2.5) [2] 
fflush_unlocked(GLIBC_2.2.5) [1]fseek(GLIBC_2.2.5) [2]putc(GLIBC_2.2.5) [2]snprintf(GLIBC_2.2.5) [2] 
fgetc(GLIBC_2.2.5) [2]fseeko(GLIBC_2.2.5) [2]putc_unlocked(GLIBC_2.2.5) [2]sprintf(GLIBC_2.2.5) [2] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Standard I/O specified in Table 1-5, with the full functionality as described in the referenced underlying specification.

Table 1-5. libc - Standard I/O Data Interfaces

stderr(GLIBC_2.2.5) [1]stdin(GLIBC_2.2.5) [1]stdout(GLIBC_2.2.5) [1]  

Referenced Specification(s)


Signal Handling


Interfaces for Signal Handling

An LSB conforming implementation shall provide the architecture specific functions for Signal Handling specified in Table 1-6, with the full functionality as described in the referenced underlying specification.

Table 1-6. libc - Signal Handling Function Interfaces

__libc_current_sigrtmax(GLIBC_2.2.5) [1]sigaddset(GLIBC_2.2.5) [2]sighold(GLIBC_2.2.5) [2]sigpause(GLIBC_2.2.5) [2]sigsuspend(GLIBC_2.2.5) [2]
__libc_current_sigrtmin(GLIBC_2.2.5) [1]sigaltstack(GLIBC_2.2.5) [2]sigignore(GLIBC_2.2.5) [2]sigpending(GLIBC_2.2.5) [2]sigtimedwait(GLIBC_2.2.5) [2]
__sigsetjmp(GLIBC_2.2.5) [1]sigandset(GLIBC_2.2.5) [1]siginterrupt(GLIBC_2.2.5) [2]sigprocmask(GLIBC_2.2.5) [2]sigwait(GLIBC_2.2.5) [2]
__sysv_signal(GLIBC_2.2.5) [1]sigblock(GLIBC_2.2.5) [1]sigisemptyset(GLIBC_2.2.5) [1]sigqueue(GLIBC_2.2.5) [2]sigwaitinfo(GLIBC_2.2.5) [2]
bsd_signal(GLIBC_2.2.5) [2]sigdelset(GLIBC_2.2.5) [2]sigismember(GLIBC_2.2.5) [2]sigrelse(GLIBC_2.2.5) [2] 
psignal(GLIBC_2.2.5) [1]sigemptyset(GLIBC_2.2.5) [2]siglongjmp(GLIBC_2.2.5) [2]sigreturn(GLIBC_2.2.5) [1] 
raise(GLIBC_2.2.5) [2]sigfillset(GLIBC_2.2.5) [2]signal(GLIBC_2.2.5) [2]sigset(GLIBC_2.2.5) [2] 
sigaction(GLIBC_2.2.5) [2]siggetmask(GLIBC_2.2.5) [1]sigorset(GLIBC_2.2.5) [1]sigstack(GLIBC_2.2.5) [3] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Signal Handling specified in Table 1-7, with the full functionality as described in the referenced underlying specification.

Table 1-7. libc - Signal Handling Data Interfaces

_sys_siglist(GLIBC_2.3.3) [1]    

Referenced Specification(s)


Localization Functions


Interfaces for Localization Functions

An LSB conforming implementation shall provide the architecture specific functions for Localization Functions specified in Table 1-8, with the full functionality as described in the referenced underlying specification.

Table 1-8. libc - Localization Functions Function Interfaces

bind_textdomain_codeset(GLIBC_2.2.5) [1]catopen(GLIBC_2.2.5) [2]dngettext(GLIBC_2.2.5) [1]iconv_open(GLIBC_2.2.5) [2]setlocale(GLIBC_2.2.5) [2]
bindtextdomain(GLIBC_2.2.5) [1]dcgettext(GLIBC_2.2.5) [1]gettext(GLIBC_2.2.5) [1]localeconv(GLIBC_2.2.5) [2]textdomain(GLIBC_2.2.5) [1]
catclose(GLIBC_2.2.5) [2]dcngettext(GLIBC_2.2.5) [1]iconv(GLIBC_2.2.5) [2]ngettext(GLIBC_2.2.5) [1] 
catgets(GLIBC_2.2.5) [2]dgettext(GLIBC_2.2.5) [1]iconv_close(GLIBC_2.2.5) [2]nl_langinfo(GLIBC_2.2.5) [2] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Localization Functions specified in Table 1-9, with the full functionality as described in the referenced underlying specification.

Table 1-9. libc - Localization Functions Data Interfaces

_nl_msg_cat_cntr(GLIBC_2.2.5) [1]    

Referenced Specification(s)


Socket Interface


Interfaces for Socket Interface

An LSB conforming implementation shall provide the architecture specific functions for Socket Interface specified in Table 1-10, with the full functionality as described in the referenced underlying specification.

Table 1-10. libc - Socket Interface Function Interfaces

__h_errno_location(GLIBC_2.2.5) [1]gethostid(GLIBC_2.2.5) [2]listen(GLIBC_2.2.5) [2]sendmsg(GLIBC_2.2.5) [2]socketpair(GLIBC_2.2.5) [2]
accept(GLIBC_2.2.5) [2]gethostname(GLIBC_2.2.5) [2]recv(GLIBC_2.2.5) [2]sendto(GLIBC_2.2.5) [2] 
bind(GLIBC_2.2.5) [2]getpeername(GLIBC_2.2.5) [2]recvfrom(GLIBC_2.2.5) [2]setsockopt(GLIBC_2.2.5) [1] 
bindresvport(GLIBC_2.2.5) [1]getsockname(GLIBC_2.2.5) [2]recvmsg(GLIBC_2.2.5) [2]shutdown(GLIBC_2.2.5) [2] 
connect(GLIBC_2.2.5) [2]getsockopt(GLIBC_2.2.5) [2]send(GLIBC_2.2.5) [2]socket(GLIBC_2.2.5) [2] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific deprecated functions for Socket Interface specified in Table 1-11, with the full functionality as described in the referenced underlying specification.

Note

These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 1-11. libc - Socket Interface Deprecated Function Interfaces

gethostbyname_r(GLIBC_2.2.5) [1]    

Referenced Specification(s)


Wide Characters


Interfaces for Wide Characters

An LSB conforming implementation shall provide the architecture specific functions for Wide Characters specified in Table 1-12, with the full functionality as described in the referenced underlying specification.

Table 1-12. libc - Wide Characters Function Interfaces

__wcstod_internal(GLIBC_2.2.5) [1]mbsinit(GLIBC_2.2.5) [2]vwscanf(GLIBC_2.2.5) [2]wcsnlen(GLIBC_2.2.5) [1]wcstoumax(GLIBC_2.2.5) [2]
__wcstof_internal(GLIBC_2.2.5) [1]mbsnrtowcs(GLIBC_2.2.5) [1]wcpcpy(GLIBC_2.2.5) [1]wcsnrtombs(GLIBC_2.2.5) [1]wcstouq(GLIBC_2.2.5) [1]
__wcstol_internal(GLIBC_2.2.5) [1]mbsrtowcs(GLIBC_2.2.5) [2]wcpncpy(GLIBC_2.2.5) [1]wcspbrk(GLIBC_2.2.5) [2]wcswcs(GLIBC_2.2.5) [2]
__wcstold_internal(GLIBC_2.2.5) [1]mbstowcs(GLIBC_2.2.5) [2]wcrtomb(GLIBC_2.2.5) [2]wcsrchr(GLIBC_2.2.5) [2]wcswidth(GLIBC_2.2.5) [2]
__wcstoul_internal(GLIBC_2.2.5) [1]mbtowc(GLIBC_2.2.5) [2]wcscasecmp(GLIBC_2.2.5) [1]wcsrtombs(GLIBC_2.2.5) [2]wcsxfrm(GLIBC_2.2.5) [2]
btowc(GLIBC_2.2.5) [2]putwc(GLIBC_2.2.5) [2]wcscat(GLIBC_2.2.5) [2]wcsspn(GLIBC_2.2.5) [2]wctob(GLIBC_2.2.5) [2]
fgetwc(GLIBC_2.2.5) [2]putwchar(GLIBC_2.2.5) [2]wcschr(GLIBC_2.2.5) [2]wcsstr(GLIBC_2.2.5) [2]wctomb(GLIBC_2.2.5) [2]
fgetws(GLIBC_2.2.5) [2]swprintf(GLIBC_2.2.5) [2]wcscmp(GLIBC_2.2.5) [2]wcstod(GLIBC_2.2.5) [2]wctrans(GLIBC_2.2.5) [2]
fputwc(GLIBC_2.2.5) [2]swscanf(GLIBC_2.2.5) [2]wcscoll(GLIBC_2.2.5) [2]wcstof(GLIBC_2.2.5) [2]wctype(GLIBC_2.2.5) [2]
fputws(GLIBC_2.2.5) [2]towctrans(GLIBC_2.2.5) [2]wcscpy(GLIBC_2.2.5) [2]wcstoimax(GLIBC_2.2.5) [2]wcwidth(GLIBC_2.2.5) [2]
fwide(GLIBC_2.2.5) [2]towlower(GLIBC_2.2.5) [2]wcscspn(GLIBC_2.2.5) [2]wcstok(GLIBC_2.2.5) [2]wmemchr(GLIBC_2.2.5) [2]
fwprintf(GLIBC_2.2.5) [2]towupper(GLIBC_2.2.5) [2]wcsdup(GLIBC_2.2.5) [1]wcstol(GLIBC_2.2.5) [2]wmemcmp(GLIBC_2.2.5) [2]
fwscanf(GLIBC_2.2.5) [2]ungetwc(GLIBC_2.2.5) [2]wcsftime(GLIBC_2.2.5) [2]wcstold(GLIBC_2.2.5) [2]wmemcpy(GLIBC_2.2.5) [2]
getwc(GLIBC_2.2.5) [2]vfwprintf(GLIBC_2.2.5) [2]wcslen(GLIBC_2.2.5) [2]wcstoll(GLIBC_2.2.5) [2]wmemmove(GLIBC_2.2.5) [2]
getwchar(GLIBC_2.2.5) [2]vfwscanf(GLIBC_2.2.5) [2]wcsncasecmp(GLIBC_2.2.5) [1]wcstombs(GLIBC_2.2.5) [2]wmemset(GLIBC_2.2.5) [2]
mblen(GLIBC_2.2.5) [2]vswprintf(GLIBC_2.2.5) [2]wcsncat(GLIBC_2.2.5) [2]wcstoq(GLIBC_2.2.5) [1]wprintf(GLIBC_2.2.5) [2]
mbrlen(GLIBC_2.2.5) [2]vswscanf(GLIBC_2.2.5) [2]wcsncmp(GLIBC_2.2.5) [2]wcstoul(GLIBC_2.2.5) [2]wscanf(GLIBC_2.2.5) [2]
mbrtowc(GLIBC_2.2.5) [2]vwprintf(GLIBC_2.2.5) [2]wcsncpy(GLIBC_2.2.5) [2]wcstoull(GLIBC_2.2.5) [2] 

Referenced Specification(s)


String Functions


Interfaces for String Functions

An LSB conforming implementation shall provide the architecture specific functions for String Functions specified in Table 1-13, with the full functionality as described in the referenced underlying specification.

Table 1-13. libc - String Functions Function Interfaces

__mempcpy(GLIBC_2.2.5) [1]bzero(GLIBC_2.2.5) [2]strcasestr(GLIBC_2.2.5) [1]strncasecmp(GLIBC_2.2.5) [2]strtoimax(GLIBC_2.2.5) [2]
__rawmemchr(GLIBC_2.2.5) [1]ffs(GLIBC_2.2.5) [2]strcat(GLIBC_2.2.5) [2]strncat(GLIBC_2.2.5) [2]strtok(GLIBC_2.2.5) [2]
__stpcpy(GLIBC_2.2.5) [1]index(GLIBC_2.2.5) [2]strchr(GLIBC_2.2.5) [2]strncmp(GLIBC_2.2.5) [2]strtok_r(GLIBC_2.2.5) [1]
__strdup(GLIBC_2.2.5) [1]memccpy(GLIBC_2.2.5) [2]strcmp(GLIBC_2.2.5) [2]strncpy(GLIBC_2.2.5) [2]strtold(GLIBC_2.2.5) [2]
__strtod_internal(GLIBC_2.2.5) [1]memchr(GLIBC_2.2.5) [2]strcoll(GLIBC_2.2.5) [2]strndup(GLIBC_2.2.5) [1]strtoll(GLIBC_2.2.5) [2]
__strtof_internal(GLIBC_2.2.5) [1]memcmp(GLIBC_2.2.5) [2]strcpy(GLIBC_2.2.5) [2]strnlen(GLIBC_2.2.5) [1]strtoq(GLIBC_2.2.5) [1]
__strtok_r(GLIBC_2.2.5) [1]memcpy(GLIBC_2.2.5) [2]strcspn(GLIBC_2.2.5) [2]strpbrk(GLIBC_2.2.5) [2]strtoull(GLIBC_2.2.5) [2]
__strtol_internal(GLIBC_2.2.5) [1]memmove(GLIBC_2.2.5) [2]strdup(GLIBC_2.2.5) [2]strptime(GLIBC_2.2.5) [1]strtoumax(GLIBC_2.2.5) [2]
__strtold_internal(GLIBC_2.2.5) [1]memrchr(GLIBC_2.2.5) [1]strerror(GLIBC_2.2.5) [2]strrchr(GLIBC_2.2.5) [2]strtouq(GLIBC_2.2.5) [1]
__strtoll_internal(GLIBC_2.2.5) [1]memset(GLIBC_2.2.5) [2]strerror_r(GLIBC_2.2.5) [1]strsep(GLIBC_2.2.5) [1]strverscmp(GLIBC_2.2.5) [1]
__strtoul_internal(GLIBC_2.2.5) [1]rindex(GLIBC_2.2.5) [2]strfmon(GLIBC_2.2.5) [2]strsignal(GLIBC_2.2.5) [1]strxfrm(GLIBC_2.2.5) [2]
__strtoull_internal(GLIBC_2.2.5) [1]stpcpy(GLIBC_2.2.5) [1]strfry(GLIBC_2.2.5) [1]strspn(GLIBC_2.2.5) [2]swab(GLIBC_2.2.5) [2]
bcmp(GLIBC_2.2.5) [2]stpncpy(GLIBC_2.2.5) [1]strftime(GLIBC_2.2.5) [2]strstr(GLIBC_2.2.5) [2] 
bcopy(GLIBC_2.2.5) [2]strcasecmp(GLIBC_2.2.5) [2]strlen(GLIBC_2.2.5) [2]strtof(GLIBC_2.2.5) [2] 

Referenced Specification(s)


IPC Functions


Interfaces for IPC Functions

An LSB conforming implementation shall provide the architecture specific functions for IPC Functions specified in Table 1-14, with the full functionality as described in the referenced underlying specification.

Table 1-14. libc - IPC Functions Function Interfaces

ftok(GLIBC_2.2.5) [1]msgrcv(GLIBC_2.2.5) [1]semget(GLIBC_2.2.5) [1]shmctl(GLIBC_2.2.5) [1] 
msgctl(GLIBC_2.2.5) [1]msgsnd(GLIBC_2.2.5) [1]semop(GLIBC_2.2.5) [1]shmdt(GLIBC_2.2.5) [1] 
msgget(GLIBC_2.2.5) [1]semctl(GLIBC_2.2.5) [1]shmat(GLIBC_2.2.5) [1]shmget(GLIBC_2.2.5) [1] 

Referenced Specification(s)


Regular Expressions


Interfaces for Regular Expressions

An LSB conforming implementation shall provide the architecture specific functions for Regular Expressions specified in Table 1-15, with the full functionality as described in the referenced underlying specification.

Table 1-15. libc - Regular Expressions Function Interfaces

regcomp(GLIBC_2.2.5) [1]regerror(GLIBC_2.2.5) [1]regexec(GLIBC_2.2.5) [1]regfree(GLIBC_2.2.5) [1] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific deprecated functions for Regular Expressions specified in Table 1-16, with the full functionality as described in the referenced underlying specification.

Note

These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 1-16. libc - Regular Expressions Deprecated Function Interfaces

advance(GLIBC_2.2.5) [1]re_comp(GLIBC_2.2.5) [1]re_exec(GLIBC_2.2.5) [1]step(GLIBC_2.2.5) [1] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific deprecated data interfaces for Regular Expressions specified in Table 1-17, with the full functionality as described in the referenced underlying specification.

Note

These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 1-17. libc - Regular Expressions Deprecated Data Interfaces

loc1(GLIBC_2.2.5) [1]loc2(GLIBC_2.2.5) [1]locs(GLIBC_2.2.5) [1]  

Referenced Specification(s)


Character Type Functions


Interfaces for Character Type Functions

An LSB conforming implementation shall provide the architecture specific functions for Character Type Functions specified in Table 1-18, with the full functionality as described in the referenced underlying specification.

Table 1-18. libc - Character Type Functions Function Interfaces

__ctype_get_mb_cur_max(GLIBC_2.2.5) [1]isdigit(GLIBC_2.2.5) [2]iswalnum(GLIBC_2.2.5) [2]iswlower(GLIBC_2.2.5) [2]toascii(GLIBC_2.2.5) [2]
_tolower(GLIBC_2.2.5) [2]isgraph(GLIBC_2.2.5) [2]iswalpha(GLIBC_2.2.5) [2]iswprint(GLIBC_2.2.5) [2]tolower(GLIBC_2.2.5) [2]
_toupper(GLIBC_2.2.5) [2]islower(GLIBC_2.2.5) [2]iswblank(GLIBC_2.2.5) [2]iswpunct(GLIBC_2.2.5) [2]toupper(GLIBC_2.2.5) [2]
isalnum(GLIBC_2.2.5) [2]isprint(GLIBC_2.2.5) [2]iswcntrl(GLIBC_2.2.5) [2]iswspace(GLIBC_2.2.5) [2] 
isalpha(GLIBC_2.2.5) [2]ispunct(GLIBC_2.2.5) [2]iswctype(GLIBC_2.2.5) [1]iswupper(GLIBC_2.2.5) [2] 
isascii(GLIBC_2.2.5) [2]isspace(GLIBC_2.2.5) [2]iswdigit(GLIBC_2.2.5) [2]iswxdigit(GLIBC_2.2.5) [2] 
iscntrl(GLIBC_2.2.5) [2]isupper(GLIBC_2.2.5) [2]iswgraph(GLIBC_2.2.5) [2]isxdigit(GLIBC_2.2.5) [2] 

Referenced Specification(s)


Time Manipulation


Interfaces for Time Manipulation

An LSB conforming implementation shall provide the architecture specific functions for Time Manipulation specified in Table 1-19, with the full functionality as described in the referenced underlying specification.

Table 1-19. libc - Time Manipulation Function Interfaces

adjtime(GLIBC_2.2.5) [1]ctime(GLIBC_2.2.5) [2]gmtime(GLIBC_2.2.5) [2]localtime_r(GLIBC_2.2.5) [2]ualarm(GLIBC_2.2.5) [2]
asctime(GLIBC_2.2.5) [2]ctime_r(GLIBC_2.2.5) [2]gmtime_r(GLIBC_2.2.5) [2]mktime(GLIBC_2.2.5) [2] 
asctime_r(GLIBC_2.2.5) [2]difftime(GLIBC_2.2.5) [2]localtime(GLIBC_2.2.5) [2]tzset(GLIBC_2.2.5) [2] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific deprecated functions for Time Manipulation specified in Table 1-20, with the full functionality as described in the referenced underlying specification.

Note

These interfaces are deprecated, and applications should avoid using them. These interfaces may be withdrawn in future releases of this specification.

Table 1-20. libc - Time Manipulation Deprecated Function Interfaces

adjtimex(GLIBC_2.2.5) [1]    

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Time Manipulation specified in Table 1-21, with the full functionality as described in the referenced underlying specification.

Table 1-21. libc - Time Manipulation Data Interfaces

__daylight(GLIBC_2.2.5) [1]__tzname(GLIBC_2.2.5) [1]timezone(GLIBC_2.2.5) [2]  
__timezone(GLIBC_2.2.5) [1]daylight(GLIBC_2.2.5) [2]tzname(GLIBC_2.2.5) [2]  

Referenced Specification(s)


Terminal Interface Functions


Interfaces for Terminal Interface Functions

An LSB conforming implementation shall provide the architecture specific functions for Terminal Interface Functions specified in Table 1-22, with the full functionality as described in the referenced underlying specification.

Table 1-22. libc - Terminal Interface Functions Function Interfaces

cfgetispeed(GLIBC_2.2.5) [1]cfsetispeed(GLIBC_2.2.5) [1]tcdrain(GLIBC_2.2.5) [1]tcgetattr(GLIBC_2.2.5) [1]tcsendbreak(GLIBC_2.2.5) [1]
cfgetospeed(GLIBC_2.2.5) [1]cfsetospeed(GLIBC_2.2.5) [1]tcflow(GLIBC_2.2.5) [1]tcgetpgrp(GLIBC_2.2.5) [1]tcsetattr(GLIBC_2.2.5) [1]
cfmakeraw(GLIBC_2.2.5) [2]cfsetspeed(GLIBC_2.2.5) [2]tcflush(GLIBC_2.2.5) [1]tcgetsid(GLIBC_2.2.5) [1]tcsetpgrp(GLIBC_2.2.5) [1]

Referenced Specification(s)


System Database Interface


Interfaces for System Database Interface

An LSB conforming implementation shall provide the architecture specific functions for System Database Interface specified in Table 1-23, with the full functionality as described in the referenced underlying specification.

Table 1-23. libc - System Database Interface Function Interfaces

endgrent(GLIBC_2.2.5) [1]getgrgid(GLIBC_2.2.5) [1]getprotobynumber(GLIBC_2.2.5) [1]getservbyport(GLIBC_2.2.5) [1]setgrent(GLIBC_2.2.5) [1]
endnetent(GLIBC_2.2.5) [1]getgrgid_r(GLIBC_2.2.5) [1]getprotoent(GLIBC_2.2.5) [1]getservent(GLIBC_2.2.5) [1]setgroups(GLIBC_2.2.5) [2]
endprotoent(GLIBC_2.2.5) [1]getgrnam(GLIBC_2.2.5) [1]getpwent(GLIBC_2.2.5) [1]getutent(GLIBC_2.2.5) [2]setnetent(GLIBC_2.2.5) [1]
endpwent(GLIBC_2.2.5) [1]getgrnam_r(GLIBC_2.2.5) [1]getpwnam(GLIBC_2.2.5) [1]getutent_r(GLIBC_2.2.5) [2]setprotoent(GLIBC_2.2.5) [1]
endservent(GLIBC_2.2.5) [1]gethostbyaddr(GLIBC_2.2.5) [1]getpwnam_r(GLIBC_2.2.5) [1]getutxent(GLIBC_2.2.5) [1]setpwent(GLIBC_2.2.5) [1]
endutent(GLIBC_2.2.5) [3]gethostbyname(GLIBC_2.2.5) [1]getpwuid(GLIBC_2.2.5) [1]getutxid(GLIBC_2.2.5) [1]setservent(GLIBC_2.2.5) [1]
endutxent(GLIBC_2.2.5) [1]getnetbyaddr(GLIBC_2.2.5) [1]getpwuid_r(GLIBC_2.2.5) [1]getutxline(GLIBC_2.2.5) [1]setutent(GLIBC_2.2.5) [2]
getgrent(GLIBC_2.2.5) [1]getprotobyname(GLIBC_2.2.5) [1]getservbyname(GLIBC_2.2.5) [1]pututxline(GLIBC_2.2.5) [1]setutxent(GLIBC_2.2.5) [1]

Referenced Specification(s)


Language Support


Interfaces for Language Support

An LSB conforming implementation shall provide the architecture specific functions for Language Support specified in Table 1-24, with the full functionality as described in the referenced underlying specification.

Table 1-24. libc - Language Support Function Interfaces

__libc_start_main(GLIBC_2.2.5) [1]_obstack_begin(GLIBC_2.2.5) [1]_obstack_newchunk(GLIBC_2.2.5) [1]obstack_free(GLIBC_2.2.5) [1] 

Referenced Specification(s)


Large File Support


Interfaces for Large File Support

An LSB conforming implementation shall provide the architecture specific functions for Large File Support specified in Table 1-25, with the full functionality as described in the referenced underlying specification.

Table 1-25. libc - Large File Support Function Interfaces

__fxstat64(GLIBC_2.2.5) [1]fopen64(GLIBC_2.2.5) [2]ftello64(GLIBC_2.2.5) [2]lseek64(GLIBC_2.2.5) [2]readdir64(GLIBC_2.2.5) [2]
__lxstat64(GLIBC_2.2.5) [1]freopen64(GLIBC_2.2.5) [2]ftruncate64(GLIBC_2.2.5) [2]mkstemp64(GLIBC_2.2.5) [2]statvfs64(GLIBC_2.2.5) [2]
__xstat64(GLIBC_2.2.5) [1]fseeko64(GLIBC_2.2.5) [2]ftw64(GLIBC_2.2.5) [2]mmap64(GLIBC_2.2.5) [2]tmpfile64(GLIBC_2.2.5) [2]
creat64(GLIBC_2.2.5) [2]fsetpos64(GLIBC_2.2.5) [2]getrlimit64(GLIBC_2.2.5) [2]nftw64(GLIBC_2.3.3) [2]truncate64(GLIBC_2.2.5) [2]
fgetpos64(GLIBC_2.2.5) [2]fstatvfs64(GLIBC_2.2.5) [2]lockf64(GLIBC_2.2.5) [2]open64(GLIBC_2.2.5) [2] 

Referenced Specification(s)


Standard Library


Interfaces for Standard Library

An LSB conforming implementation shall provide the architecture specific functions for Standard Library specified in Table 1-26, with the full functionality as described in the referenced underlying specification.

Table 1-26. libc - Standard Library Function Interfaces

_Exit(GLIBC_2.2.5) [1]dirname(GLIBC_2.2.5) [1]glob(GLIBC_2.2.5) [1]lsearch(GLIBC_2.2.5) [1]srand(GLIBC_2.2.5) [1]
__assert_fail(GLIBC_2.2.5) [2]div(GLIBC_2.2.5) [1]glob64(GLIBC_2.2.5) [2]makecontext(GLIBC_2.2.5) [1]srand48(GLIBC_2.2.5) [1]
__cxa_atexit(GLIBC_2.2.5) [2]drand48(GLIBC_2.2.5) [1]globfree(GLIBC_2.2.5) [1]malloc(GLIBC_2.2.5) [1]srandom(GLIBC_2.2.5) [1]
__errno_location(GLIBC_2.2.5) [2]ecvt(GLIBC_2.2.5) [1]globfree64(GLIBC_2.2.5) [2]memmem(GLIBC_2.2.5) [2]strtod(GLIBC_2.2.5) [1]
__fpending(GLIBC_2.2.5) [2]erand48(GLIBC_2.2.5) [1]grantpt(GLIBC_2.2.5) [1]mkstemp(GLIBC_2.2.5) [1]strtol(GLIBC_2.2.5) [1]
__getpagesize(GLIBC_2.2.5) [2]err(GLIBC_2.2.5) [2]hcreate(GLIBC_2.2.5) [1]mktemp(GLIBC_2.2.5) [1]strtoul(GLIBC_2.2.5) [1]
__isinf(GLIBC_2.2.5) [2]error(GLIBC_2.2.5) [2]hdestroy(GLIBC_2.2.5) [1]mrand48(GLIBC_2.2.5) [1]swapcontext(GLIBC_2.2.5) [1]
__isinff(GLIBC_2.2.5) [2]errx(GLIBC_2.2.5) [2]hsearch(GLIBC_2.2.5) [1]nftw(GLIBC_2.3.3) [1]syslog(GLIBC_2.2.5) [1]
__isinfl(GLIBC_2.2.5) [2]fcvt(GLIBC_2.2.5) [1]htonl(GLIBC_2.2.5) [1]nrand48(GLIBC_2.2.5) [1]system(GLIBC_2.2.5) [2]
__isnan(GLIBC_2.2.5) [2]fmtmsg(GLIBC_2.2.5) [1]htons(GLIBC_2.2.5) [1]ntohl(GLIBC_2.2.5) [1]tdelete(GLIBC_2.2.5) [1]
__isnanf(GLIBC_2.2.5) [2]fnmatch(GLIBC_2.2.5) [1]imaxabs(GLIBC_2.2.5) [1]ntohs(GLIBC_2.2.5) [1]tfind(GLIBC_2.2.5) [1]
__isnanl(GLIBC_2.2.5) [2]fpathconf(GLIBC_2.2.5) [1]imaxdiv(GLIBC_2.2.5) [1]openlog(GLIBC_2.2.5) [1]tmpfile(GLIBC_2.2.5) [1]
__sysconf(GLIBC_2.2.5) [2]free(GLIBC_2.2.5) [1]inet_addr(GLIBC_2.2.5) [1]perror(GLIBC_2.2.5) [1]tmpnam(GLIBC_2.2.5) [1]
_exit(GLIBC_2.2.5) [1]freeaddrinfo(GLIBC_2.2.5) [1]inet_ntoa(GLIBC_2.2.5) [1]posix_memalign(GLIBC_2.2.5) [1]tsearch(GLIBC_2.2.5) [1]
_longjmp(GLIBC_2.2.5) [1]ftrylockfile(GLIBC_2.2.5) [1]inet_ntop(GLIBC_2.2.5) [1]ptsname(GLIBC_2.2.5) [1]ttyname(GLIBC_2.2.5) [1]
_setjmp(GLIBC_2.2.5) [1]ftw(GLIBC_2.2.5) [1]inet_pton(GLIBC_2.2.5) [1]putenv(GLIBC_2.2.5) [1]ttyname_r(GLIBC_2.2.5) [1]
a64l(GLIBC_2.2.5) [1]funlockfile(GLIBC_2.2.5) [1]initstate(GLIBC_2.2.5) [1]qsort(GLIBC_2.2.5) [1]twalk(GLIBC_2.2.5) [1]
abort(GLIBC_2.2.5) [1]gai_strerror(GLIBC_2.2.5) [1]insque(GLIBC_2.2.5) [1]rand(GLIBC_2.2.5) [1]unlockpt(GLIBC_2.2.5) [1]
abs(GLIBC_2.2.5) [1]gcvt(GLIBC_2.2.5) [1]isatty(GLIBC_2.2.5) [1]rand_r(GLIBC_2.2.5) [1]unsetenv(GLIBC_2.2.5) [1]
atof(GLIBC_2.2.5) [1]getaddrinfo(GLIBC_2.2.5) [1]isblank(GLIBC_2.2.5) [1]random(GLIBC_2.2.5) [1]usleep(GLIBC_2.2.5) [1]
atoi(GLIBC_2.2.5) [1]getcwd(GLIBC_2.2.5) [1]jrand48(GLIBC_2.2.5) [1]random_r(GLIBC_2.2.5) [2]verrx(GLIBC_2.2.5) [2]
atol(GLIBC_2.2.5) [1]getdate(GLIBC_2.2.5) [1]l64a(GLIBC_2.2.5) [1]realloc(GLIBC_2.2.5) [1]vfscanf(GLIBC_2.2.5) [1]
atoll(GLIBC_2.2.5) [1]getenv(GLIBC_2.2.5) [1]labs(GLIBC_2.2.5) [1]realpath(GLIBC_2.3) [1]vscanf(GLIBC_2.2.5) [1]
basename(GLIBC_2.2.5) [1]getlogin(GLIBC_2.2.5) [1]lcong48(GLIBC_2.2.5) [1]remque(GLIBC_2.2.5) [1]vsscanf(GLIBC_2.2.5) [1]
bsearch(GLIBC_2.2.5) [1]getnameinfo(GLIBC_2.2.5) [1]ldiv(GLIBC_2.2.5) [1]seed48(GLIBC_2.2.5) [1]vsyslog(GLIBC_2.2.5) [2]
calloc(GLIBC_2.2.5) [1]getopt(GLIBC_2.2.5) [2]lfind(GLIBC_2.2.5) [1]setenv(GLIBC_2.2.5) [1]warn(GLIBC_2.2.5) [2]
closelog(GLIBC_2.2.5) [1]getopt_long(GLIBC_2.2.5) [2]llabs(GLIBC_2.2.5) [1]sethostid(GLIBC_2.2.5) [2]warnx(GLIBC_2.2.5) [2]
confstr(GLIBC_2.2.5) [1]getopt_long_only(GLIBC_2.2.5) [2]lldiv(GLIBC_2.2.5) [1]sethostname(GLIBC_2.2.5) [2]wordexp(GLIBC_2.2.5) [1]
cuserid(GLIBC_2.2.5) [3]getsubopt(GLIBC_2.2.5) [1]longjmp(GLIBC_2.2.5) [1]setlogmask(GLIBC_2.2.5) [1]wordfree(GLIBC_2.2.5) [1]
daemon(GLIBC_2.2.5) [2]gettimeofday(GLIBC_2.2.5) [1]lrand48(GLIBC_2.2.5) [1]setstate(GLIBC_2.2.5) [1] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Standard Library specified in Table 1-27, with the full functionality as described in the referenced underlying specification.

Table 1-27. libc - Standard Library Data Interfaces

__environ(GLIBC_2.2.5) [1]_sys_errlist(GLIBC_2.3) [1]getdate_err(GLIBC_2.2.5) [2]opterr(GLIBC_2.2.5) [1]optopt(GLIBC_2.2.5) [1]
_environ(GLIBC_2.2.5) [1]environ(GLIBC_2.2.5) [2]optarg(GLIBC_2.2.5) [2]optind(GLIBC_2.2.5) [1] 

Referenced Specification(s)


Data Definitions for libc

This section defines global identifiers and their values that are associated with interfaces contained in libc. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content.

These definitions are intended to supplement those provided in the referenced underlying specifications.

This specification uses ISO/IEC 9899 C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.


errno.h


#define EDEADLOCK	EDEADLK

inttypes.h


typedef long intmax_t;
typedef unsigned long uintptr_t;
typedef unsigned long uintmax_t;
typedef unsigned long uint64_t;

limits.h


#define LONG_MAX	0x7FFFFFFFFFFFFFFFL
#define ULONG_MAX	0xFFFFFFFFFFFFFFFFUL

#define CHAR_MAX	127
#define CHAR_MIN	SCHAR_MIN

setjmp.h


typedef long __jmp_buf[8];

signal.h


struct sigaction
{
  union
  {
    sighandler_t _sa_handler;
    void (*_sa_sigaction) (int, siginfo_t *, void *);
  }
  __sigaction_handler;
  sigset_t sa_mask;
  int sa_flags;
  void (*sa_restorer) (void);
}
 ;
#define MINSIGSTKSZ	2048
#define SIGSTKSZ	8192

struct _fpxreg
{
  unsigned short significand[4];
  unsigned short exponent;
  unsigned short padding[3];
}
 ;
struct _xmmreg
{
  uint32_t element[4];
}
 ;

struct _fpstate
{
  uint16_t cwd;
  uint16_t swd;
  uint16_t ftw;
  uint16_t fop;
  uint64_t rip;
  uint64_t rdp;
  uint32_t mxcsr;
  uint32_t mxcr_mask;
  struct _fpxreg _st[8];
  struct _xmmreg _xmm[16];
  uint32_t padding[24];
}
 ;

struct sigcontext
{
  unsigned long r8;
  unsigned long r9;
  unsigned long r10;
  unsigned long r11;
  unsigned long r12;
  unsigned long r13;
  unsigned long r14;
  unsigned long r15;
  unsigned long rdi;
  unsigned long rsi;
  unsigned long rbp;
  unsigned long rbx;
  unsigned long rdx;
  unsigned long rax;
  unsigned long rcx;
  unsigned long rsp;
  unsigned long rip;
  unsigned long eflags;
  unsigned short cs;
  unsigned short gs;
  unsigned short fs;
  unsigned short __pad0;
  unsigned long err;
  unsigned long trapno;
  unsigned long oldmask;
  unsigned long cr2;
  struct _fpstate *fpstate;
  unsigned long __reserved1[8];
}
 ;

stddef.h


typedef long ptrdiff_t;
typedef unsigned long size_t;

sys/ioctl.h


#define FIONREAD	0x541B
#define TIOCNOTTY	21538

sys/ipc.h


struct ipc_perm
{
  key_t __key;
  uid_t uid;
  gid_t gid;
  uid_t cuid;
  uid_t cgid;
  unsigned short mode;
  unsigned short __pad1;
  unsigned short __seq;
  unsigned short __pad2;
  unsigned long __unused1;
  unsigned long __unused2;
}
 ;

sys/mman.h


#define MCL_CURRENT	1
#define MCL_FUTURE	2

sys/msg.h


typedef unsigned long msgqnum_t;
typedef unsigned long msglen_t;

struct msqid_ds
{
  struct ipc_perm msg_perm;
  time_t msg_stime;
  time_t msg_rtime;
  time_t msg_ctime;
  unsigned long __msg_cbytes;
  msgqnum_t msg_qnum;
  msglen_t msg_qbytes;
  pid_t msg_lspid;
  pid_t msg_lrpid;
  unsigned long __unused4;
  unsigned long __unused5;
}
 ;

sys/sem.h


struct semid_ds
{
  struct ipc_perm sem_perm;
  time_t sem_otime;
  unsigned long __unused1;
  time_t sem_ctime;
  unsigned long __unused2;
  unsigned long sem_nsems;
  unsigned long __unused3;
  unsigned long __unused4;
}
 ;

sys/shm.h


#define SHMLBA	(__getpagesize())

typedef unsigned long shmatt_t;

struct shmid_ds
{
  struct ipc_perm shm_perm;
  size_t shm_segsz;
  time_t shm_atime;
  time_t shm_dtime;
  time_t shm_ctime;
  pid_t shm_cpid;
  pid_t shm_lpid;
  shmatt_t shm_nattch;
  unsigned long __unused4;
  unsigned long __unused5;
}
 ;

sys/socket.h


typedef uint64_t __ss_aligntype;

sys/stat.h


#define _STAT_VER	1

struct stat
{
  dev_t st_dev;
  ino_t st_ino;
  nlink_t st_nlink;
  mode_t st_mode;
  uid_t st_uid;
  gid_t st_gid;
  int pad0;
  dev_t st_rdev;
  off_t st_size;
  blksize_t st_blksize;
  blkcnt_t st_blocks;
  struct timespec st_atim;
  struct timespec st_mtim;
  struct timespec st_ctim;
  unsigned long __unused[3];
}
 ;
struct stat64
{
  dev_t st_dev;
  ino64_t st_ino;
  nlink_t st_nlink;
  mode_t st_mode;
  uid_t st_uid;
  gid_t st_gid;
  int pad0;
  dev_t st_rdev;
  off_t st_size;
  blksize_t st_blksize;
  blkcnt64_t st_blocks;
  struct timespec st_atim;
  struct timespec st_mtim;
  struct timespec st_ctim;
  unsigned long __unused[3];
}
 ;

sys/statvfs.h


struct statvfs64
{
  unsigned long f_bsize;
  unsigned long f_frsize;
  fsblkcnt64_t f_blocks;
  fsblkcnt64_t f_bfree;
  fsblkcnt64_t f_bavail;
  fsfilcnt64_t f_files;
  fsfilcnt64_t f_ffree;
  fsfilcnt64_t f_favail;
  unsigned long f_fsid;
  unsigned long f_flag;
  unsigned long f_namemax;
  int __f_spare[6];
}
 ;
struct statvfs
{
  unsigned long f_bsize;
  unsigned long f_frsize;
  fsblkcnt_t f_blocks;
  fsblkcnt_t f_bfree;
  fsblkcnt_t f_bavail;
  fsfilcnt_t f_files;
  fsfilcnt_t f_ffree;
  fsfilcnt_t f_favail;
  unsigned long f_fsid;
  unsigned long f_flag;
  unsigned long f_namemax;
  int __f_spare[6];
}
 ;

sys/types.h


typedef long int64_t;

typedef int64_t ssize_t;

termios.h


#define OLCUC	0000002
#define ONLCR	0000004
#define XCASE	0000004
#define NLDLY	0000400
#define CR1	0001000
#define IUCLC	0001000
#define CR2	0002000
#define CR3	0003000
#define CRDLY	0003000
#define TAB1	0004000
#define TAB2	0010000
#define TAB3	0014000
#define TABDLY	0014000
#define BS1	0020000
#define BSDLY	0020000
#define VT1	0040000
#define VTDLY	0040000
#define FF1	0100000
#define FFDLY	0100000

#define VSUSP	10
#define VEOL	11
#define VREPRINT	12
#define VDISCARD	13
#define VWERASE	14
#define VEOL2	16
#define VMIN	6
#define VSWTC	7
#define VSTART	8
#define VSTOP	9

#define IXON	0002000
#define IXOFF	0010000

#define CS6	0000020
#define CS7	0000040
#define CS8	0000060
#define CSIZE	0000060
#define CSTOPB	0000100
#define CREAD	0000200
#define PARENB	0000400
#define PARODD	0001000
#define HUPCL	0002000
#define CLOCAL	0004000
#define VTIME	5

#define ISIG	0000001
#define ICANON	0000002
#define ECHOE	0000020
#define ECHOK	0000040
#define ECHONL	0000100
#define NOFLSH	0000200
#define TOSTOP	0000400
#define ECHOCTL	0001000
#define ECHOPRT	0002000
#define ECHOKE	0004000
#define FLUSHO	0010000
#define PENDIN	0040000
#define IEXTEN	0100000

ucontext.h


struct _libc_fpxreg
{
  unsigned short significand[4];
  unsigned short exponent;
  unsigned short padding[3];
}
 ;

typedef long greg_t;
#define NGREG	23

typedef greg_t gregset_t[23];

struct _libc_xmmreg
{
  uint32_t element[4];
}
 ;
struct _libc_fpstate
{
  uint16_t cwd;
  uint16_t swd;
  uint16_t ftw;
  uint16_t fop;
  uint64_t rip;
  uint64_t rdp;
  uint32_t mxcsr;
  uint32_t mxcr_mask;
  struct _libc_fpxreg _st[8];
  struct _libc_xmmreg _xmm[16];
  uint32_t padding[24];
}
 ;
typedef struct _libc_fpstate *fpregset_t;

typedef struct
{
  gregset_t gregs;
  fpregset_t fpregs;
  unsigned long __reserved1[8];
}
mcontext_t;

typedef struct ucontext
{
  unsigned long uc_flags;
  struct ucontext *uc_link;
  stack_t uc_stack;
  mcontext_t uc_mcontext;
  sigset_t uc_sigmask;
  struct _libc_fpstate __fpregs_mem;
}
ucontext_t;

unistd.h


typedef long intptr_t;

utmp.h


struct lastlog
{
  int32_t ll_time;
  char ll_line[UT_LINESIZE];
  char ll_host[UT_HOSTSIZE];
}
 ;

struct utmp
{
  short ut_type;
  pid_t ut_pid;
  char ut_line[UT_LINESIZE];
  char ut_id[4];
  char ut_user[UT_NAMESIZE];
  char ut_host[UT_HOSTSIZE];
  struct exit_status ut_exit;
  int ut_session;
  struct
  {
    int32_t tv_sec;
    int32_t tv_usec;
  }
  ut_tv;
  int32_t ut_addr_v6[4];
  char __unused[20];
}
 ;

utmpx.h


struct utmpx
{
  short ut_type;
  pid_t ut_pid;
  char ut_line[UT_LINESIZE];
  char ut_id[4];
  char ut_user[UT_NAMESIZE];
  char ut_host[UT_HOSTSIZE];
  struct exit_status ut_exit;
  int32_t ut_session;
  struct
  {
    int32_t tv_sec;
    int32_t tv_usec;
  }
  ut_tv;
  int32_t ut_addr_v6[4];
  char __unused[20];
}
 ;

Interfaces for libm

Table 1-28 defines the library name and shared object name for the libm library

Table 1-28. libm Definition

Library:libm
SONAME:libm.so.6

The behavior of the interfaces in this library is specified by the following specifications:

ISO/IEC 9899: 1999, Programming Languages --C
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)
ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3


Math


Interfaces for Math

An LSB conforming implementation shall provide the architecture specific functions for Math specified in Table 1-29, with the full functionality as described in the referenced underlying specification.

Table 1-29. libm - Math Function Interfaces

acos(GLIBC_2.2.5) [1]cexp(GLIBC_2.2.5) [1]expf(GLIBC_2.2.5) [1]jnf(GLIBC_2.2.5) [2]remquof(GLIBC_2.2.5) [1]
acosf(GLIBC_2.2.5) [1]cexpf(GLIBC_2.2.5) [1]expl(GLIBC_2.2.5) [1]jnl(GLIBC_2.2.5) [2]remquol(GLIBC_2.2.5) [1]
acosh(GLIBC_2.2.5) [1]cexpl(GLIBC_2.2.5) [1]expm1(GLIBC_2.2.5) [1]ldexp(GLIBC_2.2.5) [1]rint(GLIBC_2.2.5) [1]
acoshf(GLIBC_2.2.5) [1]cimag(GLIBC_2.2.5) [1]fabs(GLIBC_2.2.5) [1]ldexpf(GLIBC_2.2.5) [1]rintf(GLIBC_2.2.5) [1]
acoshl(GLIBC_2.2.5) [1]cimagf(GLIBC_2.2.5) [1]fabsf(GLIBC_2.2.5) [1]ldexpl(GLIBC_2.2.5) [1]rintl(GLIBC_2.2.5) [1]
acosl(GLIBC_2.2.5) [1]cimagl(GLIBC_2.2.5) [1]fabsl(GLIBC_2.2.5) [1]lgamma(GLIBC_2.2.5) [1]round(GLIBC_2.2.5) [1]
asin(GLIBC_2.2.5) [1]clog(GLIBC_2.2.5) [1]fdim(GLIBC_2.2.5) [1]lgamma_r(GLIBC_2.2.5) [2]roundf(GLIBC_2.2.5) [1]
asinf(GLIBC_2.2.5) [1]clog10(GLIBC_2.2.5) [2]fdimf(GLIBC_2.2.5) [1]lgammaf(GLIBC_2.2.5) [1]roundl(GLIBC_2.2.5) [1]
asinh(GLIBC_2.2.5) [1]clog10f(GLIBC_2.2.5) [2]fdiml(GLIBC_2.2.5) [1]lgammaf_r(GLIBC_2.2.5) [2]scalb(GLIBC_2.2.5) [1]
asinhf(GLIBC_2.2.5) [1]clog10l(GLIBC_2.2.5) [2]feclearexcept(GLIBC_2.2.5) [1]lgammal(GLIBC_2.2.5) [1]scalbf(GLIBC_2.2.5) [2]
asinhl(GLIBC_2.2.5) [1]clogf(GLIBC_2.2.5) [1]fegetenv(GLIBC_2.2.5) [1]lgammal_r(GLIBC_2.2.5) [2]scalbl(GLIBC_2.2.5) [2]
asinl(GLIBC_2.2.5) [1]clogl(GLIBC_2.2.5) [1]fegetexceptflag(GLIBC_2.2.5) [1]llrint(GLIBC_2.2.5) [1]scalbln(GLIBC_2.2.5) [1]
atan(GLIBC_2.2.5) [1]conj(GLIBC_2.2.5) [1]fegetround(GLIBC_2.2.5) [1]llrintf(GLIBC_2.2.5) [1]scalblnf(GLIBC_2.2.5) [1]
atan2(GLIBC_2.2.5) [1]conjf(GLIBC_2.2.5) [1]feholdexcept(GLIBC_2.2.5) [1]llrintl(GLIBC_2.2.5) [1]scalblnl(GLIBC_2.2.5) [1]
atan2f(GLIBC_2.2.5) [1]conjl(GLIBC_2.2.5) [1]feraiseexcept(GLIBC_2.2.5) [1]llround(GLIBC_2.2.5) [1]scalbn(GLIBC_2.2.5) [1]
atan2l(GLIBC_2.2.5) [1]copysign(GLIBC_2.2.5) [1]fesetenv(GLIBC_2.2.5) [1]llroundf(GLIBC_2.2.5) [1]scalbnf(GLIBC_2.2.5) [1]
atanf(GLIBC_2.2.5) [1]copysignf(GLIBC_2.2.5) [1]fesetexceptflag(GLIBC_2.2.5) [1]llroundl(GLIBC_2.2.5) [1]scalbnl(GLIBC_2.2.5) [1]
atanh(GLIBC_2.2.5) [1]copysignl(GLIBC_2.2.5) [1]fesetround(GLIBC_2.2.5) [1]log(GLIBC_2.2.5) [1]significand(GLIBC_2.2.5) [2]
atanhf(GLIBC_2.2.5) [1]cos(GLIBC_2.2.5) [1]fetestexcept(GLIBC_2.2.5) [1]log10(GLIBC_2.2.5) [1]significandf(GLIBC_2.2.5) [2]
atanhl(GLIBC_2.2.5) [1]cosf(GLIBC_2.2.5) [1]feupdateenv(GLIBC_2.2.5) [1]log10f(GLIBC_2.2.5) [1]significandl(GLIBC_2.2.5) [2]
atanl(GLIBC_2.2.5) [1]cosh(GLIBC_2.2.5) [1]finite(GLIBC_2.2.5) [3]log10l(GLIBC_2.2.5) [1]sin(GLIBC_2.2.5) [1]
cabs(GLIBC_2.2.5) [1]coshf(GLIBC_2.2.5) [1]finitef(GLIBC_2.2.5) [2]log1p(GLIBC_2.2.5) [1]sincos(GLIBC_2.2.5) [2]
cabsf(GLIBC_2.2.5) [1]coshl(GLIBC_2.2.5) [1]finitel(GLIBC_2.2.5) [2]logb(GLIBC_2.2.5) [1]sincosf(GLIBC_2.2.5) [2]
cabsl(GLIBC_2.2.5) [1]cosl(GLIBC_2.2.5) [1]floor(GLIBC_2.2.5) [1]logf(GLIBC_2.2.5) [1]sincosl(GLIBC_2.2.5) [2]
cacos(GLIBC_2.2.5) [1]cpow(GLIBC_2.2.5) [1]floorf(GLIBC_2.2.5) [1]logl(GLIBC_2.2.5) [1]sinf(GLIBC_2.2.5) [1]
cacosf(GLIBC_2.2.5) [1]cpowf(GLIBC_2.2.5) [1]floorl(GLIBC_2.2.5) [1]lrint(GLIBC_2.2.5) [1]sinh(GLIBC_2.2.5) [1]
cacosh(GLIBC_2.2.5) [1]cpowl(GLIBC_2.2.5) [1]fma(GLIBC_2.2.5) [1]lrintf(GLIBC_2.2.5) [1]sinhf(GLIBC_2.2.5) [1]
cacoshf(GLIBC_2.2.5) [1]cproj(GLIBC_2.2.5) [1]fmaf(GLIBC_2.2.5) [1]lrintl(GLIBC_2.2.5) [1]sinhl(GLIBC_2.2.5) [1]
cacoshl(GLIBC_2.2.5) [1]cprojf(GLIBC_2.2.5) [1]fmal(GLIBC_2.2.5) [1]lround(GLIBC_2.2.5) [1]sinl(GLIBC_2.2.5) [1]
cacosl(GLIBC_2.2.5) [1]cprojl(GLIBC_2.2.5) [1]fmax(GLIBC_2.2.5) [1]lroundf(GLIBC_2.2.5) [1]sqrt(GLIBC_2.2.5) [1]
carg(GLIBC_2.2.5) [1]creal(GLIBC_2.2.5) [1]fmaxf(GLIBC_2.2.5) [1]lroundl(GLIBC_2.2.5) [1]sqrtf(GLIBC_2.2.5) [1]
cargf(GLIBC_2.2.5) [1]crealf(GLIBC_2.2.5) [1]fmaxl(GLIBC_2.2.5) [1]matherr(GLIBC_2.2.5) [2]sqrtl(GLIBC_2.2.5) [1]
cargl(GLIBC_2.2.5) [1]creall(GLIBC_2.2.5) [1]fmin(GLIBC_2.2.5) [1]modf(GLIBC_2.2.5) [1]tan(GLIBC_2.2.5) [1]
casin(GLIBC_2.2.5) [1]csin(GLIBC_2.2.5) [1]fminf(GLIBC_2.2.5) [1]modff(GLIBC_2.2.5) [1]tanf(GLIBC_2.2.5) [1]
casinf(GLIBC_2.2.5) [1]csinf(GLIBC_2.2.5) [1]fminl(GLIBC_2.2.5) [1]modfl(GLIBC_2.2.5) [1]tanh(GLIBC_2.2.5) [1]
casinh(GLIBC_2.2.5) [1]csinh(GLIBC_2.2.5) [1]fmod(GLIBC_2.2.5) [1]nan(GLIBC_2.2.5) [1]tanhf(GLIBC_2.2.5) [1]
casinhf(GLIBC_2.2.5) [1]csinhf(GLIBC_2.2.5) [1]fmodf(GLIBC_2.2.5) [1]nanf(GLIBC_2.2.5) [1]tanhl(GLIBC_2.2.5) [1]
casinhl(GLIBC_2.2.5) [1]csinhl(GLIBC_2.2.5) [1]fmodl(GLIBC_2.2.5) [1]nanl(GLIBC_2.2.5) [1]tanl(GLIBC_2.2.5) [1]
casinl(GLIBC_2.2.5) [1]csinl(GLIBC_2.2.5) [1]frexp(GLIBC_2.2.5) [1]nearbyint(GLIBC_2.2.5) [1]tgamma(GLIBC_2.2.5) [1]
catan(GLIBC_2.2.5) [1]csqrt(GLIBC_2.2.5) [1]frexpf(GLIBC_2.2.5) [1]nearbyintf(GLIBC_2.2.5) [1]tgammaf(GLIBC_2.2.5) [1]
catanf(GLIBC_2.2.5) [1]csqrtf(GLIBC_2.2.5) [1]frexpl(GLIBC_2.2.5) [1]nearbyintl(GLIBC_2.2.5) [1]tgammal(GLIBC_2.2.5) [1]
catanh(GLIBC_2.2.5) [1]csqrtl(GLIBC_2.2.5) [1]gamma(GLIBC_2.2.5) [3]nextafter(GLIBC_2.2.5) [1]trunc(GLIBC_2.2.5) [1]
catanhf(GLIBC_2.2.5) [1]ctan(GLIBC_2.2.5) [1]gammaf(GLIBC_2.2.5) [2]nextafterf(GLIBC_2.2.5) [1]truncf(GLIBC_2.2.5) [1]
catanhl(GLIBC_2.2.5) [1]ctanf(GLIBC_2.2.5) [1]gammal(GLIBC_2.2.5) [2]nextafterl(GLIBC_2.2.5) [1]truncl(GLIBC_2.2.5) [1]
catanl(GLIBC_2.2.5) [1]ctanh(GLIBC_2.2.5) [1]hypot(GLIBC_2.2.5) [1]nexttoward(GLIBC_2.2.5) [1]y0(GLIBC_2.2.5) [1]
cbrt(GLIBC_2.2.5) [1]ctanhf(GLIBC_2.2.5) [1]hypotf(GLIBC_2.2.5) [1]nexttowardf(GLIBC_2.2.5) [1]y0f(GLIBC_2.2.5) [2]
cbrtf(GLIBC_2.2.5) [1]ctanhl(GLIBC_2.2.5) [1]hypotl(GLIBC_2.2.5) [1]nexttowardl(GLIBC_2.2.5) [1]y0l(GLIBC_2.2.5) [2]
cbrtl(GLIBC_2.2.5) [1]ctanl(GLIBC_2.2.5) [1]ilogb(GLIBC_2.2.5) [1]pow(GLIBC_2.2.5) [1]y1(GLIBC_2.2.5) [1]
ccos(GLIBC_2.2.5) [1]dremf(GLIBC_2.2.5) [2]ilogbf(GLIBC_2.2.5) [1]pow10(GLIBC_2.2.5) [2]y1f(GLIBC_2.2.5) [2]
ccosf(GLIBC_2.2.5) [1]dreml(GLIBC_2.2.5) [2]ilogbl(GLIBC_2.2.5) [1]pow10f(GLIBC_2.2.5) [2]y1l(GLIBC_2.2.5) [2]
ccosh(GLIBC_2.2.5) [1]erf(GLIBC_2.2.5) [1]j0(GLIBC_2.2.5) [1]pow10l(GLIBC_2.2.5) [2]yn(GLIBC_2.2.5) [1]
ccoshf(GLIBC_2.2.5) [1]erfc(GLIBC_2.2.5) [1]j0f(GLIBC_2.2.5) [2]powf(GLIBC_2.2.5) [1]ynf(GLIBC_2.2.5) [2]
ccoshl(GLIBC_2.2.5) [1]erfcf(GLIBC_2.2.5) [1]j0l(GLIBC_2.2.5) [2]powl(GLIBC_2.2.5) [1]ynl(GLIBC_2.2.5) [2]
ccosl(GLIBC_2.2.5) [1]erfcl(GLIBC_2.2.5) [1]j1(GLIBC_2.2.5) [1]remainder(GLIBC_2.2.5) [1] 
ceil(GLIBC_2.2.5) [1]erff(GLIBC_2.2.5) [1]j1f(GLIBC_2.2.5) [2]remainderf(GLIBC_2.2.5) [1] 
ceilf(GLIBC_2.2.5) [1]erfl(GLIBC_2.2.5) [1]j1l(GLIBC_2.2.5) [2]remainderl(GLIBC_2.2.5) [1] 
ceill(GLIBC_2.2.5) [1]exp(GLIBC_2.2.5) [1]jn(GLIBC_2.2.5) [1]remquo(GLIBC_2.2.5) [1] 

Referenced Specification(s)

An LSB conforming implementation shall provide the architecture specific data interfaces for Math specified in Table 1-30, with the full functionality as described in the referenced underlying specification.

Table 1-30. libm - Math Data Interfaces

signgam(GLIBC_2.2.5) [1]    

Referenced Specification(s)


Interfaces for libpthread

Table 1-31 defines the library name and shared object name for the libpthread library

Table 1-31. libpthread Definition

Library:libpthread
SONAME:libpthread.so.0

The behavior of the interfaces in this library is specified by the following specifications:

Large File Support
Linux Standard Base
ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3


Realtime Threads


Interfaces for Realtime Threads

No external functions are defined for libpthread - Realtime Threads


Advanced Realtime Threads


Interfaces for Advanced Realtime Threads

No external functions are defined for libpthread - Advanced Realtime Threads


Posix Threads


Interfaces for Posix Threads

An LSB conforming implementation shall provide the architecture specific functions for Posix Threads specified in Table 1-32, with the full functionality as described in the referenced underlying specification.

Table 1-32. libpthread - Posix Threads Function Interfaces

_pthread_cleanup_pop(GLIBC_2.2.5) [1]pthread_cancel(GLIBC_2.2.5) [2]pthread_join(GLIBC_2.2.5) [2]pthread_rwlock_destroy(GLIBC_2.2.5) [2]pthread_setconcurrency(GLIBC_2.2.5) [2]
_pthread_cleanup_push(GLIBC_2.2.5) [1]pthread_cond_broadcast(GLIBC_2.3.2) [2]pthread_key_create(GLIBC_2.2.5) [2]pthread_rwlock_init(GLIBC_2.2.5) [2]pthread_setspecific(GLIBC_2.2.5) [2]
pread(GLIBC_2.2.5) [2]pthread_cond_destroy(GLIBC_2.3.2) [2]pthread_key_delete(GLIBC_2.2.5) [2]pthread_rwlock_rdlock(GLIBC_2.2.5) [2]pthread_sigmask(GLIBC_2.2.5) [2]
pread64(GLIBC_2.2.5) [3]pthread_cond_init(GLIBC_2.3.2) [2]pthread_kill(GLIBC_2.2.5) [2]pthread_rwlock_timedrdlock(GLIBC_2.2.5) [2]pthread_testcancel(GLIBC_2.2.5) [2]
pthread_attr_destroy(GLIBC_2.2.5) [2]pthread_cond_signal(GLIBC_2.3.2) [2]pthread_mutex_destroy(GLIBC_2.2.5) [2]pthread_rwlock_timedwrlock(GLIBC_2.2.5) [2]pwrite(GLIBC_2.2.5) [2]
pthread_attr_getdetachstate(GLIBC_2.2.5) [2]pthread_cond_timedwait(GLIBC_2.3.2) [2]pthread_mutex_init(GLIBC_2.2.5) [2]pthread_rwlock_tryrdlock(GLIBC_2.2.5) [2]pwrite64(GLIBC_2.2.5) [3]
pthread_attr_getguardsize(GLIBC_2.2.5) [2]pthread_cond_wait(GLIBC_2.3.2) [2]pthread_mutex_lock(GLIBC_2.2.5) [2]pthread_rwlock_trywrlock(GLIBC_2.2.5) [2]sem_close(GLIBC_2.2.5) [2]
pthread_attr_getschedparam(GLIBC_2.2.5) [2]pthread_condattr_destroy(GLIBC_2.2.5) [2]pthread_mutex_trylock(GLIBC_2.2.5) [2]pthread_rwlock_unlock(GLIBC_2.2.5) [2]sem_destroy(GLIBC_2.2.5) [2]
pthread_attr_getstackaddr(GLIBC_2.2.5) [2]pthread_condattr_getpshared(GLIBC_2.2.5) [2]pthread_mutex_unlock(GLIBC_2.2.5) [2]pthread_rwlock_wrlock(GLIBC_2.2.5) [2]sem_getvalue(GLIBC_2.2.5) [2]
pthread_attr_getstacksize(GLIBC_2.2.5) [2]pthread_condattr_init(GLIBC_2.2.5) [2]pthread_mutexattr_destroy(GLIBC_2.2.5) [2]pthread_rwlockattr_destroy(GLIBC_2.2.5) [2]sem_init(GLIBC_2.2.5) [2]
pthread_attr_init(GLIBC_2.2.5) [2]pthread_condattr_setpshared(GLIBC_2.2.5) [2]pthread_mutexattr_getpshared(GLIBC_2.2.5) [2]pthread_rwlockattr_getpshared(GLIBC_2.2.5) [2]sem_open(GLIBC_2.2.5) [2]
pthread_attr_setdetachstate(GLIBC_2.2.5) [2]pthread_create(GLIBC_2.2.5) [2]pthread_mutexattr_gettype(GLIBC_2.2.5) [2]pthread_rwlockattr_init(GLIBC_2.2.5) [2]sem_post(GLIBC_2.2.5) [2]
pthread_attr_setguardsize(GLIBC_2.2.5) [2]pthread_detach(GLIBC_2.2.5) [2]pthread_mutexattr_init(GLIBC_2.2.5) [2]pthread_rwlockattr_setpshared(GLIBC_2.2.5) [2]sem_timedwait(GLIBC_2.2.5) [2]
pthread_attr_setschedparam(GLIBC_2.2.5) [2]pthread_equal(GLIBC_2.2.5) [2]pthread_mutexattr_setpshared(GLIBC_2.2.5) [2]pthread_self(GLIBC_2.2.5) [2]sem_trywait(GLIBC_2.2.5) [2]
pthread_attr_setstackaddr(GLIBC_2.2.5) [2]pthread_exit(GLIBC_2.2.5) [2]pthread_mutexattr_settype(GLIBC_2.2.5) [2]pthread_setcancelstate(GLIBC_2.2.5) [2]sem_unlink(GLIBC_2.2.5) [2]
pthread_attr_setstacksize(GLIBC_2.2.5) [2]pthread_getspecific(GLIBC_2.2.5) [2]pthread_once(GLIBC_2.2.5) [2]pthread_setcanceltype(GLIBC_2.2.5) [2]sem_wait(GLIBC_2.2.5) [2]

Referenced Specification(s)


Interfaces for libgcc_s

Table 1-33 defines the library name and shared object name for the libgcc_s library

Table 1-33. libgcc_s Definition

Library:libgcc_s
SONAME:libgcc_s.so.1

The behavior of the interfaces in this library is specified by the following specifications:

Linux Standard Base


Unwind Library


Interfaces for Unwind Library

An LSB conforming implementation shall provide the architecture specific functions for Unwind Library specified in Table 1-34, with the full functionality as described in the referenced underlying specification.

Table 1-34. libgcc_s - Unwind Library Function Interfaces

_Unwind_DeleteException(GCC_3.0) [1]_Unwind_GetDataRelBase(GCC_3.0) [1]_Unwind_GetLanguageSpecificData(GCC_3.0) [1]_Unwind_RaiseException(GCC_3.0) [1]_Unwind_SetIP(GCC_3.0) [1]
_Unwind_Find_FDE(GCC_3.0) [1]_Unwind_GetGR(GCC_3.0) [1]_Unwind_GetRegionStart(GCC_3.0) [1]_Unwind_Resume(GCC_3.0) [1] 
_Unwind_ForcedUnwind(GCC_3.0) [1]_Unwind_GetIP(GCC_3.0) [1]_Unwind_GetTextRelBase(GCC_3.0) [1]_Unwind_SetGR(GCC_3.0) [1] 

Referenced Specification(s)


Interface Definitions for libgcc_s

Table of Contents
_Unwind_DeleteException -- private C++ error handling method
_Unwind_Find_FDE -- private C++ error handling method
_Unwind_ForcedUnwind -- private C++ error handling method
_Unwind_GetDataRelBase -- private IA64 C++ error handling method
_Unwind_GetGR -- private C++ error handling method
_Unwind_GetIP -- private C++ error handling method
_Unwind_GetLanguageSpecificData -- private C++ error handling method
_Unwind_GetRegionStart -- private C++ error handling method
_Unwind_GetTextRelBase -- private IA64 C++ error handling method
_Unwind_RaiseException -- private C++ error handling method
_Unwind_Resume -- private C++ error handling method
_Unwind_SetGR -- private C++ error handling method
_Unwind_SetIP -- private C++ error handling method

The following interfaces are included in libgcc_s and are defined by this specification. Unless otherwise noted, these interfaces shall be included in the source standard.

Other interfaces listed above for libgcc_s shall behave as described in the referenced base document.

_Unwind_DeleteException

Name

_Unwind_DeleteException -- private C++ error handling method

Synopsis

void _Unwind_DeleteException((struct _Unwind_Exception *object));

Description

_Unwind_DeleteException deletes the given exception object. If a given runtime resumes normal execution after catching a foreign exception, it will not know how to delete that exception. Such an exception shall be deleted by calling _Unwind_DeleteException. This is a convenience function that calls the function pointed to by the exception_cleanup field of the exception header.

_Unwind_Find_FDE

Name

_Unwind_Find_FDE -- private C++ error handling method

Synopsis

fde * _Unwind_Find_FDE(void *pc, (struct dwarf_eh_bases *bases));

Description

_Unwind_Find_FDE looks for the object containing pc, then inserts into bases.

_Unwind_ForcedUnwind

Name

_Unwind_ForcedUnwind -- private C++ error handling method

Synopsis

_Unwind_Reason_Code _Unwind_ForcedUnwind((struct _Unwind_Exception *object), _Unwind_Stop_Fn stop, void *stop_parameter);

Description

_Unwind_ForcedUnwind raises an exception for forced unwinding, passing along the given exception object, which should have its exception_class and exception_cleanup fields set. The exception object has been allocated by the language-specific runtime, and has a language-specific format, except that it shall contain an _Unwind_Exception struct.

Forced unwinding is a single-phase process. stop and stop_parameter control the termination of the unwind process instead of the usual personality routine query. stop is called for each unwind frame, with the parameteres described for the usual personality routine below, plus an additional stop_parameter.

Return Value

When stop identifies the destination frame, it transfers control to the user code as appropriate without returning, normally after calling _Unwind_DeleteException. If not, then it should return an _Unwind_Reason_Code value.

If stop returns any reason code other than _URC_NO_REASON, then the stack state is indeterminate from the point of view of the caller of _Unwind_ForcedUnwind. Rather than attempt to return, therefore, the unwind library should use the exception_cleanup entry in the exception, and then call abort.

_URC_NO_REASON

This is not the destination from. The unwind runtime will call frame's personality routine with the _UA_FORCE_UNWIND and _UA_CLEANUP_PHASE flag set in actions, and then unwind to the next frame and call the stop function again.

_URC_END_OF_STACK

In order to allow _Unwind_ForcedUnwind to perform special processing when it reaches the end of the stack, the unwind runtime will call it after the last frame is rejected, with a NULL stack pointer in the context, and the stop function shall catch this condition. It may return this code if it cannot handle end-of-stack.

_URC_FATAL_PHASE2_ERROR

The stop function may return this code for other fatal conditions like stack corruption.

_Unwind_GetDataRelBase

Name

_Unwind_GetDataRelBase -- private IA64 C++ error handling method

Synopsis

_Unwind_Ptr _Unwind_GetDataRelBase((struct _Unwind_Context *context));

Description

_Unwind_GetDataRelBase returns the global pointer in register one for context.

_Unwind_GetGR

Name

_Unwind_GetGR -- private C++ error handling method

Synopsis

_Unwind_Word _Unwind_GetGR((struct _Unwind_Context *context), int index);

Description

_Unwind_GetGR returns data at index found in context. The register is identified by its index: 0 to 31 are for the fixed registers, and 32 to 127 are for the stacked registers.

During the two phases of unwinding, only GR1 has a guaranteed value, which is the global pointer of the frame referenced by the unwind context. If the register has its NAT bit set, the behavior is unspecified.

_Unwind_GetIP

Name

_Unwind_GetIP -- private C++ error handling method

Synopsis

_Unwind_Ptr _Unwind_GetIP((struct _Unwind_Context *context));

Description

_Unwind_GetIP returns the instruction pointer value for the routine identified by the unwind context.

_Unwind_GetLanguageSpecificData

Name

_Unwind_GetLanguageSpecificData -- private C++ error handling method

Synopsis

_Unwind_Ptr _Unwind_GetLanguageSpecificData((struct _Unwind_Context *context), uint value);

Description

_Unwind_GetLanguageSpecificData returns the address of the language specific data area for the current stack frame.

_Unwind_GetRegionStart

Name

_Unwind_GetRegionStart -- private C++ error handling method

Synopsis

_Unwind_Ptr _Unwind_GetRegionStart((struct _Unwind_Context *context));

Description

_Unwind_GetRegionStart routine returns the address (i.e., 0) of the beginning of the procedure or code fragment described by the current unwind descriptor block.

_Unwind_GetTextRelBase

Name

_Unwind_GetTextRelBase -- private IA64 C++ error handling method

Synopsis

_Unwind_Ptr _Unwind_GetTextRelBase((struct _Unwind_Context *context));

Description

_Unwind_GetTextRelBase calls the abort method, then returns.

_Unwind_RaiseException

Name

_Unwind_RaiseException -- private C++ error handling method

Synopsis

_Unwind_Reason_Code _Unwind_RaiseException((struct _Unwind_Exception *object));

Description

_Unwind_RaiseException raises an exception, passing along the given exception object, which should have its exception_class and exception_cleanup fields set. The exception object has been allocated by the language-specific runtime, and has a language-specific format, exception that it shall contain an _Unwind_Exception.

Return Value

_Unwind_RaiseException does not return unless an error condition is found. If an error condition occurs, an _Unwind_Reason_Code is returnd:

_URC_END_OF_STACK

The unwinder encountered the end of the stack during phase one without finding a handler. The unwind runtime will not have modified the stack. The C++ runtime will normally call uncaught_exception in this case.

_URC_FATAL_PHASE1_ERROR

The unwinder encountered an unexpected error during phase one, because of something like stack corruption. The unwind runtime will not have modified the stack. The C++ runtime will normally call terminate in this case.

_URC_FATAL_PHASE2_ERROR

The unwinder encountered an unexpected error during phase two. This is usually a throw, which will call terminate.

_Unwind_Resume

Name

_Unwind_Resume -- private C++ error handling method

Synopsis

void _Unwind_Resume((struct _Unwind_Exception *object));

Description

_Unwind_Resume resumes propagation of an existing exception object. A call to this routine is inserted as the end of a landing pad that performs cleanup, but does not resume normal execution. It causes unwinding to proceed further.

_Unwind_SetGR

Name

_Unwind_SetGR -- private C++ error handling method

Synopsis

void _Unwind_SetGR((struct _Unwind_Context *context), int index, uint value);

Description

_Unwind_SetGR sets the value of the register indexed for the routine identified by the unwind context.

_Unwind_SetIP

Name

_Unwind_SetIP -- private C++ error handling method

Synopsis

void _Unwind_SetIP((struct _Unwind_Context *context), uint value);

Description

_Unwind_SetIP sets the value of the instruction pointer for the routine identified by the unwind context


Interfaces for libdl

Table 1-35 defines the library name and shared object name for the libdl library

Table 1-35. libdl Definition

Library:libdl
SONAME:libdl.so.2

The behavior of the interfaces in this library is specified by the following specifications:

Linux Standard Base
ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3


Dynamic Loader


Interfaces for Dynamic Loader

An LSB conforming implementation shall provide the architecture specific functions for Dynamic Loader specified in Table 1-36, with the full functionality as described in the referenced underlying specification.

Table 1-36. libdl - Dynamic Loader Function Interfaces

dladdr(GLIBC_2.2.5) [1]dlclose(GLIBC_2.2.5) [2]dlerror(GLIBC_2.2.5) [2]dlopen(GLIBC_2.2.5) [1]dlsym(GLIBC_2.2.5) [1]

Referenced Specification(s)


Interfaces for libcrypt

Table 1-37 defines the library name and shared object name for the libcrypt library

Table 1-37. libcrypt Definition

Library:libcrypt
SONAME:libcrypt.so.1

The behavior of the interfaces in this library is specified by the following specifications:

ISO/IEC 9945:2003 Portable Operating System(POSIX)and The Single UNIX® Specification(SUS) V3


Encryption


Interfaces for Encryption

An LSB conforming implementation shall provide the architecture specific functions for Encryption specified in Table 1-38, with the full functionality as described in the referenced underlying specification.

Table 1-38. libcrypt - Encryption Function Interfaces

crypt(GLIBC_2.2.5) [1]encrypt(GLIBC_2.2.5) [1]setkey(GLIBC_2.2.5) [1]  

Referenced Specification(s)

II. Utility Libraries

Table of Contents
2. Libraries

Chapter 2. Libraries

The Utility libraries are those that are commonly used, but not part of the Single Unix Specification.


Interfaces for libz

Table 2-1 defines the library name and shared object name for the libz library

Table 2-1. libz Definition

Library:libz
SONAME:libz.so.1


Compression Library


Interfaces for Compression Library

No external functions are defined for libz - Compression Library


Interfaces for libncurses

Table 2-2 defines the library name and shared object name for the libncurses library

Table 2-2. libncurses Definition

Library:libncurses
SONAME:libncurses.so.5


Curses


Interfaces for Curses

No external functions are defined for libncurses - Curses


Interfaces for libutil

Table 2-3 defines the library name and shared object name for the libutil library

Table 2-3. libutil Definition

Library:libutil
SONAME:libutil.so.1

The behavior of the interfaces in this library is specified by the following specifications:

Linux Standard Base


Utility Functions


Interfaces for Utility Functions

An LSB conforming implementation shall provide the architecture specific functions for Utility Functions specified in Table 2-4, with the full functionality as described in the referenced underlying specification.

Table 2-4. libutil - Utility Functions Function Interfaces

forkpty(GLIBC_2.2.5) [1]login_tty(GLIBC_2.2.5) [1]logwtmp(GLIBC_2.2.5) [1]  
login(GLIBC_2.2.5) [1]logout(GLIBC_2.2.5) [1]openpty(GLIBC_2.2.5) [1]  

Referenced Specification(s)


Appendix A. Alphabetical Listing of Interfaces


libgcc_s

The behaviour of the interfaces in this library is specified by the following Standards.

Linux Standard Base

Table A-1. libgcc_s Function Interfaces

_Unwind_DeleteException[1]_Unwind_GetIP[1]_Unwind_Resume[1]
_Unwind_Find_FDE[1]_Unwind_GetLanguageSpecificData[1]_Unwind_SetGR[1]
_Unwind_ForcedUnwind[1]_Unwind_GetRegionStart[1]_Unwind_SetIP[1]
_Unwind_GetDataRelBase[1]_Unwind_GetTextRelBase[1] 
_Unwind_GetGR[1]_Unwind_RaiseException[1] 

I. Package Format and Installation

Table of Contents
1. Software Installation

Chapter 1. Software Installation


Package Dependencies

The LSB runtime environment shall provde the following dependencies.

lsb-core-amd64

This dependency is used to indicate that the application is dependent on features contained in the LSB-Core specification.

Other LSB modules may add additional dependencies; such dependencies shall have the format lsb-module-amd64.


Package Architecture Considerations

All packages must specify an architecture of x86_64. An LSB runtime environment must accept an architecture of x86_64 even if the native architecture is different.

The archnum value in the Lead Section shall be 0x0001.