ISO/IEC 23360-1-1:2021 Linux标准库(LSB) 第1-1部分:通用定义

标准编号:ISO/IEC 23360-1-1:2021

中文名称:Linux标准库(LSB) 第1-1部分:通用定义

英文名称:Linux Standard Base (LSB) — Part 1-1: Common definitions

发布日期:2021-10

标准范围

本文档定义了编译应用程序的系统接口和支持安装脚本的最小环境。其目的是为符合LSB的大批量应用程序提供统一的行业标准环境。LSB规范集分为模块,每个模块提供基本的系统接口、库和运行时环境,使用该模块的所有符合要求的应用程序和库都依赖这些接口、库和运行时环境。Linux标准库的模块有:-LSB核心-核心组件-LSB Desktop-桌面相关组件-LSB语言-运行时语言-LSB成像-打印和扫描-LSB试用-尚未强制使用的组件LSB核心模块规范中描述的接口由其他LSB模块规范补充。所有其他模块都依赖于LSB核心的存在。这些规范由两个基本部分组成:公共部分描述在LSB的所有实现中保持不变的接口的那些部分,以及特定于架构的部分,描述随处理器架构而变化的接口的部分。用于单个硬件架构的公共部分和相关的特定于架构的部分一起为共享公共硬件架构的系统上的编译应用程序提供了完整的接口规范。每当公共部分的一部分被架构特定信息补充时,公共部分包括对架构特定部分的引用。LSB模块规范的架构特定部分还可以包含公共部分中未引用的附加信息。LSB包含一组应用程序接口(API)和应用程序二进制接口(ABI)。API可能出现在可移植应用程序的源代码中,而该应用程序的编译二进制文件可能使用更大的abi集。一个合格的实现提供了这里列出的所有ABIs。编译系统可以用对底层二进制接口中的一个或多个的调用来替换(例如,通过宏定义)某些API,并且可以根据需要插入对二进制接口的调用。LSB主要是二进制接口定义。并非应用程序可用的所有源级API都可以包含在本规范中。

This document 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 specification set is divided into modules, each of which provides fundamental system interfaces, libraries, and runtime environment upon which all conforming applications and libraries using that module depend.
The modules of the Linux Standard Base are:
- LSB Core - core components
- LSB Desktop - desktop related components
- LSB Languages - runtime languages
- LSB Imaging - printing and scanning
- LSB Trial Use - components that are not yet mandatory
Interfaces described in the LSB Core module specification are supplemented by other LSB module specifications. All other modules depend on the presence of LSB Core.
These specifications are composed of two basic parts: a common part describing those parts of the interface that remain constant across all implementations of the LSB, and an architecture-specific part describing the parts of the interface that vary by processor architecture. Together, the common part and the relevant architecture-specific part for a single hardware architecture provide a complete interface specification for compiled application programs on systems that share a common hardware architecture. Whenever a section of the common part is supplemented by architecture-specific information, the common part includes a reference to the architecture-specific part. Architecture-specific parts of of an LSB module specification may also contain additional information that is not referenced in the common part.
The LSB contains both a set of Application Program Interfaces (APIs) and Application Binary Interfaces (ABIs). APIs may appear in the source code of portable applications, while the compiled binary of that application may use the larger set of ABIs. A conforming implementation provides all of the ABIs listed here. The compilation system may replace (e.g. by macro definition) certain APIs with calls to one or more of the underlying binary interfaces, and may insert calls to binary interfaces as needed.
The LSB is primarily a binary interface definition. Not all of the source level APIs available to applications may be contained in this specification.

标准预览图


立即下载标准文件