OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man3 / canonicalize_file_name.3
index e2266ae..a1d6c14 100644 (file)
@@ -1,25 +1,70 @@
-.\"  Copyright 2005 walter harms (walter.harms@informatik.uni-oldenburg.de)
-.\"  and Copyright 2005 Michael Kerrisk (mtk.manpages@gmail.com).
-.\"  Distributed under the GNU General Public License.
+.\" Copyright 2013 Michael Kerrisk (mtk.manpages@gmail.com).
+.\" (Replaces an earlier page by Walter Harms and 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) 2005 Akihiro MOTOKI all rights reserved.
 .\" Translated 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2013-05-04, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2013-07-15, Akihiro MOTOKI <amotoki@gmail.com>
 .\"
-.TH CANONICALIZE_FILE_NAME 3 2005-07-14 "GNU" "Linux Programmer's Manual"
+.TH CANONICALIZE_FILE_NAME 3 2013\-05\-11 GNU "Linux Programmer's Manual"
 .SH 名前
-canonicalize_file_name \- 正規化されたファイル名を返す
+canonicalize_file_name \- 正規化された絶対パス名を返す
 .SH 書式
-.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
+\fB#define _GNU_SOURCE\fP /* feature_test_macros(7) 参照 */
 .br
-.B #include <stdlib.h>
+\fB#include <stdlib.h>\fP
 .sp
-.BI "char *canonicalize_file_name(const char *" path ");"
+\fBchar *canonicalize_file_name(const char *\fP\fIpath\fP\fB);\fP
 .SH 説明
-.I canonicalize_file_name(path)
-は
-.I "realpath(path,\ NULL)"
-と等価である。
+\fBcanonicalize_file_name\fP() 関数は \fIpath\fP に対応する正規化された絶対パス名を示す NULL
+終端された文字列を返す。返された文字列では、シンボリックリンクや、パス名に含まれる \fI.\fP や \fI..\fP は展開される。連続するスラッシュ
+(\fI/\fP) 文字はスラッシュ一つに置換される。
+
+返される文字列は \fBcanonicalize_file_name\fP() により動的に割り当てられる。呼び出し側は、必要なくなった際にはこの文字列を
+\fBfree\fP(3) で解放すべきである。
+
+\fIcanonicalize_file_name(path)\fP は以下と等価である。
+
+    realpath(path, NULL);
+.SH 返り値
+成功すると、 \fBcanonicalize_file_name\fP() は NULL 終端された文字列を返す。エラーの場合
+(例えば、パス名の中に読み込めなかったり存在しないパスが含まれている場合など)、 \fBcanonicalize_file_name\fP() は NULL
+を返し、 \fIerrno\fP にエラー内容を示す値を設定する。
+.SH エラー
+\fBrealpath\fP(3) 参照。
 .SH 準拠
 この関数は GNU による拡張である。
 .SH 関連項目
-.BR realpath (3)
+\fBreadlink\fP(2), \fBrealpath\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。