Copyright © 2000, 2001, 2002 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.
LSB is a trademark of the Free Standards Group in the USA and other countries.
Intel386 and Itanium are trademarks of Intel Corporation.
OpenGL is a registered trademark of Silicon Graphics, Inc.
This is version 1.3 of the Linux Standard Base Specification. 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.
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 specification ("generic LSB" or "gLSB") describing those parts of the interface that remain constant across all implementations of the LSB, and an architecture-specific specification ("archLSB") describing the parts of the interface that vary by 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 generic LSB. It must be used in conjunction with an architecture-specific supplement. Whenever a section of this specification must be supplemented by architecture-specific information, this document includes a reference to the architecture supplement. Architecture supplements may also contain additional information that is not referenced here.
This document should be used in conjunction with the documents it references. This document enumerates the system components it includes, but descriptions of those components may be included entirely or partly in this document, partly in other documents, or entirely in other reference documents. For example, the section that describes system service routines includes a list of the system routines supported in this interface, formal declarations of the data structures they use that are visible to applications, and a pointer to the underlying referenced specification for information about the syntax and semantics of each call. Only those routines not described in standards referenced by this document, or extensions to those standards, are described in the detail. Information referenced in this way is as much a part of this document as is the information explicitly included here.
The specifications listed below are referenced in whole or in part by the Linux Standard Base. When a specification is referenced in a way that imposes a requirement (for example, "foo must behave as specified in the XyzzySpec"), then the relevant requirements of that specification apply as if they were part of the LSB itself. However, if the LSB refers to a specification without imposing a requirement, then it is merely a reference and does not add additional requirements. The LSB may refer to a portion of a specification (for example, to define a specific function or group of functions); in such cases, only the explicitly referenced portion of the specification applies.
Table 1-1. Related Standards
System V Application Binary Interface - DRAFT - 22 June 2000 | http://www.caldera.com/developers/gabi/2000-07-17/contents.html |
DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993) | |
Filesystem Hierarchy Standard (FHS) 2.2 | http://www.pathname.com/fhs/ |
IEEE Standard for Binary Floating-Point Arithmetic | http://www.ieee.org/ |
System V Application Binary Interface, Edition 4.1 | http://www.caldera.com/developers/devspecs/gabi41.pdf |
ISO/IEC 9899: 1990, Programming Languages --C | |
ISO/IEC 9899: 1999, Programming Languages --C | |
ISO/IEC 14882: 1998(E) 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, Version 1.0 with Amendment 4 | http://www.li18nux.org/docs/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/ |
OSF-RFC 86.0 | http://www.opengroup.org/tech/rfc/mirror-rfc/rfc86.0.txt |
IEEE Std POSIX 1003.2-1992 (ISO/IEC 9945-2:1993) | http://www.ieee.org/ |
POSIX 1003.1c | http://www.ieee.org/ |
RFC 1952: GZIP file format specification version 4.3 | http://www.ietf.org/rfc/rfc1952.txt |
RFC 2440: OpenPGP Message Format | |
CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018 | http://www.opengroup.org/publications/catalog/un.htm |
CAE Specification, January 1997, System Interface Definitions (XBD),Issue 5 (ISBN: 1-85912-186-1, C605) | http://www.opengroup.org/publications/catalog/un.htm |
CAE Specification, January 1997, Commands and Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, C604) | http://www.opengroup.org/publications/catalog/un.htm |
CAE Specification, February 1997, Networking Services (XNS), Issue 5(ISBN: 1-85912-165-9, C523) | http://www.opengroup.org/ |
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 |
The Single UNIX® Specification(SUS) Version 1 (UNIX 95) System Interfaces & Headers | http://www.opengroup.org/publications/catalog/un.htm |
The Single UNIX® Specification(SUS) Version 3 | http://www.unix.org/version3/ |
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) Extension, Library Specification | http://www.x.org/ |
X Record Extension Library | http://www.x.org/ |
Security Extension Specification, Version 7.1 | http://www.x.org/ |
X Nonrectangular Window Shape Extension Library Version 1.0 | http://www.x.org/ |
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/ |
The libraries listed here shall be available on a Linux Standard Base system. This list may be supplemented or amended by the architecture-specific specifications.
Table 1-2. Standard Libraries Names
Table 1-3. Standard Library Names defined in the Architecture Specific Supplement
Library | Runtime Name |
---|---|
libm | See archLSB |
libc | See archLSB |
proginterp | See archLSB |
These libraries will be in an unspecified directory which the dynamic linker will search by default.
The complete LSB specification is composed of this generic LSB specification and the supplemental processor-specific specification for a particular processor architecture. 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.
The common part of the LSB Specification that describes those parts of the interface that remain constant across all hardware implementations of the LSB.
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.
An implementation satisfying 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.
An application with the following characteristics:
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 must not use any values for a named interface that are reserved for vendor extensions.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Same meaning as shall; shall is the preferred term.
LSB-conforming implementations shall support the object file Executable and Linking Format (ELF), which is defined by the following documents:
System V Application Binary Interface, Edition 4.1
System V Application Binary Interface - DRAFT - April 29, 1998
this document
an architecture-specific LSB specification
A section header's sh_type member specifies the sections's semantics.
The following section types are defined in the System V Application Binary Interface, Edition 4.1.
Table 3-1. ELF Section Types
Name | Value | Description |
---|---|---|
SHT_DYNAMIC | 0x6 | The section holds information for dynamic linking. Currently, an object file shall have only one dynamic section, but this restriction may be relaxed in the future. See `Dynamic Section' in Chapter 5 for details. |
SHT_DYNSYM | 0xb | |
SHT_FINI_ARRAY | 0xf | This section contains an array of pointers to termination functions, as described in `Initialization and Termination Functions' in Chapter 5. Each pointer in the array is taken as a parameterless procedure with a void return. |
SHT_HASH | 0x5 | The section holds a symbol hash table. Currently, an object file shall have only one hash table, but this restriction may be relaxed in the future. See `Hash Table' in the Chapter 5 for details. |
SHT_HIPROC | 0x7fffffff | Values in this inclusive range are reserved for processor-specific semantics. |
SHT_HIUSER | 0xffffffff | This value specifies the upper bound of the range of indexes reserved for application programs. Section types between SHT_LOUSER and SHT_HIUSER can be used by the application, without conflicting with current or future system-defined section types. |
SHT_INIT_ARRAY | 0xe | This section contains an array of pointers to initialization functions, as described in `Initialization and Termination Functions' in Chapter 5. Each pointer in the array is taken as a parameterless procedure with a void return. |
SHT_LOPROC | 0x70000000 | Values in this inclusive range are reserved for processor-specific semantics. |
SHT_LOUSER | 0x80000000 | This value specifies the lower bound of the range of indexes reserved for application programs. |
SHT_NOBITS | 0x8 | A section of this type occupies no space in the file but otherwise resembles SHT_PROGBITS. Although this section contains no bytes, the sh_offset member contains the conceptual file offset. |
SHT_NOTE | 0x7 | The section holds information that marks the file in some way. See `Note Section' in Chapter 5 for details. |
SHT_NULL | 0x0 | This value marks the section header as inactive; it does not have an associated section. Other members of the section header have undefined values. |
SHT_PREINIT_ARRAY | 0x10 | This section contains an array of pointers to functions that are invoked before all other initialization functions, as described in `Initialization and Termination Functions' in Chapter 5. Each pointer in the array is taken as a parameterless proceure with a void return. |
SHT_PROGBITS | 0x1 | The section holds information defined by the program, whose format and meaning are determined solely by the program. |
SHT_REL | 0x9 | The section holds relocation entries without explicit addends, such as type Elf32_Rel for the 32-bit class of object files or type Elf64_Rel for the 64-bit class of object files. An object file may have multiple relocation sections. See "Relocation" |
SHT_RELA | 0x4 | The section holds relocation entries with explicit addends, such as type Elf32_Rela for the 32-bit class of object files or type Elf64_Rela for the 64-bit class of object files. An object file may have multiple relocation sections. `Relocation' b |
SHT_SHLIB | 0xa | This section type is reserved but has unspecified semantics. |
SHT_STRTAB | 0x3 | The section holds a string table. An object file may have multiple string table sections. See `String Table' below for details. |
SHT_SYMTAB | 0x2 | These sections hold a symbol table. Currently, an object file shall have only one section of each type, but this restriction may be relaxed in the future. Typically, SHT_SYMTAB provides symbols for link editing, though it may also be used for dynamic linking. |
Various sections hold program and control information. Sections in the lists below are used by the system and have the indicated types and attributes.
The following sections are defined in the System V Application Binary Interface, Edition 4.1.
Table 4-1. ELF Special Sections
Name | Type | Attributes |
---|---|---|
.bss | SHT_NOBITS | SHF_ALLOC+SHF_WRITE |
.comment | SHT_PROGBITS | 0 |
.data | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.data1 | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.debug | SHT_PROGBITS | 0 |
.dynamic | SHT_DYNAMIC | SHF_ALLOC+SHF_WRITE |
.dynstr | SHT_STRTAB | SHF_ALLOC |
.dynsym | SHT_DYNSYM | SHF_ALLOC |
.fini | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
.fini_array | SHT_FINI_ARRAY | SHF_ALLOC+SHF_WRITE |
.hash | SHT_HASH | SHF_ALLOC |
.init | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
.init_array | SHT_INIT_ARRAY | SHF_ALLOC+SHF_WRITE |
.interp | SHT_PROGBITS | SHF_ALLOC |
.line | SHT_PROGBITS | 0 |
.note | SHT_NOTE | 0 |
.preinit_array | SHT_PREINIT_ARRAY | SHF_ALLOC+SHF_WRITE |
.rodata | SHT_PROGBITS | SHF_ALLOC |
.rodata1 | SHT_PROGBITS | SHF_ALLOC |
.shstrtab | SHT_STRTAB | 0 |
.strtab | SHT_STRTAB | SHF_ALLOC |
.symtab | SHT_SYMTAB | SHF_ALLOC |
.text | SHT_PROGBITS | SHF_ALLOC+SHF_EXECINSTR |
This section holds uninitialized data that contribute to the program's memory image. By definition, the system initializes the data with zeros when the program begins to run. The section occupies no file space, as indicated by the section type, SHT_NOBITS
This section holds version control information.
This section holds initialized data that contribute to the program's memory image.
This section holds initialized data that contribute to the program's memory image.
This section holds information for symbolic debugging. The contents are unspecified. All section names with the prefix .debug hold information for symbolic debugging. The contents of these sections are unspecified.
This section holds dynamic linking information. The section's attributes will include the SHF_ALLOC bit. Whether the SHF_WRITE bit is set is processor specific. See Chapter 5 for more information.
This section holds strings needed for dynamic linking, most commonly the strings that represent the names associated with symbol table entries. See Chapter 5 for more information.
This section holds the dynamic linking symbol table, as described in `Symbol Table'. See Chapter 5 for more information.
This section holds executable instructions that contribute to the process termination code. That is, when a program exits normally, the system arranges to execute the code in this section.
This section holds an array of function pointers that contributes to a single termination array for the executable or shared object containing the section.
This section holds a symbol hash table. See `Hash Table' in Chapter 5 for more information.
This section holds executable instructions that contribute to the process initialization code. When a program starts to run, the system arranges to execute the code in this section before calling the main program entry point (called main for C programs)
This section holds an array of function pointers that contributes to a single initialization array for the executable or shared object containing the section.
This section holds the path name of a program interpreter. If the file has a loadable segment that includes relocation, the sections' attributes will include the SHF_ALLOC bit; otherwise, that bit will be off. See Chapter 5 for more information.
This section holds line number information for symbolic debugging, which describes the correspondence between the source program and the machine code. The contents are unspecified.
This section holds information in the format that `Note Section' in Chapter 5 describes of the System V Application Binary Interface, Edition 4.1.
This section holds an array of function pointers that contributes to a single pre-initialization array for the executable or shared object containing the section.
This section holds read-only data that typically contribute to a non-writable segment in the process image. See `Program Header' in Chapter 5 for more information.
This section hold sread-only data that typically contribute to a non-writable segment in the process image. See `Program Header' in Chapter 5 for more information.
This section holds section names.
This section holds strings, most commonly the strings that represent the names associated with symbol table entries. If the file has a loadable segment that includes the symbol string table, the section's attributes will include the SHF_ALLOC bit; otherwi
This section holds a symbol table, as `Symbol Table'. in this chapter describes. If the file has a loadable segment that includes the symbol table, the section's attributes will include the SHF_ALLOC bit; otherwise, that bit will be off.
This section holds the `text,' or executable instructions, of a program.
The following additional sections are defined here.
Table 4-2. Additional Special Sections
Name | Type | Attributes |
---|---|---|
.ctors | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.dtors | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.eh_frame | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.eh_frame_hdr | SHT_PROGBITS | SHF_ALLOC |
.gnu.version | SHT_GNU_versym | SHF_ALLOC |
.gnu.version_d | SHT_GNU_verdef | SHF_ALLOC |
.gnu.version_r | SHT_GNU_verneed | SHF_ALLOC |
.jcr | SHT_PROGBITS | SHF_ALLOC+SHF_WRITE |
.note.ABI-tag | SHT_NOTE | SHF_ALLOC |
.stab | SHT_PROGBITS | 0 |
.stabstr | SHT_STRTAB | 0 |
This section contains a list of global constructor function pointers.
This section contains a list of global destructor function pointers.
This section contains information necessary for frame unwinding during exception handling. The format is the same as for .debug_frame as described by DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993).
This section contains a pointer to the .eh_frame section which is accessible to the runtime support code of a C++ application. This section may also contain a binary search table which may be used by the runtime support code to more efficiently access records in the .eh_frame section.
This section contains the Symbol Version Table.
This section contains the Version Definitions.
This section contains the Version Requirments.
This section contains information necessary for registering compiled Java classes. The contents are compiler-specific and used by compiler initialization functions.
Specify ABI details.
This section contains debugging information. The contents are not specified as part of the LSB.
This section contains strings associated with the debugging infomation contained in the .stab section.
This chapter defines how names are mapped from the source symbol to the object symbol.
Symbols in a source program are translated by the compilation system into symbols that exist in the object file. The rules for this translation are defined here.
Because of the immaturity of the C++ ABI (for name mangling, exception handling, and other such issues), we do not standardize any libraries for C++ in this version of the Linux Standard Base. [1]
In a future version of this specification, name mangling rules will be specified so that C++ symbols can be mapped into symbol names in the object file.
The .eh_frame_hdr section contains additional information about the .eh_frame section. A pointer to the start of the .eh_frame data, and optionally, a binary search table of pointers to the .eh_frame records are found in this section.
Data in this section is encoded according to the DWARF Exception Header Encoding described below.
Table 6-1. .eh_frame_hdr Section Format
Encoding | Field |
---|---|
unsigned byte | version |
unsigned byte | eh_frame_ptr_enc |
unsigned byte | fde_count_enc |
unsigned byte | table_enc |
encoded | eh_frame_ptr |
encoded | fde_count |
binary search table |
Version of the .eh_frame_hdr format. This value must be 1.
The encoding format of the eh_frame_ptr field.
The encoding format of the fde_count field. A value of DW_EH_PE_omit indicates the binary search table is not present.
The encoding format of the entries in the binary search table. A value of DW_EH_PE_omit indicates the binary search table is not present.
The encoded value of the pointer to the start of the .eh_frame section.
The encoded value of the count of entries in the binary search table.
A binary search table containing fde_count entries. Each entry of the table consist of two encoded values, the initial location, and the address. The entries are sorted in an increasing order by the initial location value.
The DWARF Exception Header Encoding is used to describe the type of data used in the .eh_frame_hdr section. The upper 4 bits indicate how the value is to be applied. The lower 4 bits indicate the format of the data.
Table 6-2. DWARF Exception Header value format
Name | Value | Meaning |
---|---|---|
DW_EH_PE_omit | 0xff | No value is present. |
DW_EH_PE_uleb128 | 0x01 | Unsigned value is encoded using the Little Endian Base 128 (LEB128) as defined by DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993). |
DW_EH_PE_udata2 | 0x02 | A 2 bytes unsigned value. |
DW_EH_PE_udata4 | 0x03 | A 4 bytes unsigned value. |
DW_EH_PE_udata8 | 0x04 | An 8 bytes unsigned value. |
DW_EH_PE_sleb128 | 0x09 | Signed value is encoded using the Little Endian Base 128 (LEB128) as defined by DWARF Debugging Information Format, Revision 2.0.0 (July 27, 1993). |
DW_EH_PE_sdata2 | 0x0A | A 2 bytes signed value. |
DW_EH_PE_sdata4 | 0x0B | A 4 bytes signed value. |
DW_EH_PE_sdata8 | 0x0C | An 8 bytes signed value. |
Table 6-3. DWARF Exception Header application
Name | Value | Meaning |
---|---|---|
DW_EH_PE_absptr | 0x00 | Value is used with no modification. |
DW_EH_PE_pcrel | 0x10 | Value is reletive to the current program counter. |
DW_EH_PE_datarel | 0x30 | Value is reletive to the beginning of the .eh_frame_hdr section. |
DW_EH_PE_omit | 0xff | No value is present. |
This chapter describes the Symbol Versioning mechanism. All ELF objects may provide or depend on versioned symbols. Symbol Versioning is implemented by 3 section types: SHT_GNU_versym, SHT_GNU_verdef, and SHT_GNU_verneed.
The term "Elfxx" means "Elf32" or "Elf64" depending on the architecture.
Versions are described by strings. The structures that are used for symbol versions also contain a member that holds the ELF hashing values of the strings. This allows for more efficient processing.
The Symbol Version Table is contained in the special section .gnu.version which has a section type of SHT_GNU_versym. This section has the same number of entries as the Dynamic Symbol Table.
This section contains an array of elements of type Elfxx_Half. Each entry specifies the version defined for or required by the corresponding symbol in the Dynamic Symbol Table.
The values in the Symbol Version Table are unique to the object in which they are located. These values are identifiers that are provided by the the vna_other member of the Elfxx_Vernaux structure or the vd_ndx member of the Elfxx_Verdef structure.
The values 0 and 1 are reserved.
The symbol is local, not available outside the object.
The symbol is defined in this object and is globally available.
All other values are used to identify version strings located in one of the other Symbol Version sections. The value itself is not the version associated with the symbol. The string identified by the value defines the version of the symbol.
Symbol definitions are contained in the special section .gnu.version_d which has a section type of SHT_GNU_verdef. The number of entries in this section is contained in the DT_VERDEFNUM entry of the Dynamic Section. The sh_link member of the section header points to the section that contains the strings referenced by this section.
Figure 7-1. Version Definition Entries
typedef struct { Elfxx_Half vd_version; Elfxx_Half vd_flags; Elfxx_Half vd_ndx; Elfxx_Half vd_cnt; Elfxx_Word vd_hash; Elfxx_Word vd_aux; Elfxx_Word vd_next; } Elfxx_Verdef; |
Version revision. This value is currently set to 1, and will be reset if the versioning implementation is incompatibly altered.
Version information flag bitmask.
Version index numeric value referencing the SHT_GNU_versym section.
Number of associated verdaux array entries.
Version name hash value (ELF hash function).
Offset to a corresponding entry in the verdaux array, in bytes.
Offset to the next verdef entry, in bytes.
Figure 7-2. Version Definition Auxiliary Entries
typedef struct { Elfxx_Word vda_name; Elfxx_Word vda_next; } Elfxx_Verdaux; |
Offset to the version or dependency name string in the section header, in bytes.
Offset to the next verdaux entry, in bytes.
Symbol definitions are contained in the special section .gnu.version_r which has a section type of SHT_GNU_verneed. The number of entries in this section is contained in the DT_VERNEEDNUM entry of the Dynamic Section. The sh_link member of the section header points to the section that contains the strings referenced by this section.
Figure 7-3. Version Needed Entries
typedef struct { Elfxx_Half vn_version; Elfxx_Half vn_cnt; Elfxx_Word vn_file; Elfxx_Word vn_aux; Elfxx_Word vn_next; } Elfxx_Verneed; |
Version of structure. This value is currently set to 1, and will be reset if the versioning implementation is incompatibly altered.
Number of associated verneed array entries.
Offset to the file name string in the section header, in bytes.
Offset to a corresponding entry in the vernaux array, in bytes.
Offset to the next verneed entry, in bytes.
Figure 7-4. Version Needed Auxiliary Entries
typedef struct { Elfxx_Word vna_hash; Elfxx_Half vna_flags; Elfxx_Half vna_other; Elfxx_Word vna_name; Elfxx_Word vna_next; } Elfxx_Vernaux; |
Dependency name hash value (ELF hash function).
Dependency information flag bitmask.
Object file version identifier used in the .gnu.version symbol version array. Bit number 15 controls whether or not the object is hidden; if this bit is set, the object cannot be used and the static linker will ignore the symbol's presence in the object.
Offset to the dependency name string in the section header, in bytes.
Offset to the next vernaux entry, in bytes.
When loading a sharable object, version definition data from the loaded object is analyzed to assure that it meets the version requirements of the calling object. The dynamic loader retrieves the entries in the caller's Elfxx_Verneed array and attempts to find matching definition information in the loaded Elfxx_Verdef table.
Each object and dependency is tested in turn. If a symbol definition is missing, the loader returns an error. A warning is issued instead of a hard error when the vna_flags bit for VER_FLG_WEAK is set in the Elfxx_Vernaux entry.
When the versions referenced by undefined symbols in the loaded object are found, version availability is certified. The test completes without error and the object is made available.
When symbol versioning is used in an object, relocations extend the performance of definition testing beyond the simple match of symbol name strings: the version of the reference must also equal the name of the definition. The same index that is used in the symbol table can be referenced in the SHT_GNU_versym section, and the value of this index is then used to acquire name data. The corresponding requirement string is retrieved from the Elfxx_Verneed array, and likewise, the corresponding definition string from the Elfxx_Verdef table.
Bit number 15 of the version symbol controls whether or not the object is hidden; if this bit is set, the object cannot be used and the static linker will ignore the symbol's presence in the object.
Results differ in the interaction of objects that variously use symbol versioning.
The object with the reference and the object with the definitions may both use versioning. All described matching is processed in this case. A fatal error is triggered when no matching definition can be found in the object whose name is the one referenced by the vn_name element in the Elfxx_Verneed entry.
The object with the reference may not use versioning, while the object with the definitions does. In this instance, only the definition with index numbers 1 and 2 will be used in the reference match, the same identified by the static linker as the base definition. In infrequent cases where the static linker was not used, as in calls to dlopen(), a version that does not have the base definition index is acceptable as long as it is the only version for which the symbol is defined.
The object with the reference may use versioning, but the object with the definitions specifies none. A matching symbol is accepted in this case. A fatal error is triggered in the unlikely event that a corruption in the required symbols list obscured an outdated object file and caused a match on the object filename in the Elfxx_Verneed entry.
Finally, both the object with the reference and the object with the definitions may not use versioning. The behavior in this instance defaults to pre-existing symbol rules.
Every executable shall contain a section named .note.ABI-tag of type SHT_NOTE. This section is structured as a note section as documented in the ELF spec. The section must contain at least the following entry. The name field (namesz/name) contains the string "GNU". The type field shall be 1. The descsz field shall be at least 16, and the first 16 bytes of the desc field shall be as follows.
The first 32-bit word of the desc field must be 0 (this signifies a Linux executable). The second, third, and fourth 32-bit words of the desc field contain the earliest compatible kernel version. For example, if the 3 words are 2, 2, and 5, this signifies a 2.2.5 kernel.
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 and the System V Application Binary Interface - DRAFT - April 29, 1998 and as supplemented by this document and an architecture-specific LSB specification.
Any shared object that is loaded must contain sufficient DT_NEEDED records to satisfy the symbols on the shared library.
In addition to the Segment Types defined in the System V Application Binary Interface, Edition 4.1 and the System V Application Binary Interface - DRAFT - April 29, 1998 the following Segment Types shall also be supported.
The array element specifies the location and size of the exception handling information as defined by the .eh_frame_hdr section.
A dynamic entry's d_tag member control the interpretation of d_un.
The following dynamic entries are defined in the System V Application Binary Interface, Edition 4.1.
Process relocations of object
For debugging; unspecified
Address of termination function
Address of symbol hash table
End of processor-specific
Address of init function
Address of PLT relocs
Start of processor-specific
Name of needed library
Marks end of dynamic section
Type of reloc in PLT
Size in bytes of PLT relocs
Address of Rel relocs
Address of Rela relocs
Size of one Rela reloc
Total size of Rela relocs
Size of one Rel reloc
Total size of Rel relocs
Library search path
Name of shared object
Size of string table
Address of string table
Start symbol search here
Size of one symbol table entry
Address of symbol table
Reloc might modify .text
The following dynamic entries are defined here.
Values from DT_ADDRRNGLO through DT_ADDRRNGHI are reserved for definition by an archLSB.
Values from DT_ADDRRNGLO through DT_ADDRRNGHI are reserved for definition by an archLSB.
Shared object to load before self
Shared object to get values from
The address of an array of pointers to termination functions.
Size in bytes of DT_FINI_ARRAY
State flags, see DF_1_* below
Values from DT_LOOS through DT_HIOS are reserved for definition by specific operating systems.
The address of an array of pointers to initialization functions.
Size in bytes of DT_INIT_ARRAY
Values from DT_LOOS through DT_HIOS are reserved for definition by specific operating systems.
Number of dynamic entry tags defined (excepting reserved ranges).
Flags for DT_* entries, effecting the following DT_* entry
All Elf32_Rel R_*_RELATIVE relocations have been placed into a single block and this entry specifies the number of entries in that block. This permits ld.so.1 to streamline the processing of RELATIVE relocations.
Entry size of syminfo
Address of the Syminfo table.
Size of syminfo table (in bytes)
Entries which fall between DT_VALRNGHI & DT_VALRNGLO use the Dyn.d_un.d_val field of the Elf*_Dyn structure.
Entries which fall between DT_VALRNGHI & DT_VALRNGLO use the Dyn.d_un.d_val field of the Elf*_Dyn structure.
Address of version definition table
Number of version definitions
Address of table with needed versions
Number of needed versions
Address of the table provided by the .gnu.version section.
An LSB-conforming implementation shall support some base libraries which provide interfaces for accessing the operating system, processor and other hardware in the system.
The behavior of the interfaces in this library is specified by the following standards.
ISO/IEC 9899: 1999, Programming Languages --C[2] |
Large File Support[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] |
The Single UNIX® Specification(SUS) Version 3[8] |
System V Interface Definition, Issue 3 (ISBN 0201566524)[9] |
System V Interface Definition,Fourth Edition[10] |
Table 13-2. libc - RPC Function Interfaces
authnone_create[10] | svc_getreqset[9] | xdr_bytes[9] | xdr_opaque_auth[9] | xdr_union[9] |
clnt_create[10] | svcerr_auth[9] | xdr_callhdr[9] | xdr_pointer[9] | xdr_vector[9] |
clnt_pcreateerror[10] | svcerr_decode[9] | xdr_callmsg[9] | xdr_reference[9] | xdr_void[9] |
clnt_perrno[10] | svcerr_noproc[9] | xdr_char[9] | xdr_rejected_reply[9] | xdr_wrapstring[9] |
clnt_perror[10] | svcerr_noprog[9] | xdr_double[9] | xdr_replymsg[9] | xdrmem_create[9] |
clnt_spcreateerror[10] | svcerr_progvers[9] | xdr_enum[9] | xdr_short[9] | xdrrec_create[9] |
clnt_sperrno[10] | svcerr_systemerr[9] | xdr_float[9] | xdr_string[9] | xdrrec_eof[9] |
clnt_sperror[10] | svcerr_weakauth[9] | xdr_free[9] | xdr_u_char[9] | |
getdomainname[4] | xdr_accepted_reply[9] | xdr_int[9] | xdr_u_int[4] | |
key_decryptsession[9] | xdr_array[9] | xdr_long[9] | xdr_u_long[9] | |
setdomainname[4] | xdr_bool[9] | xdr_opaque[9] | xdr_u_short[9] |
Table 13-3. libc - System Calls Function Interfaces
__fxstat[4] | fchown[7] | initgroups[4] | read[7] | setrlimit64[3] |
__getpgid[4] | fcntl[4] | ioctl[4] | readdir[7] | setsid[7] |
__lxstat[4] | fdatasync[7] | kill[4] | readdir_r[7] | setuid[7] |
__xmknod[4] | flock[4] | killpg[7] | readlink[7] | sleep[7] |
__xstat[4] | fork[7] | lchown[7] | readv[7] | statfs[4] |
access[7] | fstatfs[4] | link[7] | rename[7] | statvfs[7] |
acct[4] | fstatvfs[7] | lockf[7] | rmdir[7] | stime[4] |
alarm[7] | fsync[7] | lseek[7] | sbrk[7] | symlink[7] |
brk[7] | ftime[7] | mkdir[7] | sched_get_priority_max[7] | sync[7] |
chdir[7] | ftruncate[7] | mkfifo[7] | sched_get_priority_min[7] | sysconf[7] |
chmod[7] | getcontext[7] | mlock[7] | sched_getparam[7] | time[7] |
chown[7] | getegid[7] | mlockall[7] | sched_getscheduler[7] | times[7] |
chroot[7] | geteuid[7] | mmap[7] | sched_rr_get_interval[7] | truncate[7] |
clock[7] | getgid[7] | mprotect[7] | sched_setparam[7] | ulimit[7] |
close[7] | getgroups[7] | msync[7] | sched_setscheduler[7] | umask[7] |
closedir[7] | getitimer[7] | munlock[7] | sched_yield[7] | uname[7] |
creat[7] | getloadavg[4] | munlockall[7] | select[6] | unlink[4] |
dup[7] | getpagesize[7] | munmap[7] | setcontext[7] | utime[7] |
dup2[7] | getpgid[7] | nanosleep[7] | setegid[4] | utimes[7] |
execl[7] | getpgrp[7] | nice[4] | seteuid[4] | vfork[7] |
execle[7] | getpid[7] | open[7] | setgid[7] | wait[7] |
execlp[7] | getppid[7] | opendir[7] | setitimer[7] | wait3[4] |
execv[7] | getpriority[7] | pathconf[7] | setpgid[7] | wait4[4] |
execve[7] | getrlimit[7] | pause[7] | setpgrp[7] | waitid[4] |
execvp[7] | getrusage[7] | pipe[7] | setpriority[7] | waitpid[4] |
exit[7] | getsid[7] | poll[7] | setregid[7] | write[7] |
fchdir[7] | getuid[7] | pread[7] | setreuid[7] | writev[7] |
fchmod[7] | getwd[7] | pwrite[7] | setrlimit[7] |
Table 13-5. libc - Standard I/O Function Interfaces
_IO_feof[4] | fgetc[7] | fseeko[7] | putc[7] | snprintf[7] |
_IO_getc[4] | fgetpos[7] | fsetpos[7] | putc_unlocked[7] | sprintf[7] |
_IO_putc[4] | fgets[7] | ftell[7] | putchar[7] | sscanf[7] |
_IO_puts[4] | fgetwc_unlocked[7] | ftello[7] | putchar_unlocked[7] | telldir[7] |
alphasort[4] | fileno[7] | fwrite[7] | puts[7] | tempnam[7] |
asprintf[4] | flockfile[7] | getc[7] | putw[7] | ungetc[7] |
clearerr[7] | fopen[7] | getc_unlocked[7] | remove[7] | vasprintf[4] |
ctermid[7] | fprintf[7] | getchar[7] | rewind[7] | vdprintf[4] |
fclose[7] | fputc[7] | getchar_unlocked[7] | rewinddir[7] | vfprintf[7] |
fdopen[7] | fputs[7] | gets[4] | scanf[7] | vprintf[7] |
feof[7] | fread[7] | getw[7] | seekdir[7] | vsnprintf[7] |
ferror[7] | freopen[7] | pclose[7] | setbuf[7] | vsprintf[7] |
fflush[7] | fscanf[7] | popen[7] | setbuffer[4] | |
fflush_unlocked[7] | fseek[7] | printf[7] | setvbuf[7] |
Table 13-8. libc - Signal Handling Function Interfaces
__libc_current_sigrtmax[4] | sigaddset[7] | sighold[7] | sigpause[7] | sigsuspend[7] |
__libc_current_sigrtmin[4] | sigaltstack[7] | sigignore[7] | sigpending[7] | sigtimedwait[7] |
__sigsetjmp[4] | sigandset[4] | siginterrupt[7] | sigprocmask[7] | sigwait[7] |
__sysv_signal[4] | sigblock[4] | sigisemptyset[4] | sigqueue[7] | sigwaitinfo[7] |
bsd_signal[7] | sigdelset[7] | sigismember[7] | sigrelse[7] | |
psignal[4] | sigemptyset[7] | siglongjmp[7] | sigreturn[4] | |
raise[7] | sigfillset[7] | signal[7] | sigset[7] | |
sigaction[7] | siggetmask[4] | sigorset[4] | sigstack[7] |
Table 13-10. libc - Localization Functions Function Interfaces
__dcgettext[4] | catgets[7] | dgettext[4] | iconv_close[7] | nl_langinfo[7] |
bind_textdomain_codeset[4] | catopen[7] | dngettext[4] | iconv_open[7] | setlocale[7] |
bindtextdomain[4] | dcgettext[4] | gettext[4] | localeconv[7] | textdomain[4] |
catclose[7] | dcngettext[4] | iconv[7] | ngettext[4] |
Table 13-13. libc - Socket Interface Function Interfaces
__h_errno_location[4] | gethostbyname_r[4] | getsockopt[6] | send[6] | socket[6] |
accept[6] | gethostid[7] | listen[6] | sendmsg[6] | socketpair[6] |
bind[6] | gethostname[6] | recv[6] | sendto[6] | |
bindresvport[4] | getpeername[6] | recvfrom[6] | setsockopt[6] | |
connect[6] | getsockname[6] | recvmsg[6] | shutdown[6] |
Table 13-14. libc - Wide Characters Function Interfaces
__wcstod_internal[4] | mbsinit[7] | vwscanf[2] | wcsnlen[4] | wcstoumax[2] |
__wcstof_internal[4] | mbsnrtowcs[4] | wcpcpy[4] | wcsnrtombs[4] | wcstouq[4] |
__wcstol_internal[4] | mbsrtowcs[7] | wcpncpy[4] | wcspbrk[2] | wcswcs[7] |
__wcstold_internal[4] | mbstowcs[7] | wcrtomb[7] | wcsrchr[7] | wcswidth[7] |
__wcstoul_internal[4] | mbtowc[7] | wcscasecmp[4] | wcsrtombs[7] | wcsxfrm[7] |
btowc[7] | putwc[2] | wcscat[7] | wcsspn[7] | wctob[7] |
fgetwc[7] | putwchar[2] | wcschr[7] | wcsstr[7] | wctomb[7] |
fgetws[2] | swprintf[7] | wcscmp[7] | wcstod[7] | wctrans[7] |
fputwc[2] | swscanf[2] | wcscoll[7] | wcstof[2] | wctype[7] |
fputws[2] | towctrans[7] | wcscpy[7] | wcstoimax[2] | wcwidth[7] |
fwide[2] | towlower[2] | wcscspn[7] | wcstok[7] | wmemchr[7] |
fwprintf[7] | towupper[7] | wcsdup[4] | wcstol[7] | wmemcmp[7] |
fwscanf[2] | ungetwc[2] | wcsftime[2] | wcstold[2] | wmemcpy[7] |
getwc[2] | vfwprintf[2] | wcslen[7] | wcstoll[2] | wmemmove[7] |
getwchar[7] | vfwscanf[2] | wcsncasecmp[4] | wcstombs[7] | wmemset[7] |
mblen[7] | vswprintf[2] | wcsncat[7] | wcstoq[4] | wprintf[2] |
mbrlen[7] | vswscanf[2] | wcsncmp[7] | wcstoul[7] | wscanf[2] |
mbrtowc[7] | vwprintf[2] | wcsncpy[7] | wcstoull[2] |
Table 13-15. libc - String Functions Function Interfaces
__mempcpy[4] | bzero[7] | strcasestr[4] | strncasecmp[7] | strtoimax[2] |
__rawmemchr[4] | ffs[7] | strcat[7] | strncat[7] | strtok[7] |
__stpcpy[4] | index[7] | strchr[7] | strncmp[7] | strtok_r[4] |
__strdup[4] | memccpy[7] | strcmp[7] | strncpy[7] | strtold[2] |
__strtod_internal[4] | memchr[7] | strcoll[7] | strndup[4] | strtoll[2] |
__strtof_internal[4] | memcmp[7] | strcpy[7] | strnlen[4] | strtoq[4] |
__strtok_r[4] | memcpy[7] | strcspn[7] | strpbrk[7] | strtoull[2] |
__strtol_internal[4] | memmove[7] | strdup[7] | strptime[4] | strtoumax[2] |
__strtold_internal[4] | memrchr[4] | strerror[7] | strrchr[7] | strtouq[4] |
__strtoll_internal[4] | memset[7] | strerror_r[4] | strsep[4] | strverscmp[4] |
__strtoul_internal[4] | rindex[7] | strfmon[7] | strsignal[4] | strxfrm[7] |
__strtoull_internal[4] | stpcpy[4] | strfry[4] | strspn[7] | swab[7] |
bcmp[7] | stpncpy[4] | strftime[7] | strstr[7] | |
bcopy[7] | strcasecmp[7] | strlen[7] | strtof[2] |
Table 13-19. libc - Character Type Functions Function Interfaces
__ctype_get_mb_cur_max[4] | isdigit[7] | iswalnum[7] | iswlower[7] | toascii[7] |
_tolower[7] | isgraph[7] | iswalpha[7] | iswprint[7] | tolower[7] |
_toupper[7] | islower[7] | iswblank[8] | iswpunct[7] | toupper[7] |
isalnum[7] | isprint[7] | iswcntrl[7] | iswspace[7] | |
isalpha[7] | ispunct[7] | iswctype[4] | iswupper[7] | |
isascii[7] | isspace[7] | iswdigit[7] | iswxdigit[7] | |
iscntrl[7] | isupper[7] | iswgraph[7] | isxdigit[7] |
Table 13-24. libc - System Database Interface Function Interfaces
endgrent[7] | getgrgid[7] | getprotoent[7] | getutent[4] | setmntent[4] |
endhostent[6] | getgrgid_r[7] | getpwent[7] | getutent_r[4] | setnetent[6] |
endnetent[6] | getgrnam[7] | getpwnam[7] | getutxent[7] | setprotoent[6] |
endprotoent[6] | getgrnam_r[7] | getpwnam_r[4] | getutxid[7] | setpwent[7] |
endpwent[7] | gethostbyaddr[6] | getpwuid[7] | getutxline[7] | setservent[6] |
endservent[6] | gethostbyname[4] | getpwuid_r[7] | pututxline[7] | setutent[4] |
endutent[7] | getnetbyaddr[6] | getservbyname[4] | setgrent[7] | setutxent[7] |
endutxent[7] | getprotobyname[7] | getservbyport[6] | setgroups[4] | |
getgrent[7] | getprotobynumber[6] | getservent[4] | sethostent[6] |
Table 13-27. libc - Large File Support Function Interfaces
__fxstat64[4] | fopen64[3] | ftello64[3] | mkstemp64[3] | readdir64[3] |
__lxstat64[4] | freopen64[3] | ftruncate64[3] | mmap64[3] | statfs64[4] |
__xstat64[4] | fseeko64[3] | ftw64[3] | nftw64[3] | statvfs64[3] |
alphasort64[4] | fsetpos64[3] | getrlimit64[3] | open64[3] | tmpfile64[3] |
creat64[3] | fstatfs64[4] | lockf64[3] | pread64[3] | truncate64[3] |
fgetpos64[3] | fstatvfs64[3] | lseek64[3] | pwrite64[3] |
Table 13-29. libc - Standard Library Function Interfaces
_Exit[2] | div[7] | globfree64[4] | longjmp[7] | srand[7] |
__assert_fail[4] | drand48[7] | grantpt[7] | lrand48[7] | srand48[7] |
__cxa_atexit[4] | ecvt[7] | hcreate[7] | lsearch[7] | srandom[7] |
__errno_location[4] | erand48[7] | hdestroy[7] | makecontext[7] | strtod[7] |
__fpending[4] | err[4] | hsearch[7] | malloc[7] | strtol[7] |
__getpagesize[4] | error[4] | htonl[6] | memmem[4] | strtoul[7] |
__isinf[4] | errx[4] | htons[6] | mkstemp[7] | swapcontext[7] |
__isinff[4] | fcvt[7] | imaxabs[2] | mktemp[7] | syslog[7] |
__isinfl[4] | fmtmsg[7] | imaxdiv[2] | mrand48[7] | system[4] |
__isnan[4] | fnmatch[7] | inet_addr[6] | nftw[7] | tdelete[7] |
__isnanf[4] | fpathconf[7] | inet_aton[6] | nrand48[7] | tfind[7] |
__isnanl[4] | free[7] | inet_ntoa[6] | ntohl[6] | tmpfile[7] |
__sysconf[4] | freeaddrinfo[8] | inet_ntop[8] | ntohs[6] | tmpnam[7] |
_exit[7] | ftrylockfile[7] | inet_pton[8] | openlog[7] | tsearch[7] |
_longjmp[7] | ftw[7] | initstate[7] | perror[7] | ttyname[7] |
_setjmp[7] | funlockfile[7] | insque[7] | posix_memalign[5] | ttyname_r[7] |
a64l[7] | gai_strerror[8] | isatty[7] | ptsname[7] | twalk[7] |
abort[7] | gcvt[7] | isblank[8] | putenv[7] | unlockpt[7] |
abs[7] | getaddrinfo[8] | isinf[2] | qsort[7] | unsetenv[4] |
atexit[7] | getcwd[7] | isinff | rand[7] | usleep[7] |
atof[7] | getdate[7] | isinfl[2] | rand_r[7] | verrx[4] |
atoi[7] | getenv[7] | isnan[2] | random[7] | vfscanf[2] |
atol[7] | getlogin[7] | isnanf[2] | random_r[4] | vscanf[2] |
atoll[2] | getnameinfo[8] | isnanl[2] | realloc[7] | vsscanf[2] |
basename[7] | getopt[4] | jrand48[7] | realpath[7] | vsyslog[4] |
bsearch[7] | getopt_long[4] | l64a[7] | remque[7] | warn[4] |
calloc[7] | getopt_long_only[4] | labs[7] | seed48[7] | warnx[4] |
closelog[7] | getsubopt[7] | lcong48[7] | setenv[4] | wordexp[7] |
confstr[7] | gettimeofday[7] | ldiv[7] | sethostid[4] | wordfree[7] |
cuserid[7] | glob[7] | lfind[7] | sethostname[4] | |
daemon[4] | glob64[4] | llabs[2] | setlogmask[7] | |
dirname[7] | globfree[7] | lldiv[2] | setstate[7] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
enum { _ISupper, _ISlower, _ISalpha, _ISdigit, _ISxdigit, _ISspace, _ISprint, _ISgraph, _ISblank, _IScntrl, _ISpunct, _ISalnum } ; |
typedef struct __dirstream DIR; struct dirent { long d_ino; off_t d_off; unsigned short d_reclen; unsigned char d_type; char d_name[256]; } ; struct dirent64 { uint64_t d_ino; int64_t d_off; unsigned short d_reclen; unsigned char d_type; char d_name[256]; } ; |
#define errno (*__errno_location()) #define EPERM 1 #define ECHILD 10 #define ENETDOWN 100 #define ENETUNREACH 101 #define ENETRESET 102 #define ECONNABORTED 103 #define ECONNRESET 104 #define ENOBUFS 105 #define EISCONN 106 #define ENOTCONN 107 #define ESHUTDOWN 108 #define ETOOMANYREFS 109 #define EAGAIN 11 #define ETIMEDOUT 110 #define ECONNREFUSED 111 #define EHOSTDOWN 112 #define EHOSTUNREACH 113 #define EALREADY 114 #define EINPROGRESS 115 #define ESTALE 116 #define EUCLEAN 117 #define ENOTNAM 118 #define ENAVAIL 119 #define ENOMEM 12 #define EISNAM 120 #define EREMOTEIO 121 #define EDQUOT 122 #define ENOMEDIUM 123 #define EMEDIUMTYPE 124 #define ECANCELED 125 #define EACCES 13 #define EFAULT 14 #define ENOTBLK 15 #define EBUSY 16 #define EEXIST 17 #define EXDEV 18 #define ENODEV 19 #define ENOENT 2 #define ENOTDIR 20 #define EISDIR 21 #define EINVAL 22 #define ENFILE 23 #define EMFILE 24 #define ENOTTY 25 #define ETXTBSY 26 #define EFBIG 27 #define ENOSPC 28 #define ESPIPE 29 #define ESRCH 3 #define EROFS 30 #define EMLINK 31 #define EPIPE 32 #define EDOM 33 #define ERANGE 34 #define EDEADLK 35 #define ENAMETOOLONG 36 #define ENOLCK 37 #define ENOSYS 38 #define ENOTEMPTY 39 #define EINTR 4 #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 EIO 5 #define ENOANO 55 #define EBADRQC 56 #define EBADSLT 57 #define EBFONT 59 #define ENXIO 6 #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 E2BIG 7 #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 ENOEXEC 8 #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 EBADF 9 #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 #define EWOULDBLOCK EAGAIN #define ENOTSUP EOPNOTSUPP |
#define O_RDONLY 00 #define O_ACCMODE 0003 #define O_WRONLY 01 #define O_CREAT 0100 #define O_TRUNC 01000 #define O_SYNC 010000 #define O_RDWR 02 #define O_EXCL 0200 #define O_APPEND 02000 #define O_ASYNC 020000 #define O_NOCTTY 0400 #define O_NDELAY 04000 #define O_NONBLOCK 04000 #define FD_CLOEXEC 1 struct flock { short l_type; short l_whence; off_t l_start; off_t l_len; pid_t l_pid; } ; struct flock64 { short l_type; short l_whence; loff_t l_start; loff_t l_len; pid_t l_pid; } ; #define F_DUPFD 0 #define F_RDLCK 0 #define F_GETFD 1 #define F_WRLCK 1 #define F_SETFD 2 #define F_UNLCK 2 #define F_GETFL 3 #define F_SETFL 4 #define F_GETLK 5 #define F_SETLK 6 #define F_SETLKW 7 #define F_SETOWN 8 #define F_GETOWN 9 |
#define MM_HARD 1 #define MM_NRECOV 128 #define MM_UTIL 16 #define MM_SOFT 2 #define MM_OPSYS 32 #define MM_FIRM 4 #define MM_RECOVER 64 #define MM_APPL 8 #define MM_NOSEV 0 #define MM_HALT 1 #define MM_ERROR 2 #define MM_NULLLBL ((char *) 0) |
#define FNM_PATHNAME (1<<0) #define FNM_NOESCAPE (1<<1) #define FNM_PERIOD (1<<2) #define FNM_NOMATCH 1 |
#define FTW_D FTW_D #define FTW_DNR FTW_DNR #define FTW_DP FTW_DP #define FTW_F FTW_F #define FTW_NS FTW_NS #define FTW_SL FTW_SL #define FTW_SLN FTW_SLN enum { FTW_F, FTW_D, FTW_DNR, FTW_NS, FTW_SL, FTW_DP, FTW_SLN } ; enum { FTW_PHYS, FTW_MOUNT, FTW_CHDIR, FTW_DEPTH } ; struct FTW { int base; int level; } ; typedef int (*__ftw_func_t) (char *__filename, struct stat * __status, int __flag); typedef int (*__ftw64_func_t) (char *__filename, struct stat64 * __status, int __flag); typedef int (*__nftw_func_t) (char *__filename, struct stat * __status, int __flag, struct FTW * __info); typedef int (*__nftw64_func_t) (char *__filename, struct stat64 * __status, int __flag, struct FTW * __info); |
typedef struct { size_t gl_pathc; char **gl_pathv; size_t gl_offs; int gl_flags; void (*gl_closedir) (void); struct dirent *(*gl_readdir) (void); void *(*gl_opendir) (void); int (*gl_lstat) (void); int (*gl_stat) (void); } glob_t; typedef struct { size_t gl_pathc; char **gl_pathv; size_t gl_offs; int gl_flags; void (*gl_closedir) (void); struct dirent *(*gl_readdir) (void); void *(*gl_opendir) (void); int (*gl_lstat) (void); int (*gl_stat) (void); } glob64_t; #define GLOB_ERR (1<<0) #define GLOB_MARK (1<<1) #define GLOB_BRACE (1<<10) #define GLOB_NOMAGIC (1<<11) #define GLOB_TILDE (1<<12) #define GLOB_ONLYDIR (1<<13) #define GLOB_TILDE_CHECK (1<<14) #define GLOB_NOSORT (1<<2) #define GLOB_DOOFFS (1<<3) #define GLOB_NOCHECK (1<<4) #define GLOB_APPEND (1<<5) #define GLOB_NOESCAPE (1<<6) #define GLOB_PERIOD (1<<7) #define GLOB_MAGCHAR (1<<8) #define GLOB_ALTDIRFUNC (1<<9) #define GLOB_NOSPACE 1 #define GLOB_ABORTED 2 #define GLOB_NOMATCH 3 #define GLOB_NOSYS 4 |
typedef lldiv_t imaxdiv_t; typedef unsigned int u_int; typedef unsigned int uint; typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned int uint32_t; typedef unsigned long long uint64_t; |
#define ABDAY_1 0x20000 #define ABDAY_2 0x20001 #define ABDAY_3 0x20002 #define ABDAY_4 0x20003 #define ABDAY_5 0x20004 #define ABDAY_6 0x20005 #define ABDAY_7 0x20006 #define DAY_1 0x20007 #define DAY_2 0x20008 #define DAY_3 0x20009 #define DAY_4 0x2000A #define DAY_5 0x2000B #define DAY_6 0x2000C #define DAY_7 0x2000D #define ABMON_1 0x2000E #define ABMON_2 0x2000F #define ABMON_3 0x20010 #define ABMON_4 0x20011 #define ABMON_5 0x20012 #define ABMON_6 0x20013 #define ABMON_7 0x20014 #define ABMON_8 0x20015 #define ABMON_9 0x20016 #define ABMON_10 0x20017 #define ABMON_11 0x20018 #define ABMON_12 0x20019 #define MON_1 0x2001A #define MON_2 0x2001B #define MON_3 0x2001C #define MON_4 0x2001D #define MON_5 0x2001E #define MON_6 0x2001F #define MON_7 0x20020 #define MON_8 0x20021 #define MON_9 0x20022 #define MON_10 0x20023 #define MON_11 0x20024 #define MON_12 0x20025 #define AM_STR 0x20026 #define PM_STR 0x20027 #define D_T_FMT 0x20028 #define D_FMT 0x20029 #define T_FMT 0x2002A #define T_FMT_AMPM 0x2002B #define ERA 0x2002C #define ERA_D_FMT 0x2002E #define ALT_DIGITS 0x2002F #define ERA_D_T_FMT 0x20030 #define ERA_T_FMT 0x20031 #define CODESET 14 #define CRNCYSTR 0x4000F #define RADIXCHAR 0x10000 #define THOUSEP 0x10001 #define YESEXPR 0x50000 #define NOEXPR 0x50001 #define YESSTR 0x50002 #define NOSTR 0x50003 |
#define OPEN_MAX 256 #define PATH_MAX 4096 #define MB_LEN_MAX 16 #define SCHAR_MIN (-128) #define SCHAR_MAX 127 #define UCHAR_MAX 255 #define CHAR_BIT 8 #define SHRT_MIN (-32768) #define SHRT_MAX 32767 #define USHRT_MAX 65535 #define INT_MIN (-INT_MAX-1) #define INT_MAX 2147483647 #define __INT_MAX__ 2147483647 #define UINT_MAX 4294967295U #define LONG_MIN (-LONG_MAX-1L) |
#define LC_CTYPE 0 #define LC_NUMERIC 1 #define LC_TELEPHONE 10 #define LC_MEASUREMENT 11 #define LC_IDENTIFICATION 12 #define LC_TIME 2 #define LC_COLLATE 3 #define LC_MONETARY 4 #define LC_MESSAGES 5 #define LC_ALL 6 #define LC_PAPER 7 #define LC_NAME 8 #define LC_ADDRESS 9 struct lconv { char *decimal_point; char *thousands_sep; char *grouping; char *int_curr_symbol; char *currency_symbol; char *mon_decimal_point; char *mon_thousands_sep; char *mon_grouping; char *positive_sign; char *negative_sign; char int_frac_digits; char frac_digits; char p_cs_precedes; char p_sep_by_space; char n_cs_precedes; char n_sep_by_space; char p_sign_posn; char n_sign_posn; char int_p_cs_precedes; char int_p_sep_by_space; char int_n_cs_precedes; char int_n_sep_by_space; char int_p_sign_posn; char int_n_sign_posn; } ; typedef struct __locale_struct { struct locale_data *__locales[13]; const unsigned short *__ctype_b; const int *__ctype_tolower; const int *__ctype_toupper; const char *__names[13]; } *__locale_t; typedef __locale_t locale_t; |
#define IF_NAMESIZE 16 #define IFF_UP 0x01 #define IFF_BROADCAST 0x02 #define IFF_DEBUG 0x04 #define IFF_LOOPBACK 0x08 #define IFF_POINTOPOINT 0x10 #define IFF_PROMISC 0x100 #define IFF_MULTICAST 0x1000 #define IFF_NOTRAILERS 0x20 #define IFF_RUNNING 0x40 #define IFF_NOARP 0x80 struct ifaddr { struct sockaddr ifa_addr; union { struct sockaddr ifu_broadaddr; struct sockaddr ifu_dstaddr; } ifa_ifu; void *ifa_ifp; void *ifa_next; } ; #define IFNAMSIZ IF_NAMESIZE struct ifreq { union { char ifrn_name[IFNAMSIZ]; } ifr_ifrn; union { struct sockaddr ifru_addr; struct sockaddr ifru_dstaddr; struct sockaddr ifru_broadaddr; struct sockaddr ifru_netmask; struct sockaddr ifru_hwaddr; short ifru_flags; int ifru_ivalue; int ifru_mtu; char ifru_slave[IFNAMSIZ]; char ifru_newname[IFNAMSIZ]; caddr_t ifru_data; struct ifmap ifru_map; } ifr_ifru; } ; struct ifconf { int ifc_len; union { caddr_t ifcu_buf; struct ifreq *ifcu_req; } ifc_ifcu; } ; |
#define h_errno (*__h_errno_location ()) #define NETDB_INTERNAL -1 #define NETDB_SUCCESS 0 #define HOST_NOT_FOUND 1 #define NI_MAXHOST 1025 #define TRY_AGAIN 2 #define NO_RECOVERY 3 #define NI_MAXSERV 32 #define NO_DATA 4 #define h_addr h_addr_list[0] #define NO_ADDRESS NO_DATA struct servent { char *s_name; char **s_aliases; int s_port; char *s_proto; } ; struct hostent { char *h_name; char **h_aliases; int h_addrtype; int h_length; char **h_addr_list; } ; struct protoent { char *p_name; char **p_aliases; int p_proto; } ; struct netent { char *n_name; char **n_aliases; int n_addrtype; unsigned int n_net; } ; #define AI_PASSIVE 0x0001 #define AI_CANONNAME 0x0002 #define AI_NUMERICHOST 0x0004 struct addrinfo { int ai_flags; int ai_family; int ai_socktype; int ai_protocol; socklen_t ai_addrlen; struct sockaddr *ai_addr; char *ai_canonname; struct addrinfo *ai_next; } ; #define NI_NUMERICHOST 1 #define NI_DGRAM 16 #define NI_NUMERICSERV 2 #define NI_NOFQDN 4 #define NI_NAMEREQD 8 #define EAI_BADFLAGS -1 #define EAI_MEMORY -10 #define EAI_SYSTEM -11 #define EAI_NONAME -2 #define EAI_AGAIN -3 #define EAI_FAIL -4 #define EAI_NODATA -5 #define EAI_FAMILY -6 #define EAI_SOCKTYPE -7 #define EAI_SERVICE -8 #define EAI_ADDRFAMILY -9 |
#define INADDR_NONE ((unsigned long int) 0xffffffff) #define INADDR_BROADCAST (0xffffffff) #define INADDR_ANY 0 #define IPPROTO_IP 0 #define SOL_IP 0 #define IPPROTO_ICMP 1 #define IP_TOS 1 #define IPPROTO_UDP 17 #define IPPROTO_IGMP 2 #define IPPROTO_RAW 255 #define IPPROTO_TCP 6 struct in_addr { uint32_t s_addr; } ; typedef uint32_t in_addr_t; struct sockaddr_in { sa_family_t sin_family; unsigned short sin_port; struct in_addr sin_addr; unsigned char sin_zero[8]; } ; |
struct passwd { char *pw_name; char *pw_passwd; uid_t pw_uid; gid_t pw_gid; char *pw_gecos; char *pw_dir; char *pw_shell; } ; |
#define RE_BACKSLASH_ESCAPE_IN_LISTS ((unsigned long int)1) #define RE_BK_PLUS_QM (RE_BACKSLASH_ESCAPE_IN_LISTS<<1) #define RE_SYNTAX_AWK (RE_BACKSLASH_ESCAPE_IN_LISTS|RE_DOT_NOT_NULL|RE_NO_BK_PARENS| RE_NO_BK_REFS| RE_NO_BK_VBAR| RE_NO_EMPTY_RANGES| RE_DOT_NEWLINE| RE_CONTEXT_INDEP_ANCHORS| RE_UNMATCHED_RIGHT_PAREN_ORD | RE_NO_GNU_OPS) #define RE_CHAR_CLASSES (RE_BK_PLUS_QM<<1) #define RE_SYNTAX_GREP (RE_BK_PLUS_QM|RE_CHAR_CLASSES|RE_HAT_LISTS_NOT_NEWLINE|RE_INTERVALS|RE_NEWLINE_ALT) #define RE_CONTEXT_INDEP_ANCHORS (RE_CHAR_CLASSES<<1) #define RE_SYNTAX_EGREP (RE_CHAR_CLASSES|RE_CONTEXT_INDEP_ANCHORS| RE_CONTEXT_INDEP_OPS|RE_HAT_LISTS_NOT_NEWLINE|RE_NEWLINE_ALT|RE_NO_BK_PARENS|RE_NO_BK_VBAR) #define _RE_SYNTAX_POSIX_COMMON (RE_CHAR_CLASSES|RE_DOT_NEWLINE|RE_DOT_NOT_NULL|RE_INTERVALS|RE_NO_EMPTY_RANGES) #define RE_CONTEXT_INDEP_OPS (RE_CONTEXT_INDEP_ANCHORS<<1) #define RE_CONTEXT_INVALID_OPS (RE_CONTEXT_INDEP_OPS<<1) #define RE_DOT_NEWLINE (RE_CONTEXT_INVALID_OPS<<1) #define RE_INVALID_INTERVAL_ORD (RE_DEBUG<<1) #define RE_DOT_NOT_NULL (RE_DOT_NEWLINE<<1) #define RE_HAT_LISTS_NOT_NEWLINE (RE_DOT_NOT_NULL<<1) #define RE_INTERVALS (RE_HAT_LISTS_NOT_NEWLINE<<1) #define RE_LIMITED_OPS (RE_INTERVALS<<1) #define RE_NEWLINE_ALT (RE_LIMITED_OPS<<1) #define RE_NO_BK_BRACES (RE_NEWLINE_ALT<<1) #define RE_NO_BK_PARENS (RE_NO_BK_BRACES<<1) #define RE_NO_BK_REFS (RE_NO_BK_PARENS<<1) #define RE_NO_BK_VBAR (RE_NO_BK_REFS<<1) #define RE_NO_EMPTY_RANGES (RE_NO_BK_VBAR<<1) #define RE_UNMATCHED_RIGHT_PAREN_ORD (RE_NO_EMPTY_RANGES<<1) #define RE_DEBUG (RE_NO_GNU_OPS<<1) #define RE_NO_GNU_OPS (RE_NO_POSIX_BACKTRACKING<<1) #define RE_SYNTAX_POSIX_EGREP (RE_SYNTAX_EGREP|RE_INTERVALS|RE_NO_BK_BRACES|RE_INVALID_INTERVAL_ORD) #define RE_SYNTAX_POSIX_AWK (RE_SYNTAX_POSIX_EXTENDED|RE_BACKSLASH_ESCAPE_IN_LISTS|RE_INTERVALS|RE_NO_GNU_OPS) #define RE_NO_POSIX_BACKTRACKING (RE_UNMATCHED_RIGHT_PAREN_ORD<<1) #define RE_SYNTAX_POSIX_BASIC (_RE_SYNTAX_POSIX_COMMON|RE_BK_PLUS_QM) #define RE_SYNTAX_POSIX_EXTENDED (_RE_SYNTAX_POSIX_COMMON|RE_CONTEXT_INDEP_ANCHORS|RE_CONTEXT_INDEP_OPS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_VBAR|RE_CONTEXT_INVALID_OPS|RE_UNMATCHED_RIGHT_PAREN_ORD) #define RE_SYNTAX_POSIX_MINIMAL_EXTENDED (_RE_SYNTAX_POSIX_COMMON|RE_CONTEXT_INDEP_ANCHORS|RE_CONTEXT_INVALID_OPS|RE_NO_BK_BRACES|RE_NO_BK_PARENS|RE_NO_BK_REFS|RE_NO_BK_VBAR|RE_UNMATCHED_RIGHT_PAREN_ORD) #define RE_SYNTAX_POSIX_MINIMAL_BASIC (_RE_SYNTAX_POSIX_COMMON|RE_LIMITED_OPS) #define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC #define RE_SYNTAX_SED RE_SYNTAX_POSIX_BASIC typedef unsigned long reg_syntax_t; typedef struct re_pattern_buffer { unsigned char *buffer; unsigned long allocated; unsigned long used; reg_syntax_t syntax; char *fastmap; char *translate; size_t re_nsub; unsigned int can_be_null:1; unsigned int regs_allocated:2; unsigned int fastmap_accurate:1; unsigned int no_sub:1; unsigned int not_bol:1; unsigned int not_eol:1; unsigned int newline_anchor:1; } regex_t; typedef int regoff_t; typedef struct { regoff_t rm_so; regoff_t rm_eo; } regmatch_t; #define REG_NOTEOL (1<<1) #define REG_ICASE (REG_EXTENDED<<1) #define REG_NEWLINE (REG_ICASE<<1) #define REG_NOSUB (REG_NEWLINE<<1) #define REG_NOMATCH -1 #define REG_EXTENDED 1 #define REG_NOTBOL 1 |
enum auth_stat { AUTH_OK, AUTH_BADCRED = 1, AUTH_REJECTEDCRED = 2, AUTH_BADVERF = 3, AUTH_REJECTEDVERF = 4, AUTH_TOOWEAK = 5, AUTH_INVALIDRESP = 6, AUTH_FAILED = 7 } ; union des_block { struct { u_int32_t high; u_int32_t low; } key; char c[8]; } ; struct opaque_auth { enum_t oa_flavor; caddr_t oa_base; u_int oa_length; } ; typedef struct AUTH { struct opaque_auth ah_cred; struct opaque_auth ah_verf; union des_block ah_key; struct auth_ops *ah_ops; caddr_t ah_private; } AUTH; struct auth_ops { void (*ah_nextverf) (struct AUTH *); int (*ah_marshal) (struct AUTH *, struct XDR *); int (*ah_validate) (struct AUTH *, struct opaque_auth *); int (*ah_refresh) (struct AUTH *); void (*ah_destroy) (struct AUTH *); } ; |
#define NULLPROC ((u_long)0) #define CLSET_TIMEOUT 1 #define CLGET_XID 10 #define CLSET_XID 11 #define CLGET_VERS 12 #define CLSET_VERS 13 #define CLGET_PROG 14 #define CLSET_PROG 15 #define CLGET_TIMEOUT 2 #define CLGET_SERVER_ADDR 3 #define CLSET_RETRY_TIMEOUT 4 #define CLGET_RETRY_TIMEOUT 5 #define CLGET_FD 6 #define CLGET_SVC_ADDR 7 #define CLSET_FD_CLOSE 8 #define CLSET_FD_NCLOSE 9 enum clnt_stat { RPC_SUCCESS, RPC_CANTENCODEARGS = 1, RPC_CANTDECODERES = 2, RPC_CANTSEND = 3, RPC_CANTRECV = 4, RPC_TIMEDOUT = 5, RPC_VERSMISMATCH = 6, RPC_AUTHERROR = 7, RPC_PROGUNAVAIL = 8, RPC_PROGVERSMISMATCH = 9, RPC_PROCUNAVAIL = 10, RPC_CANTDECODEARGS = 11, RPC_SYSTEMERROR = 12, RPC_NOBROADCAST = 21, RPC_UNKNOWNHOST = 13, RPC_UNKNOWNPROTO = 17, RPC_UNKNOWNADDR = 19, RPC_RPCBFAILURE = 14, RPC_PROGNOTREGISTERED = 15, RPC_N2AXLATEFAILURE = 22, RPC_FAILED = 16, RPC_INTR = 18, RPC_TLIERROR = 20, RPC_UDERROR = 23, RPC_INPROGRESS = 24, RPC_STALERACHANDLE = 25 } ; struct rpc_err { enum clnt_stat re_status; union { int RE_errno; enum auth_stat RE_why; struct { u_long low; u_long high; } RE_vers; struct { long s1; long s2; } RE_lb; } ru; } ; typedef struct CLIENT { struct AUTH *cl_auth; struct clnt_ops *cl_ops; caddr_t cl_private; } CLIENT; struct clnt_ops { enum clnt_stat (*cl_call) (struct CLIENT *, u_long, xdrproc_t, caddr_t, xdrproc_t, caddr_t, struct timeval); void (*cl_abort) (void); void (*cl_geterr) (struct CLIENT *, struct rpc_err *); bool_t (*cl_freeres) (struct CLIENT *, xdrproc_t, caddr_t); void (*cl_destroy) (struct CLIENT *); bool_t (*cl_control) (struct CLIENT *, int, char *); } ; |
enum msg_type { CALL, REPLY = 1 } ; enum reply_stat { MSG_ACCEPTED, MSG_DENIED = 1 } ; enum accept_stat { SUCCESS, PROG_UNAVAIL = 1, PROG_MISMATCH = 2, PROC_UNAVAIL = 3, GARBAGE_ARGS = 4, SYSTEM_ERR = 5 } ; enum reject_stat { RPC_MISMATCH, AUTH_ERROR = 1 } ; struct accepted_reply { struct opaque_auth ar_verf; enum accept_stat ar_stat; union { struct { unsigned long low; unsigned long high; } AR_versions; struct { caddr_t where; xdrproc_t proc; } AR_results; } ru; } ; struct rejected_reply { enum reject_stat rj_stat; union { struct { unsigned long low; unsigned long high; } RJ_versions; enum auth_stat RJ_why; } ru; } ; struct reply_body { enum reply_stat rp_stat; union { struct accepted_reply RP_ar; struct rejected_reply RP_dr; } ru; } ; struct call_body { unsigned long cb_rpcvers; unsigned long cb_prog; unsigned long cb_vers; unsigned long cb_proc; struct opaque_auth cb_cred; struct opaque_auth cb_verf; } ; struct rpc_msg { unsigned long rm_xid; enum msg_type rm_direction; union { struct call_body RM_cmb; struct reply_body RM_rmb; } ru; } ; |
typedef struct SVCXPRT { int xp_sock; u_short xp_port; struct xp_ops *xp_ops; int xp_addrlen; struct sockaddr_in xp_raddr; struct opaque_auth xp_verf; caddr_t xp_p1; caddr_t xp_p2; char xp_pad[256]; } SVCXPRT; struct xp_ops { bool_t (*xp_recv) (struct SVCXPRT * __xprt, struct rpc_msg * __msg); enum xprt_stat (*xp_stat) (struct SVCXPRT * __xprt); bool_t (*xp_getargs) (struct SVCXPRT * __xprt, xdrproc_t __xdr_args, caddr_t args_ptr); bool_t (*xp_reply) (struct SVCXPRT * __xprt, struct rpc_msg * __msg); bool_t (*xp_freeargs) (struct SVCXPRT * __xprt, xdrproc_t __xdr_args, caddr_t args_ptr); void (*xp_destroy) (struct SVCXPRT * __xprt); } ; |
enum xdr_op { XDR_ENCODE, XDR_DECODE, XDR_FREE } ; typedef struct XDR { enum xdr_op x_op; struct xdr_ops *x_ops; caddr_t x_public; caddr_t x_private; caddr_t x_base; int x_handy; } XDR; struct xdr_ops { bool_t (*x_getlong) (struct XDR * __xdrs, long *__lp); bool_t (*x_putlong) (struct XDR * __xdrs, long *__lp); bool_t (*x_getbytes) (struct XDR * __xdrs, caddr_t __addr, u_int __len); bool_t (*x_putbytes) (struct XDR * __xdrs, char *__addr, u_int __len); u_int (*x_getpostn) (struct XDR * __xdrs); bool_t (*x_setpostn) (struct XDR * __xdrs, u_int __pos); int32_t *(*x_inline) (struct XDR * __xdrs, int __len); void (*x_destroy) (struct XDR * __xdrs); bool_t (*x_getint32) (struct XDR * __xdrs, int32_t * __ip); bool_t (*x_putint32) (struct XDR * __xdrs, int32_t * __ip); } ; typedef bool_t (*xdrproc_t) (struct XDR *, void *, ...); struct xdr_discrim { int value; xdrproc_t proc; } ; |
#define SCHED_OTHER 0 #define SCHED_FIFO 1 #define SCHED_RR 2 struct sched_param { int sched_priority; } ; |
typedef struct entry { char *key; void *data; } ENTRY; typedef enum { FIND, ENTER } ACTION; typedef enum { preorder, postorder, endorder, leaf } VISIT; typedef void (*__action_fn_t) (void *__nodep, VISIT __value, int __level); |
#define setjmp(env) _setjmp(env) #define sigsetjmp(a,b) __sigsetjmp(a,b) struct __jmp_buf_tag { __jmp_buf __jmpbuf; int __mask_was_saved; sigset_t __saved_mask; } ; typedef struct __jmp_buf_tag jmp_buf[1]; typedef jmp_buf sigjmp_buf; |
#define SIGRTMAX (__libc_current_sigrtmax ()) #define SIGRTMIN (__libc_current_sigrtmin ()) #define SIG_BLOCK 0 #define SIG_UNBLOCK 1 #define SIG_SETMASK 2 #define NSIG 64 typedef int sig_atomic_t; struct sigstack { void *ss_sp; int ss_onstack; } ; #define SIG_ERR ((__sighandler_t)-1) #define SIG_DFL ((__sighandler_t)0) #define SIG_IGN ((__sighandler_t)1) #define SIGHUP 1 #define SIGUSR1 10 #define SIGSEGV 11 #define SIGUSR2 12 #define SIGPIPE 13 #define SIGALRM 14 #define SIGTERM 15 #define SIGSTKFLT 16 #define SIGCHLD 17 #define SIGCONT 18 #define SIGSTOP 19 #define SIGINT 2 #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 SIGQUIT 3 #define SIGPWR 30 #define SIGSYS 31 #define SIGUNUSED 31 #define SIGILL 4 #define SIGTRAP 5 #define SIGABRT 6 #define SIGIOT 6 #define SIGBUS 7 #define SIGFPE 8 #define SIGKILL 9 #define SIGCLD SIGCHLD #define SIGPOLL SIGIO typedef void (*__sighandler_t) (int); #define SV_ONSTACK (1<<0) #define SV_INTERRUPT (1<<1) #define SV_RESETHAND (1<<2) typedef union sigval { int sival_int; void *sival_ptr; } sigval_t; #define SIGEV_SIGNAL 0 #define SIGEV_NONE 1 #define SIGEV_THREAD 2 typedef struct sigevent { sigval_t sigev_value; int sigev_signo; int sigev_notify; union { int _pad[SIGEV_PAD_SIZE]; struct { void (*sigev_thread_func) (void); void *_attribute; } _sigev_thread; } _sigev_un; } sigevent_t; #define SI_QUEUE -1 #define SI_TIMER -2 #define SI_MESGQ -3 #define SI_ASYNCIO -4 #define SI_USER 0 #define si_pid _sifields._kill._pid #define si_uid _sifields._kill._uid #define si_value _sifields._rt._sigval #define si_int _sifields._rt._sigval.sival_int #define si_ptr _sifields._rt._sigval.sival_ptr #define si_status _sifields._sigchld._status #define si_stime _sifields._sigchld._stime #define si_utime _sifields._sigchld._utime #define si_addr _sifields._sigfault._addr #define si_band _sifields._sigpoll._band #define si_fd _sifields._sigpoll._fd #define si_timer1 _sifields._timer._timer1 #define si_timer2 _sifields._timer._timer2 typedef struct siginfo { int si_signo; int si_errno; int si_code; union { int _pad[SI_PAD_SIZE]; struct { pid_t _pid; uid_t _uid; } _kill; struct { unsigned int _timer1; unsigned int _timer2; } _timer; struct { pid_t _pid; uid_t _uid; sigval_t _sigval; } _rt; struct { pid_t _pid; uid_t _uid; int _status; clock_t _utime; clock_t _stime; } _sigchld; struct { void *_addr; } _sigfault; struct { int _band; int _fd; } _sigpoll; } _sifields; } siginfo_t; typedef struct { unsigned long sig[_SIGSET_NWORDS]; } sigset_t; #define SA_NOCLDSTOP 0x00000001 #define SA_SIGINFO 0x00000004 #define SA_ONSTACK 0x08000000 #define SA_RESTART 0x10000000 #define SA_INTERRUPT 0x20000000 #define SA_NODEFER 0x40000000 #define SA_RESETHAND 0x80000000 #define SA_NOMASK SA_NODEFER #define SA_ONESHOT SA_RESETHAND typedef struct sigaltstack { void *ss_sp; int ss_flags; size_t ss_size; } stack_t; |
#define offsetof(TYPE,MEMBER) ((size_t)& ((TYPE*)0)->MEMBER) #define NULL (0) typedef int wchar_t; |
#define EOF (-1) #define P_tmpdir "/tmp" #define FOPEN_MAX 16 #define L_tmpnam 20 #define FILENAME_MAX 4096 #define BUFSIZ 8192 #define L_ctermid 9 #define L_cuserid 9 typedef struct { off_t __pos; mbstate_t __state; } fpos_t; typedef struct { off64_t __pos; mbstate_t __state; } fpos64_t; typedef struct _IO_FILE FILE; #define _IOFBF 0 #define _IOLBF 1 #define _IONBF 2 |
#define MB_CUR_MAX (__ctype_get_mb_cur_max()) #define EXIT_SUCCESS 0 #define EXIT_FAILURE 1 #define RAND_MAX 2147483647 typedef int (*__compar_fn_t) (const void *, const void *); struct random_data { int32_t *fptr; int32_t *rptr; int32_t *state; int rand_type; int rand_deg; int rand_sep; int32_t *end_ptr; } ; typedef struct { int quot; int rem; } div_t; typedef struct { long quot; long rem; } ldiv_t; typedef struct { long long quot; long long rem; } lldiv_t; |
#define IPC_PRIVATE ((key_t)0) #define IPC_RMID 0 #define IPC_CREAT 00001000 #define IPC_EXCL 00002000 #define IPC_NOWAIT 00004000 #define IPC_SET 1 #define IPC_STAT 2 |
#define MAP_FAILED ((void*)-1) #define PROT_NONE 0x0 #define MAP_SHARED 0x01 #define MAP_PRIVATE 0x02 #define PROT_READ 0x1 #define MAP_FIXED 0x10 #define PROT_WRITE 0x2 #define MAP_ANONYMOUS 0x20 #define PROT_EXEC 0x4 #define MS_ASYNC 1 #define MS_INVALIDATE 2 #define MS_SYNC 4 #define MAP_ANON MAP_ANONYMOUS |
#define POLLIN 0x0001 #define POLLPRI 0x0002 #define POLLOUT 0x0004 #define POLLERR 0x0008 #define POLLHUP 0x0010 #define POLLNVAL 0x0020 struct pollfd { int fd; short events; short revents; } ; |
#define RLIM_INFINITY (~0UL) #define RLIM_SAVED_CUR -1 #define RLIM_SAVED_MAX -1 #define PRIO_PROCESS 0 #define RLIMIT_CPU 0 #define RUSAGE_SELF 0 #define PRIO_PGRP 1 #define RLIMIT_FSIZE 1 #define PRIO_USER 2 #define RLIMIT_DATA 2 #define RLIMIT_STACK 3 #define RLIMIT_CORE 4 #define RLIMIT_NOFILE 7 #define RLIMIT_AS 9 typedef unsigned long rlim_t; typedef unsigned long long rlim64_t; struct rlimit { rlim_t rlim_cur; rlim_t rlim_max; } ; struct rlimit64 { rlim64_t rlim_cur; rlim64_t rlim_max; } ; struct rusage { struct timeval ru_utime; struct timeval ru_stime; long ru_maxrss; long ru_ixrss; long ru_idrss; long ru_isrss; long ru_minflt; long ru_majflt; long ru_nswap; long ru_inblock; long ru_oublock; long ru_msgsnd; long ru_msgrcv; long ru_nsignals; long ru_nvcsw; long ru_nivcsw; } ; |
#define SEM_UNDO 0x1000 #define GETPID 11 #define GETVAL 12 #define GETALL 13 #define GETNCNT 14 #define GETZCNT 15 #define SETVAL 16 #define SETALL 17 struct sembuf { short sem_num; short sem_op; short sem_flg; } ; |
#define SHM_RDONLY 010000 #define SHM_W 0200 #define SHM_RND 020000 #define SHM_R 0400 #define SHM_REMAP 040000 #define SHM_LOCK 11 #define SHM_UNLOCK 12 |
#define SHUT_RD 0 #define MSG_WAITALL 0x100 #define MSG_TRUNC 0x20 #define MSG_EOR 0x80 #define SIOCGIFCONF 0x8912 #define SIOCGIFFLAGS 0x8913 #define SIOCGIFADDR 0x8915 #define SIOCGIFNETMASK 0x891b #define MSG_OOB 1 #define SHUT_WR 1 #define MSG_PEEK 2 #define SHUT_RDWR 2 #define MSG_DONTROUTE 4 #define MSG_CTRUNC 8 #define PF_LOCAL AF_LOCAL #define PF_UNSPEC AF_UNSPEC struct linger { int l_onoff; int l_linger; } ; struct cmsghdr { size_t cmsg_len; int cmsg_level; int cmsg_type; } ; struct iovec { void *iov_base; size_t iov_len; } ; typedef unsigned short sa_family_t; typedef unsigned int socklen_t; struct sockaddr { sa_family_t sa_family; char sa_data[14]; } ; struct msghdr { void *msg_name; int msg_namelen; struct iovec *msg_iov; size_t msg_iovlen; void *msg_control; size_t msg_controllen; unsigned int msg_flags; } ; #define AF_UNSPEC 0 #define AF_LOCAL 1 #define AF_UNIX 1 #define AF_INET6 10 #define AF_INET 2 #define AF_AX25 3 #define AF_IPX 4 #define AF_APPLETALK 5 #define AF_NETROM 6 #define AF_BRIDGE 7 #define AF_ATMPVC 8 #define AF_X25 9 #define PF_INET AF_INET #define PF_INET6 AF_INET6 #define PF_UNIX AF_UNIX #define SOCK_STREAM 1 #define SOCK_PACKET 10 #define SOCK_DGRAM 2 #define SOCK_RAW 3 #define SOCK_RDM 4 #define SOCK_SEQPACKET 5 #define SOL_SOCKET 1 #define SO_DEBUG 1 #define SO_OOBINLINE 10 #define SO_NO_CHECK 11 #define SO_PRIORITY 12 #define SO_LINGER 13 #define SO_REUSEADDR 2 #define SOL_RAW 255 #define SO_TYPE 3 #define SO_ERROR 4 #define SO_DONTROUTE 5 #define SO_BROADCAST 6 #define SO_SNDBUF 7 #define SO_RCVBUF 8 #define SO_KEEPALIVE 9 |
#define S_ISBLK(m) (((m)& S_IFMT)==S_IFBLK) #define S_ISCHR(m) (((m)& S_IFMT)==S_IFCHR) #define S_ISDIR(m) (((m)& S_IFMT)==S_IFDIR) #define S_ISFIFO(m) (((m)& S_IFMT)==S_IFIFO) #define S_ISLNK(m) (((m)& S_IFMT)==S_IFLNK) #define S_ISREG(m) (((m)& S_IFMT)==S_IFREG) #define S_ISSOCK(m) (((m)& S_IFMT)==S_IFSOCK) #define S_TYPEISMQ(buf) ((buf)->st_mode - (buf)->st_mode) #define S_TYPEISSEM(buf) ((buf)->st_mode - (buf)->st_mode) #define S_TYPEISSHM(buf) ((buf)->st_mode - (buf)->st_mode) #define S_IRWXU (S_IREAD|S_IWRITE|S_IEXEC) #define S_IROTH (S_IRGRP>>3) #define S_IRGRP (S_IRUSR>>3) #define S_IRWXO (S_IRWXG>>3) #define S_IRWXG (S_IRWXU>>3) #define S_IWOTH (S_IWGRP>>3) #define S_IWGRP (S_IWUSR>>3) #define S_IXOTH (S_IXGRP>>3) #define S_IXGRP (S_IXUSR>>3) #define S_ISVTX 01000 #define S_IXUSR 0x0040 #define S_IWUSR 0x0080 #define S_IRUSR 0x0100 #define S_ISGID 0x0400 #define S_ISUID 0x0800 #define S_IFIFO 0x1000 #define S_IFCHR 0x2000 #define S_IFDIR 0x4000 #define S_IFBLK 0x6000 #define S_IFREG 0x8000 #define S_IFLNK 0xa000 #define S_IFSOCK 0xc000 #define S_IFMT 0xf000 #define S_IREAD S_IRUSR #define S_IWRITE S_IWUSR #define S_IEXEC S_IXUSR |
#define ITIMER_REAL 0 #define ITIMER_VIRTUAL 1 #define ITIMER_PROF 2 struct timezone { int tz_minuteswest; int tz_dsttime; } ; struct timespec { time_t tv_sec; long tv_nsec; } ; struct timeval { time_t tv_sec; suseconds_t tv_usec; } ; struct itimerval { struct timeval it_interval; struct timeval it_value; } ; |
struct tms { clock_t tms_utime; clock_t tms_stime; clock_t tms_cutime; clock_t tms_cstime; } ; |
#define FD_ISSET(d,set) ((set)->fds_bits[0]& (1<<d)) #define FD_CLR(d,set) ((set)->fds_bits[0]& =~(1<<d)) #define FD_SET(d,set) ((set)->fds_bits[0]|=(1<<d)) #define FD_SETSIZE 1024 #define FD_ZERO(fdsetp) bzero(fdsetp, sizeof(*(fdsetp))) typedef signed char int8_t; typedef short int16_t; typedef int int32_t; typedef long long int64_t; typedef unsigned char u_int8_t; typedef unsigned short u_int16_t; typedef unsigned int u_int32_t; typedef unsigned int uid_t; typedef int pid_t; typedef unsigned long off_t; typedef int key_t; typedef unsigned int id_t; typedef long suseconds_t; typedef struct { int __val[2]; } fsid_t; typedef unsigned long blksize_t; typedef long fd_mask; typedef int timer_t; typedef int clockid_t; typedef unsigned long long ino64_t; typedef long long loff_t; typedef unsigned long blkcnt_t; typedef unsigned long fsblkcnt_t; typedef unsigned long fsfilcnt_t; typedef unsigned long long blkcnt64_t; typedef unsigned long long fsblkcnt64_t; typedef unsigned long long fsfilcnt64_t; typedef unsigned char u_char; typedef unsigned short u_short; typedef unsigned long u_long; typedef unsigned long ino_t; typedef unsigned int gid_t; typedef unsigned long long dev_t; typedef unsigned int mode_t; typedef unsigned long nlink_t; typedef char *caddr_t; typedef unsigned short ushort; typedef struct { unsigned long fds_bits[__FDSET_LONGS]; } fd_set; typedef long clock_t; typedef long time_t; |
#define UNIX_PATH_MAX 108 struct sockaddr_un { sa_family_t sun_family; char sun_path[UNIX_PATH_MAX]; } ; |
struct utsname { char sysname[65]; char nodename[65]; char release[65]; char version[65]; char machine[65]; char domainname[65]; } ; |
#define WIFSIGNALED(status) (!WIFSTOPPED(status) & & !WIFEXITED(status)) #define WIFSTOPPED(status) (((status) & 0xff) == 0x7f) #define WEXITSTATUS(status) (((status) & 0xff00) >> 8) #define WTERMSIG(status) ((status) & 0x7f) #define WCOREDUMP(status) ((status) & 0x80) #define WIFEXITED(status) (WTERMSIG(status) == 0) #define WNOHANG 0x00000001 #define WUNTRACED 0x00000002 #define WCOREFLAG 0x80 #define WSTOPSIG(status) WEXITSTATUS(status) typedef enum { P_ALL, P_PID, P_PGID } idtype_t; |
#define LOG_EMERG 0 #define LOG_ALERT 1 #define LOG_CRIT 2 #define LOG_ERR 3 #define LOG_WARNING 4 #define LOG_NOTICE 5 #define LOG_INFO 6 #define LOG_DEBUG 7 #define LOG_KERN (0<<3) #define LOG_AUTHPRIV (10<<3) #define LOG_FTP (11<<3) #define LOG_USER (1<<3) #define LOG_MAIL (2<<3) #define LOG_DAEMON (3<<3) #define LOG_AUTH (4<<3) #define LOG_SYSLOG (5<<3) #define LOG_LPR (6<<3) #define LOG_NEWS (7<<3) #define LOG_UUCP (8<<3) #define LOG_CRON (9<<3) #define LOG_LOCAL0 (16<<3) #define LOG_LOCAL1 (17<<3) #define LOG_LOCAL2 (18<<3) #define LOG_LOCAL3 (19<<3) #define LOG_LOCAL4 (20<<3) #define LOG_LOCAL5 (21<<3) #define LOG_LOCAL6 (22<<3) #define LOG_LOCAL7 (23<<3) #define LOG_UPTO(pri) ((1 << ((pri)+1)) - 1) #define LOG_MASK(pri) (1 << (pri)) #define LOG_PID 0x01 #define LOG_CONS 0x02 #define LOG_ODELAY 0x04 #define LOG_NDELAY 0x08 #define LOG_NOWAIT 0x10 #define LOG_PERROR 0x20 |
#define TCIFLUSH 0 #define TCOOFF 0 #define TCSANOW 0 #define BS0 0000000 #define CR0 0000000 #define FF0 0000000 #define NL0 0000000 #define TAB0 0000000 #define VT0 0000000 #define OPOST 0000001 #define OCRNL 0000010 #define ONOCR 0000020 #define ONLRET 0000040 #define OFILL 0000100 #define OFDEL 0000200 #define NL1 0000400 #define TCOFLUSH 1 #define TCOON 1 #define TCSADRAIN 1 #define TCIOFF 2 #define TCIOFLUSH 2 #define TCSAFLUSH 2 #define TCION 3 struct winsize { unsigned short ws_row; unsigned short ws_col; unsigned short ws_xpixel; unsigned short ws_ypixel; } ; typedef unsigned int speed_t; typedef unsigned char cc_t; typedef unsigned int tcflag_t; #define NCCS 32 struct termios { tcflag_t c_iflag; tcflag_t c_oflag; tcflag_t c_cflag; tcflag_t c_lflag; cc_t c_line; cc_t c_cc[NCCS]; speed_t c_ispeed; speed_t c_ospeed; } ; #define VINTR 0 #define VQUIT 1 #define VLNEXT 15 #define VERASE 2 #define VKILL 3 #define VEOF 4 #define IGNBRK 0000001 #define BRKINT 0000002 #define IGNPAR 0000004 #define PARMRK 0000010 #define INPCK 0000020 #define ISTRIP 0000040 #define INLCR 0000100 #define IGNCR 0000200 #define ICRNL 0000400 #define IXANY 0004000 #define IMAXBEL 0020000 #define CS5 0000000 #define ECHO 0000010 #define B0 0000000 #define B50 0000001 #define B75 0000002 #define B110 0000003 #define B134 0000004 #define B150 0000005 #define B200 0000006 #define B300 0000007 #define B600 0000010 #define B1200 0000011 #define B1800 0000012 #define B2400 0000013 #define B4800 0000014 #define B9600 0000015 #define B19200 0000016 #define B38400 0000017 |
#define CLOCK_REALTIME 0 #define TIMER_ABSTIME 1 #define CLOCKS_PER_SEC 1000000l struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; long tm_gmtoff; char *tm_zone; } ; struct itimerspec { struct timespec it_interval; struct timespec it_value; } ; |
#define SEEK_SET 0 #define STDIN_FILENO 0 #define SEEK_CUR 1 #define STDOUT_FILENO 1 #define SEEK_END 2 #define STDERR_FILENO 2 typedef long long off64_t; #define F_OK 0 #define X_OK 1 #define W_OK 2 #define R_OK 4 #define _POSIX_VDISABLE '\0' #define _POSIX_ASYNCHRONOUS_IO 1 #define _POSIX_CHOWN_RESTRICTED 1 #define _POSIX_FSYNC 1 #define _POSIX_MAPPED_FILES 1 #define _POSIX_MEMLOCK 1 #define _POSIX_MEMLOCK_RANGE 1 #define _POSIX_MEMORY_PROTECTION 1 #define _POSIX_NO_TRUNC 1 #define _POSIX_PRIORITY_SCHEDULING 1 #define _POSIX_REALTIME_SIGNALS 1 #define _POSIX_SEMAPHORES 1 #define _POSIX_SHARED_MEMORY_OBJECTS 1 #define _POSIX_SYNCHRONIZED_IO 1 #define _POSIX_TIMERS 1 #define _POSIX2_C_VERSION 199209L #define _POSIX2_VERSION 199209L #define _POSIX_VERSION 199506L #define _PC_LINK_MAX 0 #define _PC_MAX_CANON 1 #define _PC_ASYNC_IO 10 #define _PC_PRIO_IO 11 #define _PC_FILESIZEBITS 13 #define _PC_MAX_INPUT 2 #define _PC_NAME_MAX 3 #define _PC_PATH_MAX 4 #define _PC_PIPE_BUF 5 #define _PC_CHOWN_RESTRICTED 6 #define _PC_NO_TRUNC 7 #define _PC_VDISABLE 8 #define _PC_SYNC_IO 9 #define _SC_ARG_MAX 0 #define _SC_CHILD_MAX 1 #define _SC_PRIORITY_SCHEDULING 10 #define _SC_TIMERS 11 #define _SC_ASYNCHRONOUS_IO 12 #define _SC_XBS5_ILP32_OFF32 125 #define _SC_XBS5_ILP32_OFFBIG 126 #define _SC_XBS5_LP64_OFF64 127 #define _SC_XBS5_LPBIG_OFFBIG 128 #define _SC_XOPEN_LEGACY 129 #define _SC_PRIORITIZED_IO 13 #define _SC_XOPEN_REALTIME 130 #define _SC_SYNCHRONIZED_IO 14 #define _SC_MAPPED_FILES 16 #define _SC_MEMLOCK 17 #define _SC_MEMLOCK_RANGE 18 #define _SC_MEMORY_PROTECTION 19 #define _SC_CLK_TCK 2 #define _SC_MESSAGE_PASSING 20 #define _SC_SEMAPHORES 21 #define _SC_SHARED_MEMORY_OBJECTS 22 #define _SC_AIO_LISTIO_MAX 23 #define _SC_AIO_MAX 24 #define _SC_AIO_PRIO_DELTA_MAX 25 #define _SC_DELAYTIMER_MAX 26 #define _SC_MQ_OPEN_MAX 27 #define _SC_MQ_PRIO_MAX 28 #define _SC_VERSION 29 #define _SC_NGROUPS_MAX 3 #define _SC_PAGESIZE 30 #define _SC_RTSIG_MAX 31 #define _SC_SEM_NSEMS_MAX 32 #define _SC_SEM_VALUE_MAX 33 #define _SC_SIGQUEUE_MAX 34 #define _SC_TIMER_MAX 35 #define _SC_BC_BASE_MAX 36 #define _SC_BC_DIM_MAX 37 #define _SC_BC_SCALE_MAX 38 #define _SC_BC_STRING_MAX 39 #define _SC_OPEN_MAX 4 #define _SC_COLL_WEIGHTS_MAX 40 #define _SC_EXPR_NEST_MAX 42 #define _SC_LINE_MAX 43 #define _SC_RE_DUP_MAX 44 #define _SC_2_VERSION 46 #define _SC_2_C_BIND 47 #define _SC_2_C_DEV 48 #define _SC_2_FORT_DEV 49 #define _SC_STREAM_MAX 5 #define _SC_2_FORT_RUN 50 #define _SC_2_SW_DEV 51 #define _SC_2_LOCALEDEF 52 #define _SC_TZNAME_MAX 6 #define _SC_THREADS 67 #define _SC_THREAD_SAFE_FUNCTIONS 68 #define _SC_JOB_CONTROL 7 #define _SC_THREAD_DESTRUCTOR_ITERATIONS 73 #define _SC_THREAD_KEYS_MAX 74 #define _SC_THREAD_STACK_MIN 75 #define _SC_THREAD_THREADS_MAX 76 #define _SC_THREAD_ATTR_STACKADDR 77 #define _SC_THREAD_ATTR_STACKSIZE 78 #define _SC_THREAD_PRIORITY_SCHEDULING 79 #define _SC_SAVED_IDS 8 #define _SC_THREAD_PRIO_INHERIT 80 #define _SC_THREAD_PRIO_PROTECT 81 #define _SC_THREAD_PROCESS_SHARED 82 #define _SC_PASS_MAX 88 #define _SC_XOPEN_VERSION 89 #define _SC_REALTIME_SIGNALS 9 #define _SC_XOPEN_CRYPT 92 #define _SC_XOPEN_ENH_I18N 93 #define _SC_XOPEN_SHM 94 #define _SC_2_C_VERSION 96 #define _SC_2_UPE 97 #define _CS_PATH 0 #define _CS_XBS5_ILP32_OFF32_CFLAGS 1100 #define _CS_XBS5_ILP32_OFF32_LDFLAGS 1101 #define _CS_XBS5_ILP32_OFF32_LIBS 1102 #define _CS_XBS5_ILP32_OFF32_LINTFLAGS 1103 #define _CS_XBS5_ILP32_OFFBIG_CFLAGS 1104 #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS 1105 #define _CS_XBS5_ILP32_OFFBIG_LIBS 1106 #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS 1107 #define _CS_XBS5_LP64_OFF64_CFLAGS 1108 #define _CS_XBS5_LP64_OFF64_LDFLAGS 1109 #define _CS_XBS5_LP64_OFF64_LIBS 1110 #define _CS_XBS5_LP64_OFF64_LINTFLAGS 1111 #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS 1112 #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS 1113 #define _CS_XBS5_LPBIG_OFFBIG_LIBS 1114 #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 1115 #define _XOPEN_REALTIME 1 #define _XOPEN_XPG4 1 #define _XOPEN_XCU_VERSION 4 #define _XOPEN_VERSION 500 |
#define UT_HOSTSIZE 256 #define UT_LINESIZE 32 #define UT_NAMESIZE 32 struct exit_status { short e_termination; short e_exit; } ; struct lastlog { time_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; long ut_session; struct timeval ut_tv; int32_t ut_addr_v6[4]; char __unused[20]; } ; #define EMPTY 0 #define RUN_LVL 1 #define BOOT_TIME 2 #define NEW_TIME 3 #define OLD_TIME 4 #define INIT_PROCESS 5 #define LOGIN_PROCESS 6 #define USER_PROCESS 7 #define DEAD_PROCESS 8 #define ACCOUNTING 9 |
_IO_feof tests the end-of-file indicator for the stream pointed to by __fp, returning a non-zero value if it is set.
_IO_feof is not in the source standard; it is only in the binary standard.
_IO_getc reads the next character from __fp and returns it as an unsigned char cast to an int, or EOF on end-of-file or error.
_IO_getc is not in the source standard; it is only in the binary standard.
_IO_putc writes the character __c, cast to an unsigned char, to __fp.
_IO_putc is not in the source standard; it is only in the binary standard.
_IO_puts writes the string __s and a trailing newline to stdout.
_IO_puts is not in the source standard; it is only in the binary standard.
__assert_fail receives a string containing the expression assertion, the filename file, and the line number line, and prints a message on the standard error stream. For example:
__assert_fail then aborts program execution via a call to abort. The exact form of the message is up to the implementation.a.c:10: foobar: Assertion a == b failed.
If function is NULL, then omit information about the function.
assertion, file, and line must be non-NULL.
__assert_fail is not in the source standard; it is only in the binary standard.
__ctype_b is an array index for ctype functions.
__ctype_b is not in the source standard; it is only in the binary standard.
__ctype_get_mb_cur_max returns the maximum length of a multibyte character in the current locale.
__ctype_get_mb_cur_max is not in the source standard; it is only in the binary standard.
__ctype_tolower converts an uppercase letter to the corresponding lowercase letter. If the argument is an uppercase letter, __ctype_tolower returns the corresponding lowercase letter if there is one; otherwise, the argument is returned unchanged.
__ctype_tolower is not in the source standard; it is only in the binary standard.
__ctype_toupper converts a lowercase letter to the corresponding uppercase letter. If the argument is a lowercase letter, __ctype_toupper returns the corresponding uppercase letter if there is one; otherwise, the argument is returned unchanged.
__ctype_toupper is not in the source standard; it is only in the binary standard.
__cxa_atexit registers a function to be called by exit or when a shared library is unloaded. This function is only called from code generated by the C++ compiler.
__cxa_atexit has the same specification as atexit.
__cxa_atexit is not in the source standard; it is only in the binary standard.
__dcgettext has been deprecated from the LSB because it is no longer used by dcgettext. Originally, it was intended only for the binary standard.
__environ is an alias for environ - user environment.
__environ has the same specification as environ.
__environ is not in the source standard; it is only in the binary standard.
__fpending returns the amount of output in bytes pending on a stream.
__fpending is not in the source standard; it is only in the binary standard.
__getpagesize is an alias for getpagesize - get current page size.
__getpagesize has the same specification as getpagesize.
__getpagesize is not in the source standard; it is only in the binary standard.
__getpgid has the same specification as getpgid.
__getpgid is not in the source standard; it is only in the binary standard.
__h_errno_location returns the address of the h_errno variable, where h_errno is as specified in the Single Unix Specification.
__h_errno_location is not in the source standard; it is only in the binary standard. Note that h_errno itself is only in the source standard; it is not in the binary standard.
__isinf has the same specification as isinf in the Single UNIX Specification, Version 3, except that the argument type for __isinf is known to be double.
__isinf is not in the source standard; it is only in the binary standard.
__isinff has the same specification as isinf in the Single UNIX Specification, Version 3, except that the argument type for __isinff is known to be float.
__isinff is not in the source standard; it is only in the binary standard.
__isinfl has the same specification as isinf in the Single UNIX Specification, Version 3, except that the argument type for __isinfl is known to be long double.
__isinfl is not in the source standard; it is only in the binary standard.
__isnan has the same specification as isnan in the Single UNIX Specification, Version 3, except that the argument type for __isnan is known to be double.
__isnan is not in the source standard; it is only in the binary standard.
__isnanf has the same specification as isnan in the Single UNIX Specification, Version 3, except that the argument type for __isnanf is known to be float.
__isnanf is not in the source standard; it is only in the binary standard.
__isnanl has the same specification as isnan in the Single UNIX Specification, Version 3, except that the argument type for __isnanl is known to be long double.
__isnanl is not in the source standard; it is only in the binary standard.
__libc_current_sigrtmax returns the number of an available real-time signal with the lowest priority.
__libc_current_sigrtmax is not in the source standard; it is only in the binary standard.
__libc_current_sigrtmin returns the number of an available real-time signal with the highest priority.
__libc_current_sigrtmin is not in the source standard; it is only in the binary standard.
__libc_start_main initializes glibc.
__libc_start_main is not in the source standard; it is only in the binary standard.
__lxstat is an inline wrapper around call to lxstat.
__lxstat is not in the source standard; it is only in the binary standard.
__mempcpy copies n bytes of source to destination, returning pointer to bytes after the last written byte.
__mempcpy is not in the source standard; it is only in the binary standard.
__rawmemchr searches in s for c.
__rawmemchr is a weak alias to rawmemchr. It is similar to memchr, but it has no length limit.
__rawmemchr is not in the source standard; it is only in the binary standard.
__sigsetjmp has the same behavior as sigsetjmp as specified by the Single UNIX Specification, Version 2.
__sigsetjmp is not in the source standard; it is only in the binary standard.
__stpcpy copies the string src (including the terminating /0 character) to the array dest. The strings may not overlap, and dest must be large enough to receive the copy.
__stpcpy returns a pointer to the end of the string dest (that is, the address of the terminating NULL character) rather than the beginning.
__stpcpy has the same specification as stpcpy.
__stpcpy is not in the source standard; it is only in the binary standard.
__strdup has the same specification as strdup.
__strdup is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtod_internal is undefined.
__strtod_internal(__nptr, __endptr, 0) has the same specification as strtod(__nptr, __endptr).
__strtod_internal is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtof_internal is undefined.
__strtof_internal(__nptr, __endptr, 0) has the same specification as strtof(__nptr, __endptr).
__strtof_internal is not in the source standard; it is only in the binary standard.
__strtok_r has the same specification as strtok_r.
__strtok_r is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtol_internal is undefined.
__strtol_internal(__nptr, __endptr, __base, 0) has the same specification as strtol(__nptr, __endptr, __base).
__strtol_internal is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtold_internal is undefined.
__strtold_internal(__nptr, __endptr, 0) has the same specification as strtold(__nptr, __endptr).
__strtold_internal is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtoll_internal is undefined.
__strtoll_internal(__nptr, __endptr, __base, 0) has the same specification as strtoll(__nptr, __endptr, __base).
__strtoll_internal is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtoul_internal is undefined.
__strtoul_internal(__nptr, __endptr, __base, 0) has the same specification as strtoul(__nptr, __endptr, __base).
__strtoul_internal is not in the source standard; it is only in the binary standard.
__group must be 0 or the behavior of __strtoull_internal is undefined.
__strtoull_internal(__nptr, __endptr, __base, 0) has the same specification as strtoull(__nptr, __endptr, __base).
__strtoull_internal is not in the source standard; it is only in the binary standard.
__sysconf gets configuration information at runtime.
__sysconf is weak alias to sysconf.
__sysconf has the same specification as sysconf.
__sysconf is not in the source standard; it is only in the binary standard.
__sysv_signal has the same behavior as signal as specified by X/Open.
__sysv_signal is not in the source standard; it is only in the binary standard.
__tzname has the same specification as tzname in the Single UNIX Specification.
Note that the array size of 2 is explicit in the Single UNIX Specification, Version 3, but not in the Single UNIX Specification, Version 2.
group must be 0 or the behavior of __wcstod_internal is undefined.
__wcstod_internal(nptr, endptr, 0) has the same specification as wcstod(nptr, endptr).
__wcstod_internal is not in the source standard; it is only in the binary standard.
group must be 0 or the behavior of __wcstof_internal is undefined.
__wcstof_internal(nptr, endptr, 0) has the same specification as wcstof(nptr, endptr).
__wcstof_internal is not in the source standard; it is only in the binary standard.
group must be 0 or the behavior of __wcstol_internal is undefined.
__wcstol_internal(nptr, endptr, base, 0) has the same specification as wcstol(nptr, endptr, base).
__wcstol_internal is not in the source standard; it is only in the binary standard.
group must be 0 or the behavior of __wcstold_internal is undefined.
__wcstold_internal(nptr, endptr, 0) has the same specification as wcstold(nptr, endptr).
__wcstold_internal is not in the source standard; it is only in the binary standard.
group must be 0 or the behavior of __wcstoul_internal is undefined.
__wcstoul_internal(nptr, endptr, base, 0) has the same specification as wcstoul(nptr, endptr, base).
__wcstoul_internal is not in the source standard; it is only in the binary standard.
ver must be 1 or the behavior of __xmknod is undefined.
__xmknod(1, path, mode, dev) has the same specification as mknod(path, mode, dev).
Note that the format of dev_t is not the same as the argument that the kernel syscall uses.
__xmknod is not in the source standard; it is only in the binary standard.
__ver must be 3 or the behavior of these functions is undefined.
__filename is as specified in POSIX.
__filedesc is as specified in POSIX.
__stat_buf is as specified in POSIX.
__xstat(3, __filename, __stat_buf) has the same specification as stat(__filename, __stat_buf) as specified by POSIX.
__lxstat(3, __filename, __stat_buf) has the same specification as lstat(__filename, __stat_buf) as specified by POSIX.
__fxstat(3, __filedesc, __stat_buf) has the same specification as fstat(__filedesc, __stat_buf) as specified by POSIX.
Note that the struct stat used by these functions is not the one that the kernel uses.
__xstat, __lxstat, and __fxstat are not in the source standard; they are only in the binary standard.
stat, lstat, and fstat are not in the binary standard; they are only in the source standard.
__ver must be 3 or the behavior of these functions is undefined.
__filename is as specified by the Large File Summit.
__filedesc is as specified by the Large File Summit.
__stat_buf is as specified by the Large File Summit.
__xstat64(3, __filename, __stat_buf) has the same specification as stat64(__filename, __stat_buf) as specified by the Large File Summit.
__lxstat64(3, __filename, __stat_buf) has the same specification as lstat64(__filename, __stat_buf) as specified by the Large File Summit.
__fxstat64(3, __filedesc, __stat_buf) has the same specification as fstat64(__filedesc, __stat_buf) as specified by the Large File Summit.
__xstat64, __lxstat64, and __fxstat64 are not in the source standard; they are only in the binary standard.
stat64, lstat64, and fstat64 are not in the binary standard; they are only in the source standard.
_nl_msg_cat_cntr is incremented each time a new catalong is loaded. It is a variable defined in loadmsgcat.c and is used by Message catalogs for internationalization.
_sys_errlist is an array containing the "C" locale strings used by strerror. This normally should not be used directly. strerror provides all of the needed functionality.
_sys_siglist is an array containing the names of the signal names.
_sys_siglist exists only for compatibility; use strsignal instead. (See string.h).
When filename is the name of an existing file, acct turns accounting on and appends a record to filename for each terminating process. When filename is NULL, acct turns accounting off.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
BSD process accounting has not been enabled when the operating system kernel was compiled. The kernel configuration parameter controlling this feature is CONFIG_BSD_PROCESS_ACCT.
Out of memory.
The calling process has no permission to enable process accounting.
filename is not a regular file.
Error writing to the filename.
There are no more free file structures or we run out of memory.
adjtime makes small adjustments to the system time as returned by gettimeofday(2), advancing or retarding it by the time specified by the timeval delta. If delta is negative, the clock is slowed down by incrementing it more slowly than normal until the correction is complete. If delta is positive, a larger increment than normal is used. The skew used to perform the correction is generally a fraction of one percent. Thus, the time is always a monotonically increasing function. A time correction from an earlier call to adjtime may not be finished when adjtime is called again. If olddelta is non-NULL, the structure pointed to will contain, upon return, the number of microseconds still to be corrected from the earlier call.
adjtime may be used by time servers that synchronize the clocks of computers in a local area network. Such time servers would slow down the clocks of some machines and speed up the clocks of others to bring them to the average network time.
The adjtime is restricted to the super-user.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
An argument points outside the process's allocated address space.
The process's effective user ID is not that of the super-user.
Linux uses David L. Mills' clock adjustment algorithm (see RFC 1305). adjtimex reads and optionally sets adjustment parameters for this algorithm. adjtimex takes a pointer to a timex structure, updates kernel parameters from field values, and returns the same structure with current kernel values. This structure is declared as follows:
struct timex { int modes; /* mode selector */ long offset; /* time offset (usec) */ long freq; /* frequency offset (scaled ppm) */ long maxerror; /* maximum error (usec) */ long esterror; /* estimated error (usec) */ int status; /* clock command/status */ long constant; /* pll time constant */ long precision; /* clock precision (usec) (read only) */ long tolerance; /* clock frequency tolerance (ppm) (read only) */ struct timeval time; /* current time (read only) */ long tick; /* usecs between clock ticks */ }; |
modes determines which parameters, if any, to set. modes may contain a bitwise-or combination of zero or more of the following bits:
#define ADJ_OFFSET 0x0001 /* time offset */ #define ADJ_FREQUENCY 0x0002 /* frequency offset */ #define ADJ_MAXERROR 0x0004 /* maximum time error */ #define ADJ_ESTERROR 0x0008 /* estimated time error */ #define ADJ_STATUS 0x0010 /* clock status */ #define ADJ_TIMECONST 0x0020 /* pll time constant */ #define ADJ_TICK 0x4000 /* tick value */ #define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime */ |
Ordinary users are restricted to a 0 value for modes. Only the superuser may set any parameters.
On success, adjtimex returns the clock state:
#define TIME_OK 0 /* clock synchronized */ #define TIME_INS 1 /* insert leap second */ #define TIME_DEL 2 /* delete leap second */ #define TIME_OOP 3 /* leap second in progress */ #define TIME_WAIT 4 /* leap second has occurred */ #define TIME_BAD 5 /* clock not synchronized */ |
On error, the global variable errno is set to -1.
buf does not point to writable memory.
buf.mode is non-ZERO and the user is not super-user.
An attempt is made to set buf.offset to a value outside of the range -131071 to +131071, or to set buf.status to a value other than those listed above, or to set buf.tick to a value outside of the range 900000/HZ to 1100000/HZ, where HZ is the system timer interrupt frequency.
alphasort is expected to disappear from a future version of the LSB; applications should provide their own routine to sort filenames. [11]
alphasort can be used as the comparison function for the scandir function to sort directory entries into alphabetical order. Its parameters are the two directory entries, a and b, to compare.
alphasort returns an integer less than, equal to, or greater than 0, where a is considered to be less than, equal to, or greater than b, respectively.
alphasort64 is expected to disappear from a future version of the LSB; applications should provide their own routine to sort filenames. [12]
alphasort compares two struct dirent64s alphabetically. This function is like alphasort but it uses the 64-bit dirent structure.
asprintf has the same behavior as sprintf, but calls malloc to dynamically allocate space for the output, and then puts the output string in that space.
asprintf stores the address of the string in ptr.
#include <libintl.h> extern char *bind_textdomain_codeset(const char *domainname, const char *codeset); |
The bind_textdomain_codeset function can be used to specify the output codeset for message catalogs for domain domainname. The codeset aregument must be a valid codeset name which can be used tor the iconv_open() funtion, or a null pointer. If the codeset argument is the null pointer, then function returns the currently selected codeset for the domain with the name domainname. It returns null pointer if no codeset has yet been selected
The bind_textdomain_codeset function can be used several times. If used multiple times, with the same domainname argument, the later call overrrides the settings made by the earlier one.
The bind_textdomain_codeset function returns a pointer to a string containing the name of the selected codeset. The string is allocated internally in the function and must not be changed by the user.
The domainname argument is applied to the currenlty active LC_MESSAGE locale. It is equivalent in syntax and meaning to the domainname argument to textdomain(), except that the selection of the domain is valid only for the duration of the call.
Returns the currently selected codeset name. It returns null pointer if no codeset has yet been selected.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
bindresvport binds a socket to a privileged IP port. This function can be used only by root.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
bindtextdomain specifies that the domainname message catalog will be found in the dirname directory hierarchy, rather than in the system locale data base.
bindtextdomain applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in bind_textdomain_codeset is valid only for the duration of the call.
dirname can be an absolute or relative pathname.
On success, bindtextdomain returns the directory pathname currently bound to the domain. On failure, a NULL pointer is returned.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
cfmakeraw sets the terminal attributes as follows:
termios_p->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP |INLCR|IGNCR|ICRNL|IXON); termios_p->c_oflag &= ~OPOST; termios_p->c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN); termios_p->c_cflag &= ~(CSIZE|PARENB); termios_p->c_cflag |= CS8; |
termios_p points to a termios structure that contains the following members:
tcflag_t c_iflag; /* input modes */ tcflag_t c_oflag; /* output modes */ tcflag_t c_cflag; /* control modes */ tcflag_t c_lflag; /* local modes */ cc_t c_cc[NCCS]; /* control chars */ |
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
cfsetspeed sets the baud rate values in the termios structure. The effects of the function on the terminal as described below do not become effective, nor are all errors detected, until the tcsetattr function is called. Certain values for baud rates set in termios and passed to tcsetattr have special meanings.
Input and output baud rates are found in the termios structure. The unsigned integer speed_t is typdef'd in the include file termios.h. The value of the integer corresponds directly to the baud rate being represented; however, the following symbolic values are defined.
#define B0 0 #define B50 50 #define B75 75 #define B110 110 #define B134 134 #define B150 150 #define B200 200 #define B300 300 #define B600 600 #define B1200 1200 #define B1800 1800 #define B2400 2400 #define B4800 4800 #define B9600 9600 #define B19200 19200 #define B38400 38400 #ifndef _POSIX_SOURCE #define EXTA 19200 #define EXTB 38400 #endif /*_POSIX_SOURCE */ |
cfsetspeed sets both the input and output baud rates in the termios structure referenced by t to speed.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
daemon allows programs to detach from the controlling terminal and run in the background as system daemons. Unless nochdir is non-ZERO, daemon changes the current working directory to the root (`/'). Unless noclose is non-zero, daemon will redirect standard input, standard output and standard error to /dev/null.
On error, -1 is returned, and the global variable errno is set to any of the errors specified for the library functions fork(2) and setsid(2).
dcgettext applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in dcgettext is valid only for the duration of the call.
a NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale.
category is used for retrieving messages string for other than LC_MESSAGES category. Available value for category are LC_CTYPE, LC_COLLATE, LC_MESSAGES, LC_MONETARY,LC_NUMERIC, and LC_TIME.
dcgettext(domainname, msgid, LC_MESSAGES) has the same specification as dgettext(domainname, msgid). Note that LC_ALL must not be used.
On success, the translated NULL-terminated string is returned. On error, msgid is returned.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
dcngettext applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in dcngettext is valid only for the duration of the call.
a NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale. If the value of n is 1 and no message catalogs containing a translation for msgid1 are found, msgid1 is returned.
a NULL-terminated string to be returned if the value of n is not 1 and no message catalogs are found.
determines which plural form is returned, in a language and message catalog dependent way.
category is used for retrieving messages string for other than LC_MESSAGES category. Available value for category are LC_CTYPE, LC_COLLATE, LC_MESSAGES, LC_MONETARY,LC_NUMERIC, and LC_TIME.
dcngettext(domainname, msgid1, msgid2, n, LC_MESSAGES) has the same specification as dngettext(domainname, msgid1, msgid2, n). Note that LC_ALL must not be used.
On success of a msgid1 query, the translated NULL-terminated string is returned. On error, the original msgid1 or msgid2 is returned, according to n.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
dgettext applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in dgettext is valid only for the duration of the call.
a NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale.
On success of a msgid query, the translated NULL-terminated string is returned. On error, the original msgid is returned. The length of the string returned is undetermined until dgettext is called.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
dngettext applies domainname to the currently active LC_MESSAGE locale. This usage is equivalent in syntax and meaning to the textdomain function's application of domainname, except that the selection of the domain in dngettext is valid only for the duration of the call.
a NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale. If the value of n is 1 and no message catalogs containing a translation for msgid1 are found, msgid1 is returned.
a NULL-terminated string to be returned if the value of n is not 1 and no message catalogs are found.
determines which plural form is returned, in a language and message catalog dependent way.
On success of a msgid1 query, the translated NULL-terminated string is returned. On error, the original msgid1 or msgid2 is returned, according to n.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
err displays a formatted error message on the standard error output. The last component of the program name, a colon character, and a space are output. If fmt is non-NULL, the formatted error message, a colon character, and a space are output. The error message string affiliated with the current value of the global variable errno is output. The output is followed by a newline character.
err does not return, but exits with the value of eval.
error prints a message to standard error.
error builds the message from the following elements in their specified order:
the program name. If the application has provided a function named error_print_progname, error calls this to supply the program name; otherwise, error uses the content of the global variable program_name.
the COLON and SPACE characters, then the result of using the printf-style format and the optional arguments.
if errnum is non-ZERO, error adds the COLON and SPACE characters, then the result of strerror(errnum).
a newline.
If exitstatus is non-ZERO, error calls exit(exitstatus).
errx displays a formatted error message on the standard error output. The last component of the program name, a colon character, and a space are output. If fmt is non-NULL, the formatted error message, a colon character, and a space are output. The output is followed by a newline character.
errx does not return, but exits with the value of eval.
fcntl is as specified in the Single UNIX Specification, Version 3, but with differences as listed below.
According to the Single UNIX Specification, only an application sets fcntl flags, for example O_LARGEFILE. However, this specification also allows implementations to set O_LARGEFILE in a case in which the default behavior matches the O_LARGEFILE behavior. [13] Or in other words, calling fcntl with the F_GETFL command may return O_LARGEFILE as well as flags explicitly set by the application.
flock applies or removes an advisory lock on the open file fd. Valid operation types are:
Shared lock. More than one process may hold a shared lock for a given file at a given time.
Exclusive lock. Only one process may hold an exclusive lock for a given file at a given time.
Unlock.
Don't block when locking. May be specified (by oring) along with one of the other operations.
A single file may not simultaneously have both shared and exclusive locks.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
fstatfs is expected to disappear from a future version of the LSB; applications should call the fstatvfs interface.
fstatfs returns information about a mounted file system. fd is the open file descriptor of any file within the mounted filesystem. buf is a pointer to a statfs structure defined as follows:
struct statfs { long f_type; /* type of filesystem (see below) */ long f_bsize; /* optimal transfer block size */ long f_blocks; /* total data blocks in file system */ long f_bfree; /* free blocks in fs */ long f_bavail; /* free blocks avail to non-superuser */ long f_files; /* total file nodes in file system */ long f_ffree; /* free file nodes in fs */ fsid_t f_fsid; /* file system id */ long f_namelen; /* maximum length of filenames */ long f_spare[6]; /* spare for later */ }; |
Fields that are undefined for a particular file system are set to 0.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
fd is not a valid open file descriptor.
buf points to an invalid address.
An I/O error occurred while reading from or writing to the file system.
The filesystem fd is open on does not support statfs.
fstatfs64 is expected to disappear from a future version of the LSB; applications should call the fstatvfs64 interface.
fstatfs64 returns information about a mounted file system. fd is the open file descriptor of any file within the mounted filesystem.
fstatfs64 is the 64-bit version of fstatfs.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
If NIS is in use, provide the NIS domain name. Note that this is not the same as the domain name which provides the domain portion of a fully qualified domain name (for example, in DNS). If NIS is not in use, provide the string "(none)".
If the string which is provided is strictly less than namelen characters in length, getdomainname places it in the array pointed to by name followed by a terminating null character. If not, getdomainname may either truncate it to namelen characters and place it in name (without a terminating null character), or may fail with EINVAL.
getdomainname returns 0 if successful; -1 if not (in which case errno is set to indicate the error).
gethostbyname returns a hostent structure for the given host name. Here, name is either a host name, or an IPv4 address in standard dot notation, or an IPv6 address in colon (and possibly dot) notation. (See RFC 1884 for the description of IPv6 addresses.) If name is an IPv4 or IPv6 address, no lookup is performed and gethostbyname simply copies name into the h_name field and its struct in_addr equivalent into the h_addr_list[0] field of the returned hostent structure. If name doesn't end in a dot and the environment variable HOSTALIASES is set, the alias file pointed to by HOSTALIASES will first be searched for name (see hostname(7) for the file format). The current domain and its parents are searched unless name ends in a dot.
The domain name queries carried out by gethostbyname use a combination of any or all of the name server named(8), a broken out line from /etc/hosts, and the Network Information Service (NIS or YP), depending upon the contents of the order line in /etc/host.conf. (See resolv+(8)). The default action is to query named(8), followed by /etc/hosts.
The hostent structure is defined in netdb.h as follows:
struct hostent { char *h_name; /* official name of host */ char **h_aliases; /* alias list */ int h_addrtype; /* host address type */ int h_length; /* length of address */ char **h_addr_list; /* list of addresses */ } #define h_addr h_addr_list[0] /* for backward compatibility */ |
gethostbyname returns the hostent structure or a NULL pointer if an error occurs. On error, the h_errno variable holds an error number.
gethostbyname_r is a reentrant version of gethostbyname that searches the network host database for a host name match.
getloadavg returns the number of processes in the system run queue averaged over various periods of time. Up to nelem samples are retrieved and assigned to successive elements of loadavg[]. The system imposes a maximum of 3 samples, representing averages over the last 1, 5, and 15 minutes, respectively.
extern char *optarg; extern int optind, opterr, optopt; |
GNU supports the following extensions of getopt:
getopt parses command line arguments. GNU and POSIX specifications for this function vary in the following areas.
GNU specifies that:
an element of argv that starts with "-" (and is not exactly "-" or "--") is an option element.
characters of an option element, aside from the initial "-", are option characters.
POSIX specifies that:
applications using getopt must obey the following syntax guidelines:
option name is a single alphanumeric character from the portable character set
option is preceded by the "-" delimiter character
options without option-arguments should be accepted when grouped behind one "-" delimiter
each option and option-argument is a separate argument
option-arguments are not optional
all options should precede operands on the command line
the argument "--" is accepted as a delimiter indicating the end of options and the consideration of subsequent arguments, if any, as operands
historical implementations of getopt support other characters as options as an allowed extension, but applications that use extensions are not maximally portable.
support for multi-byte option characters is only possible when such characters can be represented as type int.
applications that call any utility with a first operand starting with "-" should usually specify "--" to mark the end of the options. Standard utilities that do not support this guideline indicate that fact in the OPTIONS section of the utility description.
GNU specifies that:
if a character is followed by two colons, the option takes an optional arg; if there is text in the current argv element, it is returned in optarg, otherwise optarg is set to 0.
if optstring contains W followed by a ;, then -W foo is treated as the long option --foo. (Not available with libraries before GNU libc 2.)
getopt_long works like getopt except that getopt_long also accepts "long options", or, options that are prefaced with two dashes instead of one.
long option names may be abbreviated if the abbreviation is unique or an exact match for some defined option.
a long option may take a parameter, of the form --arg=param or --arg param.
getopt_long_only works like getopt_long, except that both "-" and "--" indicate long option. If an option that starts with "-" (not "--") doesn't match a long option, but does match a short option, it is parsed instead as a short option.
POSIX specifies that:
the -W option is reserved for implementation extensions.
GNU specifies the following getopt return values:
the next option character is returned, if found successfully.
":" is returned if a parameter is missing for one of the options.
"?" is returned if an unknown option character is encountered.
-1 is returned for the end of the option list.
GNU specifies the following getopt_long and getopt_long_only return values:
when short option is recognized, the option character is returned.
when long option is recognized, val is returned if flag is NULL, otherwise, 0 is returned.
error and -1 returns are the same as for getopt.
"?" is returned for an ambiguous match or an extraneous parameter.
POSIX specifies the following getopt return values:
the next option character is returned, if found successfully.
":" is returned if a parameter is missing for one of the options and the first character of opstring is ":".
"?" is returned if an unknown option character not in optstring is encountered, or if getopt detects a missing argument and the first character of optstring is not ":".
-1 is returned for the end of the option list.
GNU specifies that:
if the variable POSIXLY_CORRECT is set, option processing stops as soon as a non-option argument is encountered.
if POSIXLY_CORRECT is set, GNU getopt conforms to POSIX.2.
the variable _[PID]_GNU_nonoption_argv_flags_ was used by bash 2.0 to communicate to GNU libc which arguments resulted from wildcard expansion and so should not be considered as options. This behavior was removed in bash version 2.01, but the support remains in GNU libc.
getopt_long works like getopt except that it also accepts long options, started out by two dashes. Long option names may be abbreviated if the abbreviation is unique or is an exact match for some defined option. A long option may take a parameter, of the form --arg=param or --arg param.
longopts is a pointer to the first element of an array of struct option declared in getopt.h as:
struct option { const char *name; int *flag; int has_arg; int val; }; |
getopt_long returns the option character if the option was found successfully, or ":" if there was a missing parameter for one of the options, or "?" for an unknown option character, or -1 for the end of the option list.
getopt_long also returns the option character when a short option is recognized. For a long option, they return val if flag is NULL, and 0 otherwise. Error and -1 returns are the same as for getopt, plus "?" for an ambiguous match or an extraneous parameter.
getopt_long_only is like getopt_long, but "-" as well as "--" can indicate a long option. If an option that starts with "-" (not "--") doesn't match a long option, but does match a short option, it is parsed as a short option instead.
getopt_long_only returns the option character if the option was found successfully, or ":" if there was a missing parameter for one of the options, or "?" for an unknown option character, or -1 for the end of the option list.
getopt_long_only also returns the option character when a short option is recognized. For a long option, they return val if flag is NULL, and 0 otherwise. Error and -1 returns are the same as for getopt, plus "?" for an ambiguous match or an extraneous parameter.
getpwnam_ris a reentrant version of getpwnam. The additional arguments resultsbuf and buffer are for internal storage, buflen the size of the buffer, and result is the password structure used to return the requested information.
gets is expected to disappear from a future version of the LSB; applications should call the fgets interface. [14]
gets is as specified in the Single UNIX Specification.
getservbyname returns a servent structure for the line from /etc/services that matches the service name using protocol proto.
The servent structure is defined in netdb.h as follows:
struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number */ char *s_proto; /* protocol to use */ } |
getservbyname returns the servent structure, or a NULL pointer if an error occurs or the end of the file is reached.
getservent reads the next line from the file /etc/services and returns a structure servent containing the broken out fields from the line. The /etc/services file is opened if necessary.
The servent structure is defined in netdb.h as follows:
struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number */ char *s_proto; /* protocol to use */ } |
getservent returns the servent structure, or a NULL pointer if an error occurs or the end of the file is reached.
gettext attempts to retrieve a target string based on the specified key from msgid within the context of a specific domain and the current locale.
The LANGUAGE environment variable is examined first to determine the message catalogs to be used. LANGUAGE is a list of locale names separated by ":" character. If LANGUAGE is defined, each locale name is tried in the specified order and if a message catalog containing the requested message is found, the message is returned. If LANGUAGE is defined but failed to locate a message catalog, the msgid string is returned. If LANGUAGE is not defined, the LC_ALL, LC_xxx, and LANG environment variables are examined to locate the message catalog, following the convention used by the setlocale function.
The pathname used to locate the message catalog is dirname/locale/category/domainname.mo, where dirname is the directory specified by the bindtextdomain function, locale is a locale name determined by the definition of environment variables, and category is LC_MESSAGES.
If the LC_MESSAGES locale category of the current locale is the standard C locale or the standard POSIX locale, gettext returns msgid without looking in any message catalog.
A NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale.
If the function query above succeeds with msgid, then a translated NULL-terminated string is returned. If the search fails, then the original msgid is returned. The length of the string returned is undetermined until the function is called.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
getutent reads a line from the current file position in the utmp file. It returns a pointer to a structure containing the fields of the line.
glob64 searches for all the pathnames matching pattern according to the rules used by the shell. (See glob(7).) No tilde expansion or parameter substitution is done; if you want these, use wordexp(3).
The results of a glob64 call are stored in the structure pointed to by pglob, which is a glob64_t declared in glob.h and includes the following elements defined by POSIX.2 (more may be present as an extension):
glob64 is a 64-bit version of glob.
On success, 0 is returned. Other possible returns are:
out of memory
read error
no match found
globfree64 frees the dynamically allocated storage from an earlier call to glob64.
globfree64 is a 64-bit version of globfree.
initgroups initializes the group access list by reading the group database and using all groups of which user is a member. The additional group group is also added to the list.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
The calling process does not have sufficient privileges.
Insufficient memory to allocate group information structure.
ioctl manipulates the underlying device parameters of special files. d must be an open file descriptor. The type and value of the third parameter is dependent on the device and request.
An application may not call ioctl except for situations explicitly stated in this specification.
On success, 0 is returned. An ioctl may use the return value as an output parameter and return a non-negative value on success. On error, -1 is returned and the global variable errno is set appropriately.
d is not a valid descriptor.
The third parameter references an inaccessible memory area.
d is not associated with a character special device.
The specified request does not apply to the kind of object that d references.
request or the third parameter is not valid.
Socket ioctl commands are a subset of the ioctl calls, which can perform a variety of functions on sockets. sockfd must contain the value of a file descriptor that was created with the socket or accept calls.
Socket ioctl commands apply to the underlying network interfaces, and affect the entire system, not just the file descriptor used to issue the ioctl.
The following ioctls are provided:
Gets the interface configuration list for the system. [15] argp is a pointer to a ifconf structure. Before calling, the caller must allocate the ifc_ifcu.ifcu_req field to point to an array of ifreq structures, and set if_len to the size of this allocated array (in bytes). Upon return, if_len will contain the amount of the array which was actually used (again, in bytes). If it is the same as the length upon calling, the caller should assume that the array was too small and try again with a larger array.
On success, SIOCGIFCONF can return any nonnegative value. [16]
Gets the interface flags for the indicated interface. argp is a pointer to a ifreq structure. Before calling, the caller should fill in the ifr_name field with the interface name, and upon return, the ifr_ifru.ifru_flags field is set with the interface flags.
Gets the interface address list for the system. argp is a pointer to a ifreq structure. Before calling, the caller should fill in the ifr_name field with the interface name, and upon return, the ifr_ifru.ifru_addr field is set with the interface address.
Gets the network mask for the indicated interface. argp is a pointer to a ifreq structure. Before calling, the caller should fill in the ifr_name field with the interface name, and upon return, the ifr_ifru.ifru_netmask field is set with the network mask.
The sockaddr structure is as specified in the Single UNIX Specification.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
sockfd is not a valid descriptor.
argp references an inaccessible memory area.
sockfd is not associated with a character special device.
The specified request does not apply to the kind of object that the descriptor sockfd references.
request and argp are not valid.
iswctype tests wc to determine if it is a wide character whose property is designated by the character class desc.
desc must be a character property descriptor returned by the wctype function.
If wc belongs to the character class desc, a non-ZERO value is returned. Otherwise, 0 is returned.
Note that if wc is WEOF, 0 is returned.
kill is as specified in the Single UNIX Specification, Version 2, but with differences as listed below.
If pid is specified as -1, sig shall not be sent to the calling process. [17] Other than this, the rules in the Single UNIX Specification, Version 2 apply.
mbsnrtowcs is like mbsrtowcs, except that the number of bytes to be converted, starting at src, is limited to nms.
If dest is not a NULL pointer, mbsnrtowcs converts at most nms bytes from the multibyte string src to a wide-character string starting at dest. At most, len wide characters are written to dest. The state ps is updated.
The conversion is effectively performed by repeatedly calling:
mbrtowc(dest, *src, n, ps) |
The conversion can stop for three reasons:
An invalid multibyte sequence has been encountered. In this case src is left pointing to the invalid multibyte sequence, (size_t)(-1) is returned, and errno is set to EILSEQ.
The nms limit forces a stop, or len non-L'\0' wide characters have been stored at dest. In this case, src is left pointing to the next multibyte sequence to be converted, and the number of wide characters written to dest is returned.
The multibyte string has been completely converted, including the terminating '\0' (which has the side effect of bringing back ps to the initial state). In this case, src is set to NULL, and the number of wide characters written to dest, excluding the terminating L'\0' character, is returned.
If dest is NULL, len is ignored, and the conversion proceeds as above, except that the converted wide characters are not written out to memory, and that no destination length limit exists.
In both of the above cases, if ps is a NULL pointer, a static anonymous state only known to mbsnrtowcs is used instead.
The programmer must ensure that there is room for at least len wide characters at dest.
mbsnrtowcs returns the number of wide characters that make up the converted part of the wide character string, not including the terminating null wide character. If an invalid multibyte sequence was encountered, (size_t)(-1) is returned, and the global variable errno is set to EILSEQ.
The behavior of mbsnrtowcs depends on the LC_CTYPE category of the current locale.
Passing NULL as ps is not multi-thread safe.
memmem finds the start of the first occurrence of the substring needle of length needlelen in the memory area haystack of length haystacklen.
memmem returns a pointer to the beginning of the substring, or NULL if the substring is not found.
memmem was broken in Linux libraries up to and including libc 5.0.9; there the needle and haystack arguments were interchanged, and a pointer to the end of the first occurrence of needle was returned. Since libc 5.0.9 is still widely used, this is a dangerous function to use.
Both old and new libc's have the bug that if needle is empty, haystack-1 is returned (instead of haystack). And glibc 2.0 makes it worse, returning a pointer to the last byte of haystack. This is fixed in glibc 2.1.
memrchr returns a pointer to the last occurrence of c in the first n characters of the string represented by s.
ngettext is the plural version of gettext, which searches for the message string using the msgid1 arguments as the key, using the argument n to determine the plural form. If no message catalogs containing a translation for msgid1 are found, msgid1 is returned if n == 1, otherwise, msgid2 is returned. (See gettext for more details.)
A NULL-terminated string to be matched in the catalogue with respect to a specific domain and the current locale. If no message catalogs are found, msgid1 is returned if n == 1.
A NULL-terminated string to be returned if no message catalogs are found and n != 1.
Determines in which plural form a message string is returned, in a language and message catalog dependent way.
If the function query above succeeds with msgid1, then a translated NULL-terminated string is returned. If the search fails, then the original msgid1 or msgid2 is returned, according to n.
gettext, dgettext, ngettext, dngettext, dcgettext, dcngettext, textdomain, bindtextdomain, bind_textdomain_codeset
nice is as specified in the Single UNIX Specification, but with differences as listed below.
As deprecated behavior, the return value of a successful call to nice may be 0 (rather than the new nice value). A future version of the LSB is expected to require the new nice value, as specified in the Single UNIX Specification. But until then, applications need to call the getpriority, rather than rely on the return value from nice.
opterr is used as a flag to suppress an error message generated by getopt. When opterr is set to 0, it suppresses the error message generated by getopt when that function does not recognize an option character.
optind holds the current index of the array argr[], which contains the command line options being parsed by getopt.
optopt holds the unknown option character when that option character is not recognized by getopt.
psignal displays a message on stderr consisting of the string s, a colon, a space, and a string describing the signal number sig. If sig is invalid, the message displayed will indicate an unknown signal.
The array sys_siglist holds the signal description strings indexed by signal number.
setbuffer is an alias for the call to setvbuf. It works the same, except that the size of the buffer in setbuffer is up to the caller, rather than being determined by the default BUFSIZ.
If NIS is in use, set the NIS domain name. Note that this is not the same as the domain name which provides the domain portion of a fully qualified domain name (for example, in DNS). If NIS is not in use, this function may set the domain name anyway, or it may fail.
This call shall fail unless the caller has appropriate privileges.
namelen shall be the length of the string pointed to by name.
setdomainname returns 0 if successful; -1 if not (in which case errno is set to indicate the error).
setgroups sets the supplementary groups for the process. Only the super-user may use this function.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
list has an invalid address.
The user is not the super-user.
size is greater than NGROUPS (32 for Linux 2.0.32).
sethostid sets a unique 32-bit identifier for the current machine. The 32-bit identifier is intended to be unique among all UNIX systems in existence. This normally resembles the Internet address for the local machine as returned by gethostbyname(3), and thus usually never needs to be set.
The sethostid call is restricted to the superuser.
hostid is stored in the file /etc/hostid.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
len is negative or larger than the maximum allowed size.
the caller was not the superuser.
name is an invalid address.
setmntent is expected to disappear from a future version of the LSB; applications should avoid its use. [18]
setnmtent accesses the file system description file /etc/fstab and the mounted file system description file /etc/mtab.
setmntent opens the file system description file filep and returns a file pointer that can be used by getmntent. type is the type of access required and can take the same values as the mode argument of fopen(3).
The mntent structure is defined in mntent.h as follows:
struct mntent { char *mnt_fsname; /* name of mounted file system */ char *mnt_dir; /* file system path prefix */ char *mnt_type; /* mount type (see mntent.h) */ char *mnt_opts; /* mount options (see mntent.h) */ int mnt_freq; /* dump frequency in days */ int mnt_passno; /* pass number on parallel fsck */ }; |
setutent rewinds the file pointer to the beginning of the utmp file. It is generally a Good Idea to call it before any of the other functions.
sigandset is a signal function that builds a new signal set by combining the two input sets using logical AND.
sigblock is made obsolete by sigprocmask(2).
sigblock adds the signals specified in mask to the set of signals currently being blocked from delivery.
Prototype for sigblock is only available if _BSD_SOURCE is defined before the inclusion of any system.
siggetmask is made obsolete by sigprocmask(2).
siggetmask returns the current set of masked signals.
Prototype for siggetmask is only available if _BSD_SOURCE is defined before the inclusion of any system header file.
sigisemptyset checks for empty signal set. It returns a non-empty value if set is not empty.
sigorset is a signal function that builds a new signal set by combining the two input sets using logical OR.
When the Linux kernel creates the stack frame for a signal handler, a call to sigreturn is inserted into the stack frame so that the the signal handler will call sigreturn upon return. This inserted call to sigreturn cleans up the stack so that the process can restart from where it was interrupted by the signal.
sigreturn is used by the kernel to implement signal handlers. It should never be called directly. Better yet, the specific use of __unused varies depending on the architecture.
statfs is expected to disappear from a future version of the LSB; applications should call the statvfs interface.
statfs returns information about a mounted file system. path is the path name of any file within the mounted filesystem.
buf is a pointer to a statfs structure defined as follow:
struct statfs { long f_type; /* type of filesystem (see below) */ long f_bsize; /* optimal transfer block size */ long f_blocks; /* total data blocks in file system */ long f_bfree; /* free blocks in fs */ long f_bavail; /* free blocks avail to non-superuser */ long f_files; /* total file nodes in file system */ long f_ffree; /* free file nodes in fs */ long f_ffree; /* free file nodes in fs */ fsid_t f_fsid; /* file system id */ long f_namelen; /* maximum length of filenames */ long f_spare[6]; /* spare for later */ }; |
Fields that are undefined for a particular file system are set to 0.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
A component of the path prefix of path is not a directory.
path is too long.
The file referred to by path does not exist.
Search permission is denied for a component of the path prefix of path.
Too many symbolic links were encountered in translating path.
buf or path points to an invalid address.
An I/O error occurred while reading from or writing to the file system.
Insufficient kernel memory was available.
The filesystem path is on does not support statfs.
statfs64 is expected to disappear from a future version of the LSB; applications should call the statvfs64 interface.
statfs64 returns information about a mounted file system.
statfs64 is the 64-bit version of statfs.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
stime sets the system's idea of the time and date. Time, pointed to by t, is measured in seconds from 00:00:00 GMT January 1, 1970. stime may only be executed by the super user.
On success, 0 is returned. On error, -1 is returned and the global variable errno is set appropriately.
stpcpy copies the string pointed to by src (including the terminating \0 character) to the array pointed to by dest. The strings may not overlap, and the destination string dest must be large enough to receive the copy.
stpcpy returns a pointer to the end of the string dest (that is, the address of the terminating NULL character) rather than the beginning.
This program uses stpcpy to concatenate foo and bar to produce foobar, which it then prints.
#include <string.h> int main (void) { char *to = buffer; to = stpcpy (to, "foo"); to = stpcpy (to, "bar"); printf ("%s\n", buffer); } |
stpncpy copies at most n characters from the string pointed to by src, including the terminating \0 character, to the array pointed to by dest. Exactly n characters are written at dest. If the length strlen(src) is smaller than n, the remaining characters in dest are filled with \0 characters. If the length strlen(src) is greater than or equal to n, dest will not be \0 terminated.
The strings may not overlap.
The programmer must ensure that there is room for at least n characters at dest.
stpncpy returns a pointer to the terminating NULL in dest, or, if dest is not NULL-terminated, dest + n.
strerror_r is a reentrant version of strerror. strerror_r returns a pointer to an error message corresponding to error number errnum. The returned pointer may point within the buffer buf (at most buflen bytes). [19]
strfry randomizes the contents of string by using rand(3) to randomly swap characters in the string. The result is an anagram of string.
strndup returns a malloc'd copy of at most n bytes of string. The resultant string is terminated even if no NULL terminator appears before STRING[N].
strnlen returns the number of characters in the string s, not including the terminating \0 character, but at most maxlen. In doing this, strnlen looks only at the first maxlen characters at s and never beyond s + maxlen.
strnlen returns strlen(s), if that is less than maxlen, or maxlen if there is no \0 character among the first maxlen characters pointed to by s.
strptime is as specified in the Single UNIX Specification, Version 2 with differences as listed below.
The Single UNIX Specification, Version 2 specifies fields for which "leading zeros are permitted but not required"; however, applications must not expect to be able to supply more leading zeroes for these fields than would be implied by the range of the field. Implementations may choose to either match an input with excess leading zeroes, or treat this as a non-matching input. For example, %j has a range of 001 to 366, so 0, 00, 000, 001, and 045 are acceptable inputs, but inputs such as 0000, 0366 and the like are not.
glibc developers consider it appropriate behavior to forbid excess leading zeroes. When trying to parse a given input against several format strings, forbidding excess leading zeroes could be helpful. For example, if one matches 0011-12-26 against %m-%d-%Y and then against %Y-%m-%d, it seems useful for the first match to fail, as it would be perverse to parse that date as November 12, year 26. The second pattern parses it as December 26, year 11.
The Single UNIX Specification is not explicit that an unlimited number of leading zeroes are required, although it may imply this. The LSB explicitly allows implementations to have either behavior. Future versions of this standard may require implementations to forbid excess leading zeroes.
If stringp is NULL, strsep returns NULL and does nothing else.
If stringp is non-NULL, strsep finds the first token in the stringp, where tokens are delimited by symbols in the string delim. This token is terminated with a \0 character (by overwriting the delimiter) and stringp is updated to point past the token. In case no delimiter was found, the token is taken to be the entire string stringp, and stringp is made NULL.
strsep returns a pointer to the token, that is, it returns the original value of stringp.
strsep was introduced as a replacement for strtok, since the latter cannot handle empty fields. However, strtok conforms to ANSI-C and hence is more portable.
strsep suffers from the same problems as strtok. In particular, strsep modifies the original string. Avoid it.
strsignal returns a string describing the signal number sig. The string can only be used until the next call to strsignal.
The array sys_siglist holds the signal description strings indexed by signal number. strsignal should be used if possible instead of this array.
strsignal returns the appropriate description string, or an unknown signal message if the signal number is invalid. On some systems (but not on Linux), a NULL pointer may be returned instead for an invalid signal number.
strtok_r parses the string s into tokens. [20] The first call to strtok_r should have s as its first argument. Subsequent calls should have the first argument set to NULL. Each call returns a pointer to the next token, or NULL when no more tokens are found.
If a token ends with a delimiter, this delimiting character is overwritten with a \0 and a pointer to the next character is saved for the next call to strtok_r. The delimiter string delim may be different for each call.
ptrptr is a user allocated char* pointer. It must be the same while parsing the same string.
Never use this function. Note that:
It modifies its first argument.
The identity of the delimiting character is lost.
It cannot be used on constant strings.
strtoq converts the string nptr to a quadt value. The conversion is done according to the given base, which must be between 2 and 36 inclusive, or be the special value 0.
nptr may begin with an arbitrary amount of white space (as determined by isspace(3)), followed by a single optional + or - sign character. If base is 0 or 16, the string may then include a 0x prefix, and the number will be read in base 16; otherwise, a 0 base is taken as 10 (decimal), unless the next character is 0, in which case it is taken as 8 (octal).
The remainder of the string is converted to a long value in the obvious manner, stopping at the first character which is not a valid digit in the given base. (In bases above 10, the letter A in either upper or lower case represents 10, B represents 11, and so forth, with Z representing 35.)
strtoq returns the result of the conversion, unless the value would underflow or overflow. If an underflow occurs, strtoq returns QUAD_MIN. If an overflow occurs, strtoq returns QUAD_MAX. In both cases, the global variable errno is set to ERANGE.
strtouq converts the string nptr to a uquadt value. The conversion is done according to the given base, which must be between 2 and 36 inclusive, or be the special value 0.
nptr may begin with an arbitrary amount of white space (as determined by isspace(3)), followed by a single optional + or - sign character. If base is 0 or 16, the string may then include a 0x prefix, and the number will be read in base 16; otherwise, a 0 base is taken as 10 (decimal), unless the next character is 0, in which case it is taken as 8 (octal).
The remainder of the string is converted to an unsigned long value in the obvious manner, stopping at the end of the string or at the first character that does not produce a valid digit in the given base. (In bases above 10, the letter A in either upper or lower case represents 10, B represents 11, and so forth, with Z representing 35.)
On success, strtouq returns either the result of the conversion or, if there was a leading minus sign, the negation of the result of the conversion, unless the original (non-negated) value would overflow. In the case of an overflow the function returns UQUAD_MAX and the global variable errno is set to ERANGE.
system executes a command specified in string by calling /bin/sh -c string, and returns after the command has been completed. During execution of the command, SIGCHLD will be blocked, and SIGINT and SIGQUIT will be ignored.
The value 127 returned if the execve call for /bin/sh fails, -1 if there was another error and the return code of the command otherwise.
If the value of string is NULL, system returns a non-ZERO value if the shell is available, and ZERO if not.
system does not affect the wait status of any other children.
The fact that system ignores interrupts is often not what a program wants. The Single UNIX Specification describes some of the consequences; an additional consequence is that a program calling system from a loop cannot be reliably interrupted. Many programs will want to use the exec(3) family of functions instead.
Do not use system from a program with suid or sgid privileges, because strange values for some environment variables might be used to subvert system integrity. Use the exec(3) family of functions instead, but not execlp(3) or execvp(3). system will not, in fact, work properly from programs with suid or sgid privileges on systems on which /bin/sh is bash version 2, since bash 2 drops privileges on startup. (Debian uses a modified bash which does not do this when invoked as sh.)
The check for the availability of /bin/sh is not actually performed; it is always assumed to be available. ISO C specifies the check, but POSIX.2 specifies that the return shall always be non-ZERO, since a system without the shell is not conforming, and it is this that is implemented.
It is possible for the shell command to return 127, so that code is not a sure indication that the execve call failed; check the global variable errno to make sure.
textdomain sets the current default message catalog to domainname, which remains valid across subsequent calls to setlocale, and gettext.
On success, textdomain returns the currently selected domain. On error, a NULL pointer is returned.
If domainname is NULL, textdomain returns the current default.
If domainname is "", reset to the default of "messages".
unlink is as specified in the Single UNIX Specification, Version 2, but with differences as listed below.
See also Additional behaviors: unlink/link on directory>.
If path specifies a directory, the implementation may return EISDIR instead of EPERM as specified by Single UNIX Specification, Version 2. [21]
vasprintf writes formatted output to a string dynamically allocated with malloc, and stores the address of the string in ptr.
verrx displays a formatted error message on the standard error output. The last component of the program name, a COLON character, and a SPACE are output. If fmt is not NULL, the formatted error message, a COLON, and a SPACE are output. The output is followed by a newline character.
verrx does not return, but exits with the value of eval.
vsyslog is identical to syslog as specified in the Single UNIX Specification, except that arglist (as defined by stdarg.h) replaces the variable number of arguments.
The caller is responsible for running va_end after calling vsyslog.
wait3 is as specified in the Single UNIX Specification, Version 2, but with differences as listed below.
wait4 suspends execution of the current process until a child (as specified by pid) has exited, or until a signal is delivered whose action is to terminate the current process or to call a signal handling function. If a child (as requested by pid) has already exited by the time of the call (a so-called "zombie" process), the function returns immediately. Any system resources used by the child are freed.
The value of pid can be one of:
wait for any child process whose process group ID is equal to the absolute value of pid.
wait for any child process; this is equivalent to calling wait3.
wait for any child process whose process group ID is equal to that of the calling process.
wait for the child whose process ID is equal to the value of pid.
The value of options is a bitwise OR of zero or more of the following constants:
return immediately if no child is there to be waited for.
return for children that are stopped, and whose status has not been reported.
If status is not NULL, wait4 stores status information in the location status. This status can be evaluated with the following macros: [22]
is non-ZERO if the child exited normally.
evaluates to the least significant eight bits of the return code of the child that terminated, which may have been set as the argument to a call to exit or as the argument for a return statement in the main program. This macro can only be evaluated if WIFEXITED returned non-ZERO.
returns true if the child process exited because of a signal that was not caught.
returns the number of the signal that caused the child process to terminate. This macro can only be evaluated if WIFSIGNALED returned non-ZERO.
returns true if the child process that caused the return is currently stopped; this is only possible if the call was done using WUNTRACED.
returns the number of the signal that caused the child to stop. This macro can only be evaluated if WIFSTOPPED returned non-ZERO.
If rusage is not NULL, the struct rusage (as defined in sys/resource.h) that it points to will be filled with accounting information. (See getrusage(2) for details.
On success, the process ID of the child that exited is returned. On error, -1 is returned (in particular, when no unwaited-for child processes of the specified kind exist), or 0 if WNOHANG was used and no child was available yet. In the latter two cases, the global variable errno is set appropriately.
No unwaited-for child process as specified does exist.
A WNOHANG was not set and an unblocked signal or a SIGCHILD was caught. This error is returned by the system call. The library interface is not allowed to return ERESTARTSYS, but will return EINTR.
waitid is expected to disappear from a future version of the LSB; applications should call the waitpid interface.
waitid is as specified in the Single UNIX Specification, Version 2.
waitpid is as specified in the Single UNIX Specification, but with differences as listed below.
warn displays a formatted error message on the standard error output. The last component of the program name, a COLON character, and a SPACE are output. If fmt is not NULL, the formatted error message, a COLON, and SPACE are output. The error message string affiliated with the current value of the global variable errno is output. The output is followed by a newline character.
warnx displays a formatted error message on the standard error output. The last component of the program name, a COLON character, and a SPACE are output. If fmt is not NULL, the formatted error message, a COLON, and SPACE are output. The output is followed by a newline character.
wcpcpy is the wide-character equivalent of stpcpy. It copies the wide character string src, including the terminating L'\0' character, to the array dest.
The strings may not overlap.
The programmer must ensure that there is room for at least wcslen(src)+1 wide characters at dest.
wcpcpy returns a pointer to the end of the wide-character string dest, that is, a pointer to the terminating L'\0' character.
wcpncpy is the wide-character equivalent of stpncpy. It copies at most n wide characters from the wide-character string src, including the terminating L'\0' character, to the array dest. Exactly n wide characters are written at dest. If the length wcslen(src) is smaller than n, the remaining wide characters in the array dest are filled with L'\0' characters. If the length wcslen(src) is greater than or equal to n, the string dest will not be L'\0' terminated.
The strings may not overlap.
The programmer must ensure that there is room for at least n wide characters at dest.
wcscasecmp is the wide-character equivalent of strcasecmp. It compares the wide-character string s1 and the wide-character string s2, ignoring case differences (towupper, towlower).
wcscasecmp returns 0 if the wide-character strings s1 and s2 are equal except for case distinctions. It returns a positive integer if s1 is greater than s2, ignoring case. It returns a negative integer if s1 is smaller than s2, ignoring case.
wcsdup is the wide-character equivalent of strdup. It allocates and returns a new wide-character string whose initial contents is a duplicate of the wide-character string s.
Memory for the new wide-character string is obtained with malloc(3), and can be freed with free(3).
wcsdup returns a pointer to the new wide-character string, or NULL if sufficient memory was not available.
wcsncasecmp is the wide-character equivalent of strncasecmp. It compares the wide-character string s1 and the wide-character string s2, but at most n wide characters from each string, ignoring case differences (towupper, towlower).
wcscasecmp returns 0 if the wide-character strings s1 and s2, truncated to at most length n, are equal except for case distinctions. It returns a positive integer if truncated s1 is greater than truncated s2, ignoring case. It returns a negative integer if truncated s1 is smaller than truncated s2, ignoring case.
wcsnlen is the wide-character equivalent of strnlen. It returns the number of wide-characters in the string s, not including the terminating L'\0' character, but at most maxlen. In doing this, wcsnlen looks only at the first maxlen wide-characters at s and never beyond s + maxlen.
wcsnlen returns wcslen(s) if that is less than maxlen, or maxlen if there is no L'\0' character among the first maxlen wide characters pointed to by s.
wcsnrtombs is like wcsrtombs, except that the number of wide characters to be converted, starting at src, is limited to nwc.
If dest is not a NULL pointer, wcsnrtombs converts at most nwc wide characters from the wide-character string src to a multibyte string starting at dest. At most len bytes are written to dest. The state ps is updated.
The conversion is effectively performed by repeatedly calling:
wcrtomb(dest, *src, ps) |
The conversion can stop for three reasons:
A wide character has been encountered that cannot be represented as a multibyte sequence (according to the current locale). In this case src is left pointing to the invalid wide character, (size_t)(-1) is returned, and errno is set to EILSEQ.
nws wide characters have been converted without encountering a L'\0', or the length limit forces a stop. In this case, src is left pointing to the next wide character to be converted, and the number bytes written to dest is returned.
The wide-character string has been completely converted, including the terminating L'\0' (which has the side effect of bringing back ps to the initial state). In this case, src is set to NULL, and the number of bytes written to dest, excluding the terminating '\0' byte, is returned.
If dest is NULL, len is ignored, and the conversion proceeds as above, except that the converted bytes are not written out to memory, and that no destination length limit exists.
In both of the above cases, if ps is a NULL pointer, a static anonymous state only known to wcsnrtombs is used instead.
The programmer must ensure that there is room for at least len bytes at dest.
wcsnrtombs returns the number of bytes that make up the converted part of multibyte sequence, not including the terminating NULL byte. If a wide character was encountered which could not be converted, (size_t)(-1) is returned, and the global variable errno set to EILSEQ.
The behavior of wcsnrtombs depends on the LC_CTYPE category of the current locale.
Passing NULL as ps is not multi-thread safe.
wcstouq converts the initial portion of the wide string nptr to unsigned long long int representation.
The behavior of the interfaces in this library is specified by the following standards.
ISO/IEC 9899: 1999, Programming Languages --C[23] |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)[24] |
Table 13-32. libm - Math Function Interfaces
acos[24] | cexp[23] | expf[23] | jnf[23] | remquof[23] |
acosf[23] | cexpf[23] | expl[23] | jnl[23] | remquol[23] |
acosh[24] | cexpl[23] | expm1[24] | ldexp[24] | rint[24] |
acoshf[23] | cimag[23] | fabs[24] | ldexpf[23] | rintf[23] |
acoshl[23] | cimagf[23] | fabsf[23] | ldexpl[23] | rintl[23] |
acosl[23] | cimagl[23] | fabsl[23] | lgamma[24] | round[23] |
asin[24] | clog[23] | fdim[23] | lgamma_r[23] | roundf[23] |
asinf[23] | clog10[23] | fdimf[23] | lgammaf[23] | roundl[23] |
asinh[24] | clog10f[23] | fdiml[23] | lgammaf_r[23] | scalb[24] |
asinhf[23] | clog10l[23] | feclearexcept[23] | lgammal[23] | scalbf[23] |
asinhl[23] | clogf[23] | fegetenv[23] | lgammal_r[23] | scalbl[23] |
asinl[23] | clogl[23] | fegetexceptflag[23] | llrint[23] | scalbln[23] |
atan[24] | conj[23] | fegetround[23] | llrintf[23] | scalblnf[23] |
atan2[24] | conjf[23] | feholdexcept[23] | llrintl[23] | scalblnl[23] |
atan2f[23] | conjl[23] | feraiseexcept[23] | llround[23] | scalbn[23] |
atan2l[23] | copysign[23] | fesetenv[23] | llroundf[23] | scalbnf[23] |
atanf[23] | copysignf[23] | fesetexceptflag[23] | llroundl[23] | scalbnl[23] |
atanh[24] | copysignl[23] | fesetround[23] | log[24] | significand[23] |
atanhf[23] | cos[24] | fetestexcept[23] | log10[24] | significandf[23] |
atanhl[23] | cosf[23] | feupdateenv[23] | log10f[23] | significandl[23] |
atanl[23] | cosh[24] | finite[24] | log10l[23] | sin[24] |
cabs[24] | coshf[23] | finitef[23] | log1p[24] | sincos[23] |
cabsf[23] | coshl[23] | finitel[23] | logb[24] | sincosf[23] |
cabsl[23] | cosl[23] | floor[24] | logf[23] | sincosl[23] |
cacos[23] | cpow[23] | floorf[23] | logl[23] | sinf[23] |
cacosf[23] | cpowf[23] | floorl[23] | lrint[23] | sinh[24] |
cacosh[23] | cpowl[23] | fma[23] | lrintf[23] | sinhf[23] |
cacoshf[23] | cproj[23] | fmaf[23] | lrintl[23] | sinhl[23] |
cacoshl[23] | cprojf[23] | fmal[23] | lround[23] | sinl[23] |
cacosl[23] | cprojl[23] | fmax[23] | lroundf[23] | sqrt[24] |
carg[23] | creal[23] | fmaxf[23] | lroundl[23] | sqrtf[23] |
cargf[23] | crealf[23] | fmaxl[23] | matherr[23] | sqrtl[23] |
cargl[23] | creall[23] | fmin[23] | modf[24] | tan[24] |
casin[23] | csin[23] | fminf[23] | modff[23] | tanf[23] |
casinf[23] | csinf[23] | fminl[23] | modfl[23] | tanh[24] |
casinh[23] | csinh[23] | fmod[24] | nan[23] | tanhf[23] |
casinhf[23] | csinhf[23] | fmodf[23] | nanf[23] | tanhl[23] |
casinhl[23] | csinhl[23] | fmodl[23] | nanl[23] | tanl[23] |
casinl[23] | csinl[23] | frexp[24] | nearbyint[23] | tgamma[23] |
catan[23] | csqrt[23] | frexpf[23] | nearbyintf[23] | tgammaf[23] |
catanf[23] | csqrtf[23] | frexpl[23] | nearbyintl[23] | tgammal[23] |
catanh[23] | csqrtl[23] | gamma[24] | nextafter[24] | trunc[23] |
catanhf[23] | ctan[23] | gammaf[23] | nextafterf[23] | truncf[23] |
catanhl[23] | ctanf[23] | gammal[23] | nextafterl[23] | truncl[23] |
catanl[23] | ctanh[23] | hypot[24] | nexttoward[23] | y0[24] |
cbrt[24] | ctanhf[23] | hypotf[23] | nexttowardf[23] | y0f[23] |
cbrtf[23] | ctanhl[23] | hypotl[23] | nexttowardl[23] | y0l[23] |
cbrtl[23] | ctanl[23] | ilogb[24] | pow[23] | y1[24] |
ccos[23] | dremf[23] | ilogbf[23] | pow10[23] | y1f[23] |
ccosf[23] | dreml[23] | ilogbl[23] | pow10f[23] | y1l[23] |
ccosh[23] | erf[24] | j0[24] | pow10l[23] | yn[24] |
ccoshf[23] | erfc[24] | j0f[23] | powf[23] | ynf[23] |
ccoshl[23] | erfcf[23] | j0l[23] | powl[23] | ynl[23] |
ccosl[23] | erfcl[23] | j1[24] | remainder[24] | |
ceil[24] | erff[23] | j1f[23] | remainderf[23] | |
ceilf[23] | erfl[23] | j1l[23] | remainderl[23] | |
ceill[23] | exp[24] | jn[24] | remquo[23] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
#define HUGE_VAL 0x7FF00000UL #define DOMAIN 1 #define SING 2 struct exception { int type; char *name; double arg1; double arg2; double retval; } ; #define M_1_PI 0.31830988618379067154 #define M_LOG10E 0.43429448190325182765 #define M_2_PI 0.63661977236758134308 #define M_LN2 0.69314718055994530942 #define M_SQRT1_2 0.70710678118654752440 #define M_PI_4 0.78539816339744830962 #define M_2_SQRTPI 1.12837916709551257390 #define M_SQRT2 1.41421356237309504880 #define M_LOG2E 1.4426950408889634074 #define M_PI_2 1.57079632679489661923 #define M_LN10 2.30258509299404568402 #define M_E 2.7182818284590452354 #define M_PI 3.14159265358979323846 |
LSB systems support POSIX threads with the following exceptions. This list is intended to match the behavior of historical Linux implementations. Applications should be written to deal with either POSIX threads or the thread behaviors described here.
POSIX specifies a concept of per-process rather than per-thread signals. The LSB does not require this behavior; traditional Linux implementations have had per-thread signals only. A related issue is that applications cannot rely on getpid() returning the same value in different threads.
Note: one implication of per-thread signals is that a core dump (for example) may not stop all threads in a given process. This may be an issue when designing ways to stop/start applications.
Applications which create child processes (using fork() and the like) must then wait for them (using waitpid() family of functions) in the same thread as they created them. Note that coding applications this way will work both with full POSIX threads and legacy Linux thread implementations.
POSIX specifies that changing the user or group id instantly affects the behavior of all threads. This behavior is not specified; applications must use their own lock if they need this behavior. Rationale: it seems unnecessary and it is a performance hit (an SMP kernel must lock the user id).
Although this standard doesn't have a way to list processes (/proc or "ps" command line isn't in, right?), it is our intention to not specify one way or the other whether multiple threads appear as separate processes or as a single process.
Applications cannot rely on resource limits (getrusage and setrusage) being maintained per-process rather than per-thread.
Applications must disconnect from the controlling tty before calling pthread_create.
times() doesn't account for all threads, just the caller.
Applications must not call pthread_cancel if they call any system libraries (most notably X Window System libraries), as system libraries are not guaranteed to be thread safe. Likewise, for such libraries, only one thread per process may call them.
Applications cannot rely on fcntl/lockf locks being visible per-process rather than per-thread. Likewise for mandatory file locks.
Threaded applications cannot use SIGUSR1 or SIGUSR2.
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[25] |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)[26] |
Table 13-35. libpthread - Posix Threads Function Interfaces
pthread_attr_destroy[26] | pthread_attr_setstackaddr[26] | pthread_getspecific[26] | pthread_once[26] | pthread_setcanceltype[26] |
pthread_attr_getdetachstate[26] | pthread_attr_setstacksize[26] | pthread_join[26] | pthread_rwlock_destroy[26] | pthread_setconcurrency[26] |
pthread_attr_getguardsize[26] | pthread_cancel[26] | pthread_key_create[26] | pthread_rwlock_init[26] | pthread_setschedparam[26] |
pthread_attr_getinheritsched[26] | pthread_cond_broadcast[26] | pthread_key_delete[26] | pthread_rwlock_rdlock[26] | pthread_setspecific[26] |
pthread_attr_getschedparam[26] | pthread_cond_destroy[26] | pthread_kill[26] | pthread_rwlock_timedrdlock[26] | pthread_sigmask[26] |
pthread_attr_getschedpolicy[26] | pthread_cond_init[26] | pthread_mutex_destroy[26] | pthread_rwlock_timedwrlock[26] | pthread_testcancel[26] |
pthread_attr_getscope[26] | pthread_cond_signal[26] | pthread_mutex_init[26] | pthread_rwlock_tryrdlock[26] | sem_close[26] |
pthread_attr_getstackaddr[26] | pthread_cond_timedwait[26] | pthread_mutex_lock[26] | pthread_rwlock_trywrlock[26] | sem_destroy[26] |
pthread_attr_getstacksize[26] | pthread_cond_wait[26] | pthread_mutex_trylock[26] | pthread_rwlock_unlock[26] | sem_getvalue[26] |
pthread_attr_init[26] | pthread_condattr_destroy[26] | pthread_mutex_unlock[26] | pthread_rwlock_wrlock[26] | sem_init[26] |
pthread_attr_setdetachstate[26] | pthread_condattr_init[26] | pthread_mutexattr_destroy[26] | pthread_rwlockattr_destroy[26] | sem_open[26] |
pthread_attr_setguardsize[26] | pthread_create[26] | pthread_mutexattr_getpshared[26] | pthread_rwlockattr_getpshared[26] | sem_post[26] |
pthread_attr_setinheritsched[26] | pthread_detach[26] | pthread_mutexattr_gettype[26] | pthread_rwlockattr_init[26] | sem_timedwait[25] |
pthread_attr_setschedparam[26] | pthread_equal[26] | pthread_mutexattr_init[26] | pthread_rwlockattr_setpshared[26] | sem_trywait[26] |
pthread_attr_setschedpolicy[26] | pthread_exit[26] | pthread_mutexattr_setpshared[26] | pthread_self[26] | sem_unlink[26] |
pthread_attr_setscope[26] | pthread_getschedparam[26] | pthread_mutexattr_settype[26] | pthread_setcancelstate[26] | sem_wait[26] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
#define PTHREAD_MUTEX_DEFAULT 1 #define PTHREAD_MUTEX_NORMAL 1 #define PTHREAD_MUTEX_TIMED_NP 1 #define PTHREAD_MUTEX_RECURSIVE 2 #define PTHREAD_RWLOCK_DEFAULT_NP 2 #define PTHREAD_MUTEX_ERRORCHECK 3 #define __LOCK_INITIALIZER { 0, 0 } #define PTHREAD_RWLOCK_INITIALIZER { __LOCK_INITIALIZER, 0, NULL, NULL, NULL,PTHREAD_RWLOCK_DEFAULT_NP, PTHREAD_PROCESS_PRIVATE } #define PTHREAD_MUTEX_INITIALIZER {0,0,0,PTHREAD_MUTEX_TIMED_NP,__LOCK_INITIALIZER} #define PTHREAD_COND_INITIALIZER {__LOCK_INITIALIZER,0} typedef unsigned int pthread_key_t; typedef int pthread_once_t; typedef unsigned long pthread_t; struct _pthread_fastlock { long __status; int __spinlock; } ; typedef struct _pthread_descr_struct *_pthread_descr; typedef struct { int __m_reserved; int __m_count; _pthread_descr __m_owner; int __m_kind; struct _pthread_fastlock __m_lock; } pthread_mutex_t; typedef struct { int __mutexkind; } pthread_mutexattr_t; typedef struct { int __detachstate; int __schedpolicy; struct sched_param __schedparam; int __inheritsched; int __scope; size_t __guardsize; int __stackaddr_set; void *__stackaddr; unsigned long __stacksize; } pthread_attr_t; typedef struct { struct _pthread_fastlock lock; _pthread_descr wait_chain; } pthread_cond_t; typedef struct { int __dummy; } pthread_condattr_t; typedef struct _pthread_rwlock_t { struct _pthread_fastlock __rw_lock; int __rw_readers; _pthread_descr __rw_writer; _pthread_descr __rw_read_waiting; _pthread_descr __rw_write_waiting; int __rw_kind; int __rw_pshared; } pthread_rwlock_t; typedef struct { int __lockkind; int __pshared; } pthread_rwlockattr_t; #define PTHREAD_CREATE_JOINABLE 0 #define PTHREAD_INHERIT_SCHED 0 #define PTHREAD_ONCE_INIT 0 #define PTHREAD_PROCESS_PRIVATE 0 #define PTHREAD_SCOPE_SYSTEM 0 #define PTHREAD_CREATE_DETACHED 1 #define PTHREAD_EXPLICIT_SCHED 1 #define PTHREAD_PROCESS_SHARED 1 #define PTHREAD_SCOPE_PROCESS 1 #define PTHREAD_CANCELED ((void*)-1) #define PTHREAD_CANCEL_DEFERRED 0 #define PTHREAD_CANCEL_ENABLE 0 #define PTHREAD_CANCEL_ASYNCHRONOUS 1 #define PTHREAD_CANCEL_DISABLE 1 |
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[27] |
Table 13-37. libgcc_s - Unwind Library Function Interfaces
_Unwind_DeleteException(GCC_3.0)[27] | _Unwind_GetDataRelBase(GCC_3.0)[27] | _Unwind_GetLanguageSpecificData(GCC_3.0)[27] | _Unwind_RaiseException(GCC_3.0)[27] | _Unwind_SetIP(GCC_3.0)[27] |
_Unwind_Find_FDE(GCC_3.0)[27] | _Unwind_GetGR(GCC_3.0)[27] | _Unwind_GetRegionStart(GCC_3.0)[27] | _Unwind_Resume(GCC_3.0)[27] | |
_Unwind_ForcedUnwind(GCC_3.0)[27] | _Unwind_GetIP(GCC_3.0)[27] | _Unwind_GetTextRelBase(GCC_3.0)[27] | _Unwind_SetGR(GCC_3.0)[27] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
struct dwarf_eh_base { void *tbase; void *dbase; void *func; } ; struct _Unwind_Context; typedef unsigned int _Unwind_Ptr; typedef unsigned int _Unwind_Word; typedef enum { _URC_NO_REASON, _URC_FOREIGN_EXCEPTION_CAUGHT = 1, _URC_FATAL_PHASE2_ERROR = 2, _URC_FATAL_PHASE1_ERROR = 3, _URC_NORMAL_STOP = 4, _URC_END_OF_STACK = 5, _URC_HANDLER_FOUND = 6, _URC_INSTALL_CONTEXT = 7, _URC_CONTINUE_UNWIND = 8 } _Unwind_Reason_Code; struct _Unwind_Exception { _Unwind_Exception_Class; _Unwind_Exception_Cleanup_Fn; _Unwind_Word; _Unwind_Word; } ; #define _UA_SEARCH_PHASE 1 #define _UA_END_OF_STACK 16 #define _UA_CLEANUP_PHASE 2 #define _UA_HANDLER_FRAME 4 #define _UA_FORCE_UNWIND 8 |
_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 will 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_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 must 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.
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.
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.
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 must catch this condition. It may return this code if it cannot handle end-of-stack.
The stop function may return this code for other fatal conditions like stack corruption.
_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 returns the instruction pointer value for the routine identified by the unwind context.
_Unwind_GetLanguageSpecificData returns the address of the language specific data area for the current stack frame.
_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_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 must contain an _Unwind_Exception.
_Unwind_RaiseException does not return unless an error condition is found. If an error condition occurs, an _Unwind_Reason_Code is returnd:
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.
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.
The unwinder encountered an unexpected error during phase two. This is usually a throw, which will call terminate.
_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 sets the value of the register indexed for the routine identified by the unwind context.
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[28] |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)[29] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
cc ... -ldl ...
#include <dlfcn.h>
typedef struct {
const char *dli_fname;
void *dli_fbase;
const char *dli_sname;
void *dli_saddr;
} Dl_info; |
dladdr is the inverse of dlsym. If address is successfully located inside a module, dladdr returns a non-ZERO value, otherwise, it returns a 0. On success, dladdr fills in the fields of dlip as follows:
the pathname of the module
the base address of the module
the name of the highest addressed symbol whose address precedes the given address
the address of that symbol
Shared objects must be linked using the -shared option to the linker ld(1). The linker flag -rpath may be used to add a directory to the default search path for shared objects and shared libraries. The linker flag -E or the C compiler flag -rdynamic should be used to cause the application to export its symbols to the shared objects.
The behavior of the interfaces in this library is specified by the following standards.
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606)[30] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
A single service name, other, must always be present. The behavior of this service shall be determined by the system administrator. Additional service names may also exist. [31]
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[32] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef struct pam_handle pam_handle_t; struct pam_message { int msg_style; const char *msg; } ; struct pam_response { char *resp; int resp_retcode; } ; struct pam_conv { int (*conv) (int num_msg, const struct pam_message * *msg, struct pam_response * *resp, void *appdata_ptr); void *appdata_ptr; } ; #define PAM_PROMPT_ECHO_OFF 1 #define PAM_PROMPT_ECHO_ON 2 #define PAM_ERROR_MSG 3 #define PAM_TEXT_INFO 4 #define PAM_SERVICE 1 #define PAM_USER 2 #define PAM_TTY 3 #define PAM_RHOST 4 #define PAM_CONV 5 #define PAM_RUSER 8 #define PAM_USER_PROMPT 9 #define PAM_SUCCESS 0 #define PAM_OPEN_ERR 1 #define PAM_USER_UNKNOWN 10 #define PAM_MAXTRIES 11 #define PAM_NEW_AUTHTOK_REQD 12 #define PAM_ACCT_EXPIRED 13 #define PAM_SESSION_ERR 14 #define PAM_CRED_UNAVAIL 15 #define PAM_CRED_EXPIRED 16 #define PAM_CRED_ERR 17 #define PAM_CONV_ERR 19 #define PAM_SYMBOL_ERR 2 #define PAM_AUTHTOK_ERR 20 #define PAM_AUTHTOK_RECOVER_ERR 21 #define PAM_AUTHTOK_LOCK_BUSY 22 #define PAM_AUTHTOK_DISABLE_AGING 23 #define PAM_TRY_AGAIN 24 #define PAM_ABORT 26 #define PAM_AUTHTOK_EXPIRED 27 #define PAM_BAD_ITEM 29 #define PAM_SERVICE_ERR 3 #define PAM_SYSTEM_ERR 4 #define PAM_BUF_ERR 5 #define PAM_PERM_DENIED 6 #define PAM_AUTH_ERR 7 #define PAM_CRED_INSUFFICIENT 8 #define PAM_AUTHINFO_UNAVAIL 9 #define PAM_DISALLOW_NULL_AUTHTOK 0x0001U #define PAM_ESTABLISH_CRED 0x0002U #define PAM_DELETE_CRED 0x0004U #define PAM_REINITIALIZE_CRED 0x0008U #define PAM_REFRESH_CRED 0x0010U #define PAM_CHANGE_EXPIRED_AUTHTOK 0x0020U #define PAM_SILENT 0x8000U |
pam_acct_mgmt establishes the account's usability and the user's accessibility to the system. It is typically called after the user has been authenticated.
flags may be specified as any valid flag (namely, one of those applicable to the flags argument of pam_authenticate). Additionally, the value of flags may be logically OR'd with PAM_SILENT.
Success.
User is valid, but user's authentication token has expired. The correct response to this return-value is to require that the user satisfy the pam_chauthtok function before obtaining service. It may not be possible for an application to do this. In such a case, the user should be denied access until the account password is updated.
User is no longer permitted access to the system.
Authentication error.
User is not permitted to gain access at this time.
User is not known to a module's account management component.
pam_authenticate serves as an interface to the authentication mechanisms of the loaded modules.
flags is an optional parameter that may be specified by the following value:
Instruct the authentication modules to return PAM_AUTH_ERR if the user does not have a registered authorization token.
Additionally, the value of flags may be logically OR'd with PAM_SILENT.
Success.
User was not authenticated.
Application does not have sufficient credentials to authenticate the user.
Modules were not able to access the authentication information. This might be due to a network or hardware failure, etc.
Supplied username is not known to the authentication service.
One or more authentication modules has reached its limit of tries authenticating the user. Do not try again.
One or more authentication modules failed to load.
pam_chauthtok is used to change the authentication token for a given user as indicated by the state associated with the handle pamh.
flags is an optional parameter that may be specified by the following value:
User's authentication token should only be changed if it has expired.
Additionally, the value of flags may be logically OR'd with PAM_SILENT.
Success.
A module was unable to obtain the new authentication token.
A module was unable to obtain the old authentication token.
One or more modules were unable to change the authentication token since it is currently locked.
Authentication token aging has been disabled for at least one of the modules.
Permission denied.
Not all modules were in a position to update the authentication token(s). In such a case, none of the user's authentication tokens are updated.
User is not known to the authentication token changing service.
pam_close_session is used to indicate that an authenticated session has ended. It is used to inform the module that the user is exiting a session. It should be possible for the PAM library to open a session and close the same session from different applications.
flags may have the value PAM_SILENT to indicate that no output should be generated as a result of this function call.
Success.
One of the required loaded modules was unable to close a session for the user.
pam_end terminates use of the PAM library. On success, the contents of *pamh are no longer valid, and all memory associated with it is invalid.
Normally, pam_status is passed the value PAM_SUCCESS, but in the event of an unsuccessful service application, the appropriate PAM error return value should be used.
pam_fail_delay specifies the minimum delay for the PAM library to use when an authentication error occurs. The actual delay will vary by as much at 25%. If this function is called multiple times, the longest time specified by any of the call will be used.
The delay is invoked if an authentication error occurs during the pam_authenticate or pam_chauthtok function calls.
Independent of the success of pam_authenticate or pam_chauthtok, the delay time is reset to its default value of 0 when the PAM library returns control to the application from these two functions.
pam_get_item obtains the value of the indicated item_type. The possible values of item_type are the same as listed for pam_set_item.
On success, item contains a pointer to the value of the corresponding item. Note that this is a pointer to the actual data and should not be free'd or over-written.
Success.
Application passed a NULL pointer for item.
Application attempted to get an undefined item.
pam_getenvlist returns a pointer to the complete PAM environment. This pointer points to an array of pointers to NUL-terminated strings and must be terminated by a NULL pointer. Each string has the form "name=value".
The PAM library module allocates memory for the returned value and the associated strings. The calling application is responsible for freeing this memory.
pam_getenvlist returns an array of string pointers containing the PAM environment. On error, NULL is returned.
pam_handle_t is used to indicate that an authenticated session has begun. It is used to inform the module that the user is currently in a session. It should be possible for the PAM library to open a session and close the same session from different applications.
flags may have the value PAM_SILENT to indicate that no output be generated as a rsult of this function call.
Success.
One of the loaded modules was unable to open a session for the user.
pam_set_item (re)sets the value of one of the following item_types:
service name
user name
terminal name
The value for a device file should include the /dev/ prefix. The value for graphical, X-based, applications should be the $DISPLAY variable.
remote host name
conversation structure
remote user name
string to be used when prompting for a user's name
The default value for this string is Please enter username: .
For all item_types other than PAM_CONV, item is a pointer to a NULL-terminated character string. In the case of PAM_CONV, item points to an initialized pam_conv structure.
Success.
An attempt was made to replace the conversation structure with a NULL value.
Function ran out of memory making a copy of the item.
Application attempted to set an undefined item.
pam_setcred sets the module-specific credentials of the user. It is usually called after the user has been authenticated, after the account management function has been called and after a session has been opened for the user.
flags maybe specified from among the following values:
set credentials for the authentication service
delete credentials associated with the authentication service
reinitialize the user credentials
extend lifetime of the user credentials
Additionally, the value of flags may be logically OR'd with PAM_SILENT.
Success.
Module cannot retrieve the user's credentials.
User's credentials have expired.
User is not known to an authentication module.
Module was unable to set the credentials of the user.
pam_start is used to initialize the PAM library. It must be called prior to any other usage of the PAM library. On success, *pamh becomes a handle that provides continuity for successive calls to the PAM library. pam_start expects arguments as follows: the service_name of the program, the username of the individual to be authenticated, a pointer to an application-supplied pam_conv structure, and a pointer to a pam_handle_t pointer.
An application must provide the conversation function used for direct communication between a loaded module and the application. The application also typically provides a means for the module to prompt the user for a password, etc.
The structure, pam_conv, is defined to be,
struct pam_conv { int (*conv) (int num_msg, const struct pam_message * *msg, struct pam_response * *resp, void *appdata_ptr); void *appdata_ptr; }; |
When a module calls the referenced conv function, appdata_ptr is set to the second element of this structure.
The other arguments of a call to conv concern the information exchanged by module and application. num_msg holds the length of the array of pointers passed via msg. On success, the pointer resp points to an array of num_msg pam_response structures, holding the application-supplied text. Note that resp is a struct pam_response array and not an array of pointers.
An LSB-conforming implementation may also support some utility libraries which are built on top of the interfaces provided by the base libraries. These libraries implement common functionality, and hide additional system dependent information such as file formats and device names.
The behavior of the interfaces in this library is specified by the following standards.
zlib 1.1.3 Manual[34] |
Table 14-2. libz - Compression Library Function Interfaces
adler32[34] | deflateInit_[34] | gzerror[34] | gzread[34] | inflateInit2_[34] |
compress[34] | deflateParams[34] | gzflush[34] | gzrewind[34] | inflateInit_[34] |
compress2[34] | deflateReset[34] | gzgetc[34] | gzseek[34] | inflateReset[34] |
crc32[34] | deflateSetDictionary[34] | gzgets[34] | gzsetparams[34] | inflateSetDictionary[34] |
deflate[34] | get_crc_table[34] | gzopen[34] | gztell[34] | inflateSync[34] |
deflateCopy[34] | gzclose[34] | gzprintf[34] | gzwrite[34] | inflateSyncPoint[34] |
deflateEnd[34] | gzdopen[34] | gzputc[34] | inflate[34] | uncompress[34] |
deflateInit2_[34] | gzeof[34] | gzputs[34] | inflateEnd[34] | zError[34] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
#define Z_NULL 0 #define MAX_WBITS 15 #define MAX_MEM_LEVEL 9 #define deflateInit2(strm,level, method, windowBits, memLevel, stratgey) deflateInit2_((strm),(level),(method),(windowBits),(memLevel),(strategy), ZLIB_VERSION, sizeof(z_stream)) #define deflateInit(strm,level) deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream)) #define inflateInit2(strm,windowBits) inflateInit2_((strm), (windowBits), ZLIB_VERSION, sizeof(z_stream)) #define inflateInit(strm) inflateInit_((strm), ZLIB_VERSION, sizeof(z_stream)) typedef int intf; typedef void *voidpf; typedef unsigned int uInt; typedef unsigned long uLong; typedef uLong uLongf; typedef void *voidp; typedef unsigned char Byte; typedef off_t z_off_t; typedef voidpf (*alloc_func) (voidpf opaque, uInt items, uInt size); typedef void (*free_func) (voidpf opaque, voidpf address); struct internal_state { int dummy; } ; typedef Byte Bytef; typedef uInt uIntf; typedef struct z_stream_s { Bytef *next_in; uInt avail_in; uLong total_in; Bytef *next_out; uInt avail_out; uLong total_out; char *msg; struct internal_state *state; alloc_func zalloc; free_func zfree; voidpf opaque; int data_type; uLong adler; uLong reserved; } z_stream; typedef z_stream *z_streamp; typedef voidp gzFile; #define Z_NO_FLUSH 0 #define Z_PARTIAL_FLUSH 1 #define Z_SYNC_FLUSH 2 #define Z_FULL_FLUSH 3 #define Z_FINISH 4 #define Z_ERRNO (-1) #define Z_STREAM_ERROR (-2) #define Z_DATA_ERROR (-3) #define Z_MEM_ERROR (-4) #define Z_BUF_ERROR (-5) #define Z_OK 0 #define Z_STREAM_END 1 #define Z_NEED_DICT 2 #define Z_DEFAULT_COMPRESSION (-1) #define Z_NO_COMPRESSION 0 #define Z_BEST_SPEED 1 #define Z_BEST_COMPRESSION 9 #define Z_DEFAULT_STRATEGY 0 #define Z_FILTERED 1 #define Z_HUFFMAN_ONLY 2 #define Z_BINARY 0 #define Z_ASCII 1 #define Z_UNKNOWN 2 #define Z_DEFLATED 8 |
The behavior of the interfaces in this library is specified by the following standards.
CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018[35] |
Table 14-4. libncurses - Curses Function Interfaces
addch[35] | has_il[35] | mvwaddchstr[35] | scr_set[35] | waddnstr[35] |
addchnstr[35] | hline[35] | mvwaddnstr[35] | scrl[35] | waddstr[35] |
addchstr[35] | idcok[35] | mvwaddstr[35] | scroll[35] | wattr_get[35] |
addnstr[35] | idlok[35] | mvwchgat[35] | scrollok[35] | wattr_off[35] |
addstr[35] | immedok[35] | mvwdelch[35] | set_term[35] | wattr_on[35] |
attr_get[35] | inch[35] | mvwgetch[35] | setscrreg[35] | wattr_set[35] |
attr_off[35] | inchnstr[35] | mvwgetnstr[35] | setupterm[35] | wattroff[35] |
attr_on[35] | inchstr[35] | mvwgetstr[35] | slk_attr_set[35] | wattron[35] |
attr_set[35] | init_color[35] | mvwhline[35] | slk_attroff[35] | wattrset[35] |
attroff[35] | init_pair[35] | mvwin[35] | slk_attron[35] | wbkgd[35] |
attron[35] | initscr[35] | mvwinch[35] | slk_attrset[35] | wbkgdset[35] |
attrset[35] | innstr[35] | mvwinchnstr[35] | slk_clear[35] | wborder[35] |
baudrate[35] | insch[35] | mvwinchstr[35] | slk_color[35] | wchgat[35] |
beep[35] | insdelln[35] | mvwinnstr[35] | slk_init[35] | wclear[35] |
bkgd[35] | insertln[35] | mvwinsch[35] | slk_label[35] | wclrtobot[35] |
bkgdset[35] | insnstr[35] | mvwinsnstr[35] | slk_noutrefresh[35] | wclrtoeol[35] |
border[35] | insstr[35] | mvwinsstr[35] | slk_refresh[35] | wcolor_set[35] |
box[35] | instr[35] | mvwinstr[35] | slk_restore[35] | wcursyncup[35] |
can_change_color[35] | intrflush[35] | mvwprintw[35] | slk_set[35] | wdelch[35] |
cbreak[35] | is_linetouched[35] | mvwscanw[35] | slk_touch[35] | wdeleteln[35] |
chgat[35] | is_wintouched[35] | mvwvline[35] | standend[35] | wechochar[35] |
clear[35] | isendwin[35] | napms[35] | standout[35] | werase[35] |
clearok[35] | keyname[35] | newpad[35] | start_color[35] | wgetch[35] |
clrtobot[35] | keypad[35] | newterm[35] | subpad[35] | wgetnstr[35] |
clrtoeol[35] | killchar[35] | newwin[35] | subwin[35] | wgetstr[35] |
color_content[35] | leaveok[35] | nl[35] | syncok[35] | whline[35] |
color_set[35] | longname[35] | nocbreak[35] | termattrs[35] | winch[35] |
copywin[35] | meta[35] | nodelay[35] | termname[35] | winchnstr[35] |
curs_set[35] | move[35] | noecho[35] | tgetent[35] | winchstr[35] |
def_prog_mode[35] | mvaddch[35] | nonl[35] | tgetflag[35] | winnstr[35] |
def_shell_mode[35] | mvaddchnstr[35] | noqiflush[35] | tgetnum[35] | winsch[35] |
delay_output[35] | mvaddchstr[35] | noraw[35] | tgetstr[35] | winsdelln[35] |
delch[35] | mvaddnstr[35] | notimeout[35] | tgoto[35] | winsertln[35] |
deleteln[35] | mvaddstr[35] | overlay[35] | tigetflag[35] | winsnstr[35] |
delscreen[35] | mvchgat[35] | overwrite[35] | tigetnum[35] | winsstr[35] |
delwin[35] | mvcur[35] | pair_content[35] | tigetstr[35] | winstr[35] |
derwin[35] | mvdelch[35] | pechochar[35] | timeout[35] | wmove[35] |
doupdate[35] | mvderwin[35] | pnoutrefresh[35] | touchline[35] | wnoutrefresh[35] |
dupwin[35] | mvgetch[35] | prefresh[35] | touchwin[35] | wprintw[35] |
echo[35] | mvgetnstr[35] | printw[35] | tparm[35] | wredrawln[35] |
echochar[35] | mvgetstr[35] | putp[35] | tputs[35] | wrefresh[35] |
endwin[35] | mvhline[35] | putwin[35] | typeahead[35] | wscanw[35] |
erase[35] | mvinch[35] | qiflush[35] | ungetch[35] | wscrl[35] |
erasechar[35] | mvinchnstr[35] | raw[35] | untouchwin[35] | wsetscrreg[35] |
filter[35] | mvinchstr[35] | redrawwin[35] | use_env[35] | wstandend[35] |
flash[35] | mvinnstr[35] | refresh[35] | vidattr[35] | wstandout[35] |
flushinp[35] | mvinsch[35] | reset_prog_mode[35] | vidputs[35] | wsyncdown[35] |
getbkgd[35] | mvinsnstr[35] | reset_shell_mode[35] | vline[35] | wsyncup[35] |
getch[35] | mvinsstr[35] | resetty[35] | vw_printw[35] | wtimeout[35] |
getnstr[35] | mvinstr[35] | ripoffline[35] | vw_scanw[35] | wtouchln[35] |
getstr[35] | mvprintw[35] | savetty[35] | vwprintw[35] | wvline[35] |
getwin[35] | mvscanw[35] | scanw[35] | vwscanw[35] | |
halfdelay[35] | mvvline[35] | scr_dump[35] | waddch[35] | |
has_colors[35] | mvwaddch[35] | scr_init[35] | waddchnstr[35] | |
has_ic[35] | mvwaddchnstr[35] | scr_restore[35] | waddchstr[35] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
#define NCURSES_BITS(mask,shift) ((mask)<<((shift)+8)) #define ERR (-1) #define OK (0) #define A_CHARTEXT (NCURSES_BITS(1UL,0)-1UL) #define getmaxyx(win,y,x) (y=(win)?((win)->_maxy+1):ERR,x=(win)?((win)->_maxx+1):ERR) #define getbegyx(win,y,x) (y=(win)?(win)->_begy:ERR,x=(win)?(win)->_begx:ERR) #define getyx(win,y,x) (y=(win)?(win)->_cury:ERR,x=(win)?(win)->_curx:ERR) #define getparyx(win,y,x) (y=(win)?(win)->_pary:ERR,x=(win)?(win)->_parx:ERR) #define A_NORMAL 0L #define A_COLOR NCURSES_BITS(((1UL)<<8)-1UL,0) #define A_REVERSE NCURSES_BITS(1UL,10) #define A_BLINK NCURSES_BITS(1UL,11) #define A_DIM NCURSES_BITS(1UL,12) #define A_BOLD NCURSES_BITS(1UL,13) #define A_ALTCHARSET NCURSES_BITS(1UL,14) #define A_INVIS NCURSES_BITS(1UL,15) #define A_PROTECT NCURSES_BITS(1UL,16) #define A_HORIZONTAL NCURSES_BITS(1UL,17) #define A_LEFT NCURSES_BITS(1UL,18) #define A_LOW NCURSES_BITS(1UL,19) #define A_RIGHT NCURSES_BITS(1UL,20) #define A_TOP NCURSES_BITS(1UL,21) #define A_VERTICAL NCURSES_BITS(1UL,22) #define A_STANDOUT NCURSES_BITS(1UL,8) #define A_UNDERLINE NCURSES_BITS(1UL,9) #define A_ATTRIBUTES NCURSES_BITS(~(1UL-1UL),0) #define WA_ALTCHARSET A_ALTCHARSET #define WA_ATTRIBUTES A_ATTRIBUTES #define WA_BLINK A_BLINK #define WA_BOLD A_BOLD #define WA_DIM A_DIM #define WA_HORIZONTAL A_HORIZONTAL #define WA_INVIS A_INVIS #define WA_LEFT A_LEFT #define WA_LOW A_LOW #define WA_NORMAL A_NORMAL #define WA_PROTECT A_PROTECT #define WA_REVERSE A_REVERSE #define WA_RIGHT A_RIGHT #define WA_STANDOUT A_STANDOUT #define WA_TOP A_TOP #define WA_UNDERLINE A_UNDERLINE #define WA_VERTICAL A_VERTICAL #define COLOR_BLACK 0 #define COLOR_RED 1 #define COLOR_GREEN 2 #define COLOR_YELLOW 3 #define COLOR_BLUE 4 #define COLOR_MAGENTA 5 #define COLOR_CYAN 6 #define COLOR_WHITE 7 #define _SUBWIN 0x01 #define _ENDLINE 0x02 #define _FULLWIN 0x04 #define _ISPAD 0x10 #define _HASMOVED 0x20 typedef unsigned long chtype; typedef struct screen SCREEN; typedef struct _win_st WINDOW; typedef chtype attr_t; typedef struct { attr_t attr; wchar_t chars[5]; } cchar_t; struct pdat { short _pad_y; short _pad_x; short _pad_top; short _pad_left; short _pad_bottom; short _pad_right; } ; struct _win_st { short _cury; short _curx; short _maxy; short _maxx; short _begy; short _begx; short _flags; attr_t _attrs; chtype _bkgd; bool _notimeout; bool _clear; bool _leaveok; bool _scroll; bool _idlok; bool _idcok; bool _immed; bool _sync; bool _use_keypad; int _delay; struct ldat *_line; short _regtop; short _regbottom; int _parx; int _pary; WINDOW *_parent; struct pdat _pad; short _yoffset; cchar_t _bkgrnd; } ; #define KEY_CODE_YES 0400 #define KEY_BREAK 0401 #define KEY_MIN 0401 #define KEY_DOWN 0402 #define KEY_UP 0403 #define KEY_LEFT 0404 #define KEY_RIGHT 0405 #define KEY_HOME 0406 #define KEY_BACKSPACE 0407 #define KEY_F0 0410 #define KEY_DL 0510 #define KEY_IL 0511 #define KEY_DC 0512 #define KEY_IC 0513 #define KEY_EIC 0514 #define KEY_CLEAR 0515 #define KEY_EOS 0516 #define KEY_EOL 0517 #define KEY_SF 0520 #define KEY_SR 0521 #define KEY_NPAGE 0522 #define KEY_PPAGE 0523 #define KEY_STAB 0524 #define KEY_CTAB 0525 #define KEY_CATAB 0526 #define KEY_ENTER 0527 #define KEY_SRESET 0530 #define KEY_RESET 0531 #define KEY_PRINT 0532 #define KEY_LL 0533 #define KEY_A1 0534 #define KEY_A3 0535 #define KEY_B2 0536 #define KEY_C1 0537 #define KEY_C3 0540 #define KEY_BTAB 0541 #define KEY_BEG 0542 #define KEY_CANCEL 0543 #define KEY_CLOSE 0544 #define KEY_COMMAND 0545 #define KEY_COPY 0546 #define KEY_CREATE 0547 #define KEY_END 0550 #define KEY_EXIT 0551 #define KEY_FIND 0552 #define KEY_HELP 0553 #define KEY_MARK 0554 #define KEY_MESSAGE 0555 #define KEY_MOVE 0556 #define KEY_NEXT 0557 #define KEY_OPEN 0560 #define KEY_OPTIONS 0561 #define KEY_PREVIOUS 0562 #define KEY_REDO 0563 #define KEY_REFERENCE 0564 #define KEY_REFRESH 0565 #define KEY_REPLACE 0566 #define KEY_RESTART 0567 #define KEY_RESUME 0570 #define KEY_SAVE 0571 #define KEY_SBEG 0572 #define KEY_SCANCEL 0573 #define KEY_SCOMMAND 0574 #define KEY_SCOPY 0575 #define KEY_SCREATE 0576 #define KEY_SDC 0577 #define KEY_SDL 0600 #define KEY_SELECT 0601 #define KEY_SEND 0602 #define KEY_SEOL 0603 #define KEY_SEXIT 0604 #define KEY_SFIND 0605 #define KEY_SHELP 0606 #define KEY_SHOME 0607 #define KEY_SIC 0610 #define KEY_SLEFT 0611 #define KEY_SMESSAGE 0612 #define KEY_SMOVE 0613 #define KEY_SNEXT 0614 #define KEY_SOPTIONS 0615 #define KEY_SPREVIOUS 0616 #define KEY_SPRINT 0617 #define KEY_SREDO 0620 #define KEY_SREPLACE 0621 #define KEY_SRIGHT 0622 #define KEY_SRSUME 0623 #define KEY_SSAVE 0624 #define KEY_SSUSPEND 0625 #define KEY_SUNDO 0626 #define KEY_SUSPEND 0627 #define KEY_UNDO 0630 #define KEY_MOUSE 0631 #define KEY_RESIZE 0632 #define KEY_MAX 0777 |
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[36] |
The forkpty() function joins openpty(), fork(), and login_tty() to create a new process operating on a pseudo-tty. The file descriptor of the master side of the pseudo-tty is returned in amaster, and null or the filename of the slave in name. If non-null, the termp and winp parameters will determine the terminal attributes and window size of the slave side of the pseudo-tty.
On success of the child process, zero is returned. When the parent process receives the PID of its child process, pid is returned. On error, -1 is returned, and errno is set appropriately.
The login() function updates the /var/run/utmp and /var/log/wtmp files with user information contained in ut.
login_tty() sets up for a login on the tty referenced by the file descriptor fdr. This function creates a new session, makes the tty for the current process the controlling terminal, sets the standard input, output, and error streams of the current process, and closes fdr.
Given the device line, the logout() function removes the entry from the corresponding /var/run/utmp system file.
Zero is returned if there was no entry to remove. A non-zero return value indicates success.
logwtmp() constructs an utmp structure using line, name, host, current time and current process id. Then it calls updwtmp() to append the structure to the utmp file.
Both functions are available under glibc2, but not under libc5. However, logwtmp occurs in the old libbsd.
int openpty(int *amaster, int *aslave, char *name, struct termios *termp, struct winsize *winp); |
The openpty() function finds an available pseudo-tty and returns file descriptors for the amaster and aslave. The filename of the slave is returned in name, otherwise a null. The terminal parameters of the slave will be set to the values in termp, otherwise a null. The window size of the slave will be set to the values in winp, otherwise a null.
The X Libraries should be built thread-safe.
The behavior of the interfaces in this library is specified by the following standards.
X11R6.4 Xlib - C library[37] |
Table 15-2. libX11 - X Windows System Interface Function Interfaces
XActivateScreenSaver[37] | XFreePixmap[37] | XSetClipRectangles[37] | XkbAllocCompatMap[37] |
XAddConnectionWatch[37] | XFreeStringList[37] | XSetCloseDownMode[37] | XkbAllocControls[37] |
XAddExtension[37] | XGContextFromGC[37] | XSetCommand[37] | XkbAllocGeomColors[37] |
XAddHost[37] | XGeometry[37] | XSetDashes[37] | XkbAllocGeomDoodads[37] |
XAddHosts[37] | XGetAtomName[37] | XSetErrorHandler[37] | XkbAllocGeomKeyAliases[37] |
XAddPixel[37] | XGetAtomNames[37] | XSetFillRule[37] | XkbAllocGeomKeys[37] |
XAddToExtensionList[37] | XGetClassHint[37] | XSetFillStyle[37] | XkbAllocGeomOutlines[37] |
XAddToSaveSet[37] | XGetCommand[37] | XSetFont[37] | XkbAllocGeomOverlayKeys[37] |
XAllPlanes[37] | XGetDefault[37] | XSetFontPath[37] | XkbAllocGeomOverlayRows[37] |
XAllocClassHint[37] | XGetErrorDatabaseText[37] | XSetForeground[37] | XkbAllocGeomOverlays[37] |
XAllocColor[37] | XGetErrorText[37] | XSetFunction[37] | XkbAllocGeomPoints[37] |
XAllocColorCells[37] | XGetFontPath[37] | XSetGraphicsExposures[37] | XkbAllocGeomProps[37] |
XAllocColorPlanes[37] | XGetFontProperty[37] | XSetICFocus[37] | XkbAllocGeomRows[37] |
XAllocIconSize[37] | XGetGCValues[37] | XSetICValues[37] | XkbAllocGeomSectionDoodads[37] |
XAllocNamedColor[37] | XGetGeometry[37] | XSetIMValues[37] | XkbAllocGeomSections[37] |
XAllocSizeHints[37] | XGetICValues[37] | XSetIOErrorHandler[37] | XkbAllocGeomShapes[37] |
XAllocStandardColormap[37] | XGetIMValues[37] | XSetIconName[37] | XkbAllocGeometry[37] |
XAllocWMHints[37] | XGetIconName[37] | XSetIconSizes[37] | XkbAllocIndicatorMaps[37] |
XAllowEvents[37] | XGetIconSizes[37] | XSetInputFocus[37] | XkbAllocKeyboard[37] |
XAutoRepeatOff[37] | XGetImage[37] | XSetLineAttributes[37] | XkbAllocNames[37] |
XAutoRepeatOn[37] | XGetInputFocus[37] | XSetLocaleModifiers[37] | XkbAllocServerMap[37] |
XBaseFontNameListOfFontSet[37] | XGetKeyboardControl[37] | XSetModifierMapping[37] | XkbApplyCompatMapToKey[37] |
XBell[37] | XGetKeyboardMapping[37] | XSetNormalHints[37] | XkbBell[37] |
XBitmapBitOrder[37] | XGetModifierMapping[37] | XSetOCValues[37] | XkbBellEvent[37] |
XBitmapPad[37] | XGetMotionEvents[37] | XSetOMValues[37] | XkbChangeEnabledControls[37] |
XBitmapUnit[37] | XGetNormalHints[37] | XSetPlaneMask[37] | XkbChangeMap[37] |
XBlackPixel[37] | XGetOCValues[37] | XSetPointerMapping[37] | XkbChangeNames[37] |
XBlackPixelOfScreen[37] | XGetOMValues[37] | XSetRGBColormaps[37] | XkbChangeTypesOfKey[37] |
XCellsOfScreen[37] | XGetPixel[37] | XSetRegion[37] | XkbComputeEffectiveMap[37] |
XChangeActivePointerGrab[37] | XGetPointerControl[37] | XSetScreenSaver[37] | XkbComputeRowBounds[37] |
XChangeGC[37] | XGetPointerMapping[37] | XSetSelectionOwner[37] | XkbComputeSectionBounds[37] |
XChangeKeyboardControl[37] | XGetRGBColormaps[37] | XSetSizeHints[37] | XkbComputeShapeBounds[37] |
XChangeKeyboardMapping[37] | XGetScreenSaver[37] | XSetStandardColormap[37] | XkbComputeShapeTop[37] |
XChangePointerControl[37] | XGetSelectionOwner[37] | XSetStandardProperties[37] | XkbCopyKeyType[37] |
XChangeProperty[37] | XGetSizeHints[37] | XSetState[37] | XkbCopyKeyTypes[37] |
XChangeSaveSet[37] | XGetStandardColormap[37] | XSetStipple[37] | XkbFindOverlayForKey[37] |
XChangeWindowAttributes[37] | XGetSubImage[37] | XSetSubwindowMode[37] | XkbForceBell[37] |
XCheckIfEvent[37] | XGetTextProperty[37] | XSetTSOrigin[37] | XkbFreeClientMap[37] |
XCheckMaskEvent[37] | XGetTransientForHint[37] | XSetTextProperty[37] | XkbFreeCompatMap[37] |
XCheckTypedEvent[37] | XGetVisualInfo[37] | XSetTile[37] | XkbFreeComponentList[37] |
XCheckTypedWindowEvent[37] | XGetWMClientMachine[37] | XSetTransientForHint[37] | XkbFreeControls[37] |
XCheckWindowEvent[37] | XGetWMColormapWindows[37] | XSetWMClientMachine[37] | XkbFreeGeomColors[37] |
XCirculateSubwindows[37] | XGetWMHints[37] | XSetWMColormapWindows[37] | XkbFreeGeomDoodads[37] |
XCirculateSubwindowsDown[37] | XGetWMIconName[37] | XSetWMHints[37] | XkbFreeGeomKeyAliases[37] |
XCirculateSubwindowsUp[37] | XGetWMName[37] | XSetWMIconName[37] | XkbFreeGeomKeys[37] |
XClearArea[37] | XGetWMNormalHints[37] | XSetWMName[37] | XkbFreeGeomOutlines[37] |
XClearWindow[37] | XGetWMProtocols[37] | XSetWMNormalHints[37] | XkbFreeGeomOverlayKeys[37] |
XClipBox[37] | XGetWMSizeHints[37] | XSetWMProperties[37] | XkbFreeGeomOverlayRows[37] |
XCloseDisplay[37] | XGetWindowAttributes[37] | XSetWMProtocols[37] | XkbFreeGeomOverlays[37] |
XCloseIM[37] | XGetWindowProperty[37] | XSetWMSizeHints[37] | XkbFreeGeomPoints[37] |
XCloseOM[37] | XGetZoomHints[37] | XSetWindowBackground[37] | XkbFreeGeomProperties[37] |
XConfigureWindow[37] | XGrabButton[37] | XSetWindowBackgroundPixmap[37] | XkbFreeGeomRows[37] |
XConnectionNumber[37] | XGrabKey[37] | XSetWindowBorder[37] | XkbFreeGeomSections[37] |
XContextDependentDrawing[37] | XGrabKeyboard[37] | XSetWindowBorderPixmap[37] | XkbFreeGeomShapes[37] |
XContextualDrawing[37] | XGrabPointer[37] | XSetWindowBorderWidth[37] | XkbFreeGeometry[37] |
XConvertCase[37] | XGrabServer[37] | XSetWindowColormap[37] | XkbFreeIndicatorMaps[37] |
XConvertSelection[37] | XHeightMMOfScreen[37] | XSetZoomHints[37] | XkbFreeKeyboard[37] |
XCopyArea[37] | XHeightOfScreen[37] | XShrinkRegion[37] | XkbFreeNames[37] |
XCopyColormapAndFree[37] | XIMOfIC[37] | XStoreBuffer[37] | XkbFreeServerMap[37] |
XCopyGC[37] | XIconifyWindow[37] | XStoreBytes[37] | XkbGetAutoRepeatRate[37] |
XCopyPlane[37] | XIfEvent[37] | XStoreColor[37] | XkbGetCompatMap[37] |
XCreateBitmapFromData[37] | XImageByteOrder[37] | XStoreColors[37] | XkbGetControls[37] |
XCreateColormap[37] | XInitExtension[37] | XStoreName[37] | XkbGetGeometry[37] |
XCreateFontCursor[37] | XInitImage[37] | XStoreNamedColor[37] | XkbGetIndicatorMap[37] |
XCreateFontSet[37] | XInitThreads[37] | XStringListToTextProperty[37] | XkbGetIndicatorState[37] |
XCreateGC[37] | XInsertModifiermapEntry[37] | XStringToKeysym[37] | XkbGetKeyActions[37] |
XCreateGlyphCursor[37] | XInstallColormap[37] | XSubImage[37] | XkbGetKeyBehaviors[37] |
XCreateIC[37] | XInternAtom[37] | XSubtractRegion[37] | XkbGetKeyExplicitComponents[37] |
XCreateImage[37] | XInternAtoms[37] | XSupportsLocale[37] | XkbGetKeyModifierMap[37] |
XCreateOC[37] | XInternalConnectionNumbers[37] | XSync[37] | XkbGetKeySyms[37] |
XCreatePixmap[37] | XIntersectRegion[37] | XSynchronize[37] | XkbGetKeyTypes[37] |
XCreatePixmapCursor[37] | XKeycodeToKeysym[37] | XTextExtents[37] | XkbGetKeyboard[37] |
XCreatePixmapFromBitmapData[37] | XKeysymToKeycode[37] | XTextExtents16[37] | XkbGetKeyboardByName[37] |
XCreateRegion[37] | XKeysymToString[37] | XTextPropertyToStringList[37] | XkbGetMap[37] |
XCreateSimpleWindow[37] | XKillClient[37] | XTextWidth[37] | XkbGetMapChanges[37] |
XCreateWindow[37] | XLastKnownRequestProcessed[37] | XTextWidth16[37] | XkbGetNamedGeometry[37] |
XDefaultColormap[37] | XListDepths[37] | XTranslateCoordinates[37] | XkbGetNamedIndicator[37] |
XDefaultColormapOfScreen[37] | XListExtensions[37] | XUndefineCursor[37] | XkbGetNames[37] |
XDefaultDepth[37] | XListFonts[37] | XUngrabButton[37] | XkbGetState[37] |
XDefaultDepthOfScreen[37] | XListFontsWithInfo[37] | XUngrabKey[37] | XkbGetUpdatedMap[37] |
XDefaultGC[37] | XListHosts[37] | XUngrabKeyboard[37] | XkbGetVirtualMods[37] |
XDefaultGCOfScreen[37] | XListInstalledColormaps[37] | XUngrabPointer[37] | XkbGetXlibControls[37] |
XDefaultRootWindow[37] | XListPixmapFormats[37] | XUngrabServer[37] | XkbIgnoreExtension[37] |
XDefaultScreen[37] | XListProperties[37] | XUninstallColormap[37] | XkbInitCanonicalKeyTypes[37] |
XDefaultScreenOfDisplay[37] | XLoadFont[37] | XUnionRectWithRegion[37] | XkbKeyTypesForCoreSymbols[37] |
XDefaultString[37] | XLoadQueryFont[37] | XUnionRegion[37] | XkbKeycodeToKeysym[37] |
XDefaultVisual[37] | XLocaleOfFontSet[37] | XUnloadFont[37] | XkbKeysymToModifiers[37] |
XDefaultVisualOfScreen[37] | XLocaleOfIM[37] | XUnlockDisplay[37] | XkbLatchGroup[37] |
XDefineCursor[37] | XLocaleOfOM[37] | XUnmapSubwindows[37] | XkbLatchModifiers[37] |
XDeleteContext[37] | XLockDisplay[37] | XUnmapWindow[37] | XkbLibraryVersion[37] |
XDeleteModifiermapEntry[37] | XLookupColor[37] | XUnregisterIMInstantiateCallback[37] | XkbListComponents[37] |
XDeleteProperty[37] | XLookupKeysym[37] | XUnsetICFocus[37] | XkbLockGroup[37] |
XDestroyIC[37] | XLookupString[37] | XVaCreateNestedList[37] | XkbLockModifiers[37] |
XDestroyImage[37] | XLowerWindow[37] | XVendorRelease[37] | XkbLookupKeyBinding[37] |
XDestroyOC[37] | XMapRaised[37] | XVisualIDFromVisual[37] | XkbLookupKeySym[37] |
XDestroyRegion[37] | XMapSubwindows[37] | XWMGeometry[37] | XkbNoteControlsChanges[37] |
XDestroySubwindows[37] | XMapWindow[37] | XWarpPointer[37] | XkbNoteMapChanges[37] |
XDestroyWindow[37] | XMaskEvent[37] | XWhitePixel[37] | XkbNoteNameChanges[37] |
XDirectionalDependentDrawing[37] | XMatchVisualInfo[37] | XWhitePixelOfScreen[37] | XkbOpenDisplay[37] |
XDisableAccessControl[37] | XMaxCmapsOfScreen[37] | XWidthMMOfScreen[37] | XkbQueryExtension[37] |
XDisplayCells[37] | XMaxRequestSize[37] | XWidthOfScreen[37] | XkbRefreshKeyboardMapping[37] |
XDisplayHeight[37] | XMinCmapsOfScreen[37] | XWindowEvent[37] | XkbResizeKeyActions[37] |
XDisplayHeightMM[37] | XMoveResizeWindow[37] | XWithdrawWindow[37] | XkbResizeKeySyms[37] |
XDisplayKeycodes[37] | XMoveWindow[37] | XWriteBitmapFile[37] | XkbResizeKeyType[37] |
XDisplayMotionBufferSize[37] | XNewModifiermap[37] | XXorRegion[37] | XkbSelectEventDetails[37] |
XDisplayName[37] | XNextEvent[37] | XauDisposeAuth[37] | XkbSelectEvents[37] |
XDisplayOfIM[37] | XNextRequest[37] | XauFileName[37] | XkbSetAtomFuncs[37] |
XDisplayOfOM[37] | XNoOp[37] | XauGetBestAuthByAddr[37] | XkbSetAutoRepeatRate[37] |
XDisplayOfScreen[37] | XOMOfOC[37] | XauReadAuth[37] | XkbSetAutoResetControls[37] |
XDisplayPlanes[37] | XOffsetRegion[37] | XcmsAddColorSpace[37] | XkbSetCompatMap[37] |
XDisplayString[37] | XOpenDisplay[37] | XcmsAddFunctionSet[37] | XkbSetControls[37] |
XDisplayWidth[37] | XOpenIM[37] | XcmsAllocColor[37] | XkbSetDebuggingFlags[37] |
XDisplayWidthMM[37] | XOpenOM[37] | XcmsAllocNamedColor[37] | XkbSetDetectableAutoRepeat[37] |
XDoesBackingStore[37] | XParseColor[37] | XcmsCCCOfColormap[37] | XkbSetGeometry[37] |
XDoesSaveUnders[37] | XParseGeometry[37] | XcmsCIELabClipL[37] | XkbSetIgnoreLockMods[37] |
XDrawArc[37] | XPeekEvent[37] | XcmsCIELabClipLab[37] | XkbSetIndicatorMap[37] |
XDrawArcs[37] | XPeekIfEvent[37] | XcmsCIELabClipab[37] | XkbSetMap[37] |
XDrawImageString[37] | XPending[37] | XcmsCIELabQueryMaxC[37] | XkbSetNamedIndicator[37] |
XDrawImageString16[37] | XPlanesOfScreen[37] | XcmsCIELabQueryMaxL[37] | XkbSetNames[37] |
XDrawLine[37] | XPointInRegion[37] | XcmsCIELabQueryMaxLC[37] | XkbSetServerInternalMods[37] |
XDrawLines[37] | XPolygonRegion[37] | XcmsCIELabQueryMinL[37] | XkbSetXlibControls[37] |
XDrawPoint[37] | XProcessInternalConnection[37] | XcmsCIELabToCIEXYZ[37] | XkbToControl[37] |
XDrawPoints[37] | XProtocolRevision[37] | XcmsCIELabWhiteShiftColors[37] | XkbTranslateKeyCode[37] |
XDrawRectangle[37] | XProtocolVersion[37] | XcmsCIELuvClipL[37] | XkbTranslateKeySym[37] |
XDrawRectangles[37] | XPutBackEvent[37] | XcmsCIELuvClipLuv[37] | XkbUpdateMapFromCore[37] |
XDrawSegments[37] | XPutImage[37] | XcmsCIELuvClipuv[37] | XkbUseExtension[37] |
XDrawString[37] | XPutPixel[37] | XcmsCIELuvQueryMaxC[37] | XkbVirtualModsToReal[37] |
XDrawString16[37] | XQLength[37] | XcmsCIELuvQueryMaxL[37] | XmbDrawImageString[37] |
XDrawText[37] | XQueryBestCursor[37] | XcmsCIELuvQueryMaxLC[37] | XmbDrawString[37] |
XDrawText16[37] | XQueryBestSize[37] | XcmsCIELuvQueryMinL[37] | XmbDrawText[37] |
XEHeadOfExtensionList[37] | XQueryBestStipple[37] | XcmsCIELuvToCIEuvY[37] | XmbLookupString[37] |
XESetBeforeFlush[37] | XQueryBestTile[37] | XcmsCIELuvWhiteShiftColors[37] | XmbResetIC[37] |
XESetCloseDisplay[37] | XQueryColor[37] | XcmsCIEXYZToCIELab[37] | XmbSetWMProperties[37] |
XESetCopyGC[37] | XQueryColors[37] | XcmsCIEXYZToCIEuvY[37] | XmbTextEscapement[37] |
XESetCreateFont[37] | XQueryExtension[37] | XcmsCIEXYZToCIExyY[37] | XmbTextExtents[37] |
XESetCreateGC[37] | XQueryFont[37] | XcmsCIEXYZToRGBi[37] | XmbTextListToTextProperty[37] |
XESetError[37] | XQueryKeymap[37] | XcmsCIEuvYToCIELuv[37] | XmbTextPerCharExtents[37] |
XESetErrorString[37] | XQueryPointer[37] | XcmsCIEuvYToCIEXYZ[37] | XmbTextPropertyToTextList[37] |
XESetEventToWire[37] | XQueryTextExtents[37] | XcmsCIEuvYToTekHVC[37] | XrmCombineDatabase[37] |
XESetFlushGC[37] | XQueryTextExtents16[37] | XcmsCIExyYToCIEXYZ[37] | XrmCombineFileDatabase[37] |
XESetFreeFont[37] | XQueryTree[37] | XcmsClientWhitePointOfCCC[37] | XrmDestroyDatabase[37] |
XESetFreeGC[37] | XRaiseWindow[37] | XcmsConvertColors[37] | XrmEnumerateDatabase[37] |
XESetPrintErrorValues[37] | XReadBitmapFile[37] | XcmsCreateCCC[37] | XrmGetDatabase[37] |
XESetWireToError[37] | XReadBitmapFileData[37] | XcmsDefaultCCC[37] | XrmGetFileDatabase[37] |
XESetWireToEvent[37] | XRebindKeysym[37] | XcmsDisplayOfCCC[37] | XrmGetResource[37] |
XEmptyRegion[37] | XRecolorCursor[37] | XcmsFormatOfPrefix[37] | XrmGetStringDatabase[37] |
XEnableAccessControl[37] | XReconfigureWMWindow[37] | XcmsFreeCCC[37] | XrmInitialize[37] |
XEqualRegion[37] | XRectInRegion[37] | XcmsLookupColor[37] | XrmLocaleOfDatabase[37] |
XEventMaskOfScreen[37] | XRefreshKeyboardMapping[37] | XcmsPrefixOfFormat[37] | XrmMergeDatabases[37] |
XEventsQueued[37] | XRegisterIMInstantiateCallback[37] | XcmsQueryBlack[37] | XrmParseCommand[37] |
XExtendedMaxRequestSize[37] | XRemoveConnectionWatch[37] | XcmsQueryBlue[37] | XrmPermStringToQuark[37] |
XExtentsOfFontSet[37] | XRemoveFromSaveSet[37] | XcmsQueryColor[37] | XrmPutFileDatabase[37] |
XFetchBuffer[37] | XRemoveHost[37] | XcmsQueryColors[37] | XrmPutLineResource[37] |
XFetchBytes[37] | XRemoveHosts[37] | XcmsQueryGreen[37] | XrmPutResource[37] |
XFetchName[37] | XReparentWindow[37] | XcmsQueryRed[37] | XrmPutStringResource[37] |
XFillArc[37] | XResetScreenSaver[37] | XcmsQueryWhite[37] | XrmQGetResource[37] |
XFillArcs[37] | XResizeWindow[37] | XcmsRGBToRGBi[37] | XrmQGetSearchList[37] |
XFillPolygon[37] | XResourceManagerString[37] | XcmsRGBiToCIEXYZ[37] | XrmQGetSearchResource[37] |
XFillRectangle[37] | XRestackWindows[37] | XcmsRGBiToRGB[37] | XrmQPutResource[37] |
XFillRectangles[37] | XRootWindow[37] | XcmsScreenNumberOfCCC[37] | XrmQPutStringResource[37] |
XFilterEvent[37] | XRootWindowOfScreen[37] | XcmsScreenWhitePointOfCCC[37] | XrmQuarkToString[37] |
XFindContext[37] | XRotateBuffers[37] | XcmsSetCCCOfColormap[37] | XrmSetDatabase[37] |
XFindOnExtensionList[37] | XRotateWindowProperties[37] | XcmsSetCompressionProc[37] | XrmStringToBindingQuarkList[37] |
XFlush[37] | XSaveContext[37] | XcmsSetWhiteAdjustProc[37] | XrmStringToQuark[37] |
XFlushGC[37] | XScreenCount[37] | XcmsSetWhitePoint[37] | XrmStringToQuarkList[37] |
XFontsOfFontSet[37] | XScreenNumberOfScreen[37] | XcmsStoreColor[37] | XrmUniqueQuark[37] |
XForceScreenSaver[37] | XScreenOfDisplay[37] | XcmsStoreColors[37] | Xutf8TextListToTextProperty |
XFree[37] | XScreenResourceString[37] | XcmsTekHVCClipC[37] | Xutf8TextPropertyToTextList |
XFreeColormap[37] | XSelectInput[37] | XcmsTekHVCClipV[37] | XwcDrawImageString[37] |
XFreeColors[37] | XSendEvent[37] | XcmsTekHVCClipVC[37] | XwcDrawString[37] |
XFreeCursor[37] | XServerVendor[37] | XcmsTekHVCQueryMaxC[37] | XwcDrawText[37] |
XFreeExtensionList[37] | XSetAccessControl[37] | XcmsTekHVCQueryMaxV[37] | XwcFreeStringList[37] |
XFreeFont[37] | XSetAfterFunction[37] | XcmsTekHVCQueryMaxVC[37] | XwcLookupString[37] |
XFreeFontInfo[37] | XSetArcMode[37] | XcmsTekHVCQueryMaxVSamples[37] | XwcResetIC[37] |
XFreeFontNames[37] | XSetAuthorization[37] | XcmsTekHVCQueryMinV[37] | XwcTextEscapement[37] |
XFreeFontPath[37] | XSetBackground[37] | XcmsTekHVCToCIEuvY[37] | XwcTextExtents[37] |
XFreeFontSet[37] | XSetClassHint[37] | XcmsTekHVCWhiteShiftColors[37] | XwcTextListToTextProperty[37] |
XFreeGC[37] | XSetClipMask[37] | XcmsVisualOfCCC[37] | XwcTextPerCharExtents[37] |
XFreeModifiermap[37] | XSetClipOrigin[37] | XkbAllocClientMap[37] | XwcTextPropertyToTextList[37] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef unsigned long XID; typedef unsigned long Atom; typedef unsigned long VisualID; typedef unsigned long Time; typedef XID Window; typedef XID Font; typedef XID Pixmap; typedef unsigned char KeyCode; typedef XID Drawable; typedef XID Cursor; typedef XID Colormap; typedef XID GContext; typedef XID KeySym; #define AllTemporary 0L #define AnyButton 0L #define AnyKey 0L #define AnyPropertyType 0L #define CopyFromParent 0L #define CurrentTime 0L #define NoSymbol 0L #define None 0L #define PointerWindow 0L #define InputFocus 1L #define ParentRelative 1L #define PointerRoot 1L #define KeyPressMask (1L<<0) #define KeyReleaseMask (1L<<1) #define Button3MotionMask (1L<<10) #define Button4MotionMask (1L<<11) #define Button5MotionMask (1L<<12) #define ButtonMotionMask (1L<<13) #define KeymapStateMask (1L<<14) #define ExposureMask (1L<<15) #define VisibilityChangeMask (1L<<16) #define StructureNotifyMask (1L<<17) #define ResizeRedirectMask (1L<<18) #define SubstructureNotifyMask (1L<<19) #define ButtonPressMask (1L<<2) #define SubstructureRedirectMask (1L<<20) #define FocusChangeMask (1L<<21) #define PropertyChangeMask (1L<<22) #define ColormapChangeMask (1L<<23) #define ButtonReleaseMask (1L<<3) #define EnterWindowMask (1L<<4) #define LeaveWindowMask (1L<<5) #define PointerMotionMask (1L<<6) #define PointerMotionHintMask (1L<<7) #define Button1MotionMask (1L<<8) #define Button2MotionMask (1L<<9) #define NoEventMask 0L #define FocusOut 10 #define KeymapNotify 11 #define Expose 12 #define GraphicsExpose 13 #define NoExpose 14 #define VisibilityNotify 15 #define CreateNotify 16 #define DestroyNotify 17 #define UnmapNotify 18 #define MapNotify 19 #define KeyPress 2 #define MapRequest 20 #define ReparentNotify 21 #define ConfigureNotify 22 #define ConfigureRequest 23 #define GravityNotify 24 #define ResizeRequest 25 #define CirculateNotify 26 #define CirculateRequest 27 #define PropertyNotify 28 #define SelectionClear 29 #define KeyRelease 3 #define SelectionRequest 30 #define SelectionNotify 31 #define ColormapNotify 32 #define ClientMessage 33 #define MappingNotify 34 #define LASTEvent 35 #define ButtonPress 4 #define ButtonRelease 5 #define MotionNotify 6 #define EnterNotify 7 #define LeaveNotify 8 #define FocusIn 9 #define ShiftMask (1<<0) #define LockMask (1<<1) #define ControlMask (1<<2) #define Mod1Mask (1<<3) #define Mod2Mask (1<<4) #define Mod3Mask (1<<5) #define Mod4Mask (1<<6) #define Mod5Mask (1<<7) #define ShiftMapIndex 0 #define LockMapIndex 1 #define ControlMapIndex 2 #define Mod1MapIndex 3 #define Mod2MapIndex 4 #define Mod3MapIndex 5 #define Mod4MapIndex 6 #define Mod5MapIndex 7 #define Button3Mask (1<<10) #define Button4Mask (1<<11) #define Button5Mask (1<<12) #define AnyModifier (1<<15) #define Button1Mask (1<<8) #define Button2Mask (1<<9) #define Button1 1 #define Button2 2 #define Button3 3 #define Button4 4 #define Button5 5 #define NotifyNormal 0 #define NotifyGrab 1 #define NotifyHint 1 #define NotifyUngrab 2 #define NotifyWhileGrabbed 3 #define NotifyAncestor 0 #define NotifyVirtual 1 #define NotifyInferior 2 #define NotifyNonlinear 3 #define NotifyNonlinearVirtual 4 #define NotifyPointer 5 #define NotifyPointerRoot 6 #define NotifyDetailNone 7 #define VisibilityUnobscured 0 #define VisibilityPartiallyObscured 1 #define VisibilityFullyObscured 2 #define PlaceOnTop 0 #define PlaceOnBottom 1 #define FamilyInternet 0 #define FamilyDECnet 1 #define FamilyChaos 2 #define PropModeReplace 0 #define PropertyNewValue 0 #define PropertyDelete 1 #define ColormapUninstalled 0 #define ColormapInstalled 1 #define GrabModeSync 0 #define GrabModeAsync 1 #define GrabSuccess 0 #define AlreadyGrabbed 1 #define GrabInvalidTime 2 #define GrabNotViewable 3 #define GrabFrozen 4 #define AsyncPointer 0 #define SyncPointer 1 #define ReplayPointer 2 #define AsyncKeyboard 3 #define SyncKeyboard 4 #define ReplayKeyboard 5 #define AsyncBoth 6 #define SyncBoth 7 #define RevertToNone (int)None #define RevertToPointerRoot (int)PointerRoot #define RevertToParent 2 #define Success 0 #define BadRequest 1 #define BadAccess 10 #define BadAlloc 11 #define BadColor 12 #define FirstExtensionError 128 #define BadGC 13 #define BadIDChoice 14 #define BadName 15 #define BadLength 16 #define BadImplementation 17 #define BadValue 2 #define LastExtensionError 255 #define BadWindow 3 #define BadPixmap 4 #define BadAtom 5 #define BadCursor 6 #define BadFont 7 #define BadMatch 8 #define BadDrawable 9 #define CWX (1<<0) #define InputOutput 1 #define InputOnly 2 #define CWBackPixmap (1L<<0) #define CWBackPixel (1L<<1) #define CWSaveUnder (1L<<10) #define CWEventMask (1L<<11) #define CWDontPropagate (1L<<12) #define CWColormap (1L<<13) #define CWCursor (1L<<14) #define CWBorderPixmap (1L<<2) #define CWBorderPixel (1L<<3) #define CWBitGravity (1L<<4) #define CWWinGravity (1L<<5) #define CWBackingStore (1L<<6) #define CWBackingPlanes (1L<<7) #define CWBackingPixel (1L<<8) #define CWOverrideRedirect (1L<<9) #define CWY (1<<1) #define CWWidth (1<<2) #define CWHeight (1<<3) #define CWBorderWidth (1<<4) #define CWSibling (1<<5) #define CWStackMode (1<<6) #define ForgetGravity 0 #define UnmapGravity 0 #define NorthWestGravity 1 #define StaticGravity 10 #define NorthGravity 2 #define NorthEastGravity 3 #define WestGravity 4 #define CenterGravity 5 #define EastGravity 6 #define SouthWestGravity 7 #define SouthGravity 8 #define SouthEastGravity 9 #define NotUseful 0 #define WhenMapped 1 #define Always 2 #define IsUnmapped 0 #define IsUnviewable 1 #define IsViewable 2 #define SetModeInsert 0 #define SetModeDelete 1 #define DestroyAll 0 #define RetainPermanent 1 #define RetainTemporary 2 #define Above 0 #define Below 1 #define TopIf 2 #define BottomIf 3 #define RaiseLowest 0 #define LowerHighest 1 #define PropModePrepend 1 #define PropModeAppend 2 #define GXclear 0x0 #define GXand 0x1 #define GXandReverse 0x2 #define GXcopy 0x3 #define GXandInverted 0x4 #define GXnoop 0x5 #define GXxor 0x6 #define GXor 0x7 #define GXnor 0x8 #define GXequiv 0x9 #define GXinvert 0xa #define GXorReverse 0xb #define GXcopyInverted 0xc #define GXorInverted 0xd #define GXnand 0xe #define GXset 0xf #define LineSolid 0 #define LineOnOffDash 1 #define LineDoubleDash 2 #define CapNotLast 0 #define CapButt 1 #define CapRound 2 #define CapProjecting 3 #define JoinMiter 0 #define JoinRound 1 #define JoinBevel 2 #define FillSolid 0 #define FillTiled 1 #define FillStippled 2 #define FillOpaqueStippled 3 #define EvenOddRule 0 #define WindingRule 1 #define ClipByChildren 0 #define IncludeInferiors 1 #define Unsorted 0 #define XYBitmap 0 #define YSorted 1 #define YXSorted 2 #define YXBanded 3 #define CoordModeOrigin 0 #define CoordModePrevious 1 #define Complex 0 #define Nonconvex 1 #define Convex 2 #define ArcChord 0 #define ArcPieSlice 1 #define GCFunction (1L<<0) #define GCPlaneMask (1L<<1) #define GCTile (1L<<10) #define GCStipple (1L<<11) #define GCTileStipXOrigin (1L<<12) #define GCTileStipYOrigin (1L<<13) #define GCFont (1L<<14) #define GCSubwindowMode (1L<<15) #define GCGraphicsExposures (1L<<16) #define GCClipXOrigin (1L<<17) #define GCClipYOrigin (1L<<18) #define GCClipMask (1L<<19) #define GCForeground (1L<<2) #define GCDashOffset (1L<<20) #define GCDashList (1L<<21) #define GCArcMode (1L<<22) #define GCBackground (1L<<3) #define GCLineWidth (1L<<4) #define GCLineStyle (1L<<5) #define GCCapStyle (1L<<6) #define GCJoinStyle (1L<<7) #define GCFillStyle (1L<<8) #define GCFillRule (1L<<9) #define GCLastBit 22 #define FontChange 255 #define FontLeftToRight 0 #define FontRightToLeft 1 #define XYPixmap 1 #define ZPixmap 2 #define AllocNone 0 #define AllocAll 1 #define DoRed (1<<0) #define DoGreen (1<<1) #define DoBlue (1<<2) #define CursorShape 0 #define TileShape 1 #define StippleShape 2 #define AutoRepeatModeOff 0 #define LedModeOff 0 #define AutoRepeatModeOn 1 #define LedModeOn 1 #define AutoRepeatModeDefault 2 #define KBKeyClickPercent (1L<<0) #define KBBellPercent (1L<<1) #define KBBellPitch (1L<<2) #define KBBellDuration (1L<<3) #define KBLed (1L<<4) #define KBLedMode (1L<<5) #define KBKey (1L<<6) #define KBAutoRepeatMode (1L<<7) #define MappingModifier 0 #define MappingSuccess 0 #define MappingBusy 1 #define MappingKeyboard 1 #define MappingFailed 2 #define MappingPointer 2 #define DisableScreenInterval 0 #define DisableScreenSaver 0 #define DontAllowExposures 0 #define DontPreferBlanking 0 #define AllowExposures 1 #define PreferBlanking 1 #define DefaultBlanking 2 #define DefaultExposures 2 #define ScreenSaverReset 0 #define ScreenSaverActive 1 #define HostInsert 0 #define HostDelete 1 #define DisableAccess 0 #define EnableAccess 1 #define StaticGray 0 #define GrayScale 1 #define StaticColor 2 #define PseudoColor 3 #define TrueColor 4 #define DirectColor 5 #define LSBFirst 0 #define MSBFirst 1 |
typedef struct xauth { unsigned short family; unsigned short address_length; char *address; unsigned short number_length; char *number; unsigned short name_length; char *name; unsigned short data_length; char *data; } Xauth; |
typedef struct _XcmsFunctionSet { XcmsColorSpace **DDColorSpaces; XcmsScreenInitProc screenInitProc; XcmsScreenFreeProc screenFreeProc; } XcmsFunctionSet; typedef unsigned long XcmsColorFormat; typedef double XcmsFloat; typedef struct { unsigned short red; unsigned short green; unsigned short blue; } XcmsRGB; typedef struct { XcmsFloat red; XcmsFloat green; XcmsFloat blue; } XcmsRGBi; typedef struct { XcmsFloat X; XcmsFloat Y; XcmsFloat Z; } XcmsCIEXYZ; typedef struct { XcmsFloat u_prime; XcmsFloat v_prime; XcmsFloat Y; } XcmsCIEuvY; typedef struct { XcmsFloat x; XcmsFloat y; XcmsFloat Y; } XcmsCIExyY; typedef struct { XcmsFloat L_star; XcmsFloat a_star; XcmsFloat b_star; } XcmsCIELab; typedef struct { XcmsFloat L_star; XcmsFloat u_star; XcmsFloat v_star; } XcmsCIELuv; typedef struct { XcmsFloat H; XcmsFloat V; XcmsFloat C; } XcmsTekHVC; typedef struct { XcmsFloat pad0; XcmsFloat pad1; XcmsFloat pad2; XcmsFloat pad3; } XcmsPad; typedef union { XcmsRGB RGB; XcmsRGBi RGBi; XcmsCIEXYZ CIEXYZ; XcmsCIEuvY CIEuvY; XcmsCIExyY CIExyY; XcmsCIELab CIELab; XcmsCIELuv CIELuv; XcmsTekHVC TekHVC; XcmsPad Pad; } XcmsColor; typedef struct _XcmsPerScrnInfo { XcmsColor screenWhitePt; XPointer functionSet; XPointer screenData; unsigned char state; char pad[1]; } XcmsPerScrnInfo; typedef int (*XcmsCompressionProc) (void); typedef int (*XcmsWhiteAdjustProc) (void); typedef int (*XcmsScreenInitProc) (void); typedef void (*XcmsScreenFreeProc) (void); typedef int (*XcmsConversionProc) (void); typedef int (*XcmsParseStringProc) (void); typedef struct _XcmsCCC { Display *dpy; int screenNumber; Visual *visual; XcmsColor clientWhitePt; XcmsCompressionProc gamutCompProc; XPointer gamutCompClientData; XcmsWhiteAdjustProc whitePtAdjProc; XPointer whitePtAdjClientData; XcmsPerScrnInfo *pPerScrnInfo; } *XcmsCCC; typedef XcmsConversionProc *XcmsFuncListPtr; typedef struct _XcmsColorSpace { char *prefix; XcmsColorFormat id; XcmsParseStringProc parseString; XcmsFuncListPtr to_CIEXYZ; XcmsFuncListPtr from_CIEXYZ; int inverse_flag; } XcmsColorSpace; |
struct _XDisplay; typedef struct XColor; typedef void *XVaNestedList; typedef int (*XErrorHandler) (void); typedef int (*XIOErrorHandler) (void); typedef void (*XConnectionWatchProc) (void); typedef char *XPointer; typedef struct _XExtData { int number; struct _XExtData *next; int (*free_private) (struct _XExtData * extension); XPointer private_data; } XExtData; typedef struct XExtCodes; typedef struct XPixmapFormatValues; typedef struct XGCValues; typedef struct _XGC *GC; typedef struct Visual; typedef struct Depth; typedef struct Screen; typedef struct ScreenFormat; typedef struct XSetWindowAttributes; typedef struct XWindowAttributes; typedef struct XHostAddress; typedef struct _XImage { int width; int height; int xoffset; int format; char *data; int byte_order; int bitmap_unit; int bitmap_bit_order; int bitmap_pad; int depth; int bytes_per_line; int bits_per_pixel; unsigned long red_mask; unsigned long green_mask; unsigned long blue_mask; XPointer obdata; struct funcs f; } XImage; typedef struct XWindowChanges; typedef struct XSegment; typedef struct XPoint; typedef struct XRectangle; typedef struct XArc; typedef struct XKeyboardControl; typedef struct XKeyboardState; typedef struct XTimeCoord; typedef struct XModifierKeymap; typedef struct _XDisplay Display; typedef struct XKeyEvent; typedef XKeyEvent XKeyPressedEvent; typedef XKeyEvent XKeyReleasedEvent; typedef struct XButtonEvent; typedef XButtonEvent XButtonPressedEvent; typedef XButtonEvent XButtonReleasedEvent; typedef struct XMotionEvent; typedef XMotionEvent XPointerMovedEvent; typedef struct XCrossingEvent; typedef XCrossingEvent XEnterWindowEvent; typedef XCrossingEvent XLeaveWindowEvent; typedef struct XFocusChangeEvent; typedef XFocusChangeEvent XFocusInEvent; typedef XFocusChangeEvent XFocusOutEvent; typedef struct XKeymapEvent; typedef struct XExposeEvent; typedef struct XGraphicsExposeEvent; typedef struct XNoExposeEvent; typedef struct XVisibilityEvent; typedef struct XCreateWindowEvent; typedef struct XDestroyWindowEvent; typedef struct XUnmapEvent; typedef struct XMapEvent; typedef struct XMapRequestEvent; typedef struct XReparentEvent; typedef struct XConfigureEvent; typedef struct XGravityEvent; typedef struct XResizeRequestEvent; typedef struct XConfigureRequestEvent; typedef struct XCirculateEvent; typedef struct XCirculateRequestEvent; typedef struct XPropertyEvent; typedef struct XSelectionClearEvent; typedef struct XSelectionRequestEvent; typedef struct XSelectionEvent; typedef struct XColormapEvent; typedef union XClientMessageEvent; typedef struct XMappingEvent; typedef struct XErrorEvent; typedef struct XAnyEvent; typedef union _XEvent { int type; XAnyEvent xany; XKeyEvent xkey; XButtonEvent xbutton; XMotionEvent xmotion; XCrossingEvent xcrossing; XFocusChangeEvent xfocus; XExposeEvent xexpose; XGraphicsExposeEvent xgraphicsexpose; XNoExposeEvent xnoexpose; XVisibilityEvent xvisibility; XCreateWindowEvent xcreatewindow; XDestroyWindowEvent xdestroywindow; XUnmapEvent xunmap; XMapEvent xmap; XMapRequestEvent xmaprequest; XReparentEvent xreparent; XConfigureEvent xconfigure; XGravityEvent xgravity; XResizeRequestEvent xresizerequest; XConfigureRequestEvent xconfigurerequest; XCirculateEvent xcirculate; XCirculateRequestEvent xcirculaterequest; XPropertyEvent xproperty; XSelectionClearEvent xselectionclear; XSelectionRequestEvent xselectionrequest; XSelectionEvent xselection; XColormapEvent xcolormap; XClientMessageEvent xclient; XMappingEvent xmapping; XErrorEvent xerror; XKeymapEvent xkeymap; long pad[1]; } XEvent; typedef struct XCharStruct; typedef struct XFontProp; typedef struct XFontStruct; typedef struct XFontSetExtents; typedef struct XTextItem; typedef struct XChar2b; typedef struct XTextItem16; typedef union XEDataObject; typedef struct _XOM *XOM; typedef struct _XOC *XOC; typedef struct _XOC *XFontSet; typedef struct XmbTextItem; typedef struct XwcTextItem; typedef struct _XIM *XIM; typedef struct _XIC *XIC; typedef void (*XIDProc) (void); |
typedef struct XSizeHints; typedef struct XWMHints; typedef struct XTextProperty; typedef struct XIconSize; typedef struct XClassHint; typedef struct _XComposeStatus { XPointer compose_ptr; int chars_matched; } XComposeStatus; typedef struct _XRegion *Region; typedef struct XVisualInfo; typedef struct XStandardColormap; typedef int XContext; typedef enum XICCEncodingStyle; |
The behavior of the interfaces in this library is specified by the following standards.
Double Buffer Extension Library[38] |
X Display Power Management Signaling (DPMS) Extension, Library Specification[39] |
Security Extension Specification, Version 7.1[40] |
X Nonrectangular Window Shape Extension Library Version 1.0[41] |
MIT-SHM--The MIT Shared Memory Extension[42] |
X Synchronization Extension Library[43] |
Table 15-4. libXext - X Shape Extension Function Interfaces
XShapeCombineMask[41] | XShapeCombineShape[41] | XShapeOffsetShape[41] | XShapeQueryVersion[41] |
XShapeCombineRectangles[41] | XShapeGetRectangles[41] | XShapeQueryExtension[41] | XShapeSelectInput[41] |
XShapeCombineRegion[41] | XShapeInputSelected[41] | XShapeQueryExtents[41] |
Table 15-7. libXext - X Synchronization Extension Function Interfaces
XSyncAwait[43] | XSyncGetPriority[43] | XSyncQueryCounter[43] | XSyncValueHigh32[43] |
XSyncChangeAlarm[43] | XSyncInitialize[43] | XSyncQueryExtension[43] | XSyncValueIsNegative[43] |
XSyncChangeCounter[43] | XSyncIntToValue[43] | XSyncSetCounter[43] | XSyncValueIsPositive[43] |
XSyncCreateAlarm[43] | XSyncIntsToValue[43] | XSyncSetPriority[43] | XSyncValueIsZero[43] |
XSyncCreateCounter[43] | XSyncListSystemCounters[43] | XSyncValueAdd[43] | XSyncValueLessOrEqual[43] |
XSyncDestroyAlarm[43] | XSyncMaxValue[43] | XSyncValueEqual[43] | XSyncValueLessThan[43] |
XSyncDestroyCounter[43] | XSyncMinValue[43] | XSyncValueGreaterOrEqual[43] | XSyncValueLow32[43] |
XSyncFreeSystemCounterList[43] | XSyncQueryAlarm[43] | XSyncValueGreaterThan[43] | XSyncValueSubtract[43] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef unsigned long XSecurityAuthorization; typedef struct { unsigned int timeout; unsigned int trust_level; XID group; long event_mask; } XSecurityAuthorizationAttributes; |
typedef struct _XSyncSystemCounter { char *name; XSyncCounter counter; XSyncValue resolution; } XSyncSystemCounter; typedef struct { XSyncCounter counter; XSyncValueType value_type; XSyncValue wait_value; XSyncTestType test_type; } XSyncTrigger; typedef struct { XSyncTrigger trigger; XSyncValue event_threshold; } XSyncWaitCondition; typedef struct { XSyncTrigger trigger; XSyncValue delta; int events; XSyncAlarmState state; } XSyncAlarmAttributes; typedef XID XSyncCounter; typedef XID XSyncAlarm; typedef struct _XSyncValue { int hi; unsigned int lo; } XSyncValue; typedef enum { XSyncAbsolute, XSyncRelative } XSyncValueType; typedef enum { XSyncPositiveTransition, XSyncNegativeTransition, XSyncPositiveComparison, XSyncNegativeComparison } XSyncTestType; typedef enum { XSyncAlarmActive, XSyncAlarmInactive, XSyncAlarmDestroyed } XSyncAlarmState; |
The behavior of the interfaces in this library is specified by the following standards.
X11R6.4 X Session Management Library[44] |
Table 15-11. libSM - Session Management Functions Function Interfaces
SmFreeProperty[44] | SmcOpenConnection[44] | SmsCleanUp[44] | SmsRegisterClientReply[44] |
SmFreeReasons[44] | SmcProtocolRevision[44] | SmsClientHostName[44] | SmsReturnProperties[44] |
SmcClientID[44] | SmcProtocolVersion[44] | SmsClientID[44] | SmsSaveComplete[44] |
SmcCloseConnection[44] | SmcRelease[44] | SmsDie[44] | SmsSaveYourself[44] |
SmcDeleteProperties[44] | SmcRequestSaveYourself[44] | SmsGenerateClientID[44] | SmsSaveYourselfPhase2[44] |
SmcGetIceConnection[44] | SmcRequestSaveYourselfPhase2[44] | SmsGetIceConnection[44] | SmsSetErrorHandler[44] |
SmcGetProperties[44] | SmcSaveYourselfDone[44] | SmsInitialize[44] | SmsShutdownCancelled[44] |
SmcInteractDone[44] | SmcSetErrorHandler[44] | SmsInteract[44] | |
SmcInteractRequest[44] | SmcSetProperties[44] | SmsProtocolRevision[44] | |
SmcModifyCallbacks[44] | SmcVendor[44] | SmsProtocolVersion[44] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef IcePointer SmPointer; typedef struct _SmcConn *SmcConn; typedef struct _SmsConn *SmsConn; typedef struct { int length; SmPointer value; } SmPropValue; typedef struct { char *name; char *type; int num_vals; SmPropValue *vals; } SmProp; typedef enum { SmcClosedNow, SmcClosedASAP, SmcConnectionInUse } SmcCloseStatus; typedef void (*SmcSaveYourselfPhase2Proc) (void); typedef void (*SmcInteractProc) (void); typedef void (*SmcDieProc) (void); typedef void (*SmcShutdownCancelledProc) (void); typedef void (*SmcSaveCompleteProc) (void); typedef void (*SmcPropReplyProc) (void); typedef struct { SmcShutdownCancelledProc callback; SmPointer client_data; } SmcCallbacks; typedef void (*SmsSetPropertiesProc) (void); typedef void (*SmsDeletePropertiesProc) (void); typedef void (*SmsGetPropertiesProc) (void); typedef struct { SmsGetPropertiesProc callback; SmPointer manager_data; } SmsCallbacks; typedef int (*SmsNewClientProc) (void); typedef void (*SmcErrorHandler) (void); typedef void (*SmsErrorHandler) (void); |
The behavior of the interfaces in this library is specified by the following standards.
X11R6.4 X Inter-Client Exchange (ICE) Protocol[45] |
Table 15-13. libICE - ICE Functions Function Interfaces
IceAcceptConnection[45] | IceFreeAuthFileEntry[45] | IceListenForWellKnownConnections[45] | IceRemoveConnectionWatch[45] |
IceAddConnectionWatch[45] | IceFreeListenObjs[45] | IceLockAuthFile[45] | IceSetErrorHandler[45] |
IceAllocScratch[45] | IceGenerateMagicCookie[45] | IceOpenConnection[45] | IceSetHostBasedAuthProc[45] |
IceAppLockConn[45] | IceGetAuthFileEntry[45] | IcePing[45] | IceSetIOErrorHandler[45] |
IceAppUnlockConn[45] | IceGetConnectionContext[45] | IceProcessMessages[45] | IceSetPaAuthData[45] |
IceAuthFileName[45] | IceGetInBufSize[45] | IceProtocolRevision[45] | IceSetShutdownNegotiation[45] |
IceCheckShutdownNegotiation[45] | IceGetListenConnectionNumber[45] | IceProtocolSetup[45] | IceSwapping[45] |
IceCloseConnection[45] | IceGetListenConnectionString[45] | IceProtocolShutdown[45] | IceUnlockAuthFile[45] |
IceComposeNetworkIdList[45] | IceGetOutBufSize[45] | IceProtocolVersion[45] | IceVendor[45] |
IceConnectionNumber[45] | IceInitThreads[45] | IceReadAuthFileEntry[45] | IceWriteAuthFileEntry[45] |
IceConnectionStatus[45] | IceLastReceivedSequenceNumber[45] | IceRegisterForProtocolReply[45] | |
IceConnectionString[45] | IceLastSentSequenceNumber[45] | IceRegisterForProtocolSetup[45] | |
IceFlush[45] | IceListenForConnections[45] | IceRelease[45] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef void *IcePointer; typedef enum { IcePoAuthHaveReply, IcePoAuthRejected, IcePoAuthFailed, IcePoAuthDoneCleanup } IcePoAuthStatus; typedef enum { IcePaAuthContinue, IcePaAuthAccepted, IcePaAuthRejected, IcePaAuthFailed } IcePaAuthStatus; typedef enum { IceConnectPending, IceConnectAccepted, IceConnectRejected, IceConnectIOError } IceConnectStatus; typedef enum { IceProtocolSetupSuccess, IceProtocolSetupFailure, IceProtocolSetupIOError, IceProtocolAlreadyActive } IceProtocolSetupStatus; typedef enum { IceAcceptSuccess, IceAcceptFailure, IceAcceptBadMalloc } IceAcceptStatus; typedef enum { IceClosedNow, IceClosedASAP, IceConnectionInUse, IceStartedShutdownNegotiation } IceCloseStatus; typedef enum { IceProcessMessagesSuccess, IceProcessMessagesIOError, IceProcessMessagesConnectionClosed } IceProcessMessagesStatus; typedef struct { unsigned long sequence_of_request; int major_opcode_of_request; int minor_opcode_of_request; IcePointer reply; } IceReplyWaitInfo; typedef struct _IceConn *IceConn; typedef struct _IceListenObj *IceListenObj; typedef void (*IceWatchProc) (void); typedef void (*IcePoProcessMsgProc) (void); typedef void (*IcePaProcessMsgProc) (void); typedef IcePoAuthStatus (*IcePoAuthProc) (void); typedef IcePaAuthStatus (*IcePaAuthProc) (void); typedef int (*IceHostBasedAuthProc) (void); typedef int (*IceProtocolSetupProc) (void); typedef void (*IceProtocolActivateProc) (void); typedef void (*IceIOErrorProc) (void); typedef void (*IcePingReplyProc) (void); typedef void (*IceErrorHandler) (void); typedef void (*IceIOErrorHandler) (void); typedef struct { int major_version; int minor_version; IcePoProcessMsgProc process_msg_proc; } IcePoVersionRec; typedef struct { int major_version; int minor_version; IcePaProcessMsgProc process_msg_proc; } IcePaVersionRec; |
typedef struct { char *protocol_name; unsigned short protocol_data_length; char *protocol_data; char *network_id; char *auth_name; unsigned short auth_data_length; char *auth_data; } IceAuthFileEntry; typedef struct { char *protocol_name; char *network_id; char *auth_name; unsigned short auth_data_length; char *auth_data; } IceAuthDataEntry; |
The behavior of the interfaces in this library is specified by the following standards.
Linux Standard Base[46] |
X11R6.4 X Toolkit Intrinsics[47] |
Table 15-15. libXt - X Toolkit Function Interfaces
XtAddActions[47] | XtCvtColorToPixel[47] | XtGrabKeyboard[47] | XtRemoveEventHandler[47] |
XtAddCallback[47] | XtCvtIntToBool[47] | XtGrabPointer[47] | XtRemoveEventTypeHandler[47] |
XtAddCallbacks[47] | XtCvtIntToBoolean[47] | XtHasCallbacks[47] | XtRemoveGrab[47] |
XtAddConverter[47] | XtCvtIntToColor[47] | XtHooksOfDisplay[47] | XtRemoveInput[47] |
XtAddEventHandler[47] | XtCvtIntToFloat[47] | XtInitialize[47] | XtRemoveRawEventHandler[47] |
XtAddExposureToRegion[47] | XtCvtIntToFont[47] | XtInitializeWidgetClass[47] | XtRemoveSignal[47] |
XtAddGrab[47] | XtCvtIntToPixel[47] | XtInsertEventHandler[47] | XtRemoveTimeOut[47] |
XtAddInput[47] | XtCvtIntToPixmap[47] | XtInsertEventTypeHandler[47] | XtRemoveWorkProc[47] |
XtAddRawEventHandler[47] | XtCvtIntToShort[47] | XtInsertRawEventHandler[47] | XtReservePropertyAtom[47] |
XtAddSignal[47] | XtCvtIntToUnsignedChar[47] | XtInstallAccelerators[47] | XtResizeWidget[47] |
XtAddTimeOut[47] | XtCvtStringToAcceleratorTable[47] | XtInstallAllAccelerators[47] | XtResizeWindow[47] |
XtAddWorkProc[47] | XtCvtStringToAtom[47] | XtIsApplicationShell[47] | XtResolvePathname[47] |
XtAllocateGC[47] | XtCvtStringToBool[47] | XtIsComposite[47] | XtScreen[47] |
XtAppAddActionHook[47] | XtCvtStringToBoolean[47] | XtIsConstraint[47] | XtScreenDatabase[47] |
XtAppAddActions[47] | XtCvtStringToCommandArgArray[47] | XtIsManaged[47] | XtScreenOfObject[47] |
XtAppAddBlockHook[47] | XtCvtStringToCursor[47] | XtIsObject[47] | XtSendSelectionRequest[47] |
XtAppAddConverter[47] | XtCvtStringToDimension[47] | XtIsOverrideShell[47] | XtSessionGetToken[47] |
XtAppAddInput[47] | XtCvtStringToDirectoryString[47] | XtIsRealized[47] | XtSessionReturnToken[47] |
XtAppAddSignal[47] | XtCvtStringToDisplay[47] | XtIsRectObj[47] | XtSetErrorHandler[47] |
XtAppAddTimeOut[47] | XtCvtStringToFile[47] | XtIsSensitive[47] | XtSetErrorMsgHandler[47] |
XtAppAddWorkProc[47] | XtCvtStringToFloat[47] | XtIsSessionShell[47] | XtSetEventDispatcher[47] |
XtAppCreateShell[47] | XtCvtStringToFont[47] | XtIsShell[47] | XtSetKeyTranslator[47] |
XtAppError[47] | XtCvtStringToFontSet[47] | XtIsSubclass[47] | XtSetKeyboardFocus[47] |
XtAppErrorMsg[47] | XtCvtStringToFontStruct[47] | XtIsTopLevelShell[47] | XtSetLanguageProc[47] |
XtAppGetErrorDatabase[47] | XtCvtStringToGravity[47] | XtIsTransientShell[47] | XtSetMappedWhenManaged[47] |
XtAppGetErrorDatabaseText[47] | XtCvtStringToInitialState[47] | XtIsVendorShell[47] | XtSetMultiClickTime[47] |
XtAppGetExitFlag[47] | XtCvtStringToInt[47] | XtIsWMShell[47] | XtSetSelectionParameters[47] |
XtAppGetSelectionTimeout[47] | XtCvtStringToPixel[47] | XtIsWidget[47] | XtSetSelectionTimeout[47] |
XtAppInitialize[47] | XtCvtStringToRestartStyle[47] | XtKeysymToKeycodeList[47] | XtSetSensitive[47] |
XtAppLock[47] | XtCvtStringToShort[47] | XtLastEventProcessed[47] | XtSetSubvalues[47] |
XtAppMainLoop[47] | XtCvtStringToTranslationTable[47] | XtLastTimestampProcessed[47] | XtSetTypeConverter[47] |
XtAppNextEvent[47] | XtCvtStringToUnsignedChar[47] | XtMainLoop[47] | XtSetValues[47] |
XtAppPeekEvent[47] | XtCvtStringToVisual[47] | XtMakeGeometryRequest[47] | XtSetWMColormapWindows[47] |
XtAppPending[47] | XtDatabase[47] | XtMakeResizeRequest[47] | XtSetWarningHandler[47] |
XtAppProcessEvent[47] | XtDestroyApplicationContext[47] | XtMalloc[47] | XtSetWarningMsgHandler[47] |
XtAppReleaseCacheRefs[47] | XtDestroyGC[47] | XtManageChild[47] | XtStringConversionWarning[47] |
XtAppSetErrorHandler[47] | XtDestroyWidget[47] | XtManageChildren[47] | XtSuperclass[47] |
XtAppSetErrorMsgHandler[47] | XtDirectConvert[47] | XtMapWidget[47] | XtToolkitInitialize[47] |
XtAppSetExitFlag[47] | XtDisownSelection[47] | XtMenuPopupAction[47] | XtToolkitThreadInitialize[47] |
XtAppSetFallbackResources[47] | XtDispatchEvent[47] | XtMergeArgLists[47] | XtTranslateCoords[47] |
XtAppSetSelectionTimeout[47] | XtDispatchEventToWidget[47] | XtMoveWidget[47] | XtTranslateKey[47] |
XtAppSetTypeConverter[47] | XtDisplay[47] | XtName[47] | XtTranslateKeycode[47] |
XtAppSetWarningHandler[47] | XtDisplayInitialize[47] | XtNameToWidget[47] | XtUngrabButton[47] |
XtAppSetWarningMsgHandler[47] | XtDisplayOfObject[47] | XtNewString[47] | XtUngrabKey[47] |
XtAppUnlock[47] | XtDisplayStringConversionWarning[47] | XtNextEvent[47] | XtUngrabKeyboard[47] |
XtAppWarning[47] | XtDisplayToApplicationContext[47] | XtNoticeSignal[47] | XtUngrabPointer[47] |
XtAppWarningMsg[47] | XtError[47] | XtOpenApplication[47] | XtUninstallTranslations[47] |
XtAugmentTranslations[47] | XtErrorMsg[47] | XtOpenDisplay[47] | XtUnmanageChild[47] |
XtBuildEventMask[47] | XtFindFile[47] | XtOverrideTranslations[47] | XtUnmanageChildren[47] |
XtCallAcceptFocus[47] | XtFree[47] | XtOwnSelection[47] | XtUnmapWidget[47] |
XtCallActionProc[47] | XtGetActionKeysym[47] | XtOwnSelectionIncremental[47] | XtUnrealizeWidget[47] |
XtCallCallbackList[47] | XtGetActionList[47] | XtParent[47] | XtUnregisterDrawable[47] |
XtCallCallbacks[47] | XtGetApplicationNameAndClass[47] | XtParseAcceleratorTable[47] | XtVaAppCreateShell[47] |
XtCallConverter[47] | XtGetApplicationResources[47] | XtParseTranslationTable[47] | XtVaAppInitialize[47] |
XtCallbackExclusive[47] | XtGetClassExtension[47] | XtPeekEvent[47] | XtVaCreateArgsList[47] |
XtCallbackNone[47] | XtGetConstraintResourceList[47] | XtPending[47] | XtVaCreateManagedWidget[47] |
XtCallbackNonexclusive[47] | XtGetDisplays[47] | XtPopdown[47] | XtVaCreatePopupShell[47] |
XtCallbackPopdown[47] | XtGetErrorDatabase[47] | XtPopup[47] | XtVaCreateWidget[47] |
XtCallbackReleaseCacheRef[47] | XtGetErrorDatabaseText[47] | XtPopupSpringLoaded[47] | XtVaGetApplicationResources[47] |
XtCallbackReleaseCacheRefList[47] | XtGetGC[47] | XtProcessEvent[47] | XtVaGetSubresources[47] |
XtCalloc[47] | XtGetKeyboardFocusWidget[47] | XtProcessLock[47] | XtVaGetSubvalues[47] |
XtCancelSelectionRequest[47] | XtGetKeysymTable[47] | XtProcessUnlock[47] | XtVaGetValues[47] |
XtChangeManagedSet[47] | XtGetMultiClickTime[47] | XtQueryGeometry[47] | XtVaOpenApplication[47] |
XtClass[47] | XtGetResourceList[47] | XtRealizeWidget[47] | XtVaSetSubvalues[47] |
XtCloseDisplay[47] | XtGetSelectionParameters[47] | XtRealloc[47] | XtVaSetValues[47] |
XtConfigureWidget[47] | XtGetSelectionRequest[47] | XtRegisterCaseConverter[47] | XtWarning[47] |
XtConvert[47] | XtGetSelectionTimeout[47] | XtRegisterDrawable[47] | XtWarningMsg[47] |
XtConvertAndStore[47] | XtGetSelectionValue[47] | XtRegisterExtensionSelector[47] | XtWidgetToApplicationContext[47] |
XtConvertCase[47] | XtGetSelectionValueIncremental[47] | XtRegisterGrabAction[47] | XtWindow[47] |
XtCreateApplicationContext[47] | XtGetSelectionValues[47] | XtReleaseGC[47] | XtWindowOfObject[47] |
XtCreateApplicationShell[47] | XtGetSelectionValuesIncremental[47] | XtReleasePropertyAtom[47] | XtWindowToWidget[47] |
XtCreateManagedWidget[47] | XtGetSubresources[47] | XtRemoveActionHook[47] | _XtCheckSubclassFlag[47] |
XtCreatePopupShell[47] | XtGetSubvalues[47] | XtRemoveAllCallbacks[47] | _XtCopyFromArg[46] |
XtCreateSelectionRequest[47] | XtGetValues[47] | XtRemoveBlockHook[47] | _XtInherit[46] |
XtCreateWidget[47] | XtGrabButton[47] | XtRemoveCallback[47] | _XtIsSubclassOf[46] |
XtCreateWindow[47] | XtGrabKey[47] | XtRemoveCallbacks[47] |
Table 15-16. libXt - X Toolkit Data Interfaces
XtCXtToolkitError[47] | constraintClassRec[47] | rectObjClass[47] | topLevelShellWidgetClass[47] |
XtShellStrings[47] | constraintWidgetClass[47] | rectObjClassRec[47] | transientShellClassRec[47] |
XtStrings[47] | coreWidgetClass[47] | sessionShellClassRec[47] | transientShellWidgetClass[47] |
_XtInheritTranslations[46] | objectClass[47] | sessionShellWidgetClass[47] | widgetClass[47] |
applicationShellWidgetClass[47] | objectClassRec[47] | shellClassRec[47] | widgetClassRec[47] |
compositeClassRec[47] | overrideShellClassRec[47] | shellWidgetClass[47] | wmShellClassRec[47] |
compositeWidgetClass[47] | overrideShellWidgetClass[47] | topLevelShellClassRec[47] | wmShellWidgetClass[47] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef Cardinal (*XtOrderProc) (Widget child); typedef void (*XtDoChangeProc) (Widget composite_parent, WidgetList unmanage_children, Cardinal * num_unmanage_children, WidgetList manage_children, Cardinal * num_manage_children, XtPointer client_data); |
#define XtInheritGeometryManager ((XtGeometryHandler) _XtInherit) #define XtInheritDeleteChild ((XtWidgetProc) _XtInherit) #define XtInheritInsertChild ((XtWidgetProc) _XtInherit) #define XtCompositeExtensionVersion 2L typedef struct _CompositeClassPart CompositeClassPart; typedef struct _CompositeClassRec CompositeClassRec; |
#define XtConstraintExtensionVersion 1L typedef struct _ConstraintPart ConstraintPart; typedef struct _ConstraintClassPart ConstraintClassPart; typedef struct _ConstraintClassRec { CoreClassPart core_class; CompositeClassPart composite_class; ConstraintClassPart constraint_class; } ConstraintClassRec; |
typedef struct _WidgetRec *Widget; typedef Widget *WidgetList; typedef struct _WidgetClassRec *WidgetClass; typedef struct _CompositeRec *CompositeWidget; typedef struct _XtActionsRec *XtActionList; typedef struct _XtEventRec *XtEventTable; typedef struct _XtAppStruct *XtAppContext; typedef unsigned long XtValueMask; typedef unsigned long XtIntervalId; typedef unsigned long XtInputId; typedef unsigned long XtSignalId; typedef unsigned int XtGeometryMask; typedef unsigned long XtGCMask; typedef unsigned long Pixel; typedef int XtCacheType; typedef char Boolean; typedef long XtArgVal; typedef unsigned char XtEnum; typedef unsigned int Cardinal; typedef unsigned short Dimension; typedef short Position; typedef void *XtPointer; typedef XtPointer Opaque; |
#define XtInheritAllocate ((XtAllocateProc) _XtInherit) #define XtInheritDeallocate ((XtDeallocateProc) _XtInherit) #define XtObjectExtensionVersion 1L typedef struct _ObjectPart { Widget self; WidgetClass widget_class; Widget parent; XrmName xrm_name; Boolean being_destroyed; XtCallbackList destroy_callbacks; XtPointer constraints; } ObjectPart; typedef struct _ObjectRec { ObjectPart object; } ObjectRec; typedef struct _ObjectClassPart { WidgetClass superclass; String class_name; Cardinal widget_size; XtProc class_initialize; XtWidgetClassProc class_part_initialize; XtEnum class_inited; XtInitProc initialize; XtArgsProc initialize_hook; XtProc obj1; XtProc obj2; XtProc obj3; XtResourceList resources; Cardinal num_resources; XrmClass xrm_class; Boolean obj4; XtEnum obj5; Boolean obj6; Boolean obj7; XtWidgetProc destroy; XtProc obj8; XtProc obj9; XtSetValuesFunc set_values; XtArgsFunc set_values_hook; XtProc obj10; XtArgsProc get_values_hook; XtProc obj11; XtVersionType version; XtPointer callback_private; String obj12; XtProc obj13; XtProc obj14; XtPointer extension; } ObjectClassPart; struct { XtPointer next_extension; XrmQuark record_type; long version; Cardinal record_size; XtAllocateProc allocate; XtDeallocateProc deallocate; } ; typedef struct { XtPointer next_extension; XrmQuark record_type; long version; Cardinal record_size; XtAllocateProc allocate; XtDeallocateProc deallocate; } ObjectClassExtensionRec; typedef struct { XtPointer next_extension; XrmQuark record_type; long version; Cardinal record_size; XtAllocateProc allocate; XtDeallocateProc deallocate; } *ObjectClassExtension; typedef struct _ObjectClassRec { ObjectClassPart object_class; } ObjectClassRec; |
The _XtCopyFromArg() function copies "size" bytes from src to dst. This is an internal X function call.
The behavior of the interfaces in this library is specified by the following standards.
OpenGL® Application Binary Interface for Linux[48] |
Table 15-18. libGL - GL X interface Function Interfaces
glXChooseVisual[48] | glXDestroyGLXPixmap[48] | glXGetCurrentDisplay[48] | glXMakeContextCurrent[48] | glXSelectEvent[48] |
glXCopyContext[48] | glXDestroyPbuffer[48] | glXGetCurrentDrawable[48] | glXMakeCurrent[48] | glXSwapBuffers[48] |
glXCreateContext[48] | glXDestroyPixmap[48] | glXGetCurrentReadDrawable[48] | glXQueryContext[48] | glXUseXFont[48] |
glXCreateGLXPixmap[48] | glXDestroyWindow[48] | glXGetFBConfigAttrib[48] | glXQueryContextInfoEXT[48] | glXWaitGL[48] |
glXCreateNewContext[48] | glXFreeContextEXT[48] | glXGetProcAddressARB[48] | glXQueryDrawable[48] | glXWaitX[48] |
glXCreatePbuffer[48] | glXGetClientString[48] | glXGetSelectedEvent[48] | glXQueryExtension[48] | |
glXCreatePixmap[48] | glXGetConfig[48] | glXGetVisualFromFBConfig[48] | glXQueryExtensionsString[48] | |
glXCreateWindow[48] | glXGetContextIDEXT[48] | glXImportContextEXT[48] | glXQueryServerString[48] | |
glXDestroyContext[48] | glXGetCurrentContext[48] | glXIsDirect[48] | glXQueryVersion[48] |
Table 15-19. libGL - OpenGL Function Interfaces
glAccum[48] | glDisable[48] | glIndexPointer[48] | glNormal3bv[48] | glTexCoord1dv[48] |
glActiveTextureARB[48] | glDisableClientState[48] | glIndexd[48] | glNormal3d[48] | glTexCoord1f[48] |
glAlphaFunc[48] | glDrawArrays[48] | glIndexdv[48] | glNormal3dv[48] | glTexCoord1fv[48] |
glAreTexturesResident[48] | glDrawBuffer[48] | glIndexf[48] | glNormal3f[48] | glTexCoord1i[48] |
glArrayElement[48] | glDrawElements[48] | glIndexfv[48] | glNormal3fv[48] | glTexCoord1iv[48] |
glBegin[48] | glDrawPixels[48] | glIndexi[48] | glNormal3i[48] | glTexCoord1s[48] |
glBindTexture[48] | glDrawRangeElements[48] | glIndexiv[48] | glNormal3iv[48] | glTexCoord1sv[48] |
glBitmap[48] | glEdgeFlag[48] | glIndexs[48] | glNormal3s[48] | glTexCoord2d[48] |
glBlendColor[48] | glEdgeFlagPointer[48] | glIndexsv[48] | glNormal3sv[48] | glTexCoord2dv[48] |
glBlendEquation[48] | glEdgeFlagv[48] | glIndexub[48] | glNormalPointer[48] | glTexCoord2f[48] |
glBlendFunc[48] | glEnable[48] | glIndexubv[48] | glOrtho[48] | glTexCoord2fv[48] |
glCallList[48] | glEnableClientState[48] | glInitNames[48] | glPassThrough[48] | glTexCoord2i[48] |
glCallLists[48] | glEnd[48] | glInterleavedArrays[48] | glPixelMapfv[48] | glTexCoord2iv[48] |
glClear[48] | glEndList[48] | glIsEnabled[48] | glPixelMapuiv[48] | glTexCoord2s[48] |
glClearAccum[48] | glEvalCoord1d[48] | glIsList[48] | glPixelMapusv[48] | glTexCoord2sv[48] |
glClearColor[48] | glEvalCoord1dv[48] | glIsTexture[48] | glPixelStoref[48] | glTexCoord3d[48] |
glClearDepth[48] | glEvalCoord1f[48] | glLightModelf[48] | glPixelStorei[48] | glTexCoord3dv[48] |
glClearIndex[48] | glEvalCoord1fv[48] | glLightModelfv[48] | glPixelTransferf[48] | glTexCoord3f[48] |
glClearStencil[48] | glEvalCoord2d[48] | glLightModeli[48] | glPixelTransferi[48] | glTexCoord3fv[48] |
glClientActiveTextureARB[48] | glEvalCoord2dv[48] | glLightModeliv[48] | glPixelZoom[48] | glTexCoord3i[48] |
glClipPlane[48] | glEvalCoord2f[48] | glLightf[48] | glPointSize[48] | glTexCoord3iv[48] |
glColor3b[48] | glEvalCoord2fv[48] | glLightfv[48] | glPolygonMode[48] | glTexCoord3s[48] |
glColor3bv[48] | glEvalMesh1[48] | glLighti[48] | glPolygonOffset[48] | glTexCoord3sv[48] |
glColor3d[48] | glEvalMesh2[48] | glLightiv[48] | glPolygonStipple[48] | glTexCoord4d[48] |
glColor3dv[48] | glEvalPoint1[48] | glLineStipple[48] | glPopAttrib[48] | glTexCoord4dv[48] |
glColor3f[48] | glEvalPoint2[48] | glLineWidth[48] | glPopClientAttrib[48] | glTexCoord4f[48] |
glColor3fv[48] | glFeedbackBuffer[48] | glListBase[48] | glPopMatrix[48] | glTexCoord4fv[48] |
glColor3i[48] | glFinish[48] | glLoadIdentity[48] | glPopName[48] | glTexCoord4i[48] |
glColor3iv[48] | glFlush[48] | glLoadMatrixd[48] | glPrioritizeTextures[48] | glTexCoord4iv[48] |
glColor3s[48] | glFogf[48] | glLoadMatrixf[48] | glPushAttrib[48] | glTexCoord4s[48] |
glColor3sv[48] | glFogfv[48] | glLoadName[48] | glPushClientAttrib[48] | glTexCoord4sv[48] |
glColor3ub[48] | glFogi[48] | glLogicOp[48] | glPushMatrix[48] | glTexCoordPointer[48] |
glColor3ubv[48] | glFogiv[48] | glMap1d[48] | glPushName[48] | glTexEnvf[48] |
glColor3ui[48] | glFrontFace[48] | glMap1f[48] | glRasterPos2d[48] | glTexEnvfv[48] |
glColor3uiv[48] | glFrustum[48] | glMap2d[48] | glRasterPos2dv[48] | glTexEnvi[48] |
glColor3us[48] | glGenLists[48] | glMap2f[48] | glRasterPos2f[48] | glTexEnviv[48] |
glColor3usv[48] | glGenTextures[48] | glMapGrid1d[48] | glRasterPos2fv[48] | glTexGend[48] |
glColor4b[48] | glGetBooleanv[48] | glMapGrid1f[48] | glRasterPos2i[48] | glTexGendv[48] |
glColor4bv[48] | glGetClipPlane[48] | glMapGrid2d[48] | glRasterPos2iv[48] | glTexGenf[48] |
glColor4d[48] | glGetColorTable[48] | glMapGrid2f[48] | glRasterPos2s[48] | glTexGenfv[48] |
glColor4dv[48] | glGetColorTableParameterfv[48] | glMaterialf[48] | glRasterPos2sv[48] | glTexGeni[48] |
glColor4f[48] | glGetColorTableParameteriv[48] | glMaterialfv[48] | glRasterPos3d[48] | glTexGeniv[48] |
glColor4fv[48] | glGetConvolutionFilter[48] | glMateriali[48] | glRasterPos3dv[48] | glTexImage1D[48] |
glColor4i[48] | glGetConvolutionParameterfv[48] | glMaterialiv[48] | glRasterPos3f[48] | glTexImage2D[48] |
glColor4iv[48] | glGetConvolutionParameteriv[48] | glMatrixMode[48] | glRasterPos3fv[48] | glTexImage3D[48] |
glColor4s[48] | glGetDoublev[48] | glMinmax[48] | glRasterPos3i[48] | glTexParameterf[48] |
glColor4sv[48] | glGetError[48] | glMultMatrixd[48] | glRasterPos3iv[48] | glTexParameterfv[48] |
glColor4ub[48] | glGetFloatv[48] | glMultMatrixf[48] | glRasterPos3s[48] | glTexParameteri[48] |
glColor4ubv[48] | glGetHistogram[48] | glMultiTexCoord1dARB[48] | glRasterPos3sv[48] | glTexParameteriv[48] |
glColor4ui[48] | glGetHistogramParameterfv[48] | glMultiTexCoord1dvARB[48] | glRasterPos4d[48] | glTexSubImage1D[48] |
glColor4uiv[48] | glGetHistogramParameteriv[48] | glMultiTexCoord1fARB[48] | glRasterPos4dv[48] | glTexSubImage2D[48] |
glColor4us[48] | glGetIntegerv[48] | glMultiTexCoord1fvARB[48] | glRasterPos4f[48] | glTexSubImage3D[48] |
glColor4usv[48] | glGetLightfv[48] | glMultiTexCoord1iARB[48] | glRasterPos4fv[48] | glTranslated[48] |
glColorMask[48] | glGetLightiv[48] | glMultiTexCoord1ivARB[48] | glRasterPos4i[48] | glTranslatef[48] |
glColorMaterial[48] | glGetMapdv[48] | glMultiTexCoord1sARB[48] | glRasterPos4iv[48] | glVertex2d[48] |
glColorPointer[48] | glGetMapfv[48] | glMultiTexCoord1svARB[48] | glRasterPos4s[48] | glVertex2dv[48] |
glColorSubTable[48] | glGetMapiv[48] | glMultiTexCoord2dARB[48] | glRasterPos4sv[48] | glVertex2f[48] |
glColorTable[48] | glGetMaterialfv[48] | glMultiTexCoord2dvARB[48] | glReadBuffer[48] | glVertex2fv[48] |
glColorTableParameterfv[48] | glGetMaterialiv[48] | glMultiTexCoord2fARB[48] | glReadPixels[48] | glVertex2i[48] |
glColorTableParameteriv[48] | glGetMinmax[48] | glMultiTexCoord2fvARB[48] | glRectd[48] | glVertex2iv[48] |
glConvolutionFilter1D[48] | glGetMinmaxParameterfv[48] | glMultiTexCoord2iARB[48] | glRectdv[48] | glVertex2s[48] |
glConvolutionFilter2D[48] | glGetMinmaxParameteriv[48] | glMultiTexCoord2ivARB[48] | glRectf[48] | glVertex2sv[48] |
glConvolutionParameterf[48] | glGetPixelMapfv[48] | glMultiTexCoord2sARB[48] | glRectfv[48] | glVertex3d[48] |
glConvolutionParameterfv[48] | glGetPixelMapuiv[48] | glMultiTexCoord2svARB[48] | glRecti[48] | glVertex3dv[48] |
glConvolutionParameteri[48] | glGetPixelMapusv[48] | glMultiTexCoord3dARB[48] | glRectiv[48] | glVertex3f[48] |
glConvolutionParameteriv[48] | glGetPointerv[48] | glMultiTexCoord3dvARB[48] | glRects[48] | glVertex3fv[48] |
glCopyColorSubTable[48] | glGetPolygonStipple[48] | glMultiTexCoord3fARB[48] | glRectsv[48] | glVertex3i[48] |
glCopyColorTable[48] | glGetSeparableFilter[48] | glMultiTexCoord3fvARB[48] | glRenderMode[48] | glVertex3iv[48] |
glCopyConvolutionFilter1D[48] | glGetString[48] | glMultiTexCoord3iARB[48] | glResetHistogram[48] | glVertex3s[48] |
glCopyConvolutionFilter2D[48] | glGetTexEnvfv[48] | glMultiTexCoord3ivARB[48] | glResetMinmax[48] | glVertex3sv[48] |
glCopyPixels[48] | glGetTexEnviv[48] | glMultiTexCoord3sARB[48] | glRotated[48] | glVertex4d[48] |
glCopyTexImage1D[48] | glGetTexGendv[48] | glMultiTexCoord3svARB[48] | glRotatef[48] | glVertex4dv[48] |
glCopyTexImage2D[48] | glGetTexGenfv[48] | glMultiTexCoord4dARB[48] | glScaled[48] | glVertex4f[48] |
glCopyTexSubImage1D[48] | glGetTexGeniv[48] | glMultiTexCoord4dvARB[48] | glScalef[48] | glVertex4fv[48] |
glCopyTexSubImage2D[48] | glGetTexImage[48] | glMultiTexCoord4fARB[48] | glScissor[48] | glVertex4i[48] |
glCopyTexSubImage3D[48] | glGetTexLevelParameterfv[48] | glMultiTexCoord4fvARB[48] | glSelectBuffer[48] | glVertex4iv[48] |
glCullFace[48] | glGetTexLevelParameteriv[48] | glMultiTexCoord4iARB[48] | glSeparableFilter2D[48] | glVertex4s[48] |
glDeleteLists[48] | glGetTexParameterfv[48] | glMultiTexCoord4ivARB[48] | glShadeModel[48] | glVertex4sv[48] |
glDeleteTextures[48] | glGetTexParameteriv[48] | glMultiTexCoord4sARB[48] | glStencilFunc[48] | glVertexPointer[48] |
glDepthFunc[48] | glHint[48] | glMultiTexCoord4svARB[48] | glStencilMask[48] | glViewport[48] |
glDepthMask[48] | glHistogram[48] | glNewList[48] | glStencilOp[48] | glXChooseFBConfig[48] |
glDepthRange[48] | glIndexMask[48] | glNormal3b[48] | glTexCoord1d[48] |
This section contains standard data definitions that describe system data. 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.
ISO C serves as the LSB 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.
typedef unsigned int GLenum; typedef unsigned char GLboolean; typedef unsigned int GLbitfield; typedef void GLvoid; typedef char GLbyte; typedef short GLshort; typedef int GLint; typedef unsigned char GLubyte; typedef unsigned short GLushort; typedef unsigned int GLuint; typedef int GLsizei; typedef float GLfloat; typedef float GLclampf; typedef double GLdouble; typedef double GLclampd; #define GL_UNSIGNED_BYTE 0x1401 #define GL_SHORT 0x1402 #define GL_UNSIGNED_SHORT 0x1403 #define GL_INT 0x1404 #define GL_UNSIGNED_INT 0x1405 #define GL_FLOAT 0x1406 #define GL_2_BYTES 0x1407 #define GL_3_BYTES 0x1408 #define GL_4_BYTES 0x1409 #define GL_DOUBLE 0x140A #define GL_POINTS 0x0000 #define GL_LINES 0x0001 #define GL_LINE_LOOP 0x0002 #define GL_LINE_STRIP 0x0003 #define GL_TRIANGLES 0x0004 #define GL_TRIANGLE_STRIP 0x0005 #define GL_TRIANGLE_FAN 0x0006 #define GL_QUADS 0x0007 #define GL_QUAD_STRIP 0x0008 #define GL_POLYGON 0x0009 #define GL_V2F 0x2A20 #define GL_V3F 0x2A21 #define GL_C4UB_V2F 0x2A22 #define GL_C4UB_V3F 0x2A23 #define GL_C3F_V3F 0x2A24 #define GL_N3F_V3F 0x2A25 #define GL_C4F_N3F_V3F 0x2A26 #define GL_T2F_V3F 0x2A27 #define GL_T4F_V4F 0x2A28 #define GL_T2F_C4UB_V3F 0x2A29 #define GL_T2F_C3F_V3F 0x2A2A #define GL_T2F_N3F_V3F 0x2A2B #define GL_T2F_C4F_N3F_V3F 0x2A2C #define GL_T4F_C4F_N3F_V4F 0x2A2D #define GL_VERTEX_ARRAY 0x8074 #define GL_NORMAL_ARRAY 0x8075 #define GL_COLOR_ARRAY 0x8076 #define GL_INDEX_ARRAY 0x8077 #define GL_TEXTURE_COORD_ARRAY 0x8078 #define GL_EDGE_FLAG_ARRAY 0x8079 #define GL_VERTEX_ARRAY_SIZE 0x807A #define GL_VERTEX_ARRAY_TYPE 0x807B #define GL_VERTEX_ARRAY_STRIDE 0x807C #define GL_NORMAL_ARRAY_TYPE 0x807E #define GL_NORMAL_ARRAY_STRIDE 0x807F #define GL_COLOR_ARRAY_SIZE 0x8081 #define GL_COLOR_ARRAY_TYPE 0x8082 #define GL_COLOR_ARRAY_STRIDE 0x8083 #define GL_INDEX_ARRAY_TYPE 0x8085 #define GL_INDEX_ARRAY_STRIDE 0x8086 #define GL_TEXTURE_COORD_ARRAY_SIZE 0x8088 #define GL_TEXTURE_COORD_ARRAY_TYPE 0x8089 #define GL_TEXTURE_COORD_ARRAY_STRIDE 0x808A #define GL_EDGE_FLAG_ARRAY_STRIDE 0x808C #define GL_VERTEX_ARRAY_POINTER 0x808E #define GL_NORMAL_ARRAY_POINTER 0x808F #define GL_COLOR_ARRAY_POINTER 0x8090 #define GL_INDEX_ARRAY_POINTER 0x8091 #define GL_TEXTURE_COORD_ARRAY_POINTER 0x8092 #define GL_MATRIX_MODE 0x0BA0 #define GL_MODELVIEW 0x1700 #define GL_PROJECTION 0x1701 #define GL_TEXTURE 0x1702 |
Applications should be provided in the RPM packaging format as defined in this specification.
Distributions must provide a mechanism for installing applications in this packaging format with some restrictions listed below. [49]
An RPM format file consists of 4 sections, the Lead, Signature, Header, and the Payload. All values are stored in network byte order.
These 4 sections must exist in the order specified.
The lead section is used to identify the package file.
The signature section is used to verify the integrity, and optionally, the authenticity of the majority of the package file.
The header section contains all available information about the package. Entries such as the package's name, version, and file list, are contained in the header.
The payload section holds the files to be install.
struct rpmlead { unsigned char magic[4]; unsigned char major, minor; short type; short archnum; char name[66]; short osnum; short signature_type; char reserved[16]; } ; |
Value identifying this file as an RPM format file. This value must be "\355\253\356\333".
Value indicating the major version number of the file format version. This value must be 3.
Value indicating the minor revision number of file format version. This value must be 0.
Value indicating whether this is a source or binary package. This value must be 0 to indicate a binary package.
Value indicating the architecture for which this package is valid. This value is specified in the architecture-specific LSB specification.
A NUL terminated string that provides the package name. This name must conform with the Package Naming section of this specification.
Value indicating the Operating System for which this package is valid. This value must be 1.
Value indicating the type of the signature used in the Signature part of the file. This value must be 5.
Reserved space. The value is undefined.
The Header structure is used for both the Signature and Header Sections. A Header Structure consists of 3 parts, a Header record, followed by 1 or more Index records, followed by 0 or more bytes of data associated with the Index records. A Header structure must be aligned to an 8 byte boundary.
struct rpmheader { unsigned char magic[4]; unsigned char reserved[4]; int nindex; int hsize; } ; |
Value identifying this record as an RPM header record. This value must be "\216\255\350\001".
Reserved space. This value must be "\000\000\000\000".
The number of Index Records that follow this Header Record. There should be at least 1 Index Record.
The size in bytes of the storage area for the data pointed to by the Index Records.
struct rpmhdrindex { int tag; int type; int offset; int count; } ; |
Value identifying the purpose of the data associated with this Index Record. This value of this field is dependent on the context in which the Index Record is used, and is defined below and in later sections.
Value identifying the type of the data associated with this Index Record. The possible type values are defined below.
Location in the Store of the data associated with this Index Record. This value should between 0 and the value contained in the hsize of the Header Structure.
Size of the data associated with this Index Record. The count is the number of elements whose size is defined by the type of this Record.
The possible values for the type field are defined in this table.
Table 16-3. Index Type values
Type | Value | Size (in bytes) | Alignment |
---|---|---|---|
RPM_NULL_TYPE | 0 | Not Implemented. | |
RPM_CHAR_TYPE | 1 | 1 | 1 |
RPM_INT8_TYPE | 2 | 1 | 1 |
RPM_INT16_TYPE | 3 | 2 | 2 |
RPM_INT32_TYPE | 4 | 4 | 4 |
RPM_INT64_TYPE | 5 | Reserved. | |
RPM_STRING_TYPE | 6 | variable, NUL terminated | 1 |
RPM_BIN_TYPE | 7 | 1 | 1 |
RPM_STRING_ARRAY_TYPE | 8 | Variable, sequence of NUL terminated strings | 1 |
RPM_I18NSTRING_TYPE | 9 | variable, sequence of NUL terminated strings | 1 |
The string arrays specified for enties of type RPM_STRING_ARRAY_TYPE and RPM_I18NSTRING_TYPE are vectors of strings in a contiguous block of memory, each element separated from its neighbors by a NUL character.
Index records with type RPM_I18NSTRING_TYPE must always have a count of 1. The array entries in an index of type RPM_I18NSTRING_TYPE correspond to the locale names contained in the HDRTAG_HDRI18NTABLE index.
Some values are designated as header private, and may appear in any header structure. These are defined here. Additional values are defined in later sections.
Table 16-4. Header Private Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_HEADERSIGNATURES | 62 | BIN | 16 | Optional |
RPMTAG_HEADERIMMUTABLE | 63 | BIN | 16 | Optional |
RPMTAG_HEADERI18NTABLE | 100 | STRING_ARRAY | Required |
The signature tag differentiates a signature header from a metadata header, and identifies the original contents of the signature header.
This tag contains an index record which specifies the portion of the Header Record which was used for the calculation of a signature. This data must be preserved or any header-only signature will be invalidated.
Contains a list of locales for which strings are provided in other parts of the package.
Not all Index records defined here will be present in all packages. Each tag value has a status which is defined here.
This Index Record must be present.
This Index Record may be present.
This Index Record should not be present.
This Index Record must not be present.
This Index Record must not be present.
The Signature section is implemented using the Header structure. The signature section defines the following additional tag values which may be used in the Index structures.
These values exist to provide additional information about the rest of the package.
Table 16-5. Signature Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
SIGTAG_SIGSIZE | 1000 | INT32 | 1 | Required |
SIGTAG_PAYLOADSIZE | 1007 | INT32 | 1 | Optional |
This tag specifies the combined size of the Header and Payload sections.
This tag specifies the uncompressed size of the Payload archive, including the cpio headers.
These values exist to ensure the integrity of the rest of the package.
Table 16-6. Signature Digest Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
SIGTAG_MD5 | 1004 | BIN | 16 | Required |
SIGTAG_SHA1HEADER | 1010 | STRING | 1 | Optional |
This tag specifies the 128-bit MD5 checksum of the combined Header and Archive sections.
This index contains the SHA1 checksum of the entire Header Section, including the Header Record, Index Records and Header store.
These values exist to provide authentication of the package.
Table 16-7. Signature Signing Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
SIGTAG_PGP | 1002 | BIN | 1 | Optional |
SIGTAG_GPG | 1005 | BIN | 1 | Optional |
SIGTAG_DSAHEADER | 1011 | BIN | 1 | Optional |
SIGTAG_RSAHEADER | 1012 | BIN | 1 | Optional |
This tag specifies the RSA signature of the combined Header and Payload sections. The data is formatted as a Version 3 Signature Packet as specified in RFC 2440: OpenPGP Message Format.
The tag contains the DSA signature of the combined Header and Payload sections. The data is formatted as a Version 3 Signature Packet as specified in RFC 2440: OpenPGP Message Format.
The tag contains the DSA signature of the Header section. The data is formatted as a Version 3 Signature Packet as specified in RFC 2440: OpenPGP Message Format. If this tag is present,then the SIGTAG_GPG tag must also be present.
The tag contains the RSA signature of the Header section.The data is formatted as a Version 3 Signature Packet as specified in RFC 2440: OpenPGP Message Format. If this tag is present, then the SIGTAG_PGP must also be present.
The Header section is implemented using the Header structure. The Header section defines the following additional tag values which may be used in the Index structures.
The following tag values are used to indicate information that describes the package as a whole.
Table 16-8. Package Info Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_NAME | 1000 | STRING | 1 | Required |
RPMTAG_VERSION | 1001 | STRING | 1 | Required |
RPMTAG_RELEASE | 1002 | STRING | 1 | Required |
RPMTAG_SUMMARY | 1004 | I18NSTRING | 1 | Required |
RPMTAG_DESCRIPTION | 1005 | I18NSTRING | 1 | Required |
RPMTAG_SIZE | 1009 | INT32 | 1 | Required |
RPMTAG_LICENSE | 1014 | STRING | 1 | Required |
RPMTAG_GROUP | 1016 | I18NSTRING | 1 | Required |
RPMTAG_OS | 1021 | STRING | 1 | Required |
RPMTAG_ARCH | 1022 | STRING | 1 | Required |
RPMTAG_SOURCERPM | 1044 | STRING | 1 | Optional |
RPMTAG_ARCHIVESIZE | 1046 | INT32 | 1 | Optional |
RPMTAG_RPMVERSION | 1064 | STRING | 1 | Optional |
RPMTAG_COOKIE | 1094 | STRING | 1 | Optional |
RPMTAG_PAYLOADFORMAT | 1124 | STRING | 1 | Required |
RPMTAG_PAYLOADCOMPRESSOR | 1125 | STRING | 1 | Required |
RPMTAG_PAYLOADFLAGS | 1126 | STRING | 1 | Required |
This tag specifies the name of the package.
This tag specifies the version of the package.
This tag specifies the release of the package.
This tag specifies the summary description of the package. The summary value pointed to by this index record contains a one line description of the package.
This tag specifies the description of the package. The description value pointed to by this index record contains a full desription of the package.
This tag specifies the sum of the sizes of the regular files in the archive.
This tag specifies the license which applies to this package.
This tag specifies the administrative group to which this package belongs.
This tag specifies the OS of the package. The OS value pointed to by this index record must be "linux".
This tag specifies the architecture of the package. The architecture value pointed to by this index record is defined in architecture specific LSB specification.
This tag specifies the name of the source RPM
This tag specifies the uncompressed size of the Payload archive, including the cpio headers.
This tag indicates the version of RPM tool used to build this package. The value is unused.
This tag contains an opaque string whose contents are undefined.
This tag specifies the format of the Archive section. The format value pointed to by this index record must be 'cpio'.
This tag specifies the compression used on the Archive section. The compression value pointed to by this index record must be 'gzip'
This tag indicates the compression level used for the Payload. This value must always be '9'.
The following tag values are used to provide information needed during the installation of the package.
Table 16-9. Installation Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_PREINPROG | 1085 | STRING | 1 | Optional |
RPMTAG_POSTINPROG | 1086 | STRING | 1 | Optional |
RPMTAG_PREUNPROG | 1087 | STRING | 1 | Optional |
RPMTAG_POSTUNPROG | 1088 | STRING | 1 | Optional |
This tag specifies the name of the intepreter to which the preinstall scriptlet will be passed.
This tag specifies the name of the intepreter to which the postinstall scriptlet will be passed.
This tag specifies the name of the intepreter to which the preuninstall scriptlet will be passed.
This program specifies the name of the intepreter to which the postuninstall scriptlet will be passed
The following tag values are used to provide information about the files in the payload. This information is provided in the header to allow more efficient access of the information.
Table 16-10. File Info Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_OLDFILENAMES | 1027 | STRING_ARRAY | Optional | |
RPMTAG_FILESIZES | 1028 | INT32 | Required | |
RPMTAG_FILEMODES | 1030 | INT16 | Required | |
RPMTAG_FILERDEVS | 1033 | INT16 | Required | |
RPMTAG_FILEMTIMES | 1034 | INT32 | Required | |
RPMTAG_FILEMD5S | 1035 | STRING_ARRAY | Required | |
RPMTAG_FILELINKTOS | 1036 | STRING_ARRAY | Required | |
RPMTAG_FILEFLAGS | 1037 | INT32 | Required | |
RPMTAG_FILEUSERNAME | 1039 | STRING_ARRAY | Required | |
RPMTAG_FILEGROUPNAME | 1040 | STRING_ARRAY | Required | |
RPMTAG_FILEDEVICES | 1095 | INT32 | Required | |
RPMTAG_FILEINODES | 1096 | INT32 | Required | |
RPMTAG_FILELANGS | 1097 | STRING_ARRAY | Required | |
RPMTAG_DIRINDEXES | 1116 | INT32 | Optional | |
RPMTAG_BASENAMES | 1117 | STRING_ARRAY | Optional | |
RPMTAG_DIRNAMES | 1118 | STRING_ARRAY | Optional |
This tag specifies the filenames when not in a compressed format as determined by the absense of rpmlib(CompressedFileNames) in the RPMTAG_REQUIRENAME index.
This tag specifies the size of each file in the archive.
This tag specifies the mode of each file in the archive.
This tag specifies the device number from which the file was copied.
This tag specifies the modification time in seconds since the epoch of each file in the archive.
This tag specifies the ASCII representation of the MD5 sum of the corresponding file contents. This value is empty if the corresponding archive entry is not a regular file.
The target for a symlink, otherwise NULL.
This tag specifies the bit(s) to classify and control how files are to be installed.
This tag specifies the owner of the corresponding file.
This tag specifies the of the corresponding file.
This tag specifies the 16 bit device number from which the file was copied.
This tag specifies the inode value from the original file on the build host.
This tag specifies a per-file locale marker used to install only locale specific subsets of files when the package is installed.
This tag specifies the index into the array provided by the RPMTAG_DIRNAMES Index which contains the directory name for the corresponding filename.
This tag specifies the base portion of the corresponding filename.
This tag specifies the directory portion of the corresponding filename. Each directory name must contain a trailing '/'.
One of RPMTAG_OLDFILENAMES or the tuple RPMTAG_DIRINDEXES,RPMTAG_BASENAMES,RPMTAG_DIRNAMES must be present, but not both.
The following tag values are used to provide information about interdependencies between packages.
Table 16-11. Package Dependency Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_PROVIDENAME | 1047 | STRING_ARRAY | 1 | Required |
RPMTAG_REQUIREFLAGS | 1048 | INT32 | Required | |
RPMTAG_REQUIRENAME | 1049 | STRING_ARRAY | Required | |
RPMTAG_REQUIREVERSION | 1050 | STRING_ARRAY | Required | |
RPMTAG_CONFLICTFLAGS | 1053 | INT32 | Optional | |
RPMTAG_CONFLICTNAME | 1054 | STRING_ARRAY | Optional | |
RPMTAG_CONFLICTVERSION | 1055 | STRING_ARRAY | Optional | |
RPMTAG_OBSOLETENAME | 1090 | STRING_ARRAY | Optional | |
RPMTAG_PROVIDEFLAGS | 1112 | INT32 | Required | |
RPMTAG_PROVIDEVERSION | 1113 | STRING_ARRAY | Required | |
RPMTAG_OBSOLETEFLAGS | 1114 | INT32 | 1 | Optional |
RPMTAG_OBSOLETEVERSION | 1115 | INT32 | 1 | Optional |
This tag indicates the name of the dependency provided by this package.
Bits(s) to specify the dependency range and context.
This tag indicates the dependencies for this package.
This tag indicates the versions associated with the values found in the RPMTAG_REQUIRENAME Index.
Bits(s) to specify the conflict range and context.
This tag indicates the conflictind dependencies for this package.
This tag indicates the versions associated with the values found in the RPMTAG_CONFLICTNAME Index.
This tag indicates the obsoleted dependencies for this package.
Bits(s) to specify the conflict range and context.
This tag indicates the versions associated with the values found in the RPMTAG_PROVIDENAME Index.
Bits(s) to specify the conflict range and context.
This tag indicates the versions associated with the values found in the RPMTAG_OBSOLETENAME Index.
The package dependencies are stored in the RPMTAG_REQUIRENAME and RPMTAG_REQUIREVERSION index records. The following values may be used.
Table 16-12. Index Type values
Name | Version | Meaning | Status |
---|---|---|---|
lsb | 1.3 | Indicates this is an LSB conforming package. | Required |
rpmlib(VersionedDependencies) | 3.0.3-1 | Indicates That the package contains PMTAG_PROVIDENAME, RPMTAG_OBSOLETENAME or RPMTAG_PREREQ records that have a version associated with them. | Optional |
rpmlib(PayloadFilesHavePrefix) | 4.0-1 | Indicates the filenames in the Archive have had "." prepended to them. | Optional |
rpmlib(CompressedFileNames) | 3.0.4-1 | Indicates that the filenames in the Payload are represented in the RPMTAG_DIRINDEXES, RPMTAG_DIRNAME and RPMTAG_BASENAMES indexes. | Optional |
/bin/sh | Interpreter usually required for installation scripts. | Optional |
The following tag values are also found in the Header section.
Table 16-14. Other Tag Values
Name | Tag Value | Type | Count | Status |
---|---|---|---|---|
RPMTAG_BUILDTIME | 1006 | INT32 | 1 | Optional |
RPMTAG_BUILDHOST | 1007 | STRING | 1 | Optional |
RPMTAG_FILEVERIFYFLAGS | 1045 | INT32 | Optional | |
RPMTAG_CHANGELOGTIME | 1080 | INT32 | Optional | |
RPMTAG_CHANGELOGNAME | 1081 | STRING_ARRAY | Optional | |
RPMTAG_CHANGELOGTEXT | 1082 | STRING_ARRAY | Optional | |
RPMTAG_OPTFLAGS | 1122 | STRING | 1 | Optional |
RPMTAG_RHNPLATFORM | 1131 | STRING | 1 | Deprecated |
RPMTAG_PLATFORM | 1132 | STRING | 1 | Optional |
This tag specifies the time as seconds since the epoch at which the package was built.
This tag specifies the on which which the package was built.
This tag specifies the bit(s) to control how files are to be verified after install, specifying which checks should be performed.
This tag specifies the Unix time in seconds since the epoch associated with each entry in the Changelog file.
This tag specifies the name of who made a change to this package
This tag specifies the changes asssociated with a changelog entry.
This tag indicates additional flags which may have been passed to the compiler when building this package.
This tag contains an opaque string whose contents are undefined.
This tag contains an opaque string whose contents are undefined.
The Payload section contains a compressed cpio archive. The format of this section is defined by RFC 1952: GZIP file format specification version 4.3.
When uncompressed, the cpio archive contains a sequence of records for each file. Each record contains a CPIO Header, Filename, Padding, and File Data.
Table 16-15. CPIO File Format
CPIO Header | Header structure as defined below. |
Filename | NUL terminated ASCII string containing the name of the file. |
Padding | 0-3 bytes as needed to align the file stream to a 4 byte boundary. |
File data | The contents of the file. |
Padding | 0-3 bytes as needed to align the file stream to a 4 byte boundary. |
The CPIO Header uses the following header structure (sometimes referred to as "new ASCII" or "SVR4 cpio"). All numbers are stored as ASCII representations of their hexadecimal value with leading zeros as needed to fill the field. With the exception of c_namesize and the corresponding name string, and c_checksum, all information contained in the CPIO Header is also represented in the Header Section. The values in in the CPIO Header must match the values contained in the Header Section.
struct { char c_magic[6]; char c_ino[8]; char c_mode[8]; char c_uid[8]; char c_gid[8]; char c_nlink[8]; char c_mtime[8]; char c_filesize[8]; char c_devmajor[8]; char c_devminor[8]; char c_rdevmajor[8]; char c_rdevminor[8]; char c_namesize[8]; char c_checksum[8]; }; |
Value identifying this cpio format. This value must be "070701".
This field contains the inode number from the filesystem from which the file was read. This field is ignored when installing a package. This field must match the corresponding value in the RPMTAG_FILEINODES index in the Header section.
Permission bits of the file. This is an ascii representation of the hexadecimal number representing the bit as defined for the st_mode field of the stat structure defined for the stat function. This field must match the corresponding value in the RPMTAG_FILEMODES index in the Header section.
Value identifying this owner of this file. This value matches the uid value of the corresponding user in the RPMTAG_FILEUSERNAME as found on the system where this package was built. The username specified in RPMTAG_FILEUSERNAME should take precedence when installing the package.
Value identifying this group of this file. This value matches the gid value of the corresponding user in the RPMTAG_FILEGROUPNAME as found on the system where this package was built. The groupname specified in RPMTAG_FILEGROUPNAME should take precedence when installing the package.
Value identifying the number of links associated with this file. If the value is greater than 1, then this filename will be linked to 1 or more files in this archive that has a matching value for the c_ino, c_devmajor and c_devminor fields.
Value identifying the modification time of the file when it was read. This field must match the corresponding value in the RPMTAG_FILEMTIMES index in the Header section.
Value identifying the size of the file. This field must match the corresponding value in the RPMTAG_FILESIZES index in the Header section.
The major number of the device containing the file system from which the file was read. With the exception of processing files with c_nlink >1, this field is ignored when installing a package. This field must match the corresponding value in the RPMTAG_FILEDEVICES index in the Header section.
The minor number of the device containing the file system from which the file was read. With the exception of processing files with c_nlink >1, this field is ignored when installing a package. This field must match the corresponding value in the RPMTAG_FILEDEVICES index in the Header section.
The major number of the raw device containing the file system from which the file was read. This field is ignored when installing a package. This field must match the corresponding value in the RPMTAG_RDEVS index in the Header section.
The minor number of the raw device containing the file system from which the file was read. This field is ignored when installing a package. This field must match the corresponding value in the RPMTAG_RDEVS index in the Header section.
Value identifying the length of the filename, which is located immediately following the CPIO Header structure.
Value containing the CRC checksum of the file data. This field is not used, and must contain the value "00000000". This field is ignored when installing a package.
A record with the filename "TRAILER!!!" indicates the last record in the archive.
Scripts used as part of the package install and uninstall may only use commands and interfaces that are specified by the LSB. All other commands are not guaranteed to be present, or to behave in expected ways.
Packages may not use RPM triggers.
Packages may not depend on the order in which scripts are executed (pre-install, pre-uninstall, &c), when doing an upgrade.
The LSB does not specify the interface to the tools used to manipulate LSB-conformant packages. Each conforming distribution will provide documentation for installing LSB packages.
Because there is no consistent packaging naming among the various Linux distributions, it is necessary for LSB-conformant packages to adhere the following naming rules to avoid conflicts with packages provided by the distributions.
All LSB package names must begin with the prefix "lsb-" to avoid conflicting with existing packages used by Linux distributions.
If the package name contains only one hyphen (including the one in the "lsb-" prefix) then the package name must be assigned by the Linux Assigned Names and Numbers Authority (LANANA), which shall maintain a registry of LSB names.
If the package name contains more than one hyphen (i.e., "lsb-www.redhat.com-redhat-database", "lsb-gnome-gnumeric"), then the portion of the package name between first and second hyphens must either be an LSB provider name assigned by the LANANA, or it may be one of the owners' fully-qualified domain name in lower case (e.g., "debian.org", "staroffice.sun.com"). The LSB provider name assigned by LANANA must only consist of the ASCII characters [a-z0-9].
Packages must depend on a dependency "lsb". They may not depend on other system-provided dependencies. They must not depend on non-system-provided dependencies unless the dependencies are fulfilled by packages which are part of the same application. If a package includes "Provides" it must only provide a virtual package name which is registered to that application.
The following table lists the Commands and Utilities. Unless otherwise specified the command or utility is described in the Single UNIX Specification (SUS). When an interface is not defined in the Single UNIX Specification, then the next prevailing standard is referenced (ie., POSIX, SVID).
The behavior of the interfaces described in this section are specified by the following standards.
Linux Standard Base [50] |
CAE Specification, January 1997, Commands and Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, C604) [51] |
Table 17-1. Commands and Utilities
[ [51] | ar [50] | at [50] | awk [50] | basename [51] |
batch [50] | bc [50] | cat [50] | chfn [50] | chgrp [50] |
chmod [50] | chown [50] | chsh [50] | cksum [51] | cmp [51] |
col [50] | comm [51] | cp [50] | cpio [50] | crontab [50] |
csplit [50] | cut [50] | date [50] | dd [51] | df [50] |
diff [50] | dirname [51] | dmesg [50] | du [50] | echo [50] |
egrep [50] | env [50] | expand [50] | expr [50] | false [51] |
fgrep [50] | file [50] | find [50] | fold [51] | fuser [50] |
gencat [50] | getconf [51] | gettext [50] | grep [50] | groupadd [50] |
groupdel [50] | groupmod [50] | groups [50] | gunzip [50] | gzip [50] |
head [50] | hostname [50] | iconv [50] | id [51] | install [50] |
install_initd [50] | ipcrm [50] | ipcs [50] | join [51] | kill [51] |
killall [50] | ln [50] | locale [51] | localedef [50] | logname [51] |
lpr [50] | ls [50] | lsb_release [50] | m4 [50] | make [50] |
man [50] | md5sum [50] | mkdir [50] | mkfifo [51] | mknod [50] |
mktemp [50] | more [50] | mount [50] | msgfmt [50] | mv [50] |
newgrp [50] | nice [50] | nl [50] | nohup [50] | od [50] |
passwd [50] | paste [50] | patch [50] | pathchk [50] | pidof [50] |
pr [50] | printf [50] | ps [51] | pwd [50] | remove_initd [50] |
renice [50] | rm [50] | rmdir [50] | rsync [50] | sed [50] |
sendmail [50] | sh [51] | shutdown [50] | sleep [50] | sort [50] |
split [50] | strip [50] | stty [51] | su [50] | sum [50] |
sync [50] | tail [50] | tar [50] | tee [50] | test [50] |
time [51] | touch [50] | tr [50] | true [51] | tsort [51] |
tty [50] | umount [50] | uname [50] | unexpand [50] | uniq [50] |
useradd [50] | userdel [50] | usermod [50] | wc [50] | xargs [50] |
This section contains descriptions for commands and utilities whose specified behavior in the LSB contradicts or extends the standards referenced. It also contains commands and utilities only required by the LSB and not specified by other standards.
ar is as specified in the Single UNIX Specification but with differences as listed below.
need not be accepted.
has unspecified behavior.
has unspecified behavior; using -r is suggested.
at is as specified in the Single UNIX Specification but with differences as listed below.
is functionally equivalent to the -r option specified in the Single UNIX Specification.
need not be supported, but the '-d' option is equivalent.
need not be supported.
cats the jobs listed on the command line to standard output.
prints the version number to standard error.
shows the time the job will be executed.
awk is as specified in the Single UNIX Specification but with differences as listed below.
Certain aspects of internationalized regular expressions are optional; see Internationalization and Regular Expressions>.
gawk and mawk shall be Single UNIX Specification compliant implementations of the awk language. However, gawk and mawk are expected to disappear from a future version of the LSB; LSB applications should invoke awk instead.
The specification for batch is as specified in the Single UNIX Specification but with the following differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
reads the job from file rather than standard input.
sends mail to the user when the job has completed even if there was no output.
uses the specified queue. A queue designation consists of a single letter; valid queue designations range from a to z. and A to Z. The a queue is the default for at and the b queue for batch. Queues with higher letters run with increased niceness. The special queue "=" is reserved for jobs which are currently running.
prints the version number to standard error.
shows the time the job will be executed.
bc is as specified in the Single UNIX Specification but with differences as listed below.
processes exactly the POSIX bc language.
gives warnings for extensions to POSIX bc.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
does not print the normal welcome message.
prints the version number and copyright and quits.
cat is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -vET.
numbers nonblank output lines.
is equivalent to -vE.
displays $ at end of each line.
numbers all output lines.
displays never more than one single blank line.
is equivalent to -vT.
displays TAB characters as ^I.
has unspecified behavior.
uses ^ and M- notation, except for LFD and TAB.
outputs version information and exits.
chfn changes user fullname and other information for a user's account. This information is typically printed by finger and similar programs. A normal user may only change the fields for their own account, the super user may change the fields for any account.
The only restrictions placed on the contents of the fields is that no control characters may be present, nor any of comma, colon, or equal sign.
If none of the options are selected, chfn operates in an interactive fashion. The prompts and expected input in interactive mode are unspecified and should not be relied upon.
As it is possible for the system to be configured to restrict which fields a non-privileged user is permitted to change, applications should be written to gracefully handle these situations.
sets the user's full name.
sets the user's home phone number.
chgrp is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is like verbose, but reports only when a change is made.
affects the referent of each symbolic link, rather than the symbolic link itself.
affects symbolic links instead of any referenced file. (Available only on systems that can change the ownership of a symlink.)
suppresses most error messages.
uses RFILE's group rather than the specified GROUP value.
outputs a diagnostic for every file processed.
outputs version information and exit.
chmod [OPTION]... MODE[,MODE]... FILE... chmod [OPTION]... OCTAL-MODE FILE... chmod [OPTION]... --reference=RFILE FILE... |
chmod is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is like verbose, but reports only when a change is made.
suppresses most error messages.
uses RFILE's mode instead of MODE values.
outputs a diagnostic for every file processed.
outputs version information and exits.
chown [OPTION]... OWNER[:[GROUP]] FILE... chown [OPTION]... :GROUP FILE... chown [OPTION]... --reference=RFILE FILE... |
chown is as specified in the Single UNIX Specification but with differences as listed below.
The use of the '.' character as a separator between the specification of the user name and group name is supported (in addition to the use of the ':' character as specified in the Single UNIX Specification).
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is like verbose, but reports only when a change is made.
affects the referent of each symbolic link, rather than the symbolic link itself.
affects symbolic links instead of any referenced file. (Available only on systems that can change the ownership of a symlink.)
changes the owner and/or group of each file only if its current owner and/or group match those specified here. Either may be omitted, in which case a match is not required for the omitted attribute.
suppresses most error messages.
uses RFILE's owner and group rather than the specified OWNER:GROUP values.
outputs a diagnostic for every file processed.
outputs version information and exits.
chsh changes the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for their own account, the super user may change the login shell for any account.
The only restrictions placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the super-user, and then any value may be added. Accounts which are restricted (in an implementation-defined manner) may not change their login shell.
If the -s option is not selected, chsh operates in an interactive mode. The prompts and expected input in this mode are implementation-defined.
col is as specified in the Single UNIX Specification, Version 2 with the difference that the -p option has unspecified behavior.
Although col is shown as legacy in the Single UNIX Specification, Version 2, it is not (yet) deprecated in the LSB.
cp is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is the same as -dpR.
makes a backup of each existing destination file.
is like --backup but does not accept an argument.
never follows symbolic links.
follows command-line symbolic links.
links files instead of copying.
always follows symbolic links.
appends source path to DIRECTORY.
removes each existing destination file before attempting to open it. (Contrast with --force.)
controls creation of sparse files.
By default, sparse SOURCE files are detected by a crude heuristic and the corresponding DEST file is made sparse as well. That is the behavior selected by --sparse=auto. Specify --sparse=always to create a sparse DEST file whenever the SOURCE file contains a long enough sequence of zero bytes. Use --sparse=never to inhibit creation of sparse files.
removes any trailing slashes from each SOURCE argument.
makes symbolic links instead of copying.
overrides the usual backup suffix.
moves all SOURCE arguments into DIRECTORY.
copies only when the SOURCE file is newer than the destination file or when the destination file is missing.
explains what is being done.
stays on this file system.
outputs version information and exits.
cpio is as specified in the Single UNIX Specification but with differences as listed below.
Certain aspects of internationalized filename globbing are optional; see Internationalization and Filename Globbing>.
crontab is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
specifies the name of the user whose crontab is to be used, rather than the user who is running crontab.
csplit is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
uses sprintf FORMAT instead of %d.
are equivalent to the -s option as specified in the Single UNIX Specification.
removes empty output files.
outputs version information and exit.
cut is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
outputs version information and exits.
date is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays time described by STRING, not now.
is like --date once for each line of DATEFILE.
displays the last modification time of FILE.
outputs RFC2822-compliant date string.
sets time described by STRING.
is equivalent to the -u option as specified in the Single UNIX Specification.
outputs version information and exits.
df is as specified in the Single UNIX Specification but with the following differences.
If the -k option is not specified, disk space is shown in unspecified units. Applications should specify -k.
If an argument is the absolute file name of a disk device node containing a mounted filesystem, df shows the space available on that filesystem rather than on the filesystem containing the device node (which is always the root filesystem).
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
includes filesystems having 0 blocks.
uses SIZE-byte blocks.
prints sizes in human-readable format (e.g., 1K, 234M, 2G).
prints sizes in human-readable format, but uses powers of 1000 (not 1024).
lists inode information instead of block usage.
limits listing to local filesystems.
is like --block-size=1048576
does not invoke sync before getting usage info. (default)
uses the POSIX output format.
invokes sync before getting usage info.
has unspecified behavior.
is same as -P as specified in the Single UNIX Specification.
invokes sync before getting usage info.
limits listing to filesystems of type TYPE. (Different from behavior as specified in the Single UNIX Specification.)
prints filesystem type.
limits listing to filesystems not of type TYPE.
diff is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
treats all files as text and compares them line-by-line, even if they do not seem to be text.
ignores changes that just insert or delete blank lines.
reports only whether the files differ, not the details of the differences.
is equivalent to -C as specified in the Single UNIX Specification.
changes the algorithm to perhaps find a smaller set of changes; this makes diff slower (sometimes much slower).
makes merged if-then-else format output conditional on the preprocessor macro name.
is equivalent to -e as specified in the Single UNIX Specification.
when comparing directories, ignores files and subdirectories whose basenames match pattern.
when comparing directories, ignores files and subdirectories whose basenames match any pattern contained in file.
expands tabs to spaces in the output to preserve the alignment of tabs in the input files.
in context and unified format, shows some of the last preceding line that matches regexp for each hunk of differences.
makes output that looks vaguely like an ed script, but has changes in the order they appear in the file.
uses heuristics to speed handling of large files that have numerous scattered small changes.
does not discard the last lines lines of the common prefix and the first lines lines of the common suffix.
ignores changes in case; considers upper and lower case letters equivalent.
ignores changes that just insert or delete lines that match regexp.
makes merged if-then-else format output conditional on the preprocessor macro name.
ignores white space when comparing lines.
ignores changes in case; considers upper and lower case to be the same.
ignores changes that just insert or delete lines that match regexp.
ignores changes in amount of white space.
outputs a tab rather than a space before the text of a line in normal or context format. This causes the alignment of tabs in the line to look normal.
passes the output through pr to paginate it.
ignores changes in case; considers upper and lower case to be the same.
clears the ring buffer contents after printing.
sets the level at which logging of messages is done to the console.
uses a buffer of bufsize to query the kernel ring buffer. This is 8196 by default (this matches the default kernel syslog buffer size in 2.0.33 and 2.1.103). If you have set the kernel buffer to larger than the default then this option can be used to view the entire buffer.
du is as specified in the Single UNIX Specification but with differences as listed below.
If the -k option is not specified, disk space is shown in unspecified units. Applications should specify -k.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
uses SIZE-byte blocks.
prints size in bytes.
produces a grand total.
dereferences PATHs when symbolic link.
prints sizes in human-readable format (e.g., 1K, 234M, 2G).
is equivalent to --block-size=1024.
counts sizes many times if hard-linked.
dereferences all symbolic links.
is equivalent to --block-size=1048576.
has unspecified behavior.
does not include size of subdirectories.
excludes files that match any pattern in FILE.
excludes files that match PAT.
prints the total for a directory (or file, with --all) only if it is N or fewer levels below the command line argument; --max-depth=0 is the same as --summarize.
outputs version information and exits.
The echo command is as specified in the Single UNIX Specification but with the following differences.
Unlike the behavior specified in the Single UNIX Specification, whether echo supports options is implementation defined. The behavior of echo if any arguments contain backslashes is also implementation defined. Applications must not run echo with a first argument starting with a hyphen, or with any arguments containing backslashes; they must use printf in those cases.
env is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -i.
removes variable from the environment.
expand is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
does not convert TABs after non-whitespace.
supplements behavior as specified in the Single UNIX Specification by allowing argument to specify the number of characters-apart tabs are (instead of 8).
expr is as specified in the Single UNIX Specification but supports extra operands as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
The following are extra operands:
is same as STRING : REGEXP.
is substring of STRING, POS counted from 1.
is index in STRING where any CHARS is found, or 0.
is length of STRING.
interprets TOKEN as a string, even if it is a keyword like match or an operator like /.
file is as specified in the Single UNIX Specification but with additional options as specified below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
does not prepend filenames to output lines.
causes a checking printout of the parsed form of the magic file. This is usually used in conjunction with -m to debug a new magic file before installing it.
reads the names of the files to be examined from namefile (one per line) before the argument list. Either namefile or at least one filename argument must be present; to test the standard input, use `-' as a filename argument.
causes the file command to output mime type strings rather than the more traditional human-readable ones. Thus, it may say `text/plain; charset=us-ascii' rather than `ASCII text'. In order for this option to work, file changes the way it handles files recognized by the command itself (such as many of the text file types, directories, etc.), and makes use of an alternative `magic' file.
does not stop at the first match, keeps going.
specifies an alternate list of files containing magic numbers. This can be a single file, or a colon-separated list of files.
forces stdout to be flushed after checking each file. This is only useful if checking a list of files. It is intended to be used by programs that want filetype output from a pipe.
tries to look inside compressed files.
causes symlinks to be followed.
causes block or character special files (that are potentially problematic when processed by file) to be read in addition to the argument files ordinarily identified by stat(2). This is useful for determining the filesystem types of the data in raw disk partitions, which are block special files. This option also causes file to disregard the file size as reported by stat(2) since on some systems it reports a zero size for raw disk partitions.
find is as specified in the Single UNIX Specification but with additional options as specified below.
Certain aspects of internationalized filename globbing are optional; see Internationalization and Filename Globbing>.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
measures times (for -amin, -atime, -cmin, -ctime, -mmin, and -mtime) from the beginning of today rather than from 24 hours ago.
dereferences symbolic links. Implies -noleaf.
descends at most levels (a non-negative integer) levels of directories below the command line arguments. -maxdepth 0 means only apply the tests and actions to the command line arguments.
applies no tests or actions at levels less than levels (a non-negative integer). -mindepth 1 means process all files except the command line arguments.
is equivalent to -xdev as specified in the Single UNIX Specification.
does not optimize by assuming that directories contain 2 fewer subdirectories than their hard link count.
prints the find version number and exits.
displays files last accessed n minutes ago.
displays files last accessed more recently than file was modified. -anewer is affected by -follow only if -follow comes before -anewer on the command line.
displays files with status last changed n minutes ago.
displays files with status last changed more recently than file was modified. -cnewer is affected by -follow only if -follow comes before -cnewer on the command line.
displays files that are empty and are either regular or directory files.
is always false.
displays files on a filesystem of type type.
displays files with numeric group ID of n.
is like -lname, but the match is case-insensitive.
is like -name, but the match is case-insensitive.
displays files with inode number of n.
is like -path, but the match is case-insensitive.
is like -regex, but the match is case-insensitive.
displays files that are symbolic links whose contents match shell pattern pattern. The metacharacters do not treat / or . specially.
displays files with data last modified n minutes ago.
displays files with numeric user ID corresponding to no user.
displays files with numeric group ID corresponding to no group.
displays files with name matching shell pattern pattern.
displays files with any of the permission bits mode set.
displays files with names matching regular expression pattern. This is a match on the whole path, not a search.
is always true.
supplements types as specified in the Single UNIX Specification with the letters l and s (symbolic links and sockets, respectively).
displays files with numeric user ID of n.
displays files last accessed n days after status was last changed.
is equivalent to -type unless the file is a symbolic link. For symbolic links: if -follow has not been given, true if the file is a link to a file of type c; if -follow has been given, true if c is l. In other words, for symbolic links, -xtype checks the type of the file that -type does not check.
is true. Is like -ls but write to file like -fprint.
is true. Prints the full file name into file file. If file does not exist when find is run, it is created; if it does exist, it is truncated. The file names `/dev/stdout' and `/dev/stderr' are handled specially; they refer to the standard output and standard error output, respectively.
is true. Is like -print0 but write to file like -fprint.
is true. Like -printf but write to file like -fprint.
is true. Prints the full file name on the standard output, followed by a null character. This allows file names that contain newlines to be correctly interpreted by programs that process the find output.
is true. Prints format on the standard output, interpreting \ escapes and % directives. Field widths and precisions can be specified as with the printf C function. Unlike -print, -printf does not add a newline at the end of the string. The escapes and directives are:
alarm bell.
backspace.
stops printing from this format immediately and flushes the output.
form feed.
newline.
carriage return.
horizontal tab.
vertical tab.
literal backslash (\).
literal percent sign.
last file access time in the format returned by the C ctime function.
last file access time in the format specified by k, which is either @ or a directive for the C strftime function. The possible values for k are listed below; some of them might not be available on all systems, due to differences in strftime between systems.
seconds since Jan. 1, 1970, 00:00 GMT.
hour (00..23).
hour (01..12).
hour ( 0..23).
hour ( 1..12).
minute (00..59).
locale's AM or PM.
time, 12-hour (hh:mm:ss [AP]M).
second (00..61).
time, 24-hour (hh:mm:ss).
locale's time representation (H:M:S).
time zone (e.g., EDT), or nothing if no time zone is determinable.
locale's abbreviated weekday name (Sun..Sat).
locale's full weekday name, variable length (Sunday..Saturday).
locale's abbreviated month name (Jan..Dec).
locale's full month name, variable.
locale's date and time (Sat Nov 04 12:02:33 EST 1989).
day of month (01..31).
date (mm/dd/yy).
same as b.
day of year (001.366).
month (01..12).
week number of year with Sunday as first day of week (00..53).
day of week (0..6).
week number of year with Monday as first day of week (00..53).
locale's date representation (mm/dd/yy).
last two digits of year (00..99).
year (1970...).
file's size in 512-byte blocks (rounded up).
last file status change time in the format returned by the C ctime function.
last file status change time in the format specified by k, which is the same as for %A.
file's depth in the directory tree; 0 means the file is a command line argument.
file's name with any leading directories removed (only the last element).
type of the filesystem the file is on; this value can be used for -fstype.
file's group name, or numeric group ID if the group has no name.
file's numeric group ID.
leading directories of file's name (all but the last element).
mommand line argument under which file was found.
file's inode number (in decimal).
file's size in 1K blocks (rounded up).
object of symbolic link (empty string if file is not a symbolic link).
file's permission bits (in octal).
number of hard links to file.
file's name.
file's name with the name of the command line argument under which it was found removed.
file's size in bytes.
file's last modification time in the format returned by the C ctime function.
file's last modification time in the format specified by k, which is the same as for %A.
file's user name, or numeric user ID if the user has no name.
file's numeric user ID.
is true. Lists current file in ls -dils format on standard output. The block counts are of 1K blocks, unless the environment variable POSIXLY_CORRECT is set, in which case 512-byte blocks are used.
The following operators are supported in order of decreasing precedence and override what is specified in the Single UNIX Specification.
force precedence.
true if expr is false
same as ! expr.
and (implied); expr2 is not evaluated if expr1 is false.
same as expr1 expr2.
same as expr1 expr2.
or; expr2 is not evaluated if expr1 is true.
same as expr1 -o expr2.
list; both expr1 and expr2 are always evaluated. The value of expr1 is discarded; the value of the list is the value of expr2.
fuser is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
shows all files specified on the command line. By default, only files that are accessed by at least one process are shown.
kills processes accessing the file. Unless changed with -signal, SIGKILL is sent. An fuser process never kills itself, but may kill other fuser processes. The effective user ID of the process executing fuser is set to its real user ID before attempting to kill.
asks the user for confirmation before killing a process. This option is silently ignored if -k is not present too.
lists all known signal names.
name specifies a file on a mounted file system or a block device that is mounted. All processes accessing files on that file system are listed. If a directory file is specified, it is automatically changed to name/. to use any file system that might be mounted on that directory.
selects a different name space. The name spaces file (file names, the default), udp (local UDP ports), and tcp (local TCP ports) are supported. For ports, either the port number or the symbolic name can be specified. If there is no ambiguity, the shortcut notation name/space (e.g. name/proto) can be used.
operates silently. -u and -v are ignored in this mode. -a must not be used with -s.
uses the specified signal instead of SIGKILL when killing processes. Signals can be specified either by name (e.g. -HUP) or by number (e.g. -1).
verbose mode.
displays version information.
resets all options and set the signal back to SIGKILL.
gencat is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
creates C header file NAME containing symbol definitions.
does not use existing catalog, forces new output file.
writes output to file NAME.
The gettext utility retrieves a translated text string corresponding to string msgid from a message object generated with msgfmt utility.
The message object name is derived from the optional argument textdomain if present, otherwise from the TEXTDOMAIN environment. If no domain is specified, or if a corresponding string cannot be found, gettext prints msgid.
Ordinarily gettext looks for its message object in dirname/lang/LC_MESSAGES where dirname is the implementation-defined default directory and lang is the locale name. If present, the TEXTDOMAINDIR environment variable replaces the dirname.
This utility interprets C escape sequences such as \t for tab. Use \\ to print a backslash. To produce a message on a line of its own, either put a \n at the end of msgid, or use this command in conjunction with printf utility.
When used with the -s option the utility behaves like the echo utility. But it does not simply copy its arguments to standard output. Instead those messages found in the selected catalog are translated.
Retrieve translated messages from domainname.
Enable expansion of some escape sequences.
Suppress trailing newline.
The following operands are supported:
A domain name used to retrieve the messages.
A key to retrieve the localized message.
Specifies one or more locale names. See gettext message handling functions for more information.
Specifies locale name.
Specifies messaging locale, and if present overrides LANG for messages.
Specifies the text domain name, which is identical to the message object filename without .mo suffix.
Specifies the pathname to the message database, and if present replaces the implementation-defined default directory.
grep is as specified in the Single UNIX Specification but with differences as listed below.
Certain aspects of internationalized regular expressions are optional; see Internationalization and Regular Expressions>.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
prints NUM lines of trailing context after matching lines.
processes a binary file as if it were text; this is equivalent to the --binary-files=text option.
prints NUM lines of leading context before matching lines.
prints NUM lines (default 2) of output context.
prints the byte offset within the input file before each line of output.
assumes that the file is of type TYPE if its first few bytes indicate it contains binary data. By default, TYPE is binary, and grep normally outputs either a one-line message saying that a binary file matches, or no message if there is no match. If TYPE is without-match, grep assumes that a binary file does not match; this is equivalent to the -I option. If TYPE is text, grep processes a binary file as if it were text; this is equivalent to the -a option. Warning: grep --binary-files=text might output binary garbage, which can have nasty side effects if the output is a terminal and if the terminal driver interprets some of it as commands.
suppresses normal output; instead, prints a count of matching lines for each input file. With the -v, --invert-match option (see below), counts non-matching lines.
processes the input file as a directory with ACTION. By default, ACTION is read, which means that directories are read just as if they were ordinary files. If ACTION is skip, directories are silently skipped. If ACTION is recurse, grep reads all files under each directory, recursively; this is equivalent to the -r option.
interprets PATTERN as a basic regular expression. (default)
prints the filename for each match.
suppresses the prefixing of filenames on output when multiple files are searched.
processes a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option.
equivalent to -i.
suppresses normal output; instead, prints the name of each input file from which no output would normally have been printed. The scanning will stop on the first match.
equivalent to -l.
uses the mmap(2) system call to read input, if possible, instead of the default read(2) system call. In some situations, --mmap yields better performance. However, --mmap can cause undefined behavior (including core dumps) if an input file shrinks while grep is operating, or if an I/O error occurs.
equivalent to -n.
equivalent to -q.
reads all files under each directory, recursively; this is equivalent to the -d recurse option.
equivalent to -s.
prints the version number of grep to standard error.
equivalent to -v.
selects only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character. Similarly, it must be either at the end of the line or followed by a non-word constituent character. Word-constituent characters are letters, digits, and the underscore.
equivalent to -x.
outputs a zero byte (the ASCII NUL character) instead of the character that normally follows a file name.
specifies the numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative.
groupdel modifies the system account files, deleting all entries that refer to group. The named group must exist.
specifies the numerical value of the group's ID. This value must be unique, unless the -o option is used. The value must be non-negative. Any files which the old group ID is the file group ID must have the file group ID changed manually.
changes the name of the group from group to group_name.
groups displays the current group ID names or values. If the value does not have a corresponding entry in the group database, the value will be displayed as the numerical group value. The optional user parameter will display the groups for the named user.
gzip tries to reduce the size of the named files. Whenever possible, each file is replaced by one with the extension .gz, while keeping the same ownership modes, access and modification times. If no files are specified, or if a file name is "-", the standard input is compressed to the standard output. gzip will only attempt to compress regular files. In particular, it will ignore symbolic links.
When compressing, gzip uses the deflate algorithm specified in RFC1951 and stores the result in a file using the gzip file format specified in RFC1952.
does nothing on Linux systems.
writes output on standard output; keeps original files unchanged. If there are several input files, the output consists of a sequence of independently compressed members. To obtain better compression, concatenate all input files before compressing them.
decompresses.
forces compression or decompression even if the file has multiple links or the corresponding file already exists, or if the compressed data is read from or written to a terminal. If the input data is not in a format recognized by gzip, and if the option --stdout is also given, copy the input data without change to the standard ouput: let gzip behave as cat. If -f is not given, and when not running in the background, gzip prompts to verify whether an existing file should be overwritten.
lists the compressed size, uncompressed size, ration and uncompressed name for each compressed file. Gives the uncompressed size as -1 for files not in gzip format. Additionally displays method, crc and timestamp for the uncompress file when used in combination with --verbose.
The compression methods currently supported are deflate, compress, lzh (SCO compress -H) and pack. The crc is given as ffffffff for a file not in gzip format.
With --name, the uncompressed name, date and time are those stored within the compress file, if present.
With --verbose, the size totals and compression ratio for all files is also displayed, unless some sizes are unknown. With --quiet, the title and totals lines are not displayed.
displays the gzip license and quit.
does not save the original file name and time stamp by default when compressing. (The original name is always saved if the name had to be truncated.) When decompressing, do not restore the original file name if present (remove only the gzip suffix from the compressed file name) and do not restore the original time stamp if present (copy it from the compressed file). This option is the default when decompressing.
always saves the original file name and time stamp when compressing; this is the default. When decompressing, restore the original file name and time stamp if present. This option is useful on systems which have a limit on file name length or when the time stamp has been lost after a file transfer.
suppresses all warnings.
travels the directory structure recursively. If any of the file names specified on the command line are directories, gzip will descend into the directory and compress all the files it finds there (or decompress them in the case of gunzip).
uses suffix .suf instead of .gz.
checks the compressed file integrity.
displays the name and percentage reduction for each file compressed or decompressed.
displays the version number and compilation options, then quits.
regulates the speed of compression using the specified digit #, where -1 or --fast indicates the fastest compression method (less compression) and -9 or --best indicates the slowest compression method (best compression). The default compression level is -6 (that is, biased towards high compression at expense of speed).
head is as specified in the Single UNIX Specification but with additional options as specified below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
prints first SIZE bytes. SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.
is equivalent to -n.
does not print headers giving file names.
prints headers giving file names.
hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn] [-i] [--ip-address] [--long] [-s] [--short] [-y] [--yp] [--nis] hostname [-v] [-F filename] [--file filename] [hostname] hostname [-v] [-h] [--help] [-V] [--version] |
hostname is used to either set or display the current host or domain name of the system. This name is used by many of the networking programs to identify the machine. The domain name is also used by NIS/YP.
When called without any arguments, the program displays the name of the system as returned by the gethostname(2) function.
When called with one argument or with the --file option, the commands set the host name or the NIS/YP domain name. Note, that only the super-user can change the names.
displays the alias name of the host (if used).
displays the name of the DNS domain.
reads the host name from the specified file. Comments (lines starting with a #) are ignored.
displays the FQDN (Fully Qualified Domain Name).
displays the IP address(es) of the host.
displays the short host name. This is the host name cut at the first dot.
prints version information on standard output and exits successfully.
tells what's going on.
displays the NIS domain name. If a parameter is given (or --file name) then root can also set a new NIS domain.
The specification for "iconv" is as specified in the Single UNIX Specification, Version 2 but with the following differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
lists known coded character sets (synonym for the -l option which is found in the Single UNIX Specification, Version 3 but not yet specified here).
write output to specified output file (instead of stdin).
prints progress information.
install [OPTION]... SOURCE DEST (1st format) install [OPTION]... SOURCE... DIRECTORY (2nd format) install -d [OPTION]... DIRECTORY... (3rd format) |
In the first two formats, copy SOURCE to DEST or multiple SOURCE(s) to the existing DIRECTORY, while setting permission modes and owner/group. In the third format, create all components of the given DIRECTORY(ies).
makes a backup of each existing destination file.
is like --backup, but does not accept an argument.
treats all arguments as directory names; creates all components of the specified directories.
creates all leading components of DEST except the last, then copies SOURCE to DEST; useful in the 1st format.
sets group ownership, instead of process' current group.
sets permission mode (as in chmod), instead of rwxr-xr-x.
sets ownership (super-user only).
applies access/modification times of SOURCE files to corresponding destination files.
strips symbol tables, only for 1st and 2nd formats.
overrides the usual backup suffix.
prints the name of each directory as it is created.
install_initd installs an init.d file that has been copied to the /etc/init.d location or symlink. In the postinstall script of a package, the program /usr/lib/lsb/install_initd configures a distribution's boot script system to call the init.d file of the package at an appropriate time. See also the Section called Installation and removal of init.d files in Chapter 24.
ipcs provides information on the ipc facilities for which the calling process has read access.
In some implementations of ipcs the -a option will print all information available. In other implementations the -a option will print all resource types. Therefore, applications must not use the -a option.
Some implements of ipcs implement more output formats than are specified here. These options are not consistent between differing implementations of ipcs. Therefore, only the -t -c and -p option flags may be used. At least one of the -t -c and -p options must be specified.
killall sends a signal to all processes running any of the specified commands. If no signal name is specified, SIGTERM is sent.
Signals can be specified either by name (e.g. -HUP) or by number (e.g. -1). Signal 0 (check if a process exists) can only be specified by number.
If the command name contains a slash (/), processes executing that particular file will be selected for killing, independent of their name.
killall returns a non-zero return code if no process has been killed for any of the listed commands. If at least one process has been killed for each command, killall returns zero.
A killall process never kills itself (but may kill other killall processes).
requires an exact match for very long names. If a command name is longer than 15 characters, the full name may be unavailable (i.e. it is swapped out). In this case, killall will kill everything that matches within the first 15 characters. With -e, such entries are skipped. killall prints a message for each skipped entry if -v is specified in addition to -e.
kills the process group to which the process belongs. The kill signal is only sent once per group, even if multiple processes belonging to the same process group were found.
asks interactively for confirmation before killing.
lists all known signal names.
does not complain if no processes were killed.
reports if the signal was successfully sent.
displays version information.
ln is as specified in the Single UNIX Specification, Version 2 but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
makes a backup of each existing destination file.
treats destination that is a symlink to a directory as if it were a normal file.
prompts whether to remove destinations.
synonym for -s.
overrides the usual backup suffix.
moves all SOURCE arguments into directory DIR.
prints name of each file before linking.
outputs version information and exits.
The backup suffix is ~, unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:
never makes backups (even if --backup is given).
makes numbered backups.
numbered if numbered backups exist, simple otherwise
always makes simple backups.
localedef is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -f.
is equivalent to -i.
is equivalent to -c.
generates extra warnings about errors that are normally ignored.
suppresses all notifications and warnings, and reports only fatal errors.
lpr uses a spooling daemon to print the named files when facilities become available. If no names appear, the standard input is assumed.
identifies binary data that is not to be filtered but sent as raw input to printer.
formats with "pr" before sending to printer.
sends output to the printer named printer instead of the default printer.
suppresses header page.
uses symbolic links.
specifies copies as the number of copies to print.
specifies name as the job name for the header page.
specifies title as the title used for "pr".
in addition to the Single UNIX Specification behavior of printing a slash for a directory, ls -p may display other characters for other file types.
Certain aspects of internationalized filename globbing are optional; see Internationalization and Filename Globbing>.
The lsb_release command prints certain LSB (Linux Standard Base) and Distribution information.
With no option, same as -v.
displays version of LSB against which distribution is compliant.
displays string id of distributor.
displays single line text description of distribution.
displays release number of distribution.
displays codename according to distribution release.
displays all of the above information.
displays all of the above information in short output format.
displays a human-readable help message.
m4 is as specified in the Single UNIX Specification but with differences as listed below.
forces a m4_ prefix to all builtins.
Add directory to the end of the search path for includes.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
outputs version information and exits.
unbuffers output, ignores interrupts.
stops execution after first warning.
suppresses some warnings for builtins.
is equivalent to -P.
is equivalent to -I.
is equivalent to -D.
deletes builtin NAME.
is equivalent to -s.
suppresses all GNU extensions.
sets symbol lookup hash table size.
changes artificial nesting limit.
produces a frozen state on FILE at end.
reloads a frozen state from FILE at start.
sets debug level (no FLAGS implies 'aeq'). FLAGS is any of:
traces for all macro calls, not only 'ed.
shows actual arguments.
shows expansion.
quotes values as necessary, with a or e flag.
shows before collect, after collect and after call.
adds a unique macro call id, useful with c flag.
says current input file name.
says current input line number.
shows results of path searches.
shows changes in input files.
is shorthand for all of the above flags.
traces NAME when it will be defined.
restricts macro tracing size.
redirects debug and traces output.
make is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
The GNU make command contains syntax extensions beyond those specified in the Single UNIX Specification. Use of these extensions is deprecated.
changes to directory dir before reading the makefiles or doing anything else. If multiple -C options are specified, each is interpreted relative to the previous one: -C / -C etc is equivalent to -C /etc. This is typically used with recursive invocations of make.
prints debugging information in addition to normal processing. The debugging information says which files are being considered for remaking, which filetimes are being compared and with what results, which files actually need to be remade, which implicit rules are considered and which are applied---everything interesting about how make decides what to do.
specifies a directory dir to search for included makefiles. If several -I options are used to specify several directories, the directories are searched in the order specified. Unlike the arguments to other flags of make, directories given with -I flags may come directly after the flag: -Idir is allowed, as well as -I dir. This syntax is allowed for compatibility with the C preprocessor's -I flag.
specifies the number of jobs (commands) to run simultaneously. If there is more than one -j option, the last one is effective. If the -j option is given without an argument, make will not limit the number of jobs that can run simultaneously.
specifies that no new jobs (commands) should be started if there are others jobs running and the load average is at least load (a floating-point number). With no argument, removes a previous load limit.
does not remake the file file even if it is older than its dependencies, and do not remake anything on account of changes in file. Essentially the file is treated as very old and its rules are ignored.
prints the version of the make program plus a copyright, a list of authors and a notice that there is no warranty.
prints a message containing the working directory before and after other processing. This may be use ful for tracking down errors from complicated nests of recursive make commands.
pretends that the target file has just been modified. When used with the -n flag, this shows you what would happen if you were to modify that file. Without -n, it is almost the same as running a touch command on the given file before running make, except that the modification time is changed only in the imagination of make.
man is as specified in the Single UNIX Specification. While additional features my be found in Linux versions of this command, the Single UNIX Specification specified interface is correctly and completely implemented.
For each file, write to standard output a line containing the MD5 checksum of that file, followed by one or more blank characters, followed by the name of the file. The MD5 checksum shall be calculated according to RFC1321 and output as 32 hexadecimal digits (as RFC1321 does).
If no file names are specified as operands, read from standard input and use "-" as the file name in the output.
uses binary mode.
checks md5sum of all files listed in file against the checksum listed in the same file. The actual format of that file is the same as output of md5sum. That is, each line in the file describes a file.
mkdir is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
prints a message for each created directory.
outputs version information and exits.
Create the special file NAME of the given TYPE.
MAJOR MINOR are forbidden for TYPE p, mandatory otherwise. TYPE may be:
creates a block (buffered) special file.
creates a character (unbuffered) special file.
creates a FIFO.
sets permission mode (as in chmod), not a=rw - umask.
outputs version information and exits.
mktemp takes the given file name template and overwrites a portion of it to create a file name. This file name is unique and suitable for use by the application.
fails silently if an error occurs. This is useful if a script does not want error output to go to standard error.
operates in `unsafe' mode. The temp file will be unlinked before mktemp exits. This is slightly better than mktemp(3) but still introduces a race condition. Use of this option is not encouraged.
more is as specified in the Single UNIX Specification but with differences as listed below.
The more command need not respect the LINES and COLUMNS environment variables.
The more command need not support the following interactive commands:
g |
G |
u |
control u |
control f |
newline |
j |
k |
r |
R |
m |
' (return to mark) |
/! |
? |
N |
:e |
:t |
control g |
ZZ |
specifies an integer which is the screen size (in lines).
has unspecified behavior.
has unspecified behavior.
has unspecified behavior.
Either (1) clear the whole screen and then display the text (instead of the usual scrolling behavior), or (2) provide the behavior specified by the Single UNIX Specification. In the latter case, the syntax is "-p command".
has unspecified behavior.
starts at line number num.
specifies a string that will be searched for before each file is displayed.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
prompts user with the message "[Press space to continue, 'q' to quit.]" and will display "[Press 'h' for instructions.]" instead of ringing the bell when an illegal key is pressed.
prevents the typical behavior where more treats ^L (form feed) as a special character and pauses after any line that contains a form feed.
counts logical, rather than screen lines (i.e., long lines are not folded).
The +num and +/string options are deprecated in the Single UNIX Specification, Version 2; however we must continue to specify them because util-linux-2.11f does not support the replacement (-p command). The +command option as found in the Single UNIX Specification is more general than what we specify, but util-linux-2.11f appears to only support the more specific +num and +/string forms.
mount [-hV] mount -a [-fFnrsvw] [-t vfstype] mount [-fnrsvw] [-o options [,...]] device | dir mount [-fnrsvw] [-t vfstype] [-o options] device dir |
Files are named in a big tree, the file hierarchy, rooted at /. These files can be spread out over several devices. mount serves to attach the file system found on some device to the big file tree. Conversely, umount(8) will detach it again.
outputs version.
invokes verbose mode.
mounts all filesystems (of the given types) mentioned in fstab.
combines with -a. to fork off a new incarnation of mount for each device. This will do the mounts on different devices or different NFS servers in parallel.
causes everything to be done except for the actual system call; if it's not obvious, this `fakes' mounting the file system.
mounts without writing in /etc/mtab. This is necessary for example when /etc is on a read-only file system.
tolerates sloppy mount options rather than failing. This will ignore mount options not supported by a filesystem type. Not all filesystems support this option.
mounts the file system read-only. A synonym is -o ro.
mounts the file system read/write. (default) A synonym is -o rw.
mounts the partition that has the specified label.
mounts the partition that has the specified uuid. These two options require the file /proc/partitions to exist.
indicates a file system type of vfstype.
More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken.
options are specified with a -o flag followed by a comma-separated string of options. Some of these options are only useful when they appear in the /etc/fstab file. The following options apply to any file system that is being mounted:
does all I/O to the file system asynchronously.
updates inode access time for each access. (default)
is mountable with -a.
uses default options: rw, suid, dev, exec, auto, nouser, and async.
interprets character or block special devices on the file system.
permits execution of binaries.
does not update inode access times on this file system.
is only explicitly mountable.
does not interpret character or block special devices on the file system.
does not allow execution of any binaries on the mounted file system.
does not allow set-user-identifier or set-group-identifier bits to take effect.
forbids an ordinary (i.e., non-root) user to mount the file system. (default)
attempts to remount an already-mounted file system. This is commonly used to change the mount flags for a file system, especially to make a read-only file system writable.
mounts the file system read-only.
mounts the file system read-write.
allows set-user-identifier or set-group-identifier bits to take effect.
does all I/O to the file system synchronously.
allows an ordinary user to mount the file system. This option implies the options noexec, nosuid, and nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).
msgfmt creates message object files from portable object files (filename.po), without changing the portable object files.
The .po file contains messages displayed to users by system utilities or by application programs. .po files can be edited, and the messages in them can be rewritten in any language supported by the system.
If input file is -, standard input is read.
The xgettext utility can be used to create .po files from script or programs.
msgfmt interprets data as characters according to the current setting of the LC_CTYPE locale category.
Add directory to list for input files search.
Use fuzzy entries in output. If this option is not specified, fuzzy entries are not included into the output.
Specify output file name as output-file. All domain directives and duplicate msgids in the .po file are ignored. If output-file is -, output is written to standard output.
Direct the utility to work strictly following the UniForum/Sun implementation. Currently this only affects the naming of the output file. If this option is not given the name of the output file is the same as the domain name. If the strict UniForum mode is enabled the suffix .mo is added to the file name if it is not already present.
Detect and diagnose input file anomalies which might represent translation errors. The msgid and msgstr strings are studied and compared. It is considered abnormal that one string starts or ends with a newline while the other does not.
Also, if the string represents a format string used in a printf-like function both strings should have the same number of % format specifiers, with matching types. If the flag c-format or possible-c-format appears in the special comment #, for this entry a check is performed. For example, the check will diagnose using %.*s against %s, or %d against %s, or %d against %x. It can even handle positional parameters.
The filename.po operands are treated as portable object files. The format of portable object files is defined in EXTENDED DESCRIPTION.
Specifies one or more locale names. See gettext message handling functions for more information.
Specifies locale name.
Specifies locale name for all categories. If defined, overrides LANG, LC_CTYPE and LC_MESSAGES.
Specifies locale name for character handling.
Specifies messaging locale, and if present overrides LANG for messages.
The standard output is not used unless the option-argument of the -o option is specified as -.
The format of portable object files (.po files) is defined as follows. Each .po file contains one or more lines, with each line containing either a comment or a statement. Comments start the line with a hash mark (#) and end with the newline character. All comments and empty lines are ignored. The format of a statement is:
directive value
Each directive starts at the beginning of the line and is separated from value by white space (such as one or more space or tab characters). value consists of one or more quoted strings separated by white space. If two or more strings are specified as value, they are normalized into single string using the string normalization syntax the same as the ISO C language. Use any of the following types of directives:
domain domainname
msgid message_identifier
msgid_plural untranslated_string_plural
msgstr message_string
msgstr[n] message_string
The behavior of the domain directive is affected by the options used. See OPTIONS for the behavior when the -o option is specified. If the -o option is not specified, the behavior of the domain directive is as follows: (1) All msgids from the beginning of each .po file to the first domain directive are put into a default message object file, messages (or messages.mo if --strict option is specified). (2) When msgfmt encounters a domain domainname directive in the .po file, all following msgids until the next domain directive are put into the message object file domainname (or domainname.mo if --strict option is specified). (3) Duplicate msgids are defined in the scope of each domain. That is, a msgid is considered a duplicate only if the identical msgid exists in the same domain. (4) All duplicate msgids are ignored.
The msgid directive specifies the value of a message identifier associated with the directive that follows it. The msgid_plural directive specifies the plural form message specified to the plural message handling functions ngettext(), dngettext() or dcngettext(). The message_identifier string identifies a target string to be used at retrieval time. Each statement containing a msgid directive must be followed by a statement containing a msgstr directive or msgstr[n] directives.
The msgstr directive specifies the target string associated with the message_identifier string declared in the immediately preceding msgid directive.
The msgstr[n] (where n = 0, 1, 2, ...) directive specifies the target string to be used with plural form handling functions ngettext(), dngettext() and dcngettext().
Message strings can contain the escape sequences \n for newline, \t for tab, \v for vertical tab, \b for backspace, \r for carriage return, \f for formfeed, \\ for backslash, \" for double quote, \ddd for octal bit pattern, and \xHH for hexadecimal bit pattern.
Comments should be in one of the following formats:
# translator-comments
#. automatic-comments
#: reference...
#, flag
The comments that starts with #. and #: are automatically generated by xgettext utility. The #: comments indicate the location of the msgid string in the source files in filename:line format. The #. comments are generated when -c option of the xgettext utility is specified. These comments are informative only and silently ignored by the msgfmt utility.
The #, comments requires one or more flags separated by comma (,) character. The following flags can be specified:
This flag can be generated by the msgmerge utility or can be inserted by the translator. It shows that the msgstr string might not be a correct translation (anymore). Only the translator can judge if the translation requires further modification, or is acceptable as is. Once satisfied with the translation, the translator then removes this fuzzy flag. The msgmerge programs inserts this when it combined the msgid and msgstr entries after fuzzy search only.
If this flag is specified, the msgfmt utility will not generate the entry for the immediately following msgid in the output message catalog.
The flags are automatically added by the xgettext utility and they should not be added manually. The c-format flag indicates that the msgid string is used as format string by printf-like functions. In case the c-format flag is given for a string the msgfmt utility does some more tests to check to validity of the translation.
The msgid entry with empty string ("") is called the header entry and treated specially. If the message string for the header entry contains nplurals=value, the value indicates the number of plural forms. For example, if nplurals=4, there are 4 plural forms. If nplurals is defined, there should be plural=expression in the same line, separated by a semicolon (;) character. The expression is a C language expression to determine which version of msgstr[n] to be used based on the value of n, the last argument of ngettext(), dngettext() or dcngettext(). For example:
nplurals=2; plural=n == 1 ? 0 : 1 |
indicates that there are 2 plural forms in the language; msgstr[0] is used if n == 1, otherwise msgstr[1] is used. Another example:
nplurals=3; plural=n==1 ? 0 : n==2 ? 1 : 2 |
indicates that there are 3 plural forms in the language; msgstr[0] is used if n == 1, msgstr[1] is used if n == 2, otherwise msgstr[2] is used.
If the header entry contains charset=codeset string, the codeset is used to indicate the codeset to be used to encode the message strings. If the output string's codeset is different from the message string's codeset, codeset conversion from the message strings's codeset to the output string's codeset will be performed upon the call of gettext(), dgettext(), dcgettext(), ngettext(), dngettext(), and dcngettext(). The output string's codeset is determined by the current locale's codeset (the return value of nl_langinfo(CODESET)) by default, and can be changed by the call of bind_textdomain_codeset().
Neither msgfmt nor any gettext() routine imposes a limit on the total length of a message. Installing message catalogs under the C locale is pointless, since they are ignored for the sake of efficiency.
Example 1: Examples of creating message objects from message files.
In this example module1.po and module2.po are portable message objects files.
example% cat module1.po # default domain "messages" msgid "msg 1" msgstr "msg 1 translation" # domain "help_domain" msgid "help 2" msgstr "help 2 translation" # domain "error_domain" msgid "error 3" msgstr "error 3 translation" example% cat module2.po # default domain "messages" msgid "mesg 4" msgstr "mesg 4 translation" # domain "error_domain" msgid "error 5" msgstr "error 5 translation" # domain "window_domain" msgid "window 6" msgstr "window 6 translation" |
The following command will produce the output files, messages, help_domain, and error_domain.
example% msgfmt module1.po |
The following command will produce the output files, messages, help_domain, error_domain, and window_domain.
example% msgfmt module1.po module2.po |
The following example will produce the output file hello.mo.
example% msgfmt -o hello.mo module1.po module2.po |
mv is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
makes backup before removal.
overrides the usual backup suffix.
removes any trailing slashes from each SOURCE argument.
overrides the usual backup suffix.
moves all SOURCE arguments into DIRECTORY.
moves only older or brand new non-directories.
explains what is being done.
outputs version information and exits.
The backup suffix is ~, unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:
makes no backups (even if --backup is given).
makes numbered backups.
is numbered if numbered backups exist, simple otherwise.
makes simple backups.
newgrp changes the current group ID during a login session. If the optional - flag is given, the user's environment will be reinitialized as though the user had logged in, otherwise the current environment, including current working directory, remains unchanged.
nice is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
increments priority by ADJUST first.
displays this help and exits.
outputs version information and exits.
nl is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
nohup is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
od is as specified in the Single UNIX Specification but with differences as listed below.
outputs BYTES bytes per output line.
accepts arguments in pre-POSIX form.
The LSB supports option intermixtures with the following pre-POSIX specifications:
is equivalent to -t a, selects named characters.
is equivalent to -t fF, selects floats.
is equivalent to -t x2, selects hexadecimal shorts.
is equivalent to -t d2, selects decimal shorts.
is equivalent to -t d4, selects decimal longs.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
passwd changes passwords for user and group accounts. A normal user may only change the password for their own account, the super user may change the password for any account. passwd also changes password expiry dates and intervals. Applications may not assume the format of prompts and anticipated input for user interaction, because they are unspecified.
sets the maximum number of days a password remains valid.
sets the minimum number of days before a password may be changed.
sets the number of days warning the user will receive before their password will expire.
disables an account after the password has been expired for the given number of days.
disables an account by changing the password to a value which matches no possible encrypted value.
re-enables an account by changing the password back to its previous value.
paste is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
patch is as specified in the Single UNIX Specification but with differences as listed below.
reads and write all files in binary mode, except for standard output and /dev/tty. This option has no effect on POSIX-compliant systems.
interprets the patch file as a unified context diff.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
backs up a file if the patch does not match the file exactly and if backups are not otherwise requested.
does not back up a file if the patch does not match the file exactly and if backups are not otherwise requested.
prefixes pref to a file name when generating its simple backup file name.
prints the results of applying the patches without actually changing any files.
removes output files that are empty after the patches have been applied. When patch removes a file, it also attempts to remove any empty ancestor directories.
skips patches whose headers do not say which file is to be patched; patches files even though they have the wrong version for the Prereq: line in the patch; assumes that patches are not reversed even if they look like they are.
sets the maximum fuzz factor. This option only applies to diffs that have context, and ignores up to that many lines in looking for places to install a hunk.
controls patch behavior when a file is under RCS or SCCS control and does not exist or is read-only and matches the default version. If num is positive, patch gets (or checks out) the file from the revision control system; if zero, patch ignores RCS and SCCS and does not get the file; and if negative, patch asks the user where to get the file.
works silently, unless an error occurs.
suppresses questions like -f, but makes some different assumptions: skips patches whose headers do not contain file names; skips patches for which the file has the wrong version for the Prereq: line in the patch; and assumes that patches are reversed if they look like they are.
sets the modification and access times of patched files from time stamps given in context diff headers, assuming that the context diff headers use local time.
prints out patch's revision header and patch level, and exits.
uses method to determine backup file names. The method can also be given by the PATCH_VERSION_CONTROL environment variable, which is overridden by this option.
outputs extra information about the work being done.
prefixes pref to the basename of a file name when generating its simple backup file name.
uses suffix as the simple backup suffix.
sets the modification and access times of patched files from time stamps given in context diff headers.
displays this help and exits.
pathchk is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
Return the process ID of a process which is running the program named on the command line.[53]
instructs the program to only return one pid.
causes the program to also return process id's of shells running the named scripts.
omits processes with specified process id.
pr is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
has unspecified behavior.
uses hat notation (^G) and octal backslash notation.
merges full lines, turns off -W line truncation, no column alignment.
starts counting with NUMBER at 1st line of first page printed.
separates columns by an optional STRING, doesn't use -S "STRING", -S only: No separator used without -S.
omits page headers and trailers, eliminates any pagination by form feeds set in input files.
uses octal backslash notation.
sets page width to PAGE_WIDTH (72) characters always, truncates lines, except -J option is set, no interference with -S or -s.
displays this help and exits.
outputs version information and exits.
printf is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
pwd is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays this help and exits.
outputs version information and exits.
remove_initd processes the removal of the modifications made to a distribution's boot script system by the install_initd program. This cleanup is performed in the preuninstall script of a package; however, the package manager is still responsible for removing the /etc/init.d file. See also the Section called Installation and removal of init.d files in Chapter 24.
renice is as specified in the Single UNIX Specification but with differences as listed below.
rm is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
explains what is being done.
displays this help and exits.
outputs version information and exits.
rmdir is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
ignores each failure that is solely because a directory is non-empty.
outputs a diagnostic for every directory processed.
displays this help and exits.
outputs version information and exits.
rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST rsync [OPTION]... [USER@]HOST:SRC DEST rsync [OPTION]... SRC [SRC]... DEST rsync [OPTION]... [USER@]HOST::SRC [DEST] rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST rsync [OPTION]... rsync://[USER@]HOST[:PORT]/SRC [DEST] |
The rsync command is expected to disappear from a future version of the LSB; applications should not rely on its presence.[54]
rsync behaves in much the same way that rcp does, but has many more options and uses its remote-update protocol to greatly speedup file transfers when the destination file already exists.
The remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package.
prints the rsync version number and exits.
increases the amount of information given during the transfer. By default, rsync works silently. A single -v gives information about what files are being transferred and a brief summary at the end. Two -v flags give information on what files are being skipped and slightly more information at the end.
decreases the amount of information given during the transfer, notably suppressing information messages from the remote server. This flag is useful when invoking rsync from cron.
turns off the skipping of files that are already the same length and have the same time-stamp.
forces the sender to checksum all files using a 128-bit MD4 checksum before transfer. The checksum is then explicitly checked on the receiver and any files of the same name which already exist and have the same checksum and size on the receiver are skipped. This option can be quite slow.
is a shortcut for specifying recursion and to preserve all attributes.
copies directories recursively. If not specified, rsync will not copy directories at all.
uses relative paths. This means that the full path names specified on the command line are sent to the server rather than just the last parts of the filenames.
renames preexisting destination files with a ~ extension as each file is transferred. You can control the backup suffix using the --suffix option.
combines with --backup to store all backups in the specified directory. This is very useful for incremental backups.
overrides the default backup suffix used with the -b option. The default is a ~.
skips any files for which the destination file already exists and has a date later than the source file.
recreates symbolic links on the remote system to be the same as the local system. Without this option, all symbolic links are skipped.
transfers the file referenced by a symbolic link, rather than recreating the link.
treats symbolic links that point outside the source tree like ordinary files. Absolute symlinks are also treated like ordinary files, and so are any symlinks in the source path itself when --relative is used.
ignores any symbolic links that point outside the destination tree. All absolute symlinks are also ignored.
recreates hard links on the remote system to be the same as the local system. Without this option hard links are treated like regular files.
does not use the incremental rsync algorithm and sends the whole file as-is instead. This may be useful when using rsync with a local machine.
updates the remote permissions to be the same as the local permissions.
updates the remote owner of the file to be the same as the local owner. This is only available to the super-user. Note that if the source system is a daemon using chroot, --numeric-ids is implied because the source system cannot get access to the usernames.
updates the remote group of the file to be the same as the local group. If the receiving system is not running as the super-user, only groups that the receiver is a member of will be preserved (by group name, not group id number).
transfers character and block device information to the remote system to recreate these devices. This option is only available to the super-user.
transfers modification times along with the files and updates them on the remote system.
does not perform any file transfers, but simply reports the actions it would have taken.
does not cross filesystem boundaries when recursing.
does not create any new files - only updates files that already exist on the destination.
does not delete more than NUM files or directories.
deletes any files on the receiving side that are not on the sending side. Files that are excluded from transfer are excluded from being deleted unless --delete-excluded is specified.
has no effect if directory recursion is not selected.
deletes any files on the receiving side that are excluded, in addition to deleting the files on the receiving side that are not on the sending side. (See --exclude.)
processes file deletions after transferring files, as opposed to the default behavior of deleting before the transfer to ensure that there is sufficient space on the receiving filesystem.
controls the block size used in the rsync algorithm. See the technical report for details.
specifies the remote shell program to use for communication between the local and remote copies of rsync.
You can also choose the remote shell program using the RSYNC_RSH environment variable.
specifies the path to the copy of rsync on the remote machine. Note that this is the full path to the binary, not just the directory that the binary is in.
selectively excludes certain files from the list of files to be transferred.
You may use as many --exclude options on the command line as you like to build up the list of files to exclude.
is like the --exclude option, but instead adds all exclude patterns listed in the file FILE to the exclude list. Blank lines in FILE and lines starting with “;“ or “#“ are ignored.
does not exclude the specified pattern of filenames. This is useful as it allows you to build up quite complex exclude/include rules.
specifies a list of include patterns from a file.
instructs rsync to use DIR as a scratch directory when creating temporary copies of the files transferred on the receiving side. The default behavior is to create the temporary files in the receiving directory.
compresses any data from the source file(s) that it sends to the destination machine.
transfers numeric group and user ids rather than using user and group names and mapping them at both ends.
By default rsync will use the user name and group name to determine what ownership to give files. The special uid 0 and the special group 0 are never mapped via user/group names even if --numeric-ids is not specified.
sets a maximum IO timeout in seconds. If no data is transferred for the specified time, rsync will exit. The default is 0, which means no timeout.
specifies an alternate TCP port number to use rather than the default port 873. This only has effect when using rsync to connect to a remote rsync daemon.
specifies whether rsync will use blocking IO when launching a remote shell transport. You may find this is needed for some remote shells that can“t handle the default non-blocking IO.
keeps any partially-transferred file in the event of an incomplete transfer (causing a subsequent transfer of the file remainder to process more rapidly) as opposed to the default behavior of rsync where an incomplete file is deleted.
prints information showing the progress of the transfer.
is equivalent to --partial --progress.
allows you to provide a password in a file for accessing a remote rsync server. Note that this option is only useful when accessing a rsync server using the built in transport, not when using a remote shell as the transport. The file must not be world readable. It should contain just the password as a single line.
specifies a maximum transfer rate in kilobytes per second. A value of zero specifies no limit.
sed is as specified in the Single UNIX Specification but with differences as listed below.
Certain aspects of internationalized regular expressions are optional; see Internationalization and Regular Expressions>.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
prints out the version of sed that is being run and a copyright notice, then exits.
is equivalent to -n.
is equivalent to -e.
is equivalent to -f.
To deliver electronic mail (email), applications shall support the interface provided by /usr/sbin/sendmail (described here). This interface shall be the default delivery method for applications.
This program sends an email message to one or more recipients, routing the message as necessary. This program is not intended as a user interface routine.
With no flags, sendmail reads its standard input up to an end-of-file or a line consisting only of a single dot and sends a copy of the message found there to all of the addresses listed. It determines the network(s) to use based on the syntax and contents of the addresses.
It is recommended that applications use as few flags as necessary, none if possible.
Some agents allow aliasing on the local system to be prevented by preceding the address with a backslash.
The format of messages must be as defined in RFC 2822.
reads mail from standard input and delivers to the recipient addresses. This is the default mode of operation.
lists information about messages currently in the input mail queue.
uses the SMTP protocol as described in RFC 2821; reads SMTP commands on standard input and writes SMTP responses on standard output.
Note that RFC 2821 specifies \r\n (CR-LF) be used at the end of each line, but pipes almost always use \n (LF) instead. To deal with this, agents will accept both \r\n and \n at the end of each line. When accepting \r\n, the \r before the \n is silently discarded.
explicitly sets the full name of the sender for incoming mail unless the message already contains a From: message header.
If the user running sendmail is not sufficiently trusted, then the actual sender may be indicated in the message, depending on the behavior of the agent.
explicitly sets the envelope sender address for incoming mail. If there is no From: header, the address specified in the From: header will also be set.
If the user running sendmail is not sufficiently trusted, then the actual sender will be indicated in the message.
ignores dots alone on lines by themselves in incoming messages. This option is ignored when -bs is used.
delivers any mail in background, if supported; otherwise ignored.
delivers any mail in foreground, if supported; otherwise ignored.
mails errors back to the sender. (default)
writes errors to the standard error output.
does not send notification of errors to the sender. This only works for mail delivered locally.
is equivalent to -i.
indicates that the sender of a message should receive a copy of the message if the sender appears in an alias expansion. Ignored if aliases are not supported.
reads the message to obtain recipients from the To:, Cc:, and Bcc: headers in the message instead of from the command arguments. If a Bcc: header is present, it is removed from the message unless there is no To: or Cc: header, in which case a Bcc: header with no data is created, in accordance with RFC 2822.
If there are any arguments, they specify addresses to which the message is not to be delivered. That is, the argument addresses are removed from the recipients list obtained from the headers. Note: some agents implement this behavior in reverse, adding addresses instead of removing them. Others may disallow addresses in argument list. Therefore, applications should not put addresses in the argument list if -t is used.
This option is sometimes ignored when not in -bm mode (the default).
successful completion on all addresses. This does not indicate successful delivery.
there was an error.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
The use of -i together with -bs is LSB-deprecated.
writes errors to the sender's terminal using the write(1) command, if he is logged in. Otherwise, mails errors back to the sender. If not supported, reports errors in the same manner as -oem.
is more verbose. Additional -v options may make the software increasingly verbose.
This page is believed to reflect functionality provided by smail, exim and other implementations, not just the sendmail implementation.
shutdown brings the system down in a secure way. All logged-in users are notified that the system is going down, and login(1) is blocked. It is possible to shut the system down immediately or after a specified delay. All processes are first notified that the system is going down by the signal SIGTERM. If neither the -h or the -r argument is used, then the default behavior is to take the system to runlevel one where administrative tasks can be run.
uses /etc/shutdown.allow.
tells init(8) to wait sec seconds between sending processes the warning and the kill signal, before changing to another runlevel.
doesn't really shutdown; only sends the warning messages to everybody.
reboots after shutdown.
halts after shutdown. Powering off after halting is unspecified.
skips fsck on reboot.
forces fsck on reboot.
cancels an already running shutdown. With this option, it is of course not possible to give the time argument, but you can enter a explanatory message on the command line that will be sent to all users.
specifies when to shut down.
The time argument can have different formats. First, it can be an absolute time in the format hh:mm, in which hh is the hour (1 or 2 digits) and mm is the minute of the hour (in two digits). Second, it can be in the format +m, in which m is the number of minutes to wait. The word now is an alias for +0.
If shutdown is called with a delay, it creates the advisory file /etc/nologin which causes programs such as login(1) to not allow new user logins. shutdown only removes this file if it is stopped before it can signal init (i.e. it is cancelled or something goes wrong). Otherwise it is the responsibility of the system shutdown or startup scripts to remove this file so that users can login.
specifies message to send all users.
The specification for sleep is as specified in the Single UNIX Specification but with the following differences.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
The operand to sleep in the Single UNIX Specification is the number of seconds to sleep for. As an extension, the number may be followed by s to keep seconds, m for minutes, h for hours or d for days.
displays help and exits.
outputs version information and exits.
sort is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
compares according to general numerical value, implies -b.
compares (unknown) < JAN < ... < DEC, imply -b.
stabilizes sort by disabling last resort comparison.
uses DIRECTORY for temporary files, not $TMPDIR or /tmp.
outputs version information and exits.
split is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -b.
puts at most SIZE bytes of lines per output file.
is equivalent to -l.
prints a diagnostic to standard error.
outputs version information and exits.
strip is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
treats the original objfile as a file with the object code format bfdname, and rewrites it in the same format.
treats the original objfile as a file with the object code format bfdname.
replaces objfile with a file in the output format bfdname.
removes the named section from the file. This option may be given more than once. Note that using this option inappropriately may make the object file unusable.
removes all symbols.
removes debugging symbols only.
strips all symbols that are not needed for relocation processing.
removes symbol symbolname from the source file. This option may be given more than once, and may be combined with other strip options.
puts the stripped output in file, rather than replacing the existing file. When this argument is used, only one objfile argument may be specified.
preserves the access and modification dates of the file.
removes non-global symbols.
removes compiler-generated local symbols. (These usually start with `L' or `.'.)
copies only symbol symbolname from the source file. This option may be given more than once.
does not copy symbol symbolname from the source file. This option may be given more than once, and may be combined with strip options other than -K.
lists all object files modified. In the case of archives, lists all members of the archive.
shows the version number for strip and exits.
su is used to become another user during a login session. Invoked without a username, su defaults to becoming the super user. The optional argument - may be used to provide an environment similar to what the user would expect had the user logged in directly.
The user will be prompted for a password, if appropriate. Invalid passwords will produce an error message. All attempts, both valid and invalid, are logged to detect abuses of the system. Applications may not assume the format of prompts and anticipated input for user interaction, because they are unspecified.
An optional command can be executed. This is done by the shell specified in /etc/passwd for the target user unless the -s or -m options are used. Any arguments supplied after the username will be passed to the invoked shell (shell must support the -c command line option in order for a command to be passed to it).
The current environment is passed to the new shell. The value of $PATH is reset to /bin:/usr/bin for normal users, or /sbin:/bin:/usr/sbin:/usr/bin for the super user. This may be changed with the ENV_PATH and ENV_SUPATH definitions in /etc/login.defs. When using the -m or -p options, the user's environment is not changed.
A subsystem login is indicated by the presense of a "*" as the first character of the login shell. The given home directory will be used as the root of a new filesystem which the user is actually logged into.
makes this a login shell.
passes command to the invoked shell. It is passed directly to the invoked shell (using the shell's -c option), so its syntax is whatever that shell will accept.
does not reset environment variables, and keeps the same shell if it is present in /etc/shells.
uses shell instead of the default in /etc/passwd. The shell specified must be present in /etc/shells.
The sum command is deprecated and is expected to disappear from a future version of the LSB; applications should use cksum or md5sum instead.
sum is as specified in the Single UNIX Specification but with differences as listed below.
uses System V sum algorithm, uses 512 bytes blocks.
outputs version information and exits.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
displays help and exits.
outputs version information and exits.
tail is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
tries to open a file even if it is inaccessible when tail starts or if it becomes inaccessible later; useful only with -f.
outputs the last N bytes.
is equivalent to -f.
is equivalent to -n.
performs open/fstat of a file specified by name (if there have been N consecutive iterations for which the size has remained the same) to determine if that file name is still associated with the same device/inode-number pair as before.
if a file has been specified by name, controls how long tail follows the descriptor of a file that continues growing at a rapid pace even after it is deleted or renamed. After detecting N consecutive size changes for a file, open/fstat the file to determine if that file name is still associated with the same device/inode-number pair as before.
terminates after process ID PID dies (only may be specified if -f is).
does not outputs headers giving file names.
sleeps S seconds between iterations (only may be specified if -f is).
outputs headers giving file names.
supports b, k and m as suffixes (referring to multipliers 512, 1024 and 1048576, respectively), as opposed to the c or l suffixes as stated in the Single UNIX Specification.
tar is as specified in the Single UNIX Specification, Version 2, but with differences as listed below.
Certain aspects of internationalized filename globbing are optional; see Internationalization and Filename Globbing>.
doesn't dump symlinks; dumps the files they point to.
filters the archive through gzip.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
appends tar files to an archive.
is equivalent to -c.
finds differences between archive and file system.
deletes from the archive. (Not for use on mag tapes!)
is equivalent to -r.
is equivalent to -t.
is equivalent to -u.
extracts files from an archive.
does not change access times on dumped files.
is equivalent to -b.
reblocks as we read; for reading 4.2BSD pipes.
changes to directory DIR.
prints directory names while reading the archive.
uses archive file or device F. The default is "-", meaning stdin/stdout.
specifies that archive file is local even if has a colon.
runs script at end of each tape; implies -M.
creates/lists/extracts old GNU-format incremental backup.
creates/lists/extracts new GNU-format incremental backup.
Synonym for -h.
ignores blocks of zeros in archive that normally mean EOF.
filters archive through bzip2; used to decompress .bz2 files.
doesn't exit with non-zero status on unreadable files.
keeps existing files; doesn't overwrite them from archive.
begins at file F in the archive.
stays in local file system when creating an archive.
changes tapes after writing N*1024 bytes.
is equivalent to -m.
creates/lists/extracts multi-volume archive.
stores only files newer than DATE.
writes a V7 format archive, rather than ANSI format. Note that for -o the behavior is different than what is specified in the Single UNIX Specification, Version 2.
extracts files to standard output.
extracts all protection information.
does not strip leading /s from file names.
is equivalent to -p -s.
shows record number within archive with each message.
removes files after adding them to the archive.
sorts list of names to extract to match archive.
creates extracted files with the same ownership.
handles sparse files efficiently.
gets names to extract or create from file F.
causes -T to read null-terminated names; disables -C.
prints total bytes written with --create.
is equivalent to -v.
creates archive with volume name NAME.
prints tar program version number.
asks for confirmation for every action.
attempts to verify the archive after writing it.
excludes file FILE.
excludes files listed in FILE.
filters the archive through compress.
Synonym for -z.
filters the archive through PROG (which must accept -d)
blocks the output of compression program for tapes.
specifies drive and density.
tee is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -a.
is equivalent to -i.
outputs version information and exits.
test is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
FILE exists and is owned by the effective group ID.
FILE exists and has its sticky bit set.
FILE exists and is a symbolic link.
FILE exists and is owned by the effective user ID.
FILE exists and is a socket.
touch is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -c.
parses STRING and uses it instead of current time.
is equivalent to -r.
sets time given by WORD: access atime use (same as -a) modify mtime (same as -m).
outputs version information and exits.
tr is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -c.
is equivalent to -d.
is equivalent to -s.
first truncates SET1 to length of SET2.
outputs version information and exits.
tty is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -s.
is equivalent to -d.
is equivalent to -s.
outputs version information and exits.
umount detaches the file system(s) mentioned from the file hierarchy. A file system is specified by giving the directory where it has been mounted.
print version and exits.
invokes verbose mode.
unmounts without writing in /etc/mtab.
tries to remount read-only if unmounting fails.
unmounts all of the file systems described in /etc/mtab except for the proc filesystem.
indicates that the actions should only be taken on file systems of the specified type. More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken.
forces unmount (in case of an unreachable NFS system).
uname is as specified in the Single UNIX Specification but with differences as listed below.
prints all information (not just the options specified in the Single UNIX Specification).
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -a.
is equivalent to -m.
is equivalent to -n.
is equivalent to -r.
prints the host processor type.
is equivalent to -s.
outputs version information and exits.
unexpand is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -t NUMBER.
is equivalent to -t LIST.
uniq is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -c.
is equivalent to -d.
prints all duplicate lines.
is equivalent to -f fields.
ignores differences in case when comparing.
is equivalent to -s.
is equivalent to -u.
compares no more than N characters in lines.
outputs version information and exits.
useradd [-c comment] [-d home_dir] [-g initial_group] [-G group[,...]] [-m [-k skeleton_dir]] [-p passwd] [-r] [-s shell] [-u uid [ -o]] login useradd -D [-g default_group] [-b default_home] [-s default_shell] |
When invoked without the -D option, useradd creates a new user account using the values specified on the command line and the default values from the system. The new user account will be entered into the system files as needed, the home directory will be created, and initial files copied, depending on the command line options.
When invoked with the -D option, useradd will either display the current default values, or update the default values from the command line. If no options are specified, useradd displays the current default values.
specifies the new user's password file comment field value.
creates the new user using home_dir as the value for the user's login directory. The default is to append the login name to default_home and use that as the login directory name.
specifies the group name or number of the user's initial login group. The group name must exist. A group number must refer to an already existing group. If -g is not specified, the implementation will follow the normal user default for that system. This may create a new group or choose a default group that normal users are placed in. Applications which require control of the groups into which a user is placed should specify -g.
specifies a list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. The default is for the user to belong only to the initial group.
specifies the user's home directory will be created if it does not exist. The files contained in skeleton_dir will be copied to the home directory if the -k option is used, otherwise the files contained in /etc/skel will be used instead. Any directories contained in skeleton_dir or /etc/skel will be created in the user's home directory as well. The -k option is only valid in conjunction with the -m option. The default is to not create the directory and to not copy any files.
is the encrypted password, as returned by crypt(3). The default is to disable the account.
creates a system account, that is, a user with a UID in the range reserved for system account users. If there is not a UID free in the reserved range the command will fail.
specifies the name of the user's login shell. The default is to leave this field blank, which causes the system to select the default login shell.
specifies the numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative. The default is the smallest ID value greater than 499 which is not yet used.
specifies the initial path prefix for a new user's home directory. The user's name will be affixed to the end of default_home to create the new directory name if the -d option is not used when creating a new account.
specifies the group name or ID for a new user's initial group. The named group must exist, and a numerical group ID must have an existing entry.
specifies the name of the new user's login shell. The named program will be used for all future new user accounts.
specifies the new user's password file comment field value.
The -D option will typically be used by system administration packages. Most applications should not change defaults which will affect other applications and users.
Delete the user account named login. If there is also a group named login, this command may delete the group as well, or may leave it alone.
removes files in the user's home directory along with the home directory itself. Files located in other file system will have to be searched for and deleted manually.
usermod [-c comment] [-d home_dir [ -m]] [-g initial_group] [-G group[,...]] [-l login_name] [-p passwd] [-s shell] [-u uid [ -o]] login |
specifies the new value of the user's password file comment field.
specifies the user's new login directory. If the -m option is given the contents of the current home directory will be moved to the new home directory, which is created if it does not already exist.
specifies the group name or number of the user's new initial login group. The group name must exist. A group number must refer to an already existing group.
specifies a list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. If the user is currently a member of a group which is not listed, the user will be removed from the group.
changes the name of the user from login to login_name. Nothing else is changed. In particular, the user's home directory name should probably be changed to reflect the new login name.
is the encrypted password, as returned by crypt(3).
specifies the name of the user's new login shell. Setting this field to blank causes the system to select the default login shell.
specifies the numerical value of the user's ID. This value must be unique, unless the -o option is used. The value must be non-negative. Any files which the user owns and which are located in the directory tree rooted at the user's home directory will have the file user ID changed automatically. Files outside of the user's home directory must be altered manually.
wc is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
is equivalent to -c.
is equivalent to -l.
prints the length of the longest line.
is equivalent to -w.
outputs version information and exits.
xargs is as specified in the Single UNIX Specification but with differences as listed below.
The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.
terminates input filenames by a null character instead of by whitespace, and the quotes and backslash are not special (every character is taken literally). Disables the end of file string, which is treated like any other argument. Useful when arguments might contain white space, quote marks, or backslashes. The GNU find -print0 option produces input suitable for this mode.
is equivalent to -e.
uses FORMAT as the format string that controls the output of time.
is equivalent to -l.
is equivalent to -n.
is equivalent to -p.
does not run this command if the standard input does not contain any nonblanks. Normally, the command is run once even if there is no input.
is equivalent to -s.
is equivalent to -t.
Prints the version number of xargs and exits.
is equivalent to -x.
runs up to max-procs processes at a time; the default is 1. If max-procs is 0, xargs will run as many processes as possible at a time. Use the -n option with -P; otherwise chances are that only one exec will be done.
When the shell searches for a command name in the PATH and finds a shell script, POSIX specifies that it shall pass the command name as argv[0] and in the child shell script, $0 shall be set from argv[0] (POSIX Standard, section 3.9.1.1, line 779-784).
However, for an LSB shell, the system may implement either this behavior or $0 may be set to an absolute pathname of the shell script. [58]
When PATH is used to locate a file for the dot utility, and a matching file is on the PATH but is not readable, the behavior is undefined (unlike POSIX which apparently requires the shell to continue searching through the rest of the PATH, POSIX Standard, section 3.14.4, line 1493-1498).
For filename globbing, globalized implementations shall provide the functionality defined in [POSIX.2], with the following exceptions:
Range expression (such as [a-z]) can be based on code point order instead of collating element order.
Equivalence class expression (such as [=a=]) and multi-character collating element expression (such as [.ch.]) are optional.
Handling of a multi-character collating element is optional.
Among the many shells existing at the time of evaluation, the two most compliant were Bash and Pdksh.
At the time of evaluation, Bash was found mostly compliant with the POSIX-1003.2 standard, and its maintainer demonstrated interest in bringing the shell to full compliance. Bash already enjoys wide use among shell users, and is even included in many distributions as the default shell. Further, the abundance of documentation found both on the Internet and in the bookstore makes Bash an easy shell to use.
Of course, shell scripts must avoid using bash extensions if they want to run on any LSB system.
The two exceptions to POSIX (concerning . and non-readable files, and argv[0]) in this section are to accommodate bash. The need for exceptions should be reviewed if bash changes or POSIX changes to remove the conflict. Future versions of this standard may also consider exceptions for pdksh or other almost-compliant shells, if they seem to be warranted.
A "user name" is a string that is used to identify a user. A "login name" is a user name that is associated with a system login. A "user id" is a non negative integer, which can be contained in an object of type uid_t, that is used to identify a system user.
When the identity of a user is associated with a process, a user ID value is referred to as a real user ID, or an effective user ID. [POSIX 1003.1-1996]
A "group name" is a string that is used to identify a set of users. A "group id" is a non negative integer, which can be contained in a object of type gid_t, that is used to identify a group of system users. Each system user is a member of at least one group. When the identity of a group is associated with a process, a group ID value is referred to as a real group ID, or an effective group ID. [POSIX 1003.1-1996]
The format of the User and Group databases is not specified. Programs may only read these databases using the provided API. Changes to these databases should be made using the provided commands.
Below is a table of required mnemonic user and group names. This specification makes no attempt to numerically assign uid or gid numbers. The exception is the uid and gid for "root" which are equal to 0.
Table 19-1. Required User & Group Names
User | Group | Comments |
root | root | Administrative user with no restrictions |
bin | bin | Legacy UID/GID[a] |
daemon | daemon | Legacy UID/GID[b] |
Notes: a. The 'bin' UID/GID is included for compatibility with legacy applications. New applications should no longer use the 'bin' UID/GID. b. The 'daemon' UID/GID was used as an unprivileged UID/GID for daemons to execute under in order to limit their access to the system. Generally daemons should now run under individual UID/GIDs in order to further partition daemons from one another. |
Below is a table of optional mnemonic user and group names. This specification makes no attempt to numerically assign uid or gid numbers. If the username exists on a system, then they should be in the suggested corresponding group. These user and group names are for use by distributions, not by applications.
Table 19-2. Optional User & Group Names
User | Group | Comments |
adm | adm | Administrative special privileges |
lp | lp | Printer special privileges |
sync | sync | Login to sync the system |
shutdown | shutdown | Login to shutdown the system |
halt | halt | Login to halt the system |
Mail special privileges | ||
news | news | News special privileges |
uucp | uucp | UUCP special privileges |
operator | root | Operator special privileges |
man | man | Man special privileges |
nobody | nobody | Used by NFS |
The differences in numeric values of the uids and gids between systems on a network can be reconciled via NIS, rdist(1), rsync(1), or ugidd(8). Only a minimum working set of "user names" and their corresponding "user groups" are required. Applications cannot assume non system user or group names will be defined.
Applications cannot assume any policy for the default umask or the default directory permissions a user may have. Applications should enforce user only file permissions on private files such as mailboxes. The location of the users home directory is also not defined by policy other than the recommendations of the FHS and must be obtained by the *pwnam(3) calls.
An LSB conforming implementation must adhere to the FHS 2.2.
An LSB conforming application is recommended to follow the FHS 2.2. If it does not follow the FHS 2.2 it should include documentation of the differences.
The FHS allows many components or subsystems to be optional. An application must check for the existence of an optional component before using it, and should behave in a reasonable manner if the optional component is not present.
The FHS requirement to locate the operating system kernel in either / or /boot does not apply if the operating system kernel does not exist as a file in the filesystem.
The FHS specifies certain behaviors for a variety of commands if they are present (for example, ping or python). However, LSB applications must not rely on any commands beyond those specified by the LSB. The mere existence of a command must not be used as an indication that the command behaves in any particular way.
The following directories or links need not be present: /etc/X11 /usr/bin/X11 /usr/lib/X11
The following must exist under /dev. Other devices may also exist in /dev. Device names may exist as symbolic links to other device nodes located in /dev or subdirectories of /dev. There is no requirement concerning major/minor number values.
All data written to this device is discarded. A read from this device will return an EOF condition.
This device is a source of zeroed out data. All data written to this device is discarded. A read from this device will return as many bytes containing the value zero as was requested.
This device is a synonym for the controlling terminal of a process. Once this device is opened, all reads and writes will behave as if the actual controlling terminal device had been opened.
In this Chapter "System" means an "LSB conforming implementation" and "application" means an "LSB conforming (third party vendor) application".
The system must grant to the application read and execute permissions needed to use all system interfaces (ABIs) mentioned in the LSB document and included standards.
The application should not depend on having directory write permission outside /tmp, /var/tmp, invoking user's home directory and /var/opt/package, (where package is the name of the application package).
The application should not depend on owning these directories.
For these directories the application should be able to work with directory write permissions restricted by the "sticky bit". (Which prevents the application from removing files owned by another user. This is classically done with /tmp, to prevent accidental deletion of "foreign" files.)
The application should not depend on file write permission on files not owned by the user it runs under with the exception of its personal inbox /var/mail/username
The application should not depend on having read permission to every file and directory.
The application should not depend on the suid/sgid permissions of a file not packaged with the application. Instead, the distribution is responsible for assuming that all system commands have the required permissions and work correctly.
Rationale: Let us make security officers happy. Let's give them the freedom to take sgid/suid perms away, as long as they do not break the system's functionality.
"Normal" applications should not depend on running as a privileged user.
Special applications that have a reason to run under a privileged user, should outline these reasons clearly in their documentation, if they are not obvious as in the case of a backup/restore program. Users of the application should be informed, that "this application demands security privileges, which could interfere with system security".
The application should not contain binary-only software that requires being run as root, as this makes security auditing harder or even impossible.
The application should not change permissions of files and directories that do not belong to its own package. To do so without a warning notice in the documentation is regarded as unfriendly act.
Applications that expect to be runnable from removable media should not depend on logging in as a privileged user, and should be prepared to deal with a restrictive environment. Examples of such restrictions could be default mount options that disable set-user/group-ID attributes, disabling block or character-special files on the medium, or remapping the user/group IDs of files away from 0. [59]
If the installation of an application requires the execution of programs with superuser privileges, such programs should also be supplied in a human-readable form.
Without this, the local system administrator would have to blindly trust a piece of software, particularly its security.
This section specifies behaviors in which there is optional behavior in one of the standards on which the LSB relies, and where the LSB requires a specific behavior. [60]
The fcntl() function shall detect EDEADLK, as described as optional behavior in the Single UNIX Specification.
The fcntl() function shall treat the "cmd" value -1 as invalid.
The "whence" value -1 shall be an invalid value for the lseek(), fseek() and fcntl() functions.
The value "-5" shall be an invalid signal number.
The opendir() function shall detect EMFILE and ENFILE, as described as optional behavior in the Single UNIX Specification.
The readdir() and closedir() functions shall detect EBADF, as described as optional behavior in the Single UNIX Specification.
If the sigaddset() or sigdelset() functions are passed an invalid signal number, they shall return with EINVAL. Implementations are only required to enforce this requirement for signal numbers which are specified to be invalid by this specification (such as the -5 mentioned above).
The START and STOP termios characters shall be changeable, as described as optional behavior in the "General Terminal Interface" section of the Single UNIX Specification.
The mode value "-1" to the access() function shall be treated as invalid.
A value of -1 shall be an invalid "_PC_..." value for pathconf().
A value of -1 shall be an invalid "_SC..." value for sysconf().
The link() function shall require access to the existing file in order to succeed, as described as optional behavior in the Single UNIX Specification.
Calling unlink() on a directory shall fail. Calling link() specifying a directory as the first argument shall fail. See also unlink>.
The link() function shall not work across file systems, and shall return with EXDEV as described as optional behavior in the Single UNIX Specification.
The nl_item value "-1" shall be invalid for nl_langinfo.
The value -1 shall be an invalid "_CS_..." value for confstr().
The value "z" shall be an invalid mode argument to popen().
Applications may either install a message catalog in the MO format as specified by the info page in version 0.10.40 of the gettext source package, or the application may execute the msgfmt command during it's installation to compile the message catalog. In either case, the resulting output must be located in the package's private area under /opt, and the application may use bindtextdomain() to specify this location.
Implementations shall support the POSIX and C locales as specified in the Single UNIX Specification.
Utilities that process regular expressions shall support Basic Regular Expressions and Extended Regular Expressions as specified in the Single UNIX Specification, with the following exceptions:
Range expression (such as [a-z]) can be based on code point order instead of collating element order.
Equivalence class expression (such as [=a=]) and multi-character collating element expression (such as [.ch.]) are optional.
Handling of a multi-character collating element is optional.
This affects at least the following utilities: grep (grep>) (including egrep), sed (sed>), and awk (awk>).
Utilities that perform filename globbing (also known as Pattern Matching Notation) shall do it as specified in the Single UNIX Specification, with the following exceptions:
Range expression (such as [a-z]) can be based on code point order instead of collating element order.
Equivalence class expression (such as [=a=]) and multi-character collating element expression (such as [.ch.]) are optional.
Handling of a multi-character collating element is optional.
This affects at least the following utilities: cpio (cpio>), find (find>), ls (ls>) and tar (tar>).
Packages may not touch the configuration file /etc/crontab, nor may they modify the files in /var/spool/cron/crontabs.
If a package wants to install a job that has to be executed via cron, it shall place a file in one of the following directories:
/etc/cron.daily /etc/cron.weekly /etc/cron.monthly |
As these directory names say, the files within them are executed on a daily, weekly, or monthly basis, respectively. See below for the rules concerning the names of these files.
If a certain job has to be executed more frequently than daily, the package shall install a file /etc/cron.d/cron-name tagged as configuration file. This file uses the same syntax as /etc/crontab and is processed by cron automatically.
It is recommended that files installed in any of these directories be scripts (shell scripts, Perl scripts, etc.) so that they may be modified by the local system administrator. In addition, they must be registered as configuration file.
The scripts in these directories have to check, if all necessary programs are installed before they try to execute them. Otherwise, problems will arise when a package was removed (but not purged), since the configuration files are kept on the system in this situation.
To avoid namespace conflicts in the /etc/cron.* directories, the filenames used by LSB-compliant packages in /etc/cron.daily, /etc/cron.weekly, /etc/cron.monthly, or /etc/cron.d must come from a managed namespace. These filenames may be assigned using one of the following methods:
Assigned namespace. This namespace consists of names which only use the character set [a-z0-9]. In order to avoid conflicts these cron script names must be reserved through the Linux Assigned Names and Numbers Authority (LANANA). Information about the LANANA may be found at www.lanana.org.
Commonly used names shall be reserved in advance; developers for projects should be encouraged reserve names from LANA, so that each distribution can use the same name, and to avoid conflicts with other projects.
Hierarchical namespace. This namespace consists of scripts names which look like this: [hier1]-[hier2]-...-[name], where name is again taken the character set [a-z0-9], and where there may be one or more [hier-n] components. [hier1] may either be an LSB provider name assigned by the LANANA, or it may be owners' DNS name in lower case, with at least one '.'. I.e., "debian.org", "staroffice.sun.com", etc. The LSB provider name assigned by LANANA must only consist of the ASCII characters [a-z0-9].
Reserved namespace. This namespace consists of script names which begin with the character '_', and is reserved for distribution use only. This namespace should be used for core packages only, and in general use of this namespace is highly discouraged.
Init files provided by LSB applications shall accept one argument, saying what to do:
start | start the service |
stop | stop the service |
restart | stop and restart the service if the service is already running, otherwise start the service |
reload | cause the configuration of the service to be reloaded without actually stopping and restarting the service |
force-reload | cause the configuration to be reloaded if the service supports this, otherwise restart the service |
status | print the current status of the service |
The start, stop, restart, force-reload, and status commands must be supported by all init files; the reload option is optional. Other init script actions may be defined by the init script.
Init files must ensure that they will behave sensibly if invoked with start when the service is already running, or with stop when it isn't, and that they don't kill unfortunately-named user processes. The best way to achieve this is to use the init-script functions provided by /lib/lsb/init-functions.
If a service reloads its configuration automatically (as in the case of cron, for example), the reload option of the init file must behave as if the configuration has been reloaded successfully.
These executable files must not fail obscurely when the configuration files remain but the package has been removed, as the default in [the packaging system] is to leave configuration files on the system after the package has been removed. Only when it is executed with the [purge] option will [the packaging system] remove configuration files. Therefore, you should include a test statement at the top of the file, like this:
test -f program-executed-later-in-file || exit 5 |
If the status command is given, the init script will return the following exit status codes.
0 | program is running or service is OK |
1 | program is dead and /var/run pid file exists |
2 | program is dead and /var/lock lock file exists |
3 | program is stopped |
4 | program or service status is unknown |
5-99 | reserved for future LSB use |
100-149 | reserved for distribution use |
150-199 | reserved for application use |
200-254 | reserved |
In the case of init script commands other than "status" (i.e., "start", "stop", "restart", "reload", and "force-reload"), the init script must return an exit status of zero if the action described by the argument has been successful. Otherwise, the exit status shall be non-zero, as defined below. In addition to straightforward success, the following situations are also to be considered successful:
restarting a service (instead of reloading it) with the "force-reload" argument
running "start" on a service already running
running "stop" on a service already stopped or not running
running "restart" on a service already stopped or not running
In case of an error, while processing any init script action except for "status", the init script must print an error message and return one of the following non-zero exit status codes.
1 | generic or unspecified error (current practice) |
2 | invalid or excess argument(s) |
3 | unimplemented feature (for example, "reload") |
4 | user had insufficient privilege |
5 | program is not installed |
6 | program is not configured |
7 | program is not running |
8-99 | reserved for future LSB use |
100-149 | reserved for distribution use |
150-199 | reserved for application use |
200-254 | reserved |
All error messages must be printed on standard error. All status messages must be printed on standard output. (This does not prevent scripts from calling the logging functions such as log_failure_msg).
Since init files may be run manually by a system administrator with non-standard environment variable values for PATH, USER, LOGNAME, etc. init files must not depend on the values of these environment variables. They should set them to some known/default values if they are needed.
LSB applications which need to execute script(s) at bootup and/or shutdown may provide one or more init.d files. These files are installed by the install_initd program described below, which copies it into a standard directory and makes whatever other adjustments (creation of symlinks, creation of entries in a database, etc.) are necessary so that the script can be run at boot-time. [62]
In the init.d file, information about the shell script shall be delimited by the lines "### BEGIN INIT INFO" and "### END INIT INFO". These delimiter lines may containg trailing whitespace, which shall be ignored. Inside this block there shall be lines of the form "# {keyword}: [arg1] [arg2] ...". (All lines inside this block start with a hash ('#') character in the first column, so that shell treats them as comments.) There must be exactly one space character between "#" and the keyword.[63] The following keywords, with their arguments are defined in this specification:
# Provides: boot_facility_1 [ boot_facility_2 ...] # Required-Start: boot_facility_1 [ boot_facility_2 ...] # Required-Stop: boot_facility_1 [ boot_facility_2 ...] # Default-Start: run_level_1 [ run_level_2 ...] # Default-Stop: run_level_1 [ run_level_2 ...] # Short-Description: short_description # Description: multiline_description |
Additional keywords may be defined in future LSB specifications. Distributions may define local extensions by using the prefix "X-[distribution name]" --- for example, "X-RedHat-foobardecl", or "X-Debian-xyzzydecl".
An init.d shell script may declare using the "Required-Start: " header that it must not be run until certain boot facilities are provided. This information is used by the installation tool or the boot-time boot-script execution facility to assure that init scripts are run in the correct order. When an init script is run with a "start" argument, the boot facility or facilities specified in the "Provides" header shall be considered present, and hence init scripts which require those boot facilities would then be eligble to be run. When an init script is run with a "stop" argument, the boot facilities specified in the "Provides" header are considered no longer present. There are naming conventions for boot facilities and system facilities, as described in a following section.
Similarly, the "Required-Stop:" header defines which facilities must still be available during the shutdown of that service. Hence, the init script system should avoid stopping shell scripts which provide those facilities until this shell script is stopped.
The "Default-Start" and "Default-Stop" headers define which run levels should by default run the script with a start or stop argument, respectively, to start or stop the services controlled by the init script.
The "Short-Description" and "Description" header fields are used to provide text which describes the actions of the init script. The "short_description" shall be a relatively short, pithy description of the init script, where as the "multiline_description" can be a much longer piece of text that may span mulitple lines. In a multiline description, each continuation line must begin with a '#' followed by tab character or a '#' followed by at least two space characters. The multiline description is terminated by the first line that does not match this criteria.
The comment conventions described in this session are only required for use by LSB-compliant applications; system init scripts as provided by LSB-compliant run-time environments are not required to use the scheme outlined here. [64]
An init.d file is installed by copying it into /etc/init.d (which may be a symlink to another location). This can be done by the package installer. During the package's postinstall script, the program "/usr/lib/lsb/install_initd" configures the distribution's boot script system to call the package's init.d file at the appropriate time.
The install_initd program takes a single argument, the pathanme to the /etc/init.d file. For example:
/usr/lib/lsb/install_initd /etc/init.d/example.com-coffeed |
When a software package is removed, the package's preuninstall script shall call /usr/lib/lsb/remove_initd and pass the pathname to the /etc/init.d file. The package manager is still responsible for removing the /etc/init.d file; the remove_initd program is provided in case the distribution needs to clean up any other modifications in the distribution's boot script system that might have been made by the install_initd program. For example:
/usr/lib/lsb/remove_initd /etc/init.d/example.com-coffeed |
There should be a tool available to the user (e.g., RedHat's chkconfig) which can be used by the system administrator to easily manipulate at which init levels a particular init.d script is started or stopped. This specification currently does not specify such an interface, however.
The following run levels are specified for use by the "Default-Start:" and "Default-Stop:" specifiers as defined by the section Comment conventions for init scripts>. Many LSB run-time environments commonly use these run level definitions, and in the absence of other considerations, providers of run-time environments are strongly encouraged to follow this convention to provide consistency for system administrators who need to work with multiple distributions. However, it is not required that LSB-compliant run-time environments use these run levels; the distribution-provided install_initd script may map the run levels specified below to whatever distribution-specified run levels are most appropriate.
0 | halt |
1 | single user mode |
2 | multiuser with no network services exported |
3 | normal/full multiuser |
4 | reserved for local use, default is normal/full multiuser |
5 | multiuser with xdm or equivalent |
6 | reboot |
Boot facilities are used to indicate dependencies in init scripts, as defined in a previous section. Facility names that begin with a dollar sign ('$') are system facility names, defined by the LSB, and MUST be provided by distributions. [65] LSB applications must not provide facilities that begin with a dollar sign. This document defines the following facility names:
$local_fs | all local filesystems are mounted |
$network | low level networking (ethernet card; may imply PCMCIA running) |
$named | daemons which may provide hostname resolution (if present) are running |
$portmap | daemons providing SunRPC/ONCRPC portmapping service[66] (if present) are running |
$remote_fs | all remote filesystems are mounted[67]. |
$syslog | system logger is operational |
$time | the system time has been set [68] |
Other (non-system) facilities may be defined by other LSB applications. These facilities shall be named using the same conventions defined for naming init.d script names. Commonly, the facility provided by an LSB application init.d script will have the same name as the name assigned to the init.d script.
Since the init.d scripts must live in a single directory, they must come from a single namespace. Three means of assigning names from this namespace are available:
Assigned namespace. This namespace consists of names which only use the character set [a-z0-9]. This space is desirable for scripts which system administrators may often wish to run manually: e.g., "/etc/init.d/named restart" In order to avoid conflicts these init.d names must be reserved through the Linux Assigned Names and Numbers Authority (LANANA). Information about the LANANA may be found at www.lanana.org.
Commonly used names shall be reserved in advance; developers for projects should be encouraged to reserve names from LANANA, so that each distribution can use the same name, and to avoid conflicts with other projects.
Hierarchical namespace. This namespace consists of scripts names which look like this: [hier1]-[hier2]-...-[name], where name is again taken the character set [a-z0-9], and where there may be one or more [hier-n] components. [hier1] may either be an LSB provider name assigned by the LANANA, or it may be owners' DNS name in lower case, with at least one '.' (e.g., "debian.org", "staroffice.sun.com"). The LSB provider name assigned by LANANA must only consist of the ASCII characters [a-z0-9].
Reserved namespace. This namespace consists of script names which begin with the character '_', and is reserved for distribution use only. This namespace should be used for core packages only, and in general use of this namespace is highly discouraged.
In general, if a package or some system function is likely to be used on multiple systems, the package developers or the distribution SHOULD get a registered name through LANANA, and distributions should strive to use the same name whenever possible. For applications which may not be "core" or may not be commonly installed, the hierarchical namespace may be more appropriate. An advantage to the hierarchical namespace is that there is no need to consult with the LANANA before obtaining an assigned name.
Short names are highly desirable, since many system administrators like to use them to manually start and stop services. Given this, they should be standardized on a per-package basis. This is the rationale behind having a LANANA organization to assign these names. The LANANA may be called upon to handle other namespace issues, such as package/prerequisites naming (which is essential to making prerequisites to work correctly).
Each LSB-compliant init.d script must source the file /lib/lsb/init-functions. This file must cause the following shell script commands to be defined. This can be done either by adding a directory to the PATH variable which defines these commands, or by defining sh aliases. While the distribution-provided aliases may choose to use bash extensions (at the distribution's option), the LSB init.d files themselves should only depend in /bin/sh features as defined by POSIX.2.
start_daemon [-f] [-n nicelevel] pathname [args] | This runs the specified program as a daemon. start_daemon will check to see if there is a program named "daemon" already running. If so, it will not start another copy of the daemon unless the -f option is given. The -n option specifies a nice level. See nice(1). |
killproc basename [signal] | This stops the specified program. The program is found using the algorithm given by pidofproc. If a signal is specified, using the -signal_name or -signal_number syntaxes specified by the kill command, the program is sent that signal. Otherwise, a SIGTERM followed by a SIGKILL after some number of seconds is sent. |
pidofproc basename | This function returns one or more pid(s) for a particular daemon. If an entry is found in /var/run/basename.pid, then that value is returned. Compliant implementations of the LSB may attempt other mechanisms for determining the pid(s), although this is not required (and not recommended, since a user can trick startup scripts by creating processes that appear to be system programs in the process list thus creating a potential security exposure). Hence, LSB-complaint applications who wish to use the pidofproc function in their init scripts must store the pid in /var/run/basename.pid. |
log_success_msg "message" | This requests the distribution to print a success message. The message should be relatively short; no more than 60 characters is highly desirable. |
log_failure_msg "message" | This requests the distribution to print a failure message. The message should be relatively short; no more than 60 characters is highly desirable. |
log_warning_msg "message" | This requests the distribution to print a warning message. The message should be relatively short; no more than 60 characters is highly desirable. |
The behaviour of the interfaces in this library is specified by the following Standards.
X11R6.4 Xlib - C library |
Table A-1. libX11 Function Interfaces
XActivateScreenSaver[37] | XIfEvent[37] | XcmsCIELabQueryMinL[37] |
XAddConnectionWatch[37] | XImageByteOrder[37] | XcmsCIELabToCIEXYZ[37] |
XAddExtension[37] | XInitExtension[37] | XcmsCIELabWhiteShiftColors[37] |
XAddHost[37] | XInitImage[37] | XcmsCIELuvClipL[37] |
XAddHosts[37] | XInitThreads[37] | XcmsCIELuvClipLuv[37] |
XAddPixel[37] | XInsertModifiermapEntry[37] | XcmsCIELuvClipuv[37] |
XAddToExtensionList[37] | XInstallColormap[37] | XcmsCIELuvQueryMaxC[37] |
XAddToSaveSet[37] | XInternAtom[37] | XcmsCIELuvQueryMaxL[37] |
XAllPlanes[37] | XInternAtoms[37] | XcmsCIELuvQueryMaxLC[37] |
XAllocClassHint[37] | XInternalConnectionNumbers[37] | XcmsCIELuvQueryMinL[37] |
XAllocColor[37] | XIntersectRegion[37] | XcmsCIELuvToCIEuvY[37] |
XAllocColorCells[37] | XKeycodeToKeysym[37] | XcmsCIELuvWhiteShiftColors[37] |
XAllocColorPlanes[37] | XKeysymToKeycode[37] | XcmsCIEXYZToCIELab[37] |
XAllocIconSize[37] | XKeysymToString[37] | XcmsCIEXYZToCIEuvY[37] |
XAllocNamedColor[37] | XKillClient[37] | XcmsCIEXYZToCIExyY[37] |
XAllocSizeHints[37] | XLastKnownRequestProcessed[37] | XcmsCIEXYZToRGBi[37] |
XAllocStandardColormap[37] | XListDepths[37] | XcmsCIEuvYToCIELuv[37] |
XAllocWMHints[37] | XListExtensions[37] | XcmsCIEuvYToCIEXYZ[37] |
XAllowEvents[37] | XListFonts[37] | XcmsCIEuvYToTekHVC[37] |
XAutoRepeatOff[37] | XListFontsWithInfo[37] | XcmsCIExyYToCIEXYZ[37] |
XAutoRepeatOn[37] | XListHosts[37] | XcmsClientWhitePointOfCCC[37] |
XBaseFontNameListOfFontSet[37] | XListInstalledColormaps[37] | XcmsConvertColors[37] |
XBell[37] | XListPixmapFormats[37] | XcmsCreateCCC[37] |
XBitmapBitOrder[37] | XListProperties[37] | XcmsDefaultCCC[37] |
XBitmapPad[37] | XLoadFont[37] | XcmsDisplayOfCCC[37] |
XBitmapUnit[37] | XLoadQueryFont[37] | XcmsFormatOfPrefix[37] |
XBlackPixel[37] | XLocaleOfFontSet[37] | XcmsFreeCCC[37] |
XBlackPixelOfScreen[37] | XLocaleOfIM[37] | XcmsLookupColor[37] |
XCellsOfScreen[37] | XLocaleOfOM[37] | XcmsPrefixOfFormat[37] |
XChangeActivePointerGrab[37] | XLockDisplay[37] | XcmsQueryBlack[37] |
XChangeGC[37] | XLookupColor[37] | XcmsQueryBlue[37] |
XChangeKeyboardControl[37] | XLookupKeysym[37] | XcmsQueryColor[37] |
XChangeKeyboardMapping[37] | XLookupString[37] | XcmsQueryColors[37] |
XChangePointerControl[37] | XLowerWindow[37] | XcmsQueryGreen[37] |
XChangeProperty[37] | XMapRaised[37] | XcmsQueryRed[37] |
XChangeSaveSet[37] | XMapSubwindows[37] | XcmsQueryWhite[37] |
XChangeWindowAttributes[37] | XMapWindow[37] | XcmsRGBToRGBi[37] |
XCheckIfEvent[37] | XMaskEvent[37] | XcmsRGBiToCIEXYZ[37] |
XCheckMaskEvent[37] | XMatchVisualInfo[37] | XcmsRGBiToRGB[37] |
XCheckTypedEvent[37] | XMaxCmapsOfScreen[37] | XcmsScreenNumberOfCCC[37] |
XCheckTypedWindowEvent[37] | XMaxRequestSize[37] | XcmsScreenWhitePointOfCCC[37] |
XCheckWindowEvent[37] | XMinCmapsOfScreen[37] | XcmsSetCCCOfColormap[37] |
XCirculateSubwindows[37] | XMoveResizeWindow[37] | XcmsSetCompressionProc[37] |
XCirculateSubwindowsDown[37] | XMoveWindow[37] | XcmsSetWhiteAdjustProc[37] |
XCirculateSubwindowsUp[37] | XNewModifiermap[37] | XcmsSetWhitePoint[37] |
XClearArea[37] | XNextEvent[37] | XcmsStoreColor[37] |
XClearWindow[37] | XNextRequest[37] | XcmsStoreColors[37] |
XClipBox[37] | XNoOp[37] | XcmsTekHVCClipC[37] |
XCloseDisplay[37] | XOMOfOC[37] | XcmsTekHVCClipV[37] |
XCloseIM[37] | XOffsetRegion[37] | XcmsTekHVCClipVC[37] |
XCloseOM[37] | XOpenDisplay[37] | XcmsTekHVCQueryMaxC[37] |
XConfigureWindow[37] | XOpenIM[37] | XcmsTekHVCQueryMaxV[37] |
XConnectionNumber[37] | XOpenOM[37] | XcmsTekHVCQueryMaxVC[37] |
XContextDependentDrawing[37] | XParseColor[37] | XcmsTekHVCQueryMaxVSamples[37] |
XContextualDrawing[37] | XParseGeometry[37] | XcmsTekHVCQueryMinV[37] |
XConvertCase[37] | XPeekEvent[37] | XcmsTekHVCToCIEuvY[37] |
XConvertSelection[37] | XPeekIfEvent[37] | XcmsTekHVCWhiteShiftColors[37] |
XCopyArea[37] | XPending[37] | XcmsVisualOfCCC[37] |
XCopyColormapAndFree[37] | XPlanesOfScreen[37] | XkbAllocClientMap[37] |
XCopyGC[37] | XPointInRegion[37] | XkbAllocCompatMap[37] |
XCopyPlane[37] | XPolygonRegion[37] | XkbAllocControls[37] |
XCreateBitmapFromData[37] | XProcessInternalConnection[37] | XkbAllocGeomColors[37] |
XCreateColormap[37] | XProtocolRevision[37] | XkbAllocGeomDoodads[37] |
XCreateFontCursor[37] | XProtocolVersion[37] | XkbAllocGeomKeyAliases[37] |
XCreateFontSet[37] | XPutBackEvent[37] | XkbAllocGeomKeys[37] |
XCreateGC[37] | XPutImage[37] | XkbAllocGeomOutlines[37] |
XCreateGlyphCursor[37] | XPutPixel[37] | XkbAllocGeomOverlayKeys[37] |
XCreateIC[37] | XQLength[37] | XkbAllocGeomOverlayRows[37] |
XCreateImage[37] | XQueryBestCursor[37] | XkbAllocGeomOverlays[37] |
XCreateOC[37] | XQueryBestSize[37] | XkbAllocGeomPoints[37] |
XCreatePixmap[37] | XQueryBestStipple[37] | XkbAllocGeomProps[37] |
XCreatePixmapCursor[37] | XQueryBestTile[37] | XkbAllocGeomRows[37] |
XCreatePixmapFromBitmapData[37] | XQueryColor[37] | XkbAllocGeomSectionDoodads[37] |
XCreateRegion[37] | XQueryColors[37] | XkbAllocGeomSections[37] |
XCreateSimpleWindow[37] | XQueryExtension[37] | XkbAllocGeomShapes[37] |
XCreateWindow[37] | XQueryFont[37] | XkbAllocGeometry[37] |
XDefaultColormap[37] | XQueryKeymap[37] | XkbAllocIndicatorMaps[37] |
XDefaultColormapOfScreen[37] | XQueryPointer[37] | XkbAllocKeyboard[37] |
XDefaultDepth[37] | XQueryTextExtents[37] | XkbAllocNames[37] |
XDefaultDepthOfScreen[37] | XQueryTextExtents16[37] | XkbAllocServerMap[37] |
XDefaultGC[37] | XQueryTree[37] | XkbApplyCompatMapToKey[37] |
XDefaultGCOfScreen[37] | XRaiseWindow[37] | XkbBell[37] |
XDefaultRootWindow[37] | XReadBitmapFile[37] | XkbBellEvent[37] |
XDefaultScreen[37] | XReadBitmapFileData[37] | XkbChangeEnabledControls[37] |
XDefaultScreenOfDisplay[37] | XRebindKeysym[37] | XkbChangeMap[37] |
XDefaultString[37] | XRecolorCursor[37] | XkbChangeNames[37] |
XDefaultVisual[37] | XReconfigureWMWindow[37] | XkbChangeTypesOfKey[37] |
XDefaultVisualOfScreen[37] | XRectInRegion[37] | XkbComputeEffectiveMap[37] |
XDefineCursor[37] | XRefreshKeyboardMapping[37] | XkbComputeRowBounds[37] |
XDeleteContext[37] | XRegisterIMInstantiateCallback[37] | XkbComputeSectionBounds[37] |
XDeleteModifiermapEntry[37] | XRemoveConnectionWatch[37] | XkbComputeShapeBounds[37] |
XDeleteProperty[37] | XRemoveFromSaveSet[37] | XkbComputeShapeTop[37] |
XDestroyIC[37] | XRemoveHost[37] | XkbCopyKeyType[37] |
XDestroyImage[37] | XRemoveHosts[37] | XkbCopyKeyTypes[37] |
XDestroyOC[37] | XReparentWindow[37] | XkbFindOverlayForKey[37] |
XDestroyRegion[37] | XResetScreenSaver[37] | XkbForceBell[37] |
XDestroySubwindows[37] | XResizeWindow[37] | XkbFreeClientMap[37] |
XDestroyWindow[37] | XResourceManagerString[37] | XkbFreeCompatMap[37] |
XDirectionalDependentDrawing[37] | XRestackWindows[37] | XkbFreeComponentList[37] |
XDisableAccessControl[37] | XRootWindow[37] | XkbFreeControls[37] |
XDisplayCells[37] | XRootWindowOfScreen[37] | XkbFreeGeomColors[37] |
XDisplayHeight[37] | XRotateBuffers[37] | XkbFreeGeomDoodads[37] |
XDisplayHeightMM[37] | XRotateWindowProperties[37] | XkbFreeGeomKeyAliases[37] |
XDisplayKeycodes[37] | XSaveContext[37] | XkbFreeGeomKeys[37] |
XDisplayMotionBufferSize[37] | XScreenCount[37] | XkbFreeGeomOutlines[37] |
XDisplayName[37] | XScreenNumberOfScreen[37] | XkbFreeGeomOverlayKeys[37] |
XDisplayOfIM[37] | XScreenOfDisplay[37] | XkbFreeGeomOverlayRows[37] |
XDisplayOfOM[37] | XScreenResourceString[37] | XkbFreeGeomOverlays[37] |
XDisplayOfScreen[37] | XSelectInput[37] | XkbFreeGeomPoints[37] |
XDisplayPlanes[37] | XSendEvent[37] | XkbFreeGeomProperties[37] |
XDisplayString[37] | XServerVendor[37] | XkbFreeGeomRows[37] |
XDisplayWidth[37] | XSetAccessControl[37] | XkbFreeGeomSections[37] |
XDisplayWidthMM[37] | XSetAfterFunction[37] | XkbFreeGeomShapes[37] |
XDoesBackingStore[37] | XSetArcMode[37] | XkbFreeGeometry[37] |
XDoesSaveUnders[37] | XSetAuthorization[37] | XkbFreeIndicatorMaps[37] |
XDrawArc[37] | XSetBackground[37] | XkbFreeKeyboard[37] |
XDrawArcs[37] | XSetClassHint[37] | XkbFreeNames[37] |
XDrawImageString[37] | XSetClipMask[37] | XkbFreeServerMap[37] |
XDrawImageString16[37] | XSetClipOrigin[37] | XkbGetAutoRepeatRate[37] |
XDrawLine[37] | XSetClipRectangles[37] | XkbGetCompatMap[37] |
XDrawLines[37] | XSetCloseDownMode[37] | XkbGetControls[37] |
XDrawPoint[37] | XSetCommand[37] | XkbGetGeometry[37] |
XDrawPoints[37] | XSetDashes[37] | XkbGetIndicatorMap[37] |
XDrawRectangle[37] | XSetErrorHandler[37] | XkbGetIndicatorState[37] |
XDrawRectangles[37] | XSetFillRule[37] | XkbGetKeyActions[37] |
XDrawSegments[37] | XSetFillStyle[37] | XkbGetKeyBehaviors[37] |
XDrawString[37] | XSetFont[37] | XkbGetKeyExplicitComponents[37] |
XDrawString16[37] | XSetFontPath[37] | XkbGetKeyModifierMap[37] |
XDrawText[37] | XSetForeground[37] | XkbGetKeySyms[37] |
XDrawText16[37] | XSetFunction[37] | XkbGetKeyTypes[37] |
XEHeadOfExtensionList[37] | XSetGraphicsExposures[37] | XkbGetKeyboard[37] |
XESetBeforeFlush[37] | XSetICFocus[37] | XkbGetKeyboardByName[37] |
XESetCloseDisplay[37] | XSetICValues[37] | XkbGetMap[37] |
XESetCopyGC[37] | XSetIMValues[37] | XkbGetMapChanges[37] |
XESetCreateFont[37] | XSetIOErrorHandler[37] | XkbGetNamedGeometry[37] |
XESetCreateGC[37] | XSetIconName[37] | XkbGetNamedIndicator[37] |
XESetError[37] | XSetIconSizes[37] | XkbGetNames[37] |
XESetErrorString[37] | XSetInputFocus[37] | XkbGetState[37] |
XESetEventToWire[37] | XSetLineAttributes[37] | XkbGetUpdatedMap[37] |
XESetFlushGC[37] | XSetLocaleModifiers[37] | XkbGetVirtualMods[37] |
XESetFreeFont[37] | XSetModifierMapping[37] | XkbGetXlibControls[37] |
XESetFreeGC[37] | XSetNormalHints[37] | XkbIgnoreExtension[37] |
XESetPrintErrorValues[37] | XSetOCValues[37] | XkbInitCanonicalKeyTypes[37] |
XESetWireToError[37] | XSetOMValues[37] | XkbKeyTypesForCoreSymbols[37] |
XESetWireToEvent[37] | XSetPlaneMask[37] | XkbKeycodeToKeysym[37] |
XEmptyRegion[37] | XSetPointerMapping[37] | XkbKeysymToModifiers[37] |
XEnableAccessControl[37] | XSetRGBColormaps[37] | XkbLatchGroup[37] |
XEqualRegion[37] | XSetRegion[37] | XkbLatchModifiers[37] |
XEventMaskOfScreen[37] | XSetScreenSaver[37] | XkbLibraryVersion[37] |
XEventsQueued[37] | XSetSelectionOwner[37] | XkbListComponents[37] |
XExtendedMaxRequestSize[37] | XSetSizeHints[37] | XkbLockGroup[37] |
XExtentsOfFontSet[37] | XSetStandardColormap[37] | XkbLockModifiers[37] |
XFetchBuffer[37] | XSetStandardProperties[37] | XkbLookupKeyBinding[37] |
XFetchBytes[37] | XSetState[37] | XkbLookupKeySym[37] |
XFetchName[37] | XSetStipple[37] | XkbNoteControlsChanges[37] |
XFillArc[37] | XSetSubwindowMode[37] | XkbNoteMapChanges[37] |
XFillArcs[37] | XSetTSOrigin[37] | XkbNoteNameChanges[37] |
XFillPolygon[37] | XSetTextProperty[37] | XkbOpenDisplay[37] |
XFillRectangle[37] | XSetTile[37] | XkbQueryExtension[37] |
XFillRectangles[37] | XSetTransientForHint[37] | XkbRefreshKeyboardMapping[37] |
XFilterEvent[37] | XSetWMClientMachine[37] | XkbResizeKeyActions[37] |
XFindContext[37] | XSetWMColormapWindows[37] | XkbResizeKeySyms[37] |
XFindOnExtensionList[37] | XSetWMHints[37] | XkbResizeKeyType[37] |
XFlush[37] | XSetWMIconName[37] | XkbSelectEventDetails[37] |
XFlushGC[37] | XSetWMName[37] | XkbSelectEvents[37] |
XFontsOfFontSet[37] | XSetWMNormalHints[37] | XkbSetAtomFuncs[37] |
XForceScreenSaver[37] | XSetWMProperties[37] | XkbSetAutoRepeatRate[37] |
XFree[37] | XSetWMProtocols[37] | XkbSetAutoResetControls[37] |
XFreeColormap[37] | XSetWMSizeHints[37] | XkbSetCompatMap[37] |
XFreeColors[37] | XSetWindowBackground[37] | XkbSetControls[37] |
XFreeCursor[37] | XSetWindowBackgroundPixmap[37] | XkbSetDebuggingFlags[37] |
XFreeExtensionList[37] | XSetWindowBorder[37] | XkbSetDetectableAutoRepeat[37] |
XFreeFont[37] | XSetWindowBorderPixmap[37] | XkbSetGeometry[37] |
XFreeFontInfo[37] | XSetWindowBorderWidth[37] | XkbSetIgnoreLockMods[37] |
XFreeFontNames[37] | XSetWindowColormap[37] | XkbSetIndicatorMap[37] |
XFreeFontPath[37] | XSetZoomHints[37] | XkbSetMap[37] |
XFreeFontSet[37] | XShrinkRegion[37] | XkbSetNamedIndicator[37] |
XFreeGC[37] | XStoreBuffer[37] | XkbSetNames[37] |
XFreeModifiermap[37] | XStoreBytes[37] | XkbSetServerInternalMods[37] |
XFreePixmap[37] | XStoreColor[37] | XkbSetXlibControls[37] |
XFreeStringList[37] | XStoreColors[37] | XkbToControl[37] |
XGContextFromGC[37] | XStoreName[37] | XkbTranslateKeyCode[37] |
XGeometry[37] | XStoreNamedColor[37] | XkbTranslateKeySym[37] |
XGetAtomName[37] | XStringListToTextProperty[37] | XkbUpdateMapFromCore[37] |
XGetAtomNames[37] | XStringToKeysym[37] | XkbUseExtension[37] |
XGetClassHint[37] | XSubImage[37] | XkbVirtualModsToReal[37] |
XGetCommand[37] | XSubtractRegion[37] | XmbDrawImageString[37] |
XGetDefault[37] | XSupportsLocale[37] | XmbDrawString[37] |
XGetErrorDatabaseText[37] | XSync[37] | XmbDrawText[37] |
XGetErrorText[37] | XSynchronize[37] | XmbLookupString[37] |
XGetFontPath[37] | XTextExtents[37] | XmbResetIC[37] |
XGetFontProperty[37] | XTextExtents16[37] | XmbSetWMProperties[37] |
XGetGCValues[37] | XTextPropertyToStringList[37] | XmbTextEscapement[37] |
XGetGeometry[37] | XTextWidth[37] | XmbTextExtents[37] |
XGetICValues[37] | XTextWidth16[37] | XmbTextListToTextProperty[37] |
XGetIMValues[37] | XTranslateCoordinates[37] | XmbTextPerCharExtents[37] |
XGetIconName[37] | XUndefineCursor[37] | XmbTextPropertyToTextList[37] |
XGetIconSizes[37] | XUngrabButton[37] | XrmCombineDatabase[37] |
XGetImage[37] | XUngrabKey[37] | XrmCombineFileDatabase[37] |
XGetInputFocus[37] | XUngrabKeyboard[37] | XrmDestroyDatabase[37] |
XGetKeyboardControl[37] | XUngrabPointer[37] | XrmEnumerateDatabase[37] |
XGetKeyboardMapping[37] | XUngrabServer[37] | XrmGetDatabase[37] |
XGetModifierMapping[37] | XUninstallColormap[37] | XrmGetFileDatabase[37] |
XGetMotionEvents[37] | XUnionRectWithRegion[37] | XrmGetResource[37] |
XGetNormalHints[37] | XUnionRegion[37] | XrmGetStringDatabase[37] |
XGetOCValues[37] | XUnloadFont[37] | XrmInitialize[37] |
XGetOMValues[37] | XUnlockDisplay[37] | XrmLocaleOfDatabase[37] |
XGetPixel[37] | XUnmapSubwindows[37] | XrmMergeDatabases[37] |
XGetPointerControl[37] | XUnmapWindow[37] | XrmParseCommand[37] |
XGetPointerMapping[37] | XUnregisterIMInstantiateCallback[37] | XrmPermStringToQuark[37] |
XGetRGBColormaps[37] | XUnsetICFocus[37] | XrmPutFileDatabase[37] |
XGetScreenSaver[37] | XVaCreateNestedList[37] | XrmPutLineResource[37] |
XGetSelectionOwner[37] | XVendorRelease[37] | XrmPutResource[37] |
XGetSizeHints[37] | XVisualIDFromVisual[37] | XrmPutStringResource[37] |
XGetStandardColormap[37] | XWMGeometry[37] | XrmQGetResource[37] |
XGetSubImage[37] | XWarpPointer[37] | XrmQGetSearchList[37] |
XGetTextProperty[37] | XWhitePixel[37] | XrmQGetSearchResource[37] |
XGetTransientForHint[37] | XWhitePixelOfScreen[37] | XrmQPutResource[37] |
XGetVisualInfo[37] | XWidthMMOfScreen[37] | XrmQPutStringResource[37] |
XGetWMClientMachine[37] | XWidthOfScreen[37] | XrmQuarkToString[37] |
XGetWMColormapWindows[37] | XWindowEvent[37] | XrmSetDatabase[37] |
XGetWMHints[37] | XWithdrawWindow[37] | XrmStringToBindingQuarkList[37] |
XGetWMIconName[37] | XWriteBitmapFile[37] | XrmStringToQuark[37] |
XGetWMName[37] | XXorRegion[37] | XrmStringToQuarkList[37] |
XGetWMNormalHints[37] | XauDisposeAuth[37] | XrmUniqueQuark[37] |
XGetWMProtocols[37] | XauFileName[37] | Xutf8TextListToTextProperty |
XGetWMSizeHints[37] | XauGetBestAuthByAddr[37] | Xutf8TextPropertyToTextList |
XGetWindowAttributes[37] | XauReadAuth[37] | XwcDrawImageString[37] |
XGetWindowProperty[37] | XcmsAddColorSpace[37] | XwcDrawString[37] |
XGetZoomHints[37] | XcmsAddFunctionSet[37] | XwcDrawText[37] |
XGrabButton[37] | XcmsAllocColor[37] | XwcFreeStringList[37] |
XGrabKey[37] | XcmsAllocNamedColor[37] | XwcLookupString[37] |
XGrabKeyboard[37] | XcmsCCCOfColormap[37] | XwcResetIC[37] |
XGrabPointer[37] | XcmsCIELabClipL[37] | XwcTextEscapement[37] |
XGrabServer[37] | XcmsCIELabClipLab[37] | XwcTextExtents[37] |
XHeightMMOfScreen[37] | XcmsCIELabClipab[37] | XwcTextListToTextProperty[37] |
XHeightOfScreen[37] | XcmsCIELabQueryMaxC[37] | XwcTextPerCharExtents[37] |
XIMOfIC[37] | XcmsCIELabQueryMaxL[37] | XwcTextPropertyToTextList[37] |
XIconifyWindow[37] | XcmsCIELabQueryMaxLC[37] |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
X11R6.4 X Toolkit Intrinsics |
Table A-2. libXt Function Interfaces
XtAddActions[47] | XtCvtStringToInitialState[47] | XtOwnSelectionIncremental[47] |
XtAddCallback[47] | XtCvtStringToInt[47] | XtParent[47] |
XtAddCallbacks[47] | XtCvtStringToPixel[47] | XtParseAcceleratorTable[47] |
XtAddConverter[47] | XtCvtStringToRestartStyle[47] | XtParseTranslationTable[47] |
XtAddEventHandler[47] | XtCvtStringToShort[47] | XtPeekEvent[47] |
XtAddExposureToRegion[47] | XtCvtStringToTranslationTable[47] | XtPending[47] |
XtAddGrab[47] | XtCvtStringToUnsignedChar[47] | XtPopdown[47] |
XtAddInput[47] | XtCvtStringToVisual[47] | XtPopup[47] |
XtAddRawEventHandler[47] | XtDatabase[47] | XtPopupSpringLoaded[47] |
XtAddSignal[47] | XtDestroyApplicationContext[47] | XtProcessEvent[47] |
XtAddTimeOut[47] | XtDestroyGC[47] | XtProcessLock[47] |
XtAddWorkProc[47] | XtDestroyWidget[47] | XtProcessUnlock[47] |
XtAllocateGC[47] | XtDirectConvert[47] | XtQueryGeometry[47] |
XtAppAddActionHook[47] | XtDisownSelection[47] | XtRealizeWidget[47] |
XtAppAddActions[47] | XtDispatchEvent[47] | XtRealloc[47] |
XtAppAddBlockHook[47] | XtDispatchEventToWidget[47] | XtRegisterCaseConverter[47] |
XtAppAddConverter[47] | XtDisplay[47] | XtRegisterDrawable[47] |
XtAppAddInput[47] | XtDisplayInitialize[47] | XtRegisterExtensionSelector[47] |
XtAppAddSignal[47] | XtDisplayOfObject[47] | XtRegisterGrabAction[47] |
XtAppAddTimeOut[47] | XtDisplayStringConversionWarning[47] | XtReleaseGC[47] |
XtAppAddWorkProc[47] | XtDisplayToApplicationContext[47] | XtReleasePropertyAtom[47] |
XtAppCreateShell[47] | XtError[47] | XtRemoveActionHook[47] |
XtAppError[47] | XtErrorMsg[47] | XtRemoveAllCallbacks[47] |
XtAppErrorMsg[47] | XtFindFile[47] | XtRemoveBlockHook[47] |
XtAppGetErrorDatabase[47] | XtFree[47] | XtRemoveCallback[47] |
XtAppGetErrorDatabaseText[47] | XtGetActionKeysym[47] | XtRemoveCallbacks[47] |
XtAppGetExitFlag[47] | XtGetActionList[47] | XtRemoveEventHandler[47] |
XtAppGetSelectionTimeout[47] | XtGetApplicationNameAndClass[47] | XtRemoveEventTypeHandler[47] |
XtAppInitialize[47] | XtGetApplicationResources[47] | XtRemoveGrab[47] |
XtAppLock[47] | XtGetClassExtension[47] | XtRemoveInput[47] |
XtAppMainLoop[47] | XtGetConstraintResourceList[47] | XtRemoveRawEventHandler[47] |
XtAppNextEvent[47] | XtGetDisplays[47] | XtRemoveSignal[47] |
XtAppPeekEvent[47] | XtGetErrorDatabase[47] | XtRemoveTimeOut[47] |
XtAppPending[47] | XtGetErrorDatabaseText[47] | XtRemoveWorkProc[47] |
XtAppProcessEvent[47] | XtGetGC[47] | XtReservePropertyAtom[47] |
XtAppReleaseCacheRefs[47] | XtGetKeyboardFocusWidget[47] | XtResizeWidget[47] |
XtAppSetErrorHandler[47] | XtGetKeysymTable[47] | XtResizeWindow[47] |
XtAppSetErrorMsgHandler[47] | XtGetMultiClickTime[47] | XtResolvePathname[47] |
XtAppSetExitFlag[47] | XtGetResourceList[47] | XtScreen[47] |
XtAppSetFallbackResources[47] | XtGetSelectionParameters[47] | XtScreenDatabase[47] |
XtAppSetSelectionTimeout[47] | XtGetSelectionRequest[47] | XtScreenOfObject[47] |
XtAppSetTypeConverter[47] | XtGetSelectionTimeout[47] | XtSendSelectionRequest[47] |
XtAppSetWarningHandler[47] | XtGetSelectionValue[47] | XtSessionGetToken[47] |
XtAppSetWarningMsgHandler[47] | XtGetSelectionValueIncremental[47] | XtSessionReturnToken[47] |
XtAppUnlock[47] | XtGetSelectionValues[47] | XtSetErrorHandler[47] |
XtAppWarning[47] | XtGetSelectionValuesIncremental[47] | XtSetErrorMsgHandler[47] |
XtAppWarningMsg[47] | XtGetSubresources[47] | XtSetEventDispatcher[47] |
XtAugmentTranslations[47] | XtGetSubvalues[47] | XtSetKeyTranslator[47] |
XtBuildEventMask[47] | XtGetValues[47] | XtSetKeyboardFocus[47] |
XtCallAcceptFocus[47] | XtGrabButton[47] | XtSetLanguageProc[47] |
XtCallActionProc[47] | XtGrabKey[47] | XtSetMappedWhenManaged[47] |
XtCallCallbackList[47] | XtGrabKeyboard[47] | XtSetMultiClickTime[47] |
XtCallCallbacks[47] | XtGrabPointer[47] | XtSetSelectionParameters[47] |
XtCallConverter[47] | XtHasCallbacks[47] | XtSetSelectionTimeout[47] |
XtCallbackExclusive[47] | XtHooksOfDisplay[47] | XtSetSensitive[47] |
XtCallbackNone[47] | XtInitialize[47] | XtSetSubvalues[47] |
XtCallbackNonexclusive[47] | XtInitializeWidgetClass[47] | XtSetTypeConverter[47] |
XtCallbackPopdown[47] | XtInsertEventHandler[47] | XtSetValues[47] |
XtCallbackReleaseCacheRef[47] | XtInsertEventTypeHandler[47] | XtSetWMColormapWindows[47] |
XtCallbackReleaseCacheRefList[47] | XtInsertRawEventHandler[47] | XtSetWarningHandler[47] |
XtCalloc[47] | XtInstallAccelerators[47] | XtSetWarningMsgHandler[47] |
XtCancelSelectionRequest[47] | XtInstallAllAccelerators[47] | XtStringConversionWarning[47] |
XtChangeManagedSet[47] | XtIsApplicationShell[47] | XtSuperclass[47] |
XtClass[47] | XtIsComposite[47] | XtToolkitInitialize[47] |
XtCloseDisplay[47] | XtIsConstraint[47] | XtToolkitThreadInitialize[47] |
XtConfigureWidget[47] | XtIsManaged[47] | XtTranslateCoords[47] |
XtConvert[47] | XtIsObject[47] | XtTranslateKey[47] |
XtConvertAndStore[47] | XtIsOverrideShell[47] | XtTranslateKeycode[47] |
XtConvertCase[47] | XtIsRealized[47] | XtUngrabButton[47] |
XtCreateApplicationContext[47] | XtIsRectObj[47] | XtUngrabKey[47] |
XtCreateApplicationShell[47] | XtIsSensitive[47] | XtUngrabKeyboard[47] |
XtCreateManagedWidget[47] | XtIsSessionShell[47] | XtUngrabPointer[47] |
XtCreatePopupShell[47] | XtIsShell[47] | XtUninstallTranslations[47] |
XtCreateSelectionRequest[47] | XtIsSubclass[47] | XtUnmanageChild[47] |
XtCreateWidget[47] | XtIsTopLevelShell[47] | XtUnmanageChildren[47] |
XtCreateWindow[47] | XtIsTransientShell[47] | XtUnmapWidget[47] |
XtCvtColorToPixel[47] | XtIsVendorShell[47] | XtUnrealizeWidget[47] |
XtCvtIntToBool[47] | XtIsWMShell[47] | XtUnregisterDrawable[47] |
XtCvtIntToBoolean[47] | XtIsWidget[47] | XtVaAppCreateShell[47] |
XtCvtIntToColor[47] | XtKeysymToKeycodeList[47] | XtVaAppInitialize[47] |
XtCvtIntToFloat[47] | XtLastEventProcessed[47] | XtVaCreateArgsList[47] |
XtCvtIntToFont[47] | XtLastTimestampProcessed[47] | XtVaCreateManagedWidget[47] |
XtCvtIntToPixel[47] | XtMainLoop[47] | XtVaCreatePopupShell[47] |
XtCvtIntToPixmap[47] | XtMakeGeometryRequest[47] | XtVaCreateWidget[47] |
XtCvtIntToShort[47] | XtMakeResizeRequest[47] | XtVaGetApplicationResources[47] |
XtCvtIntToUnsignedChar[47] | XtMalloc[47] | XtVaGetSubresources[47] |
XtCvtStringToAcceleratorTable[47] | XtManageChild[47] | XtVaGetSubvalues[47] |
XtCvtStringToAtom[47] | XtManageChildren[47] | XtVaGetValues[47] |
XtCvtStringToBool[47] | XtMapWidget[47] | XtVaOpenApplication[47] |
XtCvtStringToBoolean[47] | XtMenuPopupAction[47] | XtVaSetSubvalues[47] |
XtCvtStringToCommandArgArray[47] | XtMergeArgLists[47] | XtVaSetValues[47] |
XtCvtStringToCursor[47] | XtMoveWidget[47] | XtWarning[47] |
XtCvtStringToDimension[47] | XtName[47] | XtWarningMsg[47] |
XtCvtStringToDirectoryString[47] | XtNameToWidget[47] | XtWidgetToApplicationContext[47] |
XtCvtStringToDisplay[47] | XtNewString[47] | XtWindow[47] |
XtCvtStringToFile[47] | XtNextEvent[47] | XtWindowOfObject[47] |
XtCvtStringToFloat[47] | XtNoticeSignal[47] | XtWindowToWidget[47] |
XtCvtStringToFont[47] | XtOpenApplication[47] | _XtCheckSubclassFlag[47] |
XtCvtStringToFontSet[47] | XtOpenDisplay[47] | _XtCopyFromArg[46] |
XtCvtStringToFontStruct[47] | XtOverrideTranslations[47] | _XtInherit[46] |
XtCvtStringToGravity[47] | XtOwnSelection[47] | _XtIsSubclassOf[46] |
Table A-3. libXt Data Interfaces
XtCXtToolkitError[47] | objectClass[47] | topLevelShellClassRec[47] |
XtShellStrings[47] | objectClassRec[47] | topLevelShellWidgetClass[47] |
XtStrings[47] | overrideShellClassRec[47] | transientShellClassRec[47] |
_XtInheritTranslations[46] | overrideShellWidgetClass[47] | transientShellWidgetClass[47] |
applicationShellWidgetClass[47] | rectObjClass[47] | widgetClass[47] |
compositeClassRec[47] | rectObjClassRec[47] | widgetClassRec[47] |
compositeWidgetClass[47] | sessionShellClassRec[47] | wmShellClassRec[47] |
constraintClassRec[47] | sessionShellWidgetClass[47] | wmShellWidgetClass[47] |
constraintWidgetClass[47] | shellClassRec[47] | |
coreWidgetClass[47] | shellWidgetClass[47] |
The behaviour of the interfaces in this library is specified by the following Standards.
ISO/IEC 9899: 1999, Programming Languages --C |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) |
Table A-4. libm Function Interfaces
acos(GLIBC_2.0)[24] | csinhl(GLIBC_2.0)[23] | log(GLIBC_2.0)[24] |
acosf(GLIBC_2.0)[23] | csinl(GLIBC_2.0)[23] | log10(GLIBC_2.0)[24] |
acosh(GLIBC_2.0)[24] | csqrt(GLIBC_2.0)[23] | log10f[23] |
acoshf(GLIBC_2.0)[23] | csqrtf(GLIBC_2.0)[23] | log10l[23] |
acoshl(GLIBC_2.0)[23] | csqrtl(GLIBC_2.0)[23] | log1p(GLIBC_2.0)[24] |
acosl(GLIBC_2.0)[23] | ctan(GLIBC_2.0)[23] | logb(GLIBC_2.0)[24] |
asin(GLIBC_2.0)[24] | ctanf(GLIBC_2.0)[23] | logf[23] |
asinf(GLIBC_2.0)[23] | ctanh(GLIBC_2.0)[23] | logl[23] |
asinh(GLIBC_2.0)[24] | ctanhf(GLIBC_2.0)[23] | lrint(GLIBC_2.0)[23] |
asinhf(GLIBC_2.0)[23] | ctanhl(GLIBC_2.0)[23] | lrintf(GLIBC_2.0)[23] |
asinhl(GLIBC_2.0)[23] | ctanl(GLIBC_2.0)[23] | lrintl(GLIBC_2.0)[23] |
asinl(GLIBC_2.0)[23] | dremf(GLIBC_2.0)[23] | lround(GLIBC_2.0)[23] |
atan(GLIBC_2.0)[24] | dreml(GLIBC_2.0)[23] | lroundf(GLIBC_2.0)[23] |
atan2(GLIBC_2.0)[24] | erf(GLIBC_2.0)[24] | lroundl(GLIBC_2.0)[23] |
atan2f(GLIBC_2.0)[23] | erfc(GLIBC_2.0)[24] | matherr(GLIBC_2.0)[23] |
atan2l(GLIBC_2.0)[23] | erfcf(GLIBC_2.0)[23] | modf(GLIBC_2.0)[24] |
atanf(GLIBC_2.0)[23] | erfcl(GLIBC_2.0)[23] | modff(GLIBC_2.0)[23] |
atanh(GLIBC_2.0)[24] | erff(GLIBC_2.0)[23] | modfl(GLIBC_2.0)[23] |
atanhf(GLIBC_2.0)[23] | erfl(GLIBC_2.0)[23] | nan(GLIBC_2.0)[23] |
atanhl(GLIBC_2.0)[23] | exp(GLIBC_2.0)[24] | nanf(GLIBC_2.0)[23] |
atanl(GLIBC_2.0)[23] | expf[23] | nanl(GLIBC_2.0)[23] |
cabs(GLIBC_2.1)[24] | expl[23] | nearbyint(GLIBC_2.1)[23] |
cabsf(GLIBC_2.1)[23] | expm1(GLIBC_2.1)[24] | nearbyintf(GLIBC_2.1)[23] |
cabsl(GLIBC_2.1)[23] | fabs(GLIBC_2.1)[24] | nearbyintl(GLIBC_2.1)[23] |
cacos(GLIBC_2.1)[23] | fabsf(GLIBC_2.1)[23] | nextafter(GLIBC_2.1)[24] |
cacosf(GLIBC_2.1)[23] | fabsl(GLIBC_2.1)[23] | nextafterf(GLIBC_2.1)[23] |
cacosh(GLIBC_2.1)[23] | fdim(GLIBC_2.1)[23] | nextafterl(GLIBC_2.1)[23] |
cacoshf(GLIBC_2.1)[23] | fdimf(GLIBC_2.1)[23] | nexttoward(GLIBC_2.1)[23] |
cacoshl(GLIBC_2.1)[23] | fdiml(GLIBC_2.1)[23] | nexttowardf(GLIBC_2.1)[23] |
cacosl(GLIBC_2.1)[23] | feclearexcept(GLIBC_2.1)[23] | nexttowardl(GLIBC_2.1)[23] |
carg(GLIBC_2.1)[23] | fegetenv(GLIBC_2.1)[23] | pow(GLIBC_2.1)[23] |
cargf(GLIBC_2.1)[23] | fegetexceptflag(GLIBC_2.1)[23] | pow10(GLIBC_2.1)[23] |
cargl(GLIBC_2.1)[23] | fegetround(GLIBC_2.1)[23] | pow10f(GLIBC_2.1)[23] |
casin(GLIBC_2.1)[23] | feholdexcept(GLIBC_2.1)[23] | pow10l(GLIBC_2.1)[23] |
casinf(GLIBC_2.1)[23] | feraiseexcept(GLIBC_2.1)[23] | powf(GLIBC_2.1)[23] |
casinh(GLIBC_2.1)[23] | fesetenv(GLIBC_2.1)[23] | powl(GLIBC_2.1)[23] |
casinhf(GLIBC_2.1)[23] | fesetexceptflag(GLIBC_2.1)[23] | remainder(GLIBC_2.1)[24] |
casinhl(GLIBC_2.1)[23] | fesetround(GLIBC_2.1)[23] | remainderf(GLIBC_2.1)[23] |
casinl(GLIBC_2.1)[23] | fetestexcept(GLIBC_2.1)[23] | remainderl(GLIBC_2.1)[23] |
catan(GLIBC_2.1)[23] | feupdateenv(GLIBC_2.1)[23] | remquo(GLIBC_2.1)[23] |
catanf(GLIBC_2.1)[23] | finite(GLIBC_2.1)[24] | remquof(GLIBC_2.1)[23] |
catanh(GLIBC_2.1)[23] | finitef(GLIBC_2.1)[23] | remquol(GLIBC_2.1)[23] |
catanhf(GLIBC_2.1)[23] | finitel(GLIBC_2.1)[23] | rint(GLIBC_2.1)[24] |
catanhl(GLIBC_2.1)[23] | floor(GLIBC_2.1)[24] | rintf(GLIBC_2.1)[23] |
catanl(GLIBC_2.1)[23] | floorf(GLIBC_2.1)[23] | rintl(GLIBC_2.1)[23] |
cbrt(GLIBC_2.0)[24] | floorl(GLIBC_2.0)[23] | round(GLIBC_2.0)[23] |
cbrtf(GLIBC_2.0)[23] | fma(GLIBC_2.0)[23] | roundf(GLIBC_2.0)[23] |
cbrtl(GLIBC_2.0)[23] | fmaf(GLIBC_2.0)[23] | roundl(GLIBC_2.0)[23] |
ccos(GLIBC_2.1)[23] | fmal(GLIBC_2.1)[23] | scalb(GLIBC_2.1)[24] |
ccosf(GLIBC_2.1)[23] | fmax(GLIBC_2.1)[23] | scalbf(GLIBC_2.1)[23] |
ccosh(GLIBC_2.1)[23] | fmaxf(GLIBC_2.1)[23] | scalbl(GLIBC_2.1)[23] |
ccoshf(GLIBC_2.1)[23] | fmaxl(GLIBC_2.1)[23] | scalbln(GLIBC_2.1)[23] |
ccoshl(GLIBC_2.1)[23] | fmin(GLIBC_2.1)[23] | scalblnf(GLIBC_2.1)[23] |
ccosl(GLIBC_2.1)[23] | fminf(GLIBC_2.1)[23] | scalblnl(GLIBC_2.1)[23] |
ceil(GLIBC_2.0)[24] | fminl(GLIBC_2.0)[23] | scalbn(GLIBC_2.0)[23] |
ceilf(GLIBC_2.0)[23] | fmod(GLIBC_2.0)[24] | scalbnf(GLIBC_2.0)[23] |
ceill(GLIBC_2.0)[23] | fmodf(GLIBC_2.0)[23] | scalbnl(GLIBC_2.0)[23] |
cexp(GLIBC_2.1)[23] | fmodl(GLIBC_2.1)[23] | significand(GLIBC_2.1)[23] |
cexpf(GLIBC_2.1)[23] | frexp(GLIBC_2.1)[24] | significandf(GLIBC_2.1)[23] |
cexpl(GLIBC_2.1)[23] | frexpf(GLIBC_2.1)[23] | significandl(GLIBC_2.1)[23] |
cimag(GLIBC_2.1)[23] | frexpl(GLIBC_2.1)[23] | sin(GLIBC_2.1)[24] |
cimagf(GLIBC_2.1)[23] | gamma(GLIBC_2.1)[24] | sincos(GLIBC_2.1)[23] |
cimagl(GLIBC_2.1)[23] | gammaf(GLIBC_2.1)[23] | sincosf(GLIBC_2.1)[23] |
clog(GLIBC_2.1)[23] | gammal(GLIBC_2.1)[23] | sincosl(GLIBC_2.1)[23] |
clog10(GLIBC_2.1)[23] | hypot(GLIBC_2.1)[24] | sinf(GLIBC_2.1)[23] |
clog10f(GLIBC_2.1)[23] | hypotf(GLIBC_2.1)[23] | sinh(GLIBC_2.1)[24] |
clog10l(GLIBC_2.1)[23] | hypotl(GLIBC_2.1)[23] | sinhf(GLIBC_2.1)[23] |
clogf(GLIBC_2.1)[23] | ilogb(GLIBC_2.1)[24] | sinhl(GLIBC_2.1)[23] |
clogl(GLIBC_2.1)[23] | ilogbf(GLIBC_2.1)[23] | sinl(GLIBC_2.1)[23] |
conj(GLIBC_2.1)[23] | ilogbl(GLIBC_2.1)[23] | sqrt(GLIBC_2.1)[24] |
conjf(GLIBC_2.1)[23] | j0(GLIBC_2.1)[24] | sqrtf(GLIBC_2.1)[23] |
conjl(GLIBC_2.1)[23] | j0f(GLIBC_2.1)[23] | sqrtl(GLIBC_2.1)[23] |
copysign(GLIBC_2.0)[23] | j0l(GLIBC_2.0)[23] | tan(GLIBC_2.0)[24] |
copysignf(GLIBC_2.0)[23] | j1(GLIBC_2.0)[24] | tanf(GLIBC_2.0)[23] |
copysignl(GLIBC_2.0)[23] | j1f(GLIBC_2.0)[23] | tanh(GLIBC_2.0)[24] |
cos(GLIBC_2.0)[24] | j1l(GLIBC_2.0)[23] | tanhf(GLIBC_2.0)[23] |
cosf(GLIBC_2.0)[23] | jn(GLIBC_2.0)[24] | tanhl(GLIBC_2.0)[23] |
cosh(GLIBC_2.0)[24] | jnf(GLIBC_2.0)[23] | tanl(GLIBC_2.0)[23] |
coshf(GLIBC_2.0)[23] | jnl(GLIBC_2.0)[23] | tgamma(GLIBC_2.0)[23] |
coshl(GLIBC_2.0)[23] | ldexp(GLIBC_2.0)[24] | tgammaf(GLIBC_2.0)[23] |
cosl(GLIBC_2.0)[23] | ldexpf(GLIBC_2.0)[23] | tgammal(GLIBC_2.0)[23] |
cpow(GLIBC_2.1)[23] | ldexpl(GLIBC_2.1)[23] | trunc(GLIBC_2.1)[23] |
cpowf(GLIBC_2.1)[23] | lgamma(GLIBC_2.1)[24] | truncf(GLIBC_2.1)[23] |
cpowl(GLIBC_2.1)[23] | lgamma_r(GLIBC_2.1)[23] | truncl(GLIBC_2.1)[23] |
cproj(GLIBC_2.1)[23] | lgammaf(GLIBC_2.1)[23] | y0(GLIBC_2.1)[24] |
cprojf(GLIBC_2.1)[23] | lgammaf_r(GLIBC_2.1)[23] | y0f(GLIBC_2.1)[23] |
cprojl(GLIBC_2.1)[23] | lgammal(GLIBC_2.1)[23] | y0l(GLIBC_2.1)[23] |
creal(GLIBC_2.1)[23] | lgammal_r(GLIBC_2.1)[23] | y1(GLIBC_2.1)[24] |
crealf(GLIBC_2.1)[23] | llrint(GLIBC_2.1)[23] | y1f(GLIBC_2.1)[23] |
creall(GLIBC_2.1)[23] | llrintf(GLIBC_2.1)[23] | y1l(GLIBC_2.1)[23] |
csin(GLIBC_2.1)[23] | llrintl(GLIBC_2.1)[23] | yn(GLIBC_2.1)[24] |
csinf(GLIBC_2.1)[23] | llround(GLIBC_2.1)[23] | ynf(GLIBC_2.1)[23] |
csinh(GLIBC_2.1)[23] | llroundf(GLIBC_2.1)[23] | ynl(GLIBC_2.1)[23] |
csinhf(GLIBC_2.1)[23] | llroundl(GLIBC_2.1)[23] |
The behaviour of the interfaces in this library is specified by the following Standards.
OpenGL® Application Binary Interface for Linux |
Table A-6. libGL Function Interfaces
glAccum[48] | glGetString[48] | glRasterPos4iv[48] |
glActiveTextureARB[48] | glGetTexEnvfv[48] | glRasterPos4s[48] |
glAlphaFunc[48] | glGetTexEnviv[48] | glRasterPos4sv[48] |
glAreTexturesResident[48] | glGetTexGendv[48] | glReadBuffer[48] |
glArrayElement[48] | glGetTexGenfv[48] | glReadPixels[48] |
glBegin[48] | glGetTexGeniv[48] | glRectd[48] |
glBindTexture[48] | glGetTexImage[48] | glRectdv[48] |
glBitmap[48] | glGetTexLevelParameterfv[48] | glRectf[48] |
glBlendColor[48] | glGetTexLevelParameteriv[48] | glRectfv[48] |
glBlendEquation[48] | glGetTexParameterfv[48] | glRecti[48] |
glBlendFunc[48] | glGetTexParameteriv[48] | glRectiv[48] |
glCallList[48] | glHint[48] | glRects[48] |
glCallLists[48] | glHistogram[48] | glRectsv[48] |
glClear[48] | glIndexMask[48] | glRenderMode[48] |
glClearAccum[48] | glIndexPointer[48] | glResetHistogram[48] |
glClearColor[48] | glIndexd[48] | glResetMinmax[48] |
glClearDepth[48] | glIndexdv[48] | glRotated[48] |
glClearIndex[48] | glIndexf[48] | glRotatef[48] |
glClearStencil[48] | glIndexfv[48] | glScaled[48] |
glClientActiveTextureARB[48] | glIndexi[48] | glScalef[48] |
glClipPlane[48] | glIndexiv[48] | glScissor[48] |
glColor3b[48] | glIndexs[48] | glSelectBuffer[48] |
glColor3bv[48] | glIndexsv[48] | glSeparableFilter2D[48] |
glColor3d[48] | glIndexub[48] | glShadeModel[48] |
glColor3dv[48] | glIndexubv[48] | glStencilFunc[48] |
glColor3f[48] | glInitNames[48] | glStencilMask[48] |
glColor3fv[48] | glInterleavedArrays[48] | glStencilOp[48] |
glColor3i[48] | glIsEnabled[48] | glTexCoord1d[48] |
glColor3iv[48] | glIsList[48] | glTexCoord1dv[48] |
glColor3s[48] | glIsTexture[48] | glTexCoord1f[48] |
glColor3sv[48] | glLightModelf[48] | glTexCoord1fv[48] |
glColor3ub[48] | glLightModelfv[48] | glTexCoord1i[48] |
glColor3ubv[48] | glLightModeli[48] | glTexCoord1iv[48] |
glColor3ui[48] | glLightModeliv[48] | glTexCoord1s[48] |
glColor3uiv[48] | glLightf[48] | glTexCoord1sv[48] |
glColor3us[48] | glLightfv[48] | glTexCoord2d[48] |
glColor3usv[48] | glLighti[48] | glTexCoord2dv[48] |
glColor4b[48] | glLightiv[48] | glTexCoord2f[48] |
glColor4bv[48] | glLineStipple[48] | glTexCoord2fv[48] |
glColor4d[48] | glLineWidth[48] | glTexCoord2i[48] |
glColor4dv[48] | glListBase[48] | glTexCoord2iv[48] |
glColor4f[48] | glLoadIdentity[48] | glTexCoord2s[48] |
glColor4fv[48] | glLoadMatrixd[48] | glTexCoord2sv[48] |
glColor4i[48] | glLoadMatrixf[48] | glTexCoord3d[48] |
glColor4iv[48] | glLoadName[48] | glTexCoord3dv[48] |
glColor4s[48] | glLogicOp[48] | glTexCoord3f[48] |
glColor4sv[48] | glMap1d[48] | glTexCoord3fv[48] |
glColor4ub[48] | glMap1f[48] | glTexCoord3i[48] |
glColor4ubv[48] | glMap2d[48] | glTexCoord3iv[48] |
glColor4ui[48] | glMap2f[48] | glTexCoord3s[48] |
glColor4uiv[48] | glMapGrid1d[48] | glTexCoord3sv[48] |
glColor4us[48] | glMapGrid1f[48] | glTexCoord4d[48] |
glColor4usv[48] | glMapGrid2d[48] | glTexCoord4dv[48] |
glColorMask[48] | glMapGrid2f[48] | glTexCoord4f[48] |
glColorMaterial[48] | glMaterialf[48] | glTexCoord4fv[48] |
glColorPointer[48] | glMaterialfv[48] | glTexCoord4i[48] |
glColorSubTable[48] | glMateriali[48] | glTexCoord4iv[48] |
glColorTable[48] | glMaterialiv[48] | glTexCoord4s[48] |
glColorTableParameterfv[48] | glMatrixMode[48] | glTexCoord4sv[48] |
glColorTableParameteriv[48] | glMinmax[48] | glTexCoordPointer[48] |
glConvolutionFilter1D[48] | glMultMatrixd[48] | glTexEnvf[48] |
glConvolutionFilter2D[48] | glMultMatrixf[48] | glTexEnvfv[48] |
glConvolutionParameterf[48] | glMultiTexCoord1dARB[48] | glTexEnvi[48] |
glConvolutionParameterfv[48] | glMultiTexCoord1dvARB[48] | glTexEnviv[48] |
glConvolutionParameteri[48] | glMultiTexCoord1fARB[48] | glTexGend[48] |
glConvolutionParameteriv[48] | glMultiTexCoord1fvARB[48] | glTexGendv[48] |
glCopyColorSubTable[48] | glMultiTexCoord1iARB[48] | glTexGenf[48] |
glCopyColorTable[48] | glMultiTexCoord1ivARB[48] | glTexGenfv[48] |
glCopyConvolutionFilter1D[48] | glMultiTexCoord1sARB[48] | glTexGeni[48] |
glCopyConvolutionFilter2D[48] | glMultiTexCoord1svARB[48] | glTexGeniv[48] |
glCopyPixels[48] | glMultiTexCoord2dARB[48] | glTexImage1D[48] |
glCopyTexImage1D[48] | glMultiTexCoord2dvARB[48] | glTexImage2D[48] |
glCopyTexImage2D[48] | glMultiTexCoord2fARB[48] | glTexImage3D[48] |
glCopyTexSubImage1D[48] | glMultiTexCoord2fvARB[48] | glTexParameterf[48] |
glCopyTexSubImage2D[48] | glMultiTexCoord2iARB[48] | glTexParameterfv[48] |
glCopyTexSubImage3D[48] | glMultiTexCoord2ivARB[48] | glTexParameteri[48] |
glCullFace[48] | glMultiTexCoord2sARB[48] | glTexParameteriv[48] |
glDeleteLists[48] | glMultiTexCoord2svARB[48] | glTexSubImage1D[48] |
glDeleteTextures[48] | glMultiTexCoord3dARB[48] | glTexSubImage2D[48] |
glDepthFunc[48] | glMultiTexCoord3dvARB[48] | glTexSubImage3D[48] |
glDepthMask[48] | glMultiTexCoord3fARB[48] | glTranslated[48] |
glDepthRange[48] | glMultiTexCoord3fvARB[48] | glTranslatef[48] |
glDisable[48] | glMultiTexCoord3iARB[48] | glVertex2d[48] |
glDisableClientState[48] | glMultiTexCoord3ivARB[48] | glVertex2dv[48] |
glDrawArrays[48] | glMultiTexCoord3sARB[48] | glVertex2f[48] |
glDrawBuffer[48] | glMultiTexCoord3svARB[48] | glVertex2fv[48] |
glDrawElements[48] | glMultiTexCoord4dARB[48] | glVertex2i[48] |
glDrawPixels[48] | glMultiTexCoord4dvARB[48] | glVertex2iv[48] |
glDrawRangeElements[48] | glMultiTexCoord4fARB[48] | glVertex2s[48] |
glEdgeFlag[48] | glMultiTexCoord4fvARB[48] | glVertex2sv[48] |
glEdgeFlagPointer[48] | glMultiTexCoord4iARB[48] | glVertex3d[48] |
glEdgeFlagv[48] | glMultiTexCoord4ivARB[48] | glVertex3dv[48] |
glEnable[48] | glMultiTexCoord4sARB[48] | glVertex3f[48] |
glEnableClientState[48] | glMultiTexCoord4svARB[48] | glVertex3fv[48] |
glEnd[48] | glNewList[48] | glVertex3i[48] |
glEndList[48] | glNormal3b[48] | glVertex3iv[48] |
glEvalCoord1d[48] | glNormal3bv[48] | glVertex3s[48] |
glEvalCoord1dv[48] | glNormal3d[48] | glVertex3sv[48] |
glEvalCoord1f[48] | glNormal3dv[48] | glVertex4d[48] |
glEvalCoord1fv[48] | glNormal3f[48] | glVertex4dv[48] |
glEvalCoord2d[48] | glNormal3fv[48] | glVertex4f[48] |
glEvalCoord2dv[48] | glNormal3i[48] | glVertex4fv[48] |
glEvalCoord2f[48] | glNormal3iv[48] | glVertex4i[48] |
glEvalCoord2fv[48] | glNormal3s[48] | glVertex4iv[48] |
glEvalMesh1[48] | glNormal3sv[48] | glVertex4s[48] |
glEvalMesh2[48] | glNormalPointer[48] | glVertex4sv[48] |
glEvalPoint1[48] | glOrtho[48] | glVertexPointer[48] |
glEvalPoint2[48] | glPassThrough[48] | glViewport[48] |
glFeedbackBuffer[48] | glPixelMapfv[48] | glXChooseFBConfig[48] |
glFinish[48] | glPixelMapuiv[48] | glXChooseVisual[48] |
glFlush[48] | glPixelMapusv[48] | glXCopyContext[48] |
glFogf[48] | glPixelStoref[48] | glXCreateContext[48] |
glFogfv[48] | glPixelStorei[48] | glXCreateGLXPixmap[48] |
glFogi[48] | glPixelTransferf[48] | glXCreateNewContext[48] |
glFogiv[48] | glPixelTransferi[48] | glXCreatePbuffer[48] |
glFrontFace[48] | glPixelZoom[48] | glXCreatePixmap[48] |
glFrustum[48] | glPointSize[48] | glXCreateWindow[48] |
glGenLists[48] | glPolygonMode[48] | glXDestroyContext[48] |
glGenTextures[48] | glPolygonOffset[48] | glXDestroyGLXPixmap[48] |
glGetBooleanv[48] | glPolygonStipple[48] | glXDestroyPbuffer[48] |
glGetClipPlane[48] | glPopAttrib[48] | glXDestroyPixmap[48] |
glGetColorTable[48] | glPopClientAttrib[48] | glXDestroyWindow[48] |
glGetColorTableParameterfv[48] | glPopMatrix[48] | glXFreeContextEXT[48] |
glGetColorTableParameteriv[48] | glPopName[48] | glXGetClientString[48] |
glGetConvolutionFilter[48] | glPrioritizeTextures[48] | glXGetConfig[48] |
glGetConvolutionParameterfv[48] | glPushAttrib[48] | glXGetContextIDEXT[48] |
glGetConvolutionParameteriv[48] | glPushClientAttrib[48] | glXGetCurrentContext[48] |
glGetDoublev[48] | glPushMatrix[48] | glXGetCurrentDisplay[48] |
glGetError[48] | glPushName[48] | glXGetCurrentDrawable[48] |
glGetFloatv[48] | glRasterPos2d[48] | glXGetCurrentReadDrawable[48] |
glGetHistogram[48] | glRasterPos2dv[48] | glXGetFBConfigAttrib[48] |
glGetHistogramParameterfv[48] | glRasterPos2f[48] | glXGetProcAddressARB[48] |
glGetHistogramParameteriv[48] | glRasterPos2fv[48] | glXGetSelectedEvent[48] |
glGetIntegerv[48] | glRasterPos2i[48] | glXGetVisualFromFBConfig[48] |
glGetLightfv[48] | glRasterPos2iv[48] | glXImportContextEXT[48] |
glGetLightiv[48] | glRasterPos2s[48] | glXIsDirect[48] |
glGetMapdv[48] | glRasterPos2sv[48] | glXMakeContextCurrent[48] |
glGetMapfv[48] | glRasterPos3d[48] | glXMakeCurrent[48] |
glGetMapiv[48] | glRasterPos3dv[48] | glXQueryContext[48] |
glGetMaterialfv[48] | glRasterPos3f[48] | glXQueryContextInfoEXT[48] |
glGetMaterialiv[48] | glRasterPos3fv[48] | glXQueryDrawable[48] |
glGetMinmax[48] | glRasterPos3i[48] | glXQueryExtension[48] |
glGetMinmaxParameterfv[48] | glRasterPos3iv[48] | glXQueryExtensionsString[48] |
glGetMinmaxParameteriv[48] | glRasterPos3s[48] | glXQueryServerString[48] |
glGetPixelMapfv[48] | glRasterPos3sv[48] | glXQueryVersion[48] |
glGetPixelMapuiv[48] | glRasterPos4d[48] | glXSelectEvent[48] |
glGetPixelMapusv[48] | glRasterPos4dv[48] | glXSwapBuffers[48] |
glGetPointerv[48] | glRasterPos4f[48] | glXUseXFont[48] |
glGetPolygonStipple[48] | glRasterPos4fv[48] | glXWaitGL[48] |
glGetSeparableFilter[48] | glRasterPos4i[48] | glXWaitX[48] |
The behaviour of the interfaces in this library is specified by the following Standards.
Double Buffer Extension Library |
X Display Power Management Signaling (DPMS) Extension, Library Specification |
Security Extension Specification, Version 7.1 |
X Nonrectangular Window Shape Extension Library Version 1.0 |
MIT-SHM--The MIT Shared Memory Extension |
X Synchronization Extension Library |
Table A-7. libXext Function Interfaces
DPMSCapable[39] | XShmCreateImage[42] | XSyncQueryExtension[43] |
DPMSDisable[39] | XShmCreatePixmap[42] | XSyncSetCounter[43] |
DPMSEnable[39] | XShmDetach[42] | XSyncSetPriority[43] |
DPMSForceLevel[39] | XShmGetEventBase[42] | XSyncValueAdd[43] |
DPMSGetTimeouts[39] | XShmGetImage[42] | XSyncValueEqual[43] |
DPMSGetVersion[39] | XShmPixmapFormat[42] | XSyncValueGreaterOrEqual[43] |
DPMSInfo[39] | XShmPutImage[42] | XSyncValueGreaterThan[43] |
DPMSQueryExtension[39] | XShmQueryExtension[42] | XSyncValueHigh32[43] |
DPMSSetTimeouts[39] | XShmQueryVersion[42] | XSyncValueIsNegative[43] |
XSecurityAllocXauth[40] | XSyncAwait[43] | XSyncValueIsPositive[43] |
XSecurityFreeXauth[40] | XSyncChangeAlarm[43] | XSyncValueIsZero[43] |
XSecurityGenerateAuthorization[40] | XSyncChangeCounter[43] | XSyncValueLessOrEqual[43] |
XSecurityQueryExtension[40] | XSyncCreateAlarm[43] | XSyncValueLessThan[43] |
XSecurityRevokeAuthorization[40] | XSyncCreateCounter[43] | XSyncValueLow32[43] |
XShapeCombineMask[41] | XSyncDestroyAlarm[43] | XSyncValueSubtract[43] |
XShapeCombineRectangles[41] | XSyncDestroyCounter[43] | XdbeAllocateBackBufferName[38] |
XShapeCombineRegion[41] | XSyncFreeSystemCounterList[43] | XdbeBeginIdiom[38] |
XShapeCombineShape[41] | XSyncGetPriority[43] | XdbeDeallocateBackBufferName[38] |
XShapeGetRectangles[41] | XSyncInitialize[43] | XdbeEndIdiom[38] |
XShapeInputSelected[41] | XSyncIntToValue[43] | XdbeFreeVisualInfo[38] |
XShapeOffsetShape[41] | XSyncIntsToValue[43] | XdbeGetBackBufferAttributes[38] |
XShapeQueryExtension[41] | XSyncListSystemCounters[43] | XdbeGetVisualInfo[38] |
XShapeQueryExtents[41] | XSyncMaxValue[43] | XdbeQueryExtension[38] |
XShapeQueryVersion[41] | XSyncMinValue[43] | XdbeSwapBuffers[38] |
XShapeSelectInput[41] | XSyncQueryAlarm[43] | |
XShmAttach[42] | XSyncQueryCounter[43] |
The behaviour of the interfaces in this library is specified by the following Standards.
X11R6.4 X Inter-Client Exchange (ICE) Protocol |
Table A-8. libICE Function Interfaces
IceAcceptConnection[45] | IceGetConnectionContext[45] | IceProtocolVersion[45] |
IceAddConnectionWatch[45] | IceGetInBufSize[45] | IceReadAuthFileEntry[45] |
IceAllocScratch[45] | IceGetListenConnectionNumber[45] | IceRegisterForProtocolReply[45] |
IceAppLockConn[45] | IceGetListenConnectionString[45] | IceRegisterForProtocolSetup[45] |
IceAppUnlockConn[45] | IceGetOutBufSize[45] | IceRelease[45] |
IceAuthFileName[45] | IceInitThreads[45] | IceRemoveConnectionWatch[45] |
IceCheckShutdownNegotiation[45] | IceLastReceivedSequenceNumber[45] | IceSetErrorHandler[45] |
IceCloseConnection[45] | IceLastSentSequenceNumber[45] | IceSetHostBasedAuthProc[45] |
IceComposeNetworkIdList[45] | IceListenForConnections[45] | IceSetIOErrorHandler[45] |
IceConnectionNumber[45] | IceListenForWellKnownConnections[45] | IceSetPaAuthData[45] |
IceConnectionStatus[45] | IceLockAuthFile[45] | IceSetShutdownNegotiation[45] |
IceConnectionString[45] | IceOpenConnection[45] | IceSwapping[45] |
IceFlush[45] | IcePing[45] | IceUnlockAuthFile[45] |
IceFreeAuthFileEntry[45] | IceProcessMessages[45] | IceVendor[45] |
IceFreeListenObjs[45] | IceProtocolRevision[45] | IceWriteAuthFileEntry[45] |
IceGenerateMagicCookie[45] | IceProtocolSetup[45] | |
IceGetAuthFileEntry[45] | IceProtocolShutdown[45] |
The behaviour of the interfaces in this library is specified by the following Standards.
X11R6.4 X Session Management Library |
Table A-9. libSM Function Interfaces
SmFreeProperty[44] | SmcRelease[44] | SmsInitialize[44] |
SmFreeReasons[44] | SmcRequestSaveYourself[44] | SmsInteract[44] |
SmcClientID[44] | SmcRequestSaveYourselfPhase2[44] | SmsProtocolRevision[44] |
SmcCloseConnection[44] | SmcSaveYourselfDone[44] | SmsProtocolVersion[44] |
SmcDeleteProperties[44] | SmcSetErrorHandler[44] | SmsRegisterClientReply[44] |
SmcGetIceConnection[44] | SmcSetProperties[44] | SmsReturnProperties[44] |
SmcGetProperties[44] | SmcVendor[44] | SmsSaveComplete[44] |
SmcInteractDone[44] | SmsCleanUp[44] | SmsSaveYourself[44] |
SmcInteractRequest[44] | SmsClientHostName[44] | SmsSaveYourselfPhase2[44] |
SmcModifyCallbacks[44] | SmsClientID[44] | SmsSetErrorHandler[44] |
SmcOpenConnection[44] | SmsDie[44] | SmsShutdownCancelled[44] |
SmcProtocolRevision[44] | SmsGenerateClientID[44] | |
SmcProtocolVersion[44] | SmsGetIceConnection[44] |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) |
The behaviour of the interfaces in this library is specified by the following Standards.
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) |
The behaviour of the interfaces in this library is specified by the following Standards.
zlib 1.1.3 Manual |
Table A-12. libz Function Interfaces
adler32[34] | gzdopen[34] | gztell[34] |
compress[34] | gzeof[34] | gzwrite[34] |
compress2[34] | gzerror[34] | inflate[34] |
crc32[34] | gzflush[34] | inflateEnd[34] |
deflate[34] | gzgetc[34] | inflateInit2_[34] |
deflateCopy[34] | gzgets[34] | inflateInit_[34] |
deflateEnd[34] | gzopen[34] | inflateReset[34] |
deflateInit2_[34] | gzprintf[34] | inflateSetDictionary[34] |
deflateInit_[34] | gzputc[34] | inflateSync[34] |
deflateParams[34] | gzputs[34] | inflateSyncPoint[34] |
deflateReset[34] | gzread[34] | uncompress[34] |
deflateSetDictionary[34] | gzrewind[34] | zError[34] |
get_crc_table[34] | gzseek[34] | |
gzclose[34] | gzsetparams[34] |
The behaviour of the interfaces in this library is specified by the following Standards.
CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018 |
Table A-13. libncurses Function Interfaces
addch[35] | mvdelch[35] | slk_restore[35] |
addchnstr[35] | mvderwin[35] | slk_set[35] |
addchstr[35] | mvgetch[35] | slk_touch[35] |
addnstr[35] | mvgetnstr[35] | standend[35] |
addstr[35] | mvgetstr[35] | standout[35] |
attr_get[35] | mvhline[35] | start_color[35] |
attr_off[35] | mvinch[35] | subpad[35] |
attr_on[35] | mvinchnstr[35] | subwin[35] |
attr_set[35] | mvinchstr[35] | syncok[35] |
attroff[35] | mvinnstr[35] | termattrs[35] |
attron[35] | mvinsch[35] | termname[35] |
attrset[35] | mvinsnstr[35] | tgetent[35] |
baudrate[35] | mvinsstr[35] | tgetflag[35] |
beep[35] | mvinstr[35] | tgetnum[35] |
bkgd[35] | mvprintw[35] | tgetstr[35] |
bkgdset[35] | mvscanw[35] | tgoto[35] |
border[35] | mvvline[35] | tigetflag[35] |
box[35] | mvwaddch[35] | tigetnum[35] |
can_change_color[35] | mvwaddchnstr[35] | tigetstr[35] |
cbreak[35] | mvwaddchstr[35] | timeout[35] |
chgat[35] | mvwaddnstr[35] | touchline[35] |
clear[35] | mvwaddstr[35] | touchwin[35] |
clearok[35] | mvwchgat[35] | tparm[35] |
clrtobot[35] | mvwdelch[35] | tputs[35] |
clrtoeol[35] | mvwgetch[35] | typeahead[35] |
color_content[35] | mvwgetnstr[35] | ungetch[35] |
color_set[35] | mvwgetstr[35] | untouchwin[35] |
copywin[35] | mvwhline[35] | use_env[35] |
curs_set[35] | mvwin[35] | vidattr[35] |
def_prog_mode[35] | mvwinch[35] | vidputs[35] |
def_shell_mode[35] | mvwinchnstr[35] | vline[35] |
delay_output[35] | mvwinchstr[35] | vw_printw[35] |
delch[35] | mvwinnstr[35] | vw_scanw[35] |
deleteln[35] | mvwinsch[35] | vwprintw[35] |
delscreen[35] | mvwinsnstr[35] | vwscanw[35] |
delwin[35] | mvwinsstr[35] | waddch[35] |
derwin[35] | mvwinstr[35] | waddchnstr[35] |
doupdate[35] | mvwprintw[35] | waddchstr[35] |
dupwin[35] | mvwscanw[35] | waddnstr[35] |
echo[35] | mvwvline[35] | waddstr[35] |
echochar[35] | napms[35] | wattr_get[35] |
endwin[35] | newpad[35] | wattr_off[35] |
erase[35] | newterm[35] | wattr_on[35] |
erasechar[35] | newwin[35] | wattr_set[35] |
filter[35] | nl[35] | wattroff[35] |
flash[35] | nocbreak[35] | wattron[35] |
flushinp[35] | nodelay[35] | wattrset[35] |
getbkgd[35] | noecho[35] | wbkgd[35] |
getch[35] | nonl[35] | wbkgdset[35] |
getnstr[35] | noqiflush[35] | wborder[35] |
getstr[35] | noraw[35] | wchgat[35] |
getwin[35] | notimeout[35] | wclear[35] |
halfdelay[35] | overlay[35] | wclrtobot[35] |
has_colors[35] | overwrite[35] | wclrtoeol[35] |
has_ic[35] | pair_content[35] | wcolor_set[35] |
has_il[35] | pechochar[35] | wcursyncup[35] |
hline[35] | pnoutrefresh[35] | wdelch[35] |
idcok[35] | prefresh[35] | wdeleteln[35] |
idlok[35] | printw[35] | wechochar[35] |
immedok[35] | putp[35] | werase[35] |
inch[35] | putwin[35] | wgetch[35] |
inchnstr[35] | qiflush[35] | wgetnstr[35] |
inchstr[35] | raw[35] | wgetstr[35] |
init_color[35] | redrawwin[35] | whline[35] |
init_pair[35] | refresh[35] | winch[35] |
initscr[35] | reset_prog_mode[35] | winchnstr[35] |
innstr[35] | reset_shell_mode[35] | winchstr[35] |
insch[35] | resetty[35] | winnstr[35] |
insdelln[35] | ripoffline[35] | winsch[35] |
insertln[35] | savetty[35] | winsdelln[35] |
insnstr[35] | scanw[35] | winsertln[35] |
insstr[35] | scr_dump[35] | winsnstr[35] |
instr[35] | scr_init[35] | winsstr[35] |
intrflush[35] | scr_restore[35] | winstr[35] |
is_linetouched[35] | scr_set[35] | wmove[35] |
is_wintouched[35] | scrl[35] | wnoutrefresh[35] |
isendwin[35] | scroll[35] | wprintw[35] |
keyname[35] | scrollok[35] | wredrawln[35] |
keypad[35] | set_term[35] | wrefresh[35] |
killchar[35] | setscrreg[35] | wscanw[35] |
leaveok[35] | setupterm[35] | wscrl[35] |
longname[35] | slk_attr_set[35] | wsetscrreg[35] |
meta[35] | slk_attroff[35] | wstandend[35] |
move[35] | slk_attron[35] | wstandout[35] |
mvaddch[35] | slk_attrset[35] | wsyncdown[35] |
mvaddchnstr[35] | slk_clear[35] | wsyncup[35] |
mvaddchstr[35] | slk_color[35] | wtimeout[35] |
mvaddnstr[35] | slk_init[35] | wtouchln[35] |
mvaddstr[35] | slk_label[35] | wvline[35] |
mvchgat[35] | slk_noutrefresh[35] | |
mvcur[35] | slk_refresh[35] |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
The behaviour of the interfaces in this library is specified by the following Standards.
ISO/IEC 9899: 1999, Programming Languages --C |
Large File Support |
Linux Standard Base |
IEEE Std POSIX.1-1996 [ISO/IEC 9945-1:1996] |
CAE Specification, February 1997, Networking Services (XNS), Issue 5(ISBN: 1-85912-165-9, C523) |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) |
The Single UNIX® Specification(SUS) Version 3 |
System V Interface Definition, Issue 3 (ISBN 0201566524) |
System V Interface Definition,Fourth Edition |
Table A-16. libc Function Interfaces
_Exit(GLIBC_2.1.1)[2] | getrusage(GLIBC_2.1.1)[7] | shmctl(GLIBC_2.1.1)[7] |
_IO_feof(GLIBC_2.0)[4] | gets(GLIBC_2.0)[4] | shmdt(GLIBC_2.0)[7] |
_IO_getc(GLIBC_2.0)[4] | getservbyname(GLIBC_2.0)[4] | shmget(GLIBC_2.0)[7] |
_IO_putc(GLIBC_2.0)[4] | getservbyport(GLIBC_2.0)[6] | shutdown(GLIBC_2.0)[6] |
_IO_puts(GLIBC_2.0)[4] | getservent(GLIBC_2.0)[4] | sigaction(GLIBC_2.0)[7] |
__assert_fail(GLIBC_2.0)[4] | getsid(GLIBC_2.0)[7] | sigaddset(GLIBC_2.0)[7] |
__ctype_get_mb_cur_max(GLIBC_2.0)[4] | getsockname(GLIBC_2.0)[6] | sigaltstack(GLIBC_2.0)[7] |
__cxa_atexit(GLIBC_2.1.3)[4] | getsockopt(GLIBC_2.1.3)[6] | sigandset(GLIBC_2.1.3)[4] |
__errno_location(GLIBC_2.0)[4] | getsubopt(GLIBC_2.0)[7] | sigblock(GLIBC_2.0)[4] |
__fpending(GLIBC_2.2)[4] | gettext(GLIBC_2.2)[4] | sigdelset(GLIBC_2.2)[7] |
__fxstat(GLIBC_2.0)[4] | gettimeofday(GLIBC_2.0)[7] | sigemptyset(GLIBC_2.0)[7] |
__fxstat64(GLIBC_2.2)[4] | getuid(GLIBC_2.2)[7] | sigfillset(GLIBC_2.2)[7] |
__getpagesize(GLIBC_2.0)[4] | getutent(GLIBC_2.0)[4] | siggetmask(GLIBC_2.0)[4] |
__getpgid(GLIBC_2.0)[4] | getutent_r(GLIBC_2.0)[4] | sighold(GLIBC_2.0)[7] |
__h_errno_location[4] | getutxent()[7] | sigignore()[7] |
__isinf[4] | getutxid()[7] | siginterrupt()[7] |
__isinff[4] | getutxline()[7] | sigisemptyset()[4] |
__isinfl[4] | getw()[7] | sigismember()[7] |
__isnan[4] | getwc()[2] | siglongjmp()[7] |
__isnanf[4] | getwchar()[7] | signal()[7] |
__isnanl[4] | getwd()[7] | sigorset()[4] |
__libc_current_sigrtmax(GLIBC_2.1)[4] | glob(GLIBC_2.1)[7] | sigpause(GLIBC_2.1)[7] |
__libc_current_sigrtmin(GLIBC_2.1)[4] | glob64(GLIBC_2.1)[4] | sigpending(GLIBC_2.1)[7] |
__libc_start_main(GLIBC_2.0)[4] | globfree(GLIBC_2.0)[7] | sigprocmask(GLIBC_2.0)[7] |
__lxstat(GLIBC_2.0)[4] | globfree64(GLIBC_2.0)[4] | sigqueue(GLIBC_2.0)[7] |
__lxstat64(GLIBC_2.2)[4] | gmtime(GLIBC_2.2)[7] | sigrelse(GLIBC_2.2)[7] |
__mempcpy(GLIBC_2.0)[4] | gmtime_r(GLIBC_2.0)[7] | sigreturn(GLIBC_2.0)[4] |
__rawmemchr(GLIBC_2.1)[4] | grantpt(GLIBC_2.1)[7] | sigset(GLIBC_2.1)[7] |
__sigsetjmp(GLIBC_2.0)[4] | hcreate(GLIBC_2.0)[7] | sigstack(GLIBC_2.0)[7] |
__stpcpy(GLIBC_2.0)[4] | hdestroy(GLIBC_2.0)[7] | sigsuspend(GLIBC_2.0)[7] |
__strdup(GLIBC_2.0)[4] | hsearch(GLIBC_2.0)[7] | sigtimedwait(GLIBC_2.0)[7] |
__strtod_internal(GLIBC_2.0)[4] | htonl(GLIBC_2.0)[6] | sigwait(GLIBC_2.0)[7] |
__strtof_internal(GLIBC_2.0)[4] | htons(GLIBC_2.0)[6] | sigwaitinfo(GLIBC_2.0)[7] |
__strtok_r(GLIBC_2.0)[4] | iconv(GLIBC_2.0)[7] | sleep(GLIBC_2.0)[7] |
__strtol_internal(GLIBC_2.0)[4] | iconv_close(GLIBC_2.0)[7] | snprintf(GLIBC_2.0)[7] |
__strtold_internal(GLIBC_2.0)[4] | iconv_open(GLIBC_2.0)[7] | socket(GLIBC_2.0)[6] |
__strtoll_internal(GLIBC_2.0)[4] | imaxabs(GLIBC_2.0)[2] | socketpair(GLIBC_2.0)[6] |
__strtoul_internal(GLIBC_2.0)[4] | imaxdiv(GLIBC_2.0)[2] | sprintf(GLIBC_2.0)[7] |
__strtoull_internal(GLIBC_2.0)[4] | index(GLIBC_2.0)[7] | srand(GLIBC_2.0)[7] |
__sysconf(GLIBC_2.2)[4] | inet_addr(GLIBC_2.2)[6] | srand48(GLIBC_2.2)[7] |
__sysv_signal(GLIBC_2.0)[4] | inet_aton(GLIBC_2.0)[6] | srandom(GLIBC_2.0)[7] |
__wcstod_internal(GLIBC_2.0)[4] | inet_ntoa(GLIBC_2.0)[6] | sscanf(GLIBC_2.0)[7] |
__wcstof_internal(GLIBC_2.0)[4] | inet_ntop[8] | statvfs(GLIBC_2.0)[7] |
__wcstol_internal(GLIBC_2.0)[4] | inet_pton[8] | statvfs64[3] |
__wcstold_internal(GLIBC_2.0)[4] | initgroups(GLIBC_2.0)[4] | step(GLIBC_2.0)[7] |
__wcstoul_internal(GLIBC_2.0)[4] | initstate(GLIBC_2.0)[7] | stime(GLIBC_2.0)[4] |
__xmknod(GLIBC_2.0)[4] | insque(GLIBC_2.0)[7] | stpcpy(GLIBC_2.0)[4] |
__xstat(GLIBC_2.0)[4] | ioctl(GLIBC_2.0)[4] | stpncpy(GLIBC_2.0)[4] |
__xstat64(GLIBC_2.2)[4] | isalnum(GLIBC_2.2)[7] | strcasecmp(GLIBC_2.2)[7] |
_exit(GLIBC_2.0)[7] | isalpha(GLIBC_2.0)[7] | strcasestr(GLIBC_2.0)[4] |
_longjmp(GLIBC_2.0)[7] | isascii(GLIBC_2.0)[7] | strcat(GLIBC_2.0)[7] |
_obstack_begin(GLIBC_2.0)[4] | isatty(GLIBC_2.0)[7] | strchr(GLIBC_2.0)[7] |
_obstack_newchunk(GLIBC_2.0)[4] | isblank(GLIBC_2.0)[8] | strcmp(GLIBC_2.0)[7] |
_setjmp(GLIBC_2.0)[7] | iscntrl(GLIBC_2.0)[7] | strcoll(GLIBC_2.0)[7] |
_tolower(GLIBC_2.0)[7] | isdigit(GLIBC_2.0)[7] | strcpy(GLIBC_2.0)[7] |
_toupper(GLIBC_2.0)[7] | isgraph(GLIBC_2.0)[7] | strcspn(GLIBC_2.0)[7] |
a64l(GLIBC_2.0)[7] | isinf(GLIBC_2.0)[2] | strdup(GLIBC_2.0)[7] |
abort(GLIBC_2.0)[7] | isinff | strerror(GLIBC_2.0)[7] |
abs(GLIBC_2.0)[7] | isinfl(GLIBC_2.0)[2] | strerror_r(GLIBC_2.0)[4] |
accept(GLIBC_2.0)[6] | islower(GLIBC_2.0)[7] | strfmon(GLIBC_2.0)[7] |
access(GLIBC_2.0)[7] | isnan(GLIBC_2.0)[2] | strfry(GLIBC_2.0)[4] |
acct(GLIBC_2.0)[4] | isnanf(GLIBC_2.0)[2] | strftime(GLIBC_2.0)[7] |
adjtime(GLIBC_2.0)[4] | isnanl(GLIBC_2.0)[2] | strlen(GLIBC_2.0)[7] |
adjtimex(GLIBC_2.0)[4] | isprint(GLIBC_2.0)[7] | strncasecmp(GLIBC_2.0)[7] |
advance(GLIBC_2.0)[7] | ispunct(GLIBC_2.0)[7] | strncat(GLIBC_2.0)[7] |
alarm(GLIBC_2.0)[7] | isspace(GLIBC_2.0)[7] | strncmp(GLIBC_2.0)[7] |
asctime(GLIBC_2.0)[7] | isupper(GLIBC_2.0)[7] | strncpy(GLIBC_2.0)[7] |
asctime_r(GLIBC_2.0)[7] | iswalnum(GLIBC_2.0)[7] | strndup(GLIBC_2.0)[4] |
asprintf(GLIBC_2.0)[4] | iswalpha(GLIBC_2.0)[7] | strnlen(GLIBC_2.0)[4] |
atexit(GLIBC_2.0)[7] | iswblank(GLIBC_2.0)[8] | strpbrk(GLIBC_2.0)[7] |
atof(GLIBC_2.0)[7] | iswcntrl(GLIBC_2.0)[7] | strptime(GLIBC_2.0)[4] |
atoi(GLIBC_2.0)[7] | iswctype(GLIBC_2.0)[4] | strrchr(GLIBC_2.0)[7] |
atol(GLIBC_2.0)[7] | iswdigit(GLIBC_2.0)[7] | strsep(GLIBC_2.0)[4] |
atoll[2] | iswgraph()[7] | strsignal()[4] |
authnone_create(GLIBC_2.0)[10] | iswlower(GLIBC_2.0)[7] | strspn(GLIBC_2.0)[7] |
basename(GLIBC_2.0)[7] | iswprint(GLIBC_2.0)[7] | strstr(GLIBC_2.0)[7] |
bcmp(GLIBC_2.0)[7] | iswpunct(GLIBC_2.0)[7] | strtod(GLIBC_2.0)[7] |
bcopy(GLIBC_2.0)[7] | iswspace(GLIBC_2.0)[7] | strtof(GLIBC_2.0)[2] |
bind(GLIBC_2.0)[6] | iswupper(GLIBC_2.0)[7] | strtoimax(GLIBC_2.0)[2] |
bind_textdomain_codeset[4] | iswxdigit()[7] | strtok()[7] |
bindresvport(GLIBC_2.0)[4] | isxdigit(GLIBC_2.0)[7] | strtok_r(GLIBC_2.0)[4] |
bindtextdomain(GLIBC_2.0)[4] | jrand48(GLIBC_2.0)[7] | strtol(GLIBC_2.0)[7] |
brk(GLIBC_2.0)[7] | key_decryptsession(GLIBC_2.0)[9] | strtold(GLIBC_2.0)[2] |
bsd_signal(GLIBC_2.0)[7] | kill(GLIBC_2.0)[4] | strtoll(GLIBC_2.0)[2] |
bsearch(GLIBC_2.0)[7] | killpg(GLIBC_2.0)[7] | strtoq(GLIBC_2.0)[4] |
btowc(GLIBC_2.0)[7] | l64a(GLIBC_2.0)[7] | strtoul(GLIBC_2.0)[7] |
bzero(GLIBC_2.0)[7] | labs(GLIBC_2.0)[7] | strtoull(GLIBC_2.0)[2] |
calloc(GLIBC_2.0)[7] | lchown(GLIBC_2.0)[7] | strtoumax(GLIBC_2.0)[2] |
catclose(GLIBC_2.0)[7] | lcong48(GLIBC_2.0)[7] | strtouq(GLIBC_2.0)[4] |
catgets(GLIBC_2.0)[7] | ldiv(GLIBC_2.0)[7] | strverscmp(GLIBC_2.0)[4] |
catopen(GLIBC_2.0)[7] | lfind(GLIBC_2.0)[7] | strxfrm(GLIBC_2.0)[7] |
cfgetispeed(GLIBC_2.0)[7] | link(GLIBC_2.0)[7] | svc_getreqset(GLIBC_2.0)[9] |
cfgetospeed(GLIBC_2.0)[7] | listen(GLIBC_2.0)[6] | svcerr_auth(GLIBC_2.0)[9] |
cfmakeraw(GLIBC_2.0)[4] | llabs(GLIBC_2.0)[2] | svcerr_decode(GLIBC_2.0)[9] |
cfsetispeed(GLIBC_2.0)[7] | lldiv(GLIBC_2.0)[2] | svcerr_noproc(GLIBC_2.0)[9] |
cfsetospeed(GLIBC_2.0)[7] | localeconv(GLIBC_2.0)[7] | svcerr_noprog(GLIBC_2.0)[9] |
cfsetspeed(GLIBC_2.0)[4] | localtime(GLIBC_2.0)[7] | svcerr_progvers(GLIBC_2.0)[9] |
chdir(GLIBC_2.0)[7] | localtime_r(GLIBC_2.0)[7] | svcerr_systemerr(GLIBC_2.0)[9] |
chmod(GLIBC_2.0)[7] | lockf(GLIBC_2.0)[7] | svcerr_weakauth(GLIBC_2.0)[9] |
chown(GLIBC_2.1)[7] | lockf64(GLIBC_2.1)[3] | swab(GLIBC_2.1)[7] |
chroot(GLIBC_2.0)[7] | longjmp(GLIBC_2.0)[7] | swapcontext(GLIBC_2.0)[7] |
clearerr(GLIBC_2.0)[7] | lrand48(GLIBC_2.0)[7] | swprintf(GLIBC_2.0)[7] |
clnt_create(GLIBC_2.0)[10] | lsearch(GLIBC_2.0)[7] | swscanf(GLIBC_2.0)[2] |
clnt_pcreateerror(GLIBC_2.0)[10] | lseek(GLIBC_2.0)[7] | symlink(GLIBC_2.0)[7] |
clnt_perrno(GLIBC_2.0)[10] | lseek64(GLIBC_2.0)[3] | sync(GLIBC_2.0)[7] |
clnt_perror(GLIBC_2.0)[10] | makecontext(GLIBC_2.0)[7] | sysconf(GLIBC_2.0)[7] |
clnt_spcreateerror(GLIBC_2.0)[10] | malloc(GLIBC_2.0)[7] | syslog(GLIBC_2.0)[7] |
clnt_sperrno(GLIBC_2.0)[10] | mblen(GLIBC_2.0)[7] | system(GLIBC_2.0)[4] |
clnt_sperror(GLIBC_2.0)[10] | mbrlen(GLIBC_2.0)[7] | tcdrain(GLIBC_2.0)[7] |
clock(GLIBC_2.0)[7] | mbrtowc(GLIBC_2.0)[7] | tcflow(GLIBC_2.0)[7] |
close(GLIBC_2.0)[7] | mbsinit(GLIBC_2.0)[7] | tcflush(GLIBC_2.0)[7] |
closedir(GLIBC_2.0)[7] | mbsnrtowcs(GLIBC_2.0)[4] | tcgetattr(GLIBC_2.0)[7] |
closelog(GLIBC_2.0)[7] | mbsrtowcs(GLIBC_2.0)[7] | tcgetpgrp(GLIBC_2.0)[7] |
confstr(GLIBC_2.0)[7] | mbstowcs(GLIBC_2.0)[7] | tcgetsid(GLIBC_2.0)[7] |
connect(GLIBC_2.0)[6] | mbtowc(GLIBC_2.0)[7] | tcsendbreak(GLIBC_2.0)[7] |
creat(GLIBC_2.0)[7] | memccpy(GLIBC_2.0)[7] | tcsetattr(GLIBC_2.0)[7] |
creat64(GLIBC_2.1)[3] | memchr(GLIBC_2.1)[7] | tcsetpgrp(GLIBC_2.1)[7] |
ctermid(GLIBC_2.0)[7] | memcmp(GLIBC_2.0)[7] | tdelete[7] |
ctime(GLIBC_2.0)[7] | memcpy(GLIBC_2.0)[7] | telldir(GLIBC_2.0)[7] |
ctime_r(GLIBC_2.0)[7] | memmem(GLIBC_2.0)[4] | tempnam(GLIBC_2.0)[7] |
cuserid(GLIBC_2.0)[7] | memmove(GLIBC_2.0)[7] | textdomain(GLIBC_2.0)[4] |
daemon(GLIBC_2.0)[4] | memrchr(GLIBC_2.0)[4] | tfind(GLIBC_2.0)[7] |
dcgettext(GLIBC_2.0)[4] | memset(GLIBC_2.0)[7] | time(GLIBC_2.0)[7] |
dcngettext[4] | mkdir()[7] | times()[7] |
dgettext[4] | mkfifo()[7] | tmpfile()[7] |
difftime(GLIBC_2.0)[7] | mkstemp(GLIBC_2.0)[7] | tmpfile64(GLIBC_2.0)[3] |
dirname(GLIBC_2.0)[7] | mkstemp64(GLIBC_2.0)[3] | tmpnam(GLIBC_2.0)[7] |
div(GLIBC_2.0)[7] | mktemp(GLIBC_2.0)[7] | toascii(GLIBC_2.0)[7] |
dngettext[4] | mktime()[7] | tolower()[7] |
drand48(GLIBC_2.0)[7] | mlock(GLIBC_2.0)[7] | toupper(GLIBC_2.0)[7] |
dup(GLIBC_2.0)[7] | mlockall(GLIBC_2.0)[7] | towctrans(GLIBC_2.0)[7] |
dup2(GLIBC_2.0)[7] | mmap(GLIBC_2.0)[7] | towlower(GLIBC_2.0)[2] |
ecvt(GLIBC_2.0)[7] | mmap64(GLIBC_2.0)[3] | towupper(GLIBC_2.0)[7] |
endgrent(GLIBC_2.0)[7] | mprotect(GLIBC_2.0)[7] | truncate(GLIBC_2.0)[7] |
endnetent(GLIBC_2.0)[6] | mrand48(GLIBC_2.0)[7] | truncate64(GLIBC_2.0)[3] |
endprotoent(GLIBC_2.0)[6] | msgctl(GLIBC_2.0)[7] | tsearch(GLIBC_2.0)[7] |
endpwent(GLIBC_2.0)[7] | msgget(GLIBC_2.0)[7] | ttyname(GLIBC_2.0)[7] |
endservent(GLIBC_2.0)[6] | msgrcv(GLIBC_2.0)[7] | ttyname_r(GLIBC_2.0)[7] |
endutent(GLIBC_2.0)[7] | msgsnd(GLIBC_2.0)[7] | twalk(GLIBC_2.0)[7] |
endutxent(GLIBC_2.1)[7] | msync(GLIBC_2.1)[7] | tzset(GLIBC_2.1)[7] |
erand48(GLIBC_2.0)[7] | munlock(GLIBC_2.0)[7] | ualarm(GLIBC_2.0)[7] |
err(GLIBC_2.0)[4] | munlockall(GLIBC_2.0)[7] | ulimit(GLIBC_2.0)[7] |
error(GLIBC_2.0)[4] | munmap(GLIBC_2.0)[7] | umask(GLIBC_2.0)[7] |
errx(GLIBC_2.0)[4] | nanosleep(GLIBC_2.0)[7] | uname(GLIBC_2.0)[7] |
execl(GLIBC_2.0)[7] | nftw(GLIBC_2.0)[7] | ungetc(GLIBC_2.0)[7] |
execle(GLIBC_2.0)[7] | nftw64(GLIBC_2.0)[3] | ungetwc(GLIBC_2.0)[2] |
execlp(GLIBC_2.0)[7] | ngettext[4] | unlink(GLIBC_2.0)[4] |
execv(GLIBC_2.0)[7] | nice(GLIBC_2.0)[4] | unlockpt(GLIBC_2.0)[7] |
execve(GLIBC_2.0)[7] | nl_langinfo(GLIBC_2.0)[7] | unsetenv[4] |
execvp(GLIBC_2.0)[7] | nrand48(GLIBC_2.0)[7] | usleep(GLIBC_2.0)[7] |
exit(GLIBC_2.0)[7] | ntohl(GLIBC_2.0)[6] | utime(GLIBC_2.0)[7] |
fchdir(GLIBC_2.0)[7] | ntohs(GLIBC_2.0)[6] | utimes(GLIBC_2.0)[7] |
fchmod(GLIBC_2.0)[7] | obstack_free(GLIBC_2.0)[4] | vasprintf(GLIBC_2.0)[4] |
fchown(GLIBC_2.0)[7] | open(GLIBC_2.0)[7] | vdprintf(GLIBC_2.0)[4] |
fclose(GLIBC_2.1)[7] | open64(GLIBC_2.1)[3] | verrx(GLIBC_2.1)[4] |
fcntl(GLIBC_2.0)[4] | opendir(GLIBC_2.0)[7] | vfork(GLIBC_2.0)[7] |
fcvt(GLIBC_2.0)[7] | openlog(GLIBC_2.0)[7] | vfprintf(GLIBC_2.0)[7] |
fdatasync(GLIBC_2.0)[7] | pathconf(GLIBC_2.0)[7] | vfscanf[2] |
fdopen(GLIBC_2.1)[7] | pause(GLIBC_2.1)[7] | vfwprintf(GLIBC_2.1)[2] |
feof(GLIBC_2.0)[7] | pclose(GLIBC_2.0)[7] | vfwscanf(GLIBC_2.0)[2] |
ferror(GLIBC_2.0)[7] | perror(GLIBC_2.0)[7] | vprintf(GLIBC_2.0)[7] |
fflush(GLIBC_2.0)[7] | pipe(GLIBC_2.0)[7] | vscanf[2] |
fflush_unlocked(GLIBC_2.0)[7] | poll(GLIBC_2.0)[7] | vsnprintf(GLIBC_2.0)[7] |
ffs(GLIBC_2.0)[7] | popen(GLIBC_2.0)[7] | vsprintf(GLIBC_2.0)[7] |
fgetc(GLIBC_2.0)[7] | posix_memalign(GLIBC_2.0)[5] | vsscanf[2] |
fgetpos(GLIBC_2.0)[7] | pread(GLIBC_2.0)[7] | vswprintf(GLIBC_2.0)[2] |
fgetpos64(GLIBC_2.1)[3] | pread64(GLIBC_2.1)[3] | vswscanf(GLIBC_2.1)[2] |
fgets(GLIBC_2.0)[7] | printf(GLIBC_2.0)[7] | vsyslog[4] |
fgetwc(GLIBC_2.2)[7] | psignal(GLIBC_2.2)[4] | vwprintf(GLIBC_2.2)[2] |
fgetwc_unlocked(GLIBC_2.2)[7] | ptsname(GLIBC_2.2)[7] | vwscanf(GLIBC_2.2)[2] |
fgetws(GLIBC_2.2)[2] | putc(GLIBC_2.2)[7] | wait(GLIBC_2.2)[7] |
fileno(GLIBC_2.0)[7] | putc_unlocked(GLIBC_2.0)[7] | wait3(GLIBC_2.0)[4] |
flock(GLIBC_2.0)[4] | putchar(GLIBC_2.0)[7] | wait4(GLIBC_2.0)[4] |
flockfile(GLIBC_2.0)[7] | putchar_unlocked(GLIBC_2.0)[7] | waitpid(GLIBC_2.0)[4] |
fmtmsg(GLIBC_2.1)[7] | putenv(GLIBC_2.1)[7] | warn(GLIBC_2.1)[4] |
fnmatch(GLIBC_2.2.3)[7] | puts(GLIBC_2.2.3)[7] | warnx(GLIBC_2.2.3)[4] |
fopen(GLIBC_2.1)[7] | pututxline(GLIBC_2.1)[7] | wcpcpy(GLIBC_2.1)[4] |
fopen64(GLIBC_2.1)[3] | putw(GLIBC_2.1)[7] | wcpncpy(GLIBC_2.1)[4] |
fork(GLIBC_2.0)[7] | putwc(GLIBC_2.0)[2] | wcrtomb(GLIBC_2.0)[7] |
fpathconf(GLIBC_2.0)[7] | putwchar(GLIBC_2.0)[2] | wcscasecmp(GLIBC_2.0)[4] |
fprintf(GLIBC_2.0)[7] | pwrite(GLIBC_2.0)[7] | wcscat(GLIBC_2.0)[7] |
fputc(GLIBC_2.0)[7] | pwrite64(GLIBC_2.0)[3] | wcschr(GLIBC_2.0)[7] |
fputs(GLIBC_2.0)[7] | qsort(GLIBC_2.0)[7] | wcscmp(GLIBC_2.0)[7] |
fputwc(GLIBC_2.2)[2] | raise(GLIBC_2.2)[7] | wcscoll(GLIBC_2.2)[7] |
fputws(GLIBC_2.2)[2] | rand(GLIBC_2.2)[7] | wcscpy(GLIBC_2.2)[7] |
fread(GLIBC_2.0)[7] | rand_r(GLIBC_2.0)[7] | wcscspn(GLIBC_2.0)[7] |
free(GLIBC_2.0)[7] | random(GLIBC_2.0)[7] | wcsdup(GLIBC_2.0)[4] |
freeaddrinfo[8] | random_r()[4] | wcsftime()[2] |
freopen(GLIBC_2.0)[7] | re_comp(GLIBC_2.0)[7] | wcslen(GLIBC_2.0)[7] |
freopen64(GLIBC_2.1)[3] | re_exec(GLIBC_2.1)[7] | wcsncasecmp(GLIBC_2.1)[4] |
fscanf(GLIBC_2.0)[7] | read(GLIBC_2.0)[7] | wcsncat(GLIBC_2.0)[7] |
fseek(GLIBC_2.0)[7] | readdir(GLIBC_2.0)[7] | wcsncmp(GLIBC_2.0)[7] |
fseeko(GLIBC_2.1)[7] | readdir64(GLIBC_2.1)[3] | wcsncpy(GLIBC_2.1)[7] |
fseeko64(GLIBC_2.1)[3] | readdir_r[7] | wcsnlen(GLIBC_2.1)[4] |
fsetpos(GLIBC_2.0)[7] | readlink(GLIBC_2.0)[7] | wcsnrtombs(GLIBC_2.0)[4] |
fsetpos64(GLIBC_2.1)[3] | readv(GLIBC_2.1)[7] | wcspbrk(GLIBC_2.1)[2] |
fstatvfs(GLIBC_2.1)[7] | realloc(GLIBC_2.1)[7] | wcsrchr(GLIBC_2.1)[7] |
fstatvfs64(GLIBC_2.1)[3] | realpath(GLIBC_2.1)[7] | wcsrtombs(GLIBC_2.1)[7] |
fsync(GLIBC_2.0)[7] | recv(GLIBC_2.0)[6] | wcsspn(GLIBC_2.0)[7] |
ftell(GLIBC_2.0)[7] | recvfrom(GLIBC_2.0)[6] | wcsstr(GLIBC_2.0)[7] |
ftello(GLIBC_2.1)[7] | recvmsg(GLIBC_2.1)[6] | wcstod(GLIBC_2.1)[7] |
ftello64(GLIBC_2.1)[3] | regcomp(GLIBC_2.1)[7] | wcstof(GLIBC_2.1)[2] |
ftime(GLIBC_2.0)[7] | regerror(GLIBC_2.0)[7] | wcstoimax(GLIBC_2.0)[2] |
ftok(GLIBC_2.0)[7] | regexec(GLIBC_2.0)[7] | wcstok(GLIBC_2.0)[7] |
ftruncate(GLIBC_2.0)[7] | regfree(GLIBC_2.0)[7] | wcstol(GLIBC_2.0)[7] |
ftruncate64(GLIBC_2.1)[3] | remove(GLIBC_2.1)[7] | wcstold(GLIBC_2.1)[2] |
ftrylockfile(GLIBC_2.0)[7] | remque(GLIBC_2.0)[7] | wcstoll(GLIBC_2.0)[2] |
ftw(GLIBC_2.0)[7] | rename(GLIBC_2.0)[7] | wcstombs(GLIBC_2.0)[7] |
ftw64(GLIBC_2.1)[3] | rewind(GLIBC_2.1)[7] | wcstoq(GLIBC_2.1)[4] |
funlockfile(GLIBC_2.0)[7] | rewinddir(GLIBC_2.0)[7] | wcstoul(GLIBC_2.0)[7] |
fwide(GLIBC_2.2)[2] | rindex(GLIBC_2.2)[7] | wcstoull(GLIBC_2.2)[2] |
fwprintf(GLIBC_2.2)[7] | rmdir(GLIBC_2.2)[7] | wcstoumax(GLIBC_2.2)[2] |
fwrite(GLIBC_2.0)[7] | sbrk(GLIBC_2.0)[7] | wcstouq(GLIBC_2.0)[4] |
fwscanf(GLIBC_2.2)[2] | scanf(GLIBC_2.2)[7] | wcswcs(GLIBC_2.2)[7] |
gai_strerror[8] | sched_get_priority_max()[7] | wcswidth()[7] |
gcvt(GLIBC_2.0)[7] | sched_get_priority_min(GLIBC_2.0)[7] | wcsxfrm(GLIBC_2.0)[7] |
getaddrinfo[8] | sched_getparam()[7] | wctob()[7] |
getc(GLIBC_2.0)[7] | sched_getscheduler(GLIBC_2.0)[7] | wctomb(GLIBC_2.0)[7] |
getc_unlocked(GLIBC_2.0)[7] | sched_rr_get_interval(GLIBC_2.0)[7] | wctrans(GLIBC_2.0)[7] |
getchar(GLIBC_2.0)[7] | sched_setparam(GLIBC_2.0)[7] | wctype(GLIBC_2.0)[7] |
getchar_unlocked(GLIBC_2.0)[7] | sched_setscheduler(GLIBC_2.0)[7] | wcwidth(GLIBC_2.0)[7] |
getcontext(GLIBC_2.1)[7] | sched_yield(GLIBC_2.1)[7] | wmemchr(GLIBC_2.1)[7] |
getcwd(GLIBC_2.0)[7] | seed48(GLIBC_2.0)[7] | wmemcmp(GLIBC_2.0)[7] |
getdate(GLIBC_2.1)[7] | seekdir(GLIBC_2.1)[7] | wmemcpy(GLIBC_2.1)[7] |
getdomainname(GLIBC_2.0)[4] | select(GLIBC_2.0)[6] | wmemmove(GLIBC_2.0)[7] |
getegid(GLIBC_2.0)[7] | semctl(GLIBC_2.0)[7] | wmemset(GLIBC_2.0)[7] |
getenv(GLIBC_2.0)[7] | semget(GLIBC_2.0)[7] | wordexp(GLIBC_2.0)[7] |
geteuid(GLIBC_2.0)[7] | semop(GLIBC_2.0)[7] | wordfree(GLIBC_2.0)[7] |
getgid(GLIBC_2.0)[7] | send(GLIBC_2.0)[6] | wprintf(GLIBC_2.0)[2] |
getgrent(GLIBC_2.0)[7] | sendmsg(GLIBC_2.0)[6] | write(GLIBC_2.0)[7] |
getgrgid(GLIBC_2.0)[7] | sendto(GLIBC_2.0)[6] | writev(GLIBC_2.0)[7] |
getgrgid_r(GLIBC_2.0)[7] | setbuf(GLIBC_2.0)[7] | wscanf(GLIBC_2.0)[2] |
getgrnam(GLIBC_2.0)[7] | setbuffer(GLIBC_2.0)[4] | xdr_accepted_reply(GLIBC_2.0)[9] |
getgrnam_r(GLIBC_2.0)[7] | setcontext(GLIBC_2.0)[7] | xdr_array(GLIBC_2.0)[9] |
getgroups(GLIBC_2.0)[7] | setdomainname[4] | xdr_bool(GLIBC_2.0)[9] |
gethostbyaddr(GLIBC_2.0)[6] | setegid(GLIBC_2.0)[4] | xdr_bytes(GLIBC_2.0)[9] |
gethostbyname(GLIBC_2.0)[4] | setenv[4] | xdr_callhdr(GLIBC_2.0)[9] |
gethostbyname_r(GLIBC_2.1.2)[4] | seteuid(GLIBC_2.1.2)[4] | xdr_callmsg(GLIBC_2.1.2)[9] |
gethostid(GLIBC_2.0)[7] | setgid(GLIBC_2.0)[7] | xdr_char(GLIBC_2.0)[9] |
gethostname(GLIBC_2.0)[6] | setgrent(GLIBC_2.0)[7] | xdr_double(GLIBC_2.0)[9] |
getitimer(GLIBC_2.0)[7] | setgroups(GLIBC_2.0)[4] | xdr_enum(GLIBC_2.0)[9] |
getloadavg(GLIBC_2.2)[4] | sethostid(GLIBC_2.2)[4] | xdr_float(GLIBC_2.2)[9] |
getlogin(GLIBC_2.0)[7] | sethostname(GLIBC_2.0)[4] | xdr_free(GLIBC_2.0)[9] |
getnameinfo[8] | setitimer()[7] | xdr_int()[9] |
getnetbyaddr(GLIBC_2.0)[6] | setlocale(GLIBC_2.0)[7] | xdr_long(GLIBC_2.0)[9] |
getopt(GLIBC_2.0)[4] | setlogmask(GLIBC_2.0)[7] | xdr_opaque(GLIBC_2.0)[9] |
getopt_long(GLIBC_2.0)[4] | setnetent(GLIBC_2.0)[6] | xdr_opaque_auth(GLIBC_2.0)[9] |
getopt_long_only(GLIBC_2.0)[4] | setpgid(GLIBC_2.0)[7] | xdr_pointer(GLIBC_2.0)[9] |
getpagesize(GLIBC_2.0)[7] | setpgrp(GLIBC_2.0)[7] | xdr_reference(GLIBC_2.0)[9] |
getpeername(GLIBC_2.0)[6] | setpriority(GLIBC_2.0)[7] | xdr_rejected_reply(GLIBC_2.0)[9] |
getpgid(GLIBC_2.0)[7] | setprotoent(GLIBC_2.0)[6] | xdr_replymsg(GLIBC_2.0)[9] |
getpgrp(GLIBC_2.0)[7] | setpwent(GLIBC_2.0)[7] | xdr_short(GLIBC_2.0)[9] |
getpid(GLIBC_2.0)[7] | setregid(GLIBC_2.0)[7] | xdr_string(GLIBC_2.0)[9] |
getppid(GLIBC_2.0)[7] | setreuid(GLIBC_2.0)[7] | xdr_u_char(GLIBC_2.0)[9] |
getpriority(GLIBC_2.0)[7] | setrlimit(GLIBC_2.0)[7] | xdr_u_int(GLIBC_2.0)[4] |
getprotobyname(GLIBC_2.0)[7] | setrlimit64[3] | xdr_u_long(GLIBC_2.0)[9] |
getprotobynumber(GLIBC_2.0)[6] | setservent(GLIBC_2.0)[6] | xdr_u_short(GLIBC_2.0)[9] |
getprotoent(GLIBC_2.0)[7] | setsid(GLIBC_2.0)[7] | xdr_union(GLIBC_2.0)[9] |
getpwent(GLIBC_2.0)[7] | setsockopt(GLIBC_2.0)[6] | xdr_vector(GLIBC_2.0)[9] |
getpwnam(GLIBC_2.0)[7] | setstate(GLIBC_2.0)[7] | xdr_void(GLIBC_2.0)[9] |
getpwnam_r(GLIBC_2.0)[4] | setuid(GLIBC_2.0)[7] | xdr_wrapstring(GLIBC_2.0)[9] |
getpwuid(GLIBC_2.0)[7] | setutent(GLIBC_2.0)[4] | xdrmem_create(GLIBC_2.0)[9] |
getpwuid_r(GLIBC_2.0)[7] | setutxent(GLIBC_2.0)[7] | xdrrec_create(GLIBC_2.0)[9] |
getrlimit(GLIBC_2.2)[7] | setvbuf(GLIBC_2.2)[7] | xdrrec_eof(GLIBC_2.2)[9] |
getrlimit64(GLIBC_2.1)[3] | shmat(GLIBC_2.1)[7] |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) |
Table A-18. libpthread Function Interfaces
pthread_attr_destroy(GLIBC_2.0)[26] | pthread_create(GLIBC_2.0)[26] | pthread_rwlock_tryrdlock(GLIBC_2.0)[26] |
pthread_attr_getdetachstate(GLIBC_2.0)[26] | pthread_detach(GLIBC_2.0)[26] | pthread_rwlock_trywrlock(GLIBC_2.0)[26] |
pthread_attr_getguardsize(GLIBC_2.1)[26] | pthread_equal(GLIBC_2.1)[26] | pthread_rwlock_unlock(GLIBC_2.1)[26] |
pthread_attr_getinheritsched(GLIBC_2.0)[26] | pthread_exit(GLIBC_2.0)[26] | pthread_rwlock_wrlock(GLIBC_2.0)[26] |
pthread_attr_getschedparam(GLIBC_2.0)[26] | pthread_getschedparam(GLIBC_2.0)[26] | pthread_rwlockattr_destroy(GLIBC_2.0)[26] |
pthread_attr_getschedpolicy(GLIBC_2.0)[26] | pthread_getspecific(GLIBC_2.0)[26] | pthread_rwlockattr_getpshared(GLIBC_2.0)[26] |
pthread_attr_getscope(GLIBC_2.0)[26] | pthread_join(GLIBC_2.0)[26] | pthread_rwlockattr_init(GLIBC_2.0)[26] |
pthread_attr_getstackaddr(GLIBC_2.1)[26] | pthread_key_create(GLIBC_2.1)[26] | pthread_rwlockattr_setpshared(GLIBC_2.1)[26] |
pthread_attr_getstacksize(GLIBC_2.1)[26] | pthread_key_delete(GLIBC_2.1)[26] | pthread_self(GLIBC_2.1)[26] |
pthread_attr_init(GLIBC_2.1)[26] | pthread_kill(GLIBC_2.1)[26] | pthread_setcancelstate(GLIBC_2.1)[26] |
pthread_attr_setdetachstate(GLIBC_2.0)[26] | pthread_mutex_destroy(GLIBC_2.0)[26] | pthread_setcanceltype(GLIBC_2.0)[26] |
pthread_attr_setguardsize(GLIBC_2.1)[26] | pthread_mutex_init(GLIBC_2.1)[26] | pthread_setconcurrency[26] |
pthread_attr_setinheritsched(GLIBC_2.0)[26] | pthread_mutex_lock(GLIBC_2.0)[26] | pthread_setschedparam(GLIBC_2.0)[26] |
pthread_attr_setschedparam(GLIBC_2.0)[26] | pthread_mutex_trylock(GLIBC_2.0)[26] | pthread_setspecific(GLIBC_2.0)[26] |
pthread_attr_setschedpolicy(GLIBC_2.0)[26] | pthread_mutex_unlock(GLIBC_2.0)[26] | pthread_sigmask(GLIBC_2.0)[26] |
pthread_attr_setscope(GLIBC_2.0)[26] | pthread_mutexattr_destroy(GLIBC_2.0)[26] | pthread_testcancel(GLIBC_2.0)[26] |
pthread_attr_setstackaddr(GLIBC_2.1)[26] | pthread_mutexattr_getpshared(GLIBC_2.1)[26] | sem_close(GLIBC_2.1)[26] |
pthread_attr_setstacksize(GLIBC_2.1)[26] | pthread_mutexattr_gettype(GLIBC_2.1)[26] | sem_destroy(GLIBC_2.1)[26] |
pthread_cancel(GLIBC_2.0)[26] | pthread_mutexattr_init(GLIBC_2.0)[26] | sem_getvalue(GLIBC_2.0)[26] |
pthread_cond_broadcast(GLIBC_2.0)[26] | pthread_mutexattr_setpshared(GLIBC_2.0)[26] | sem_init(GLIBC_2.0)[26] |
pthread_cond_destroy(GLIBC_2.0)[26] | pthread_mutexattr_settype(GLIBC_2.0)[26] | sem_open(GLIBC_2.0)[26] |
pthread_cond_init(GLIBC_2.0)[26] | pthread_once(GLIBC_2.0)[26] | sem_post(GLIBC_2.0)[26] |
pthread_cond_signal(GLIBC_2.0)[26] | pthread_rwlock_destroy(GLIBC_2.0)[26] | sem_timedwait(GLIBC_2.0)[25] |
pthread_cond_timedwait(GLIBC_2.0)[26] | pthread_rwlock_init(GLIBC_2.0)[26] | sem_trywait(GLIBC_2.0)[26] |
pthread_cond_wait(GLIBC_2.0)[26] | pthread_rwlock_rdlock(GLIBC_2.0)[26] | sem_unlink(GLIBC_2.0)[26] |
pthread_condattr_destroy(GLIBC_2.0)[26] | pthread_rwlock_timedrdlock[26] | sem_wait(GLIBC_2.0)[26] |
pthread_condattr_init(GLIBC_2.0)[26] | pthread_rwlock_timedwrlock[26] |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
OSF-RFC 86.0 |
The behaviour of the interfaces in this library is specified by the following Standards.
Linux Standard Base |
Table A-20. libgcc_s Function Interfaces
_Unwind_DeleteException[27] | _Unwind_GetIP[27] | _Unwind_Resume[27] |
_Unwind_Find_FDE[27] | _Unwind_GetLanguageSpecificData[27] | _Unwind_SetGR[27] |
_Unwind_ForcedUnwind[27] | _Unwind_GetRegionStart[27] | _Unwind_SetIP[27] |
_Unwind_GetDataRelBase[27] | _Unwind_GetTextRelBase[27] | |
_Unwind_GetGR[27] | _Unwind_RaiseException[27] |
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.
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.
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.
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.
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.
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:
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.
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).
State on the Title page the name of the publisher of the Modified Version, as the publisher.
Preserve all the copyright notices of the Document.
Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
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.
Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice.
Include an unaltered copy of this License.
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.
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.
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.
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.
Delete any section entitled "Endorsements". Such a section may not be included in the Modified Version.
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.
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."
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.
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 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.
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.
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.
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.
[1] | It seems to be possible, using existing Linux development tools, to write an application in C++ which complies with this rule by linking statically with libstdc++ and all other libraries containing C++. The following command illustrates how this may be accomplished: g++ example.cc -Wl,-Bdynamic,-lc,-Bstatic | |
[2] | ISO/IEC 9899: 1999, Programming Languages --C | |
[3] | Large File Support | |
[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] | The Single UNIX® Specification(SUS) Version 3 | |
[9] | System V Interface Definition, Issue 3 (ISBN 0201566524) | |
[10] | System V Interface Definition,Fourth Edition | |
[11] | The LSB never has contained scandir. | |
[12] | The LSB never has contained scandir64; alphasort64 is customarily used with it. | |
[13] | For example, if off_t is 64 bits. | |
[14] | Programs that use gets are almost always vulnerable to overflowing the buffer supplied to gets. | |
[15] | SIOCGIFCONF is similar to the if_nameindex family found in the Single UNIX Specification, Version 3 or the getifaddrs family found in BSD. | |
[16] | Historical UNIX systems disagree on the meaning of the return value. | |
[17] | This was a deliberate Linus decision after an unpopular experiment in including the calling process in the 2.5.1 kernel. See "What does it mean to signal everybody?", Linux Weekly News, 20 December 2001, http://lwn.net/2001/1220/kernel.php3 | |
[18] | setmntent is believed to be mainly of interest to system administration packages. Most other uses can be accomplished in better ways (for example, compare st_dev values to detect crossing a file system or call statvfs to check available space on the file system containing a particular directory). In addition the specification that the LSB has had for setmntent is incomplete; for example it is of little use without the missing function getmntent. | |
[19] | Note the optional use of the buffer, unlike the strerror_r found in the Single UNIX Specification, Version 3, in which the message is always copied into the supplied buffer. The return types also differ. | |
[20] | A token is a nonempty string of characters not occurring in the string delim, followed by \0 or by a character occurring in delim. | |
[21] | The Linux kernel has deliberately chosen EISDIR for this case and does not expect to change (Al Viro, personal communication). | |
[22] | These macros take the stat buffer (an int) as an argument -- not a pointer to the buffer! | |
[23] | ISO/IEC 9899: 1999, Programming Languages --C | |
[24] | CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) | |
[25] | Linux Standard Base | |
[26] | CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) | |
[27] | Linux Standard Base | |
[28] | Linux Standard Base | |
[29] | CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) | |
[30] | CAE Specification, January 1997, System Interfaces and Headers (XSH),Issue 5 (ISBN: 1-85912-181-0, C606) | |
[31] | Future versions of this specification will likely define additional service names. | |
[32] | Linux Standard Base | |
[33] | The reference to the zlib 1.1.3 manual, of course, is to the specification found in the manual, not to the implementation. The zlib 1.1.4 manual, for example, is identical (except for the version number, which we do not specify). The only reason not to just say "zlib 1.1.x" is that it is hard to know whether a hypothetical future release would be compatible. | |
[34] | zlib 1.1.3 Manual | |
[35] | CAE Specification, May 1996, X/Open Curses, Issue 4, Version 2 (ISBN: 1-85912-171-3, C610), plus Corrigendum U018 | |
[36] | Linux Standard Base | |
[37] | X11R6.4 Xlib - C library | |
[38] | Double Buffer Extension Library | |
[39] | X Display Power Management Signaling (DPMS) Extension, Library Specification | |
[40] | Security Extension Specification, Version 7.1 | |
[41] | X Nonrectangular Window Shape Extension Library Version 1.0 | |
[42] | MIT-SHM--The MIT Shared Memory Extension | |
[43] | X Synchronization Extension Library | |
[44] | X11R6.4 X Session Management Library | |
[45] | X11R6.4 X Inter-Client Exchange (ICE) Protocol | |
[46] | Linux Standard Base | |
[47] | X11R6.4 X Toolkit Intrinsics | |
[48] | OpenGL® Application Binary Interface for Linux | |
[49] | The distribution itself may use a different packaging format for its own packages, and of course it may use any available mechanism for installing the LSB-conformant packages. | |
[50] | Linux Standard Base | |
[51] | CAE Specification, January 1997, Commands and Utilities (XCU), Issue 5 (ISBN: 1-85912-191-8, C604) | |
[52] | The following two options are expected to be added in a future version of the LSB:
Note that some implementations contain a "-o other" option which specifies an additional field called "other". Traditionally, this field is not subject to the constraints about legitimate characters in fields. Also, one traditionally must have appropriate privileges to change the other field. At this point there is no consensus about whether it is desirable to specify the other field; applications may wish to avoid using it. The "-w work_phone" field found in some implementations should be replaced by the "-p office_phone" field. The "-r room_number" field found in some implementations is the equivalent of the "-o office" option mentioned above; which one of these two options to specify will depend on implementation experience and the decision regarding the other field. The intention is for chfn to match the behavior of finger; some historical implementations have been broken in the sense that finger and chfn do not agree on what the fields are. | |
[53] | Need further investigation on the behavior of various implementations concerning whether program is a full pathname, the basename only, the program as named by argv[0], or what. | |
[54] | In particular, specifying a command without a protocol is insufficient to provide interoperability. rsync can be implemented on top of LSB interfaces. | |
[55] | Rationale: the -z option found in the Single UNIX Specification, Version 2 is supported in neither the Single UNIX Specification, Version 3 nor existing Linux implementations. | |
[56] | Newer versions of split in GNU textutils have support for the -a flag. In a future version of the LSB, the -a flag will be required to conform to the Single UNIX Specification definition. | |
[57] | GNU textutils 2.0 does not have -m, but more recent versions of textutils have it (added on 2000-08-06). The LSB will require this option in the future. | |
[58] | For example, bash behaves in the following way:
When bash is executing an executable rather than a shell script, it seems to behave in the POSIX way. | |
[59] | Rationale: System vendors and local system administrators want to run applications from removable media, but want the possibility to control what the application can do. | |
[60] | The intention is that none of these choices will create problems in practice (for example, for LSB implementations on top of non-Linux kernels). Future versions of the LSB may relax these requirements if needed. | |
[61] | On a Linux kernel, removing or renaming a directory will give EBUSY only when the directory is in use by a system process. However, the LSB does not specify this behavior on the grounds that it is of no use to applications and may be difficult to implement on some kernels. Linux allows one to call rename() on a directory without having write access, but the LSB does not require this. | |
[62] | This specification does not require, but is designed to allow, the development of a system which runs boot scripts in parallel. Hence, enforced-serialization of scripts is avoided unless it is explicitly necessary. | |
[63] | More than one space, or a tab character, indicates the continuation line. | |
[64] | While these comment conventions do not prohibited in system init scripts, they do not provide sufficient functionality for most distributions' needs. Extensions which would addressed these needs (for example, "Should-Start:" and "Should-Stop:") would have substantially complicated the design of the install_initd script, which is why they were not included in this specification. Future versions of this specification may extend these comment conventions to add this functionality, if and when reference implementations which implement these extensions become available for use by distributions. | |
[65] | The dollar sign does not indicate variable expansion as in many Linux utilities. Starting a facility name with a dollar sign is merely a way of dividing the namespace between the system and applications. | |
[66] | as defined in RFC 1833 | |
[67] | In some LSB run-time environments, filesystems such as /usr may be remote. Many applications that require $local_fs will probably require also require $remote_fs | |
[68] | i.e., using a network-based time program such as ntp or rdate, or via the hardware Real Time Clock |