.sp
\fBchar *canonicalize_file_name(const char *\fP\fIpath\fP\fB);\fP
.SH 説明
-The \fBcanonicalize_file_name\fP() function returns a null\-terminated string
-containing the canonicalized absolute pathname corresponding to \fIpath\fP. In
-the returned string, symbolic links are resolved, as are \fI.\fP and \fI..\fP
-pathname components. Consecutive slash (\fI/\fP) characters are replaced by a
-single slash.
+\fBcanonicalize_file_name\fP() 関数は \fIpath\fP に対応する正規化された絶対パス名を示す NULL
+終端された文字列を返す。返された文字列では、シンボリックリンクや、パス名に含まれる \fI.\fP や \fI..\fP は展開される。連続するスラッシュ
+(\fI/\fP) 文字はスラッシュ一つに置換される。
-The returned string is dynamically allocated by \fBcanonicalize_file_name\fP()
-and the caller should deallocate it with \fBfree\fP(3) when it is no longer
-required.
+返される文字列は \fBcanonicalize_file_name\fP() により動的に割り当てられる。呼び出し側は、必要なくなった際にはこの文字列を
+\fBfree\fP(3) で解放すべきである。
\fIcanonicalize_file_name(path)\fP は以下と等価である。
.SH 準拠
この関数は GNU による拡張である。
.SH 返り値
-On success, \fBcanonicalize_file_name\fP() returns a null\-terminated string.
-On error (e.g., a pathname component is unreadable or does not exist),
-\fBcanonicalize_file_name\fP() returns NULL and sets \fIerrno\fP to indicate the
-error.
+成功すると、 \fBcanonicalize_file_name\fP() は NULL 終端された文字列を返す。エラーの場合
+(例えば、パス名の中に読み込めなかったり存在しないパスが含まれている場合など)、 \fBcanonicalize_file_name\fP() は NULL
+を返し、 \fIerrno\fP にエラー内容を示す値を設定する。
.SH エラー
\fBrealpath\fP(3) 参照。
.SH 関連項目