Linux Standard Base Specification 2.0.1

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

Portions of the text are copyrighted by the following parties:

  • The Regents of the University of California

  • Free Software Foundation

  • Ian F. Darwin

  • Paul Vixie

  • BSDI (now Wind River)

  • Andrew G Morgan

  • Jean-loup Gailly and Mark Adler

  • Massachusetts Institute of Technology

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

Linux is a trademark of Linus Torvalds.

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

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

AMD is a trademark of Advanced Micro Devices, Inc.

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

OpenGL is a registered trademark of Silicon Graphics, Inc.


Table of Contents
Foreword
Introduction
I. Introductory Elements
1. Scope
General
Module Specific Scope
2. Normative References
3. Requirements
Relevant Libraries
LSB Implementation Conformance
LSB Application Conformance
4. Definitions
5. Terminology
6. Documentation Conventions
II. Base Libraries
7. Libraries
Program Interpreter
Interfaces for libc
Data Definitions for libc
Interface Definitions for libc
Interfaces for libm
Data Definitions for libm
Interfaces for libpthread
Data Definitions for libpthread
Interface Definitions for libpthread
Interfaces for libgcc_s
Data Definitions for libgcc_s
Interfaces for libdl
Data Definitions for libdl
Interface Definitions for libdl
Interfaces for libcrypt
Interfaces for libpam
Data Definitions for libpam
Interface Definitions for libpam
III. Utility Libraries
8. utility Libraries
Interfaces for libz
Data Definitions for libz
Interfaces for libncurses
Data Definitions for libncurses
Interfaces for libutil
Interface Definitions for libutil
IV. Commands and Utilities
9. Commands and Utilities
Commands and Utilities
Command Behavior
V. Execution Environment
10. File System Hierarchy
/dev
11. Additional Recommendations
Minimal granted Directory and File permissions
Recommendations for applications on ownership and permissions
12. Additional Behaviors
Mandatory Optional Behaviors
13. Localization
Regular Expressions
Pattern Matching Notation
VI. System Initialization
14. System Initialization
Cron Jobs
Init Script Actions
Comment Conventions for Init Scripts
Installation and Removal of init.d Files
Run Levels
Facility Names
Script Names
Init Script Functions
VII. Users & Groups
15. Users & Groups
User and Group Database
User & Group Names
UID Ranges
Rationale
A. GNU Free Documentation License
PREAMBLE
APPLICABILITY AND DEFINITIONS
VERBATIM COPYING
COPYING IN QUANTITY
MODIFICATIONS
COMBINING DOCUMENTS
COLLECTIONS OF DOCUMENTS
AGGREGATION WITH INDEPENDENT WORKS
TRANSLATION
TERMINATION
FUTURE REVISIONS OF THIS LICENSE
How to use this License for your documents
List of Tables
2-1. Normative References
3-1. Standard Library Names
3-2. Standard Library Names defined in the Architecture Specific Supplement
7-1. libc Definition
7-2. libc - RPC Function Interfaces
7-3. libc - System Calls Function Interfaces
7-4. libc - Standard I/O Function Interfaces
7-5. libc - Standard I/O Data Interfaces
7-6. libc - Signal Handling Function Interfaces
7-7. libc - Signal Handling Data Interfaces
7-8. libc - Localization Functions Function Interfaces
7-9. libc - Localization Functions Data Interfaces
7-10. libc - Socket Interface Function Interfaces
7-11. libc - Socket Interface Deprecated Function Interfaces
7-12. libc - Wide Characters Function Interfaces
7-13. libc - String Functions Function Interfaces
7-14. libc - IPC Functions Function Interfaces
7-15. libc - Regular Expressions Function Interfaces
7-16. libc - Regular Expressions Deprecated Function Interfaces
7-17. libc - Regular Expressions Deprecated Data Interfaces
7-18. libc - Character Type Functions Function Interfaces
7-19. libc - Time Manipulation Function Interfaces
7-20. libc - Time Manipulation Deprecated Function Interfaces
7-21. libc - Time Manipulation Data Interfaces
7-22. libc - Terminal Interface Functions Function Interfaces
7-23. libc - System Database Interface Function Interfaces
7-24. libc - Language Support Function Interfaces
7-25. libc - Large File Support Function Interfaces
7-26. libc - Standard Library Function Interfaces
7-27. libc - Standard Library Data Interfaces
7-1. Examples
7-29. libm Definition
7-30. libm - Math Function Interfaces
7-31. libm - Math Data Interfaces
7-32. libpthread Definition
7-33. libpthread - Posix Threads Function Interfaces
7-34. libgcc_s Definition
7-35. libdl Definition
7-36. libdl - Dynamic Loader Function Interfaces
7-37. libcrypt Definition
7-38. libcrypt - Encryption Function Interfaces
7-39. libpam Definition
7-40. libpam - Pluggable Authentication API Function Interfaces
8-1. libz Definition
8-2. libz - Compression Library Function Interfaces
8-3. libncurses Definition
8-4. libncurses - Curses Function Interfaces
8-5. libncurses - Curses Data Interfaces
8-6. libutil Definition
8-7. libutil - Utility Functions Function Interfaces
9-1. Commands and Utilities
9-1. Escape Sequences
15-1. Required User & Group Names
15-2. Optional User & Group Names