OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / gnu_get_libc_version.3
1 .\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2 .\"     <mtk.manpages@gmail.com>
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\"*******************************************************************
27 .\"
28 .\" This file was generated with po4a. Translate the source file.
29 .\"
30 .\"*******************************************************************
31 .TH GNU_GET_LIBC_VERSION 3 2012\-08\-26 Linux "Linux Programmer's Manual"
32 .SH 名前
33 gnu_get_libc_version, gnu_get_libc_release \- glibc のバージョンと リリース状態を取得する
34 .SH 書式
35 .nf
36 \fB#include <gnu/libc\-version.h>\fP
37
38 \fBconst char *gnu_get_libc_version(void);\fP
39 \fBconst char *gnu_get_libc_release(void);\fP
40 .fi
41 .SH 説明
42 \fBgnu_get_libc_version\fP()  関数は、システムで利用可能な glibc のバージョンを特定する文字列を返す。
43
44 \fBgnu_get_libc_release\fP()  関数は、システムで利用可能な glibc バージョンのリリース状態を示す 文字列を返す。
45 \fIstable\fP といった文字列が返される。
46 .SH バージョン
47 これらの関数は glibc バージョン 2.1 で初めて登場した。
48 .SH 準拠
49 これらの関数は glibc 固有である。
50 .SH 例
51 下記のプログラムを実行すると、次のような出力が得られる。
52 .in +4n
53 .nf
54
55 $\fB ./a.out\fP
56 GNU libc version: 2.8
57 GNU libc release: stable
58 .fi
59 .in
60 .SS プログラムのソース
61 \&
62 .nf
63 #include <gnu/libc\-version.h>
64 #include <stdlib.h>
65 #include <stdio.h>
66
67 int
68 main(int argc, char *argv[])
69 {
70     printf("GNU libc version: %s\en", gnu_get_libc_version());
71     printf("GNU libc release: %s\en", gnu_get_libc_release());
72     exit(EXIT_SUCCESS);
73 }
74 .fi
75 .SH 関連項目
76 \fBconfstr\fP(3)
77 .SH この文書について
78 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
79 である。プロジェクトの説明とバグ報告に関する情報は
80 http://www.kernel.org/doc/man\-pages/ に書かれている。