The GNU C Library

Next: , Previous: (dir), Up: (dir)


Main Menu

This is Edition 0.10, last updated 2001年07月06日, of The GNU C Library Reference Manual, for Version 2.2.x of the GNU C Library.

Appendices

  • Language Features: C language features provided by the library.
  • Library Summary: A summary showing the syntax, header file, and derivation of each library feature.
  • Installation: How to install the GNU C library.
  • Maintenance: How to enhance and port the GNU C Library.
  • Contributors: Who wrote what parts of the GNU C library.
  • Free Manuals: Free Software Needs Free Documentation.
  • Copying: The GNU Lesser General Public License says how you can copy and share the GNU C Library.
  • Documentation License: This manual is under the GNU Free Documentation License.

Indices

--- The Detailed Node Listing ---

Introduction

Standards and Portability

  • ISO C: The international standard for the C programming language.
  • POSIX: The ISO/IEC 9945 (aka IEEE 1003) standards for operating systems.
  • Berkeley Unix: BSD and SunOS.
  • SVID: The System V Interface Description.
  • XPG: The X/Open Portability Guide.

Using the Library

Error Reporting

Memory

Memory Allocation

Unconstrained Allocation

Allocation Debugging

Obstacks

Variable Size Automatic

Locking Pages

Character Handling

String and Array Utilities

Argz and Envz Vectors

Character Set Handling

Restartable multibyte conversion

Non-reentrant Conversion

Generic Charset Conversion

Locales

Locale Information

The Lame Way to Locale Data

  • General Numeric: Parameters for formatting numbers and currency amounts.
  • Currency Symbol: How to print the symbol that identifies an amount of money (e.g. `$').
  • Sign of Money Amount: How to print the (positive or negative) sign for a monetary amount, if one exists.

Message Translation

Message catalogs a la X/Open

The Uniforum approach

Message catalogs with gettext

Searching and Sorting

Pattern Matching

  • Wildcard Matching: Matching a wildcard pattern against a single string.
  • Globbing: Finding the files that match a wildcard pattern.
  • Regular Expressions: Matching regular expressions against strings.
  • Word Expansion: Expanding shell variables, nested commands, arithmetic, and wildcards. This is what the shell does with shell commands.

Globbing

Regular Expressions

Word Expansion

I/O Overview

I/O Concepts

File Names

I/O on Streams

Unreading

Formatted Output

Customizing Printf

Formatted Input

Stream Buffering

Other Kinds of Streams

  • String Streams: Streams that get data from or put data in a string or memory buffer.
  • Obstack Streams: Streams that store data in an obstack.
  • Custom Streams: Defining your own streams with an arbitrary input data source and/or output data sink.

Custom Streams

  • Streams and Cookies: The cookie records where to fetch or store data that is read or written.
  • Hook Functions: How you should define the four hook functions that a custom stream needs.

Formatted Messages

Low-Level I/O

Stream/Descriptor Precautions

Asynchronous I/O

File Status Flags

File System Interface

Accessing Directories

File Attributes

Pipes and FIFOs

Sockets

Socket Addresses

Local Namespace

  • Concepts: What you need to understand.
  • Details: Address format, symbolic names, etc.
  • Example: Example of creating a socket.

Internet Namespace

Host Addresses

Open/Close Sockets

Connections

Transferring Data

Datagrams

Inetd

Socket Options

Low-Level Terminal Interface

Terminal Modes

Special Characters

  • Editing Characters: Special characters that terminate lines and delete text, and other editing functions.
  • Signal Characters: Special characters that send or raise signals to or for certain classes of processes.
  • Start/Stop Characters: Special characters that suspend or resume suspended output.
  • Other Special: Other special characters for BSD systems: they can discard output, and print status.

Pseudo-Terminals

Syslog

Submitting Syslog Messages

Mathematics

Pseudo-Random Numbers

Arithmetic

Floating Point Errors

Arithmetic Functions

Parsing of Numbers

Date and Time

Processor And CPU Time

Calendar Time

Parsing Date and Time

Resource Usage And Limitation

Priority

Traditional Scheduling

Memory Resources

Non-Local Exits

Signal Handling

Concepts of Signals

Standard Signals

Signal Actions

Defining Handlers

Atomic Data Access

  • Non-atomic Example: A program illustrating interrupted access.
  • Types: Data types that guarantee no interruption.
  • Usage: Proving that interruption is harmless.

Generating Signals

Blocking Signals

Waiting for a Signal

BSD Signal Handling

Program Basics

Program Arguments

Parsing Program Arguments

  • Getopt: Parsing program options using getopt.
  • Argp: Parsing program options using argp_parse.
  • Suboptions: Some programs need more detailed options.
  • Suboptions Example: This shows how it could be done for mount.

Environment Variables

Program Termination

Processes

Job Control

Implementing a Shell

Functions for Job Control

Name Service Switch

NSS Configuration File

NSS Module Internals

Extending NSS

Users and Groups

User Accounting Database

User Database

Group Database

Netgroup Database

System Management

Filesystem Handling

Mount Information

System Configuration

  • General Limits: Constants and functions that describe various process-related limits that have one uniform value for any given machine.
  • System Options: Optional POSIX features.
  • Version Supported: Version numbers of POSIX.1 and POSIX.2.
  • Sysconf: Getting specific configuration values of general limits and system options.
  • Minimums: Minimum values for general limits.
  • Limits for Files: Size limitations that pertain to individual files. These can vary between file systems or even from file to file.
  • Options for Files: Optional features that some files may support.
  • File Minimums: Minimum values for file limits.
  • Pathconf: Getting the limit values for a particular file.
  • Utility Limits: Capacity limits of some POSIX.2 utility programs.
  • Utility Minimums: Minimum allowable values of those limits.
  • String Parameters: Getting the default search path.

Sysconf

Cryptographic Functions

Debugging Support

  • Backtraces: Obtaining and printing a back trace of the current stack.

Language Features

Variadic Functions

How Variadic

Data Type Measurements

Floating Type Macros

Installation

Maintenance

  • Source Layout: How to add new functions or header files to the GNU C library.
  • Porting: How to port the GNU C library to a new machine or operating system.

Porting


Published under the terms of the GNU General Public License Design by Interspire

AltStyle によって変換されたページ (->オリジナル) /