.\" Copyright (c) 2008, 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) 2008 Akihiro MOTOKI .\" all rights reserved. .\" Translated 2008-08-21, Akihiro MOTOKI , LDP v3.04 .\" .TH GNU_GET_LIBC_VERSION 3 2012\-08\-26 Linux "Linux Programmer's Manual" .SH 名前 gnu_get_libc_version, gnu_get_libc_release \- glibc のバージョンと リリース状態を取得する .SH 書式 .nf \fB#include \fP \fBconst char *gnu_get_libc_version(void);\fP \fBconst char *gnu_get_libc_release(void);\fP .fi .SH 説明 \fBgnu_get_libc_version\fP() 関数は、システムで利用可能な glibc のバージョンを特定する文字列を返す。 \fBgnu_get_libc_release\fP() 関数は、システムで利用可能な glibc バージョンのリリース状態を示す 文字列を返す。 \fIstable\fP といった文字列が返される。 .SH バージョン これらの関数は glibc バージョン 2.1 で初めて登場した。 .SH 準拠 これらの関数は glibc 固有である。 .SH 例 下記のプログラムを実行すると、次のような出力が得られる。 .in +4n .nf $\fB ./a.out\fP GNU libc version: 2.8 GNU libc release: stable .fi .in .SS プログラムのソース \& .nf #include #include #include int main(int argc, char *argv[]) { printf("GNU libc version: %s\en", gnu_get_libc_version()); printf("GNU libc release: %s\en", gnu_get_libc_release()); exit(EXIT_SUCCESS); } .fi .SH 関連項目 \fBconfstr\fP(3) .SH この文書について この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。