.\" Copyright (c) 2009 Linux Foundation, written by Michael Kerrisk .\" .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .\" .\" Japanese Version Copyright (c) 2012 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2012-05-31, Akihiro MOTOKI .\" .TH LIBC 7 2016\-12\-12 Linux "Linux Programmer's Manual" .SH 名前 libc \- Linux の標準 C ライブラリの概要 .SH 説明 "libc" という用語は、一般には「標準 C ライブラリ」の短縮表現として 使われている。標準 C ライブラリは、全ての C 言語プログラム (や時には他 の言語のプログラム) が使用することができる標準関数のライブラリである。 いくつかの歴史的な理由 (下記参照) から、標準 C ライブラリを意味する "libc" という用語は Linux ではいくらか曖昧さのある用語となっている。 .SS glibc Linux で群を抜いて広く使われている C ライブラリは GNU C ライブラリ .UR http://www.gnu.org\:/software\:/libc/ .UE であり、しばしば \fIglibc\fP と 呼ばれる。全ての主要な Linux ディストリビューションで現在使われている C ライブラリである。 この C ライブラリの詳細が \fIman\-pages\fP プロジェクトの一連のページ (主にマニュアルのセクション 3) に記載されている。 glibc のドキュメントは glibc のマニュアルにもあり、 \fIinfo libc\fP コマンドで参照できる。 glibc リリース 1.0 は 1992 年 9 月に作成された (それ以前に 0.x リリース があった)。glibc の次のメジャーリリースは 2.0 であり、1997 年の初頭にリリースされた。 .PP パス名 \fI/lib/libc.so.6\fP (もしくは同様のパス名) は、通常は glibc ライブラリがある場所を指すシンボリックリンクである。 このパス名を実行すると、glibc はシステムにインストールされた バージョンの glibc に関する様々な情報を表示する。 .SS "Linux libc" In the early to mid 1990s, there was for a while \fILinux libc\fP, a fork of glibc 1.x created by Linux developers who felt that glibc development at the time was not sufficing for the needs of Linux. Often, this library was referred to (ambiguously) as just "libc". Linux libc released major versions 2, 3, 4, and 5, as well as many minor versions of those releases. Linux libc4 was the last version to use the a.out binary format, and the first version to provide (primitive) shared library support. Linux libc 5 was the first version to support the ELF binary format; this version used the shared library soname \fIlibc.so.5\fP. For a while, Linux libc was the standard C library in many Linux distributions. .PP However, notwithstanding the original motivations of the Linux libc effort, by the time glibc 2.0 was released (in 1997), it was clearly superior to Linux libc, and all major Linux distributions that had been using Linux libc soon switched back to glibc. To avoid any confusion with Linux libc versions, glibc 2.0 and later used the shared library soname \fIlibc.so.6\fP. .PP Since the switch from Linux libc to glibc 2.0 occurred long ago, \fIman\-pages\fP no longer takes care to document Linux libc details. Nevertheless, the history is visible in vestiges of information about Linux libc that remain in a few manual pages, in particular, references to \fIlibc4\fP and \fIlibc5\fP. .SS "他の C ライブラリ" あまり広くは使われていないが、Linux 用の他の C ライブラリがいくつかある。 これらのライブラリは、一般的には、機能とメモリー使用量の両方の面で glibc より小さく、通常は小さなバイナリを作成することを目的としており、 おそらく組み込み Linux システム用の開発に焦点を当てたものである。 このようなライブラリとしては、 .UR http://www.uclibc.org/ \fIuClibc\fP .UE .UR http://www.fefe.de/dietlibc/ \fIdietlibc\fP .UE や .UR http://www.musl\-libc.org/ \fImusl libc\fP .UE がある。 これらのライブラリの詳細も、知られていれば、 \fIman\-pages\fP プロジェクトでカバーされる。 .SH 関連項目 \fBsyscalls\fP(2), \fBgetauxval\fP(3), \fBproc\fP(5), \fBfeature_test_macros\fP(7), \fBman\-pages\fP(7), \fBstandards\fP(7), \fBvdso\fP(7) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 5.10 の一部である。プロジェクトの説明とバグ報告に関する情報は \%https://www.kernel.org/doc/man\-pages/ に書かれている。