.\"*******************************************************************
.TH MALLOC_INFO 3 2013\-04\-19 GNU "Linux Programmer's Manual"
.SH 名前
-malloc_info \- export malloc state to a stream
+malloc_info \- malloc の状態をストリームに出力する
.SH 書式
.nf
\fB#include <malloc.h>\fP
\fBint malloc_info(int \fP\fIoptions\fP\fB, FILE *\fP\fIfp\fP\fB);\fP
.fi
.SH 説明
-The \fBmalloc_info\fP() function exports an XML string that describes the
-current state of the memory\-allocation implementation in the caller. The
-string is printed on the file stream \fIfp\fP. The exported string includes
-information about all arenas (see \fBmalloc\fP(3)).
+\fBmalloc_info\fP() 関数は、 呼び出し元のメモリ割り当て実装の現在の状態を表す XML 文字列を出力する。 文字列は、 ファイルストリーム
+\fIfp\fP に出力される。 出力された文字列には、 全ての割り当て領域の情報が含まれる (\fBmalloc\fP(3) 参照)。
-As currently implemented, \fIoptions\fP must be zero.
+現在の実装では、 \fIoptions\fP は 0 でなければならない。
.SH 返り値
\fBmalloc_info\fP() は、成功すると 0 を返す。 エラーの場合、\-1 を返し、 \fIerrno\fP にエラーの原因を示す値を設定する。
.SH エラー
.TP
\fBEINVAL\fP
-\fIoptions\fP was nonzero.
+\fIoptions\fP が 0 でなかった。
.SH バージョン
\fBmalloc_info\fP() は glibc バージョン 2.10 で追加された。
.SH 準拠
この関数は GNU による拡張である。
.SH 注意
-The memory\-allocation information is provided as an XML string (rather than
-a C structure) because the information may change over time (according to
-changes in the underlying implementation). The output XML string includes a
-version field.
+メモリ割り当て情報は (C の構造体ではなく) XML 文字列として提供される。 これは、 この情報は時間をたつと (内部で使用している実装によって)
+変わる可能性があるからである。 出力される XML 文字列にはバージョンフィールドが付いている。
-The \fBopen_memstream\fP(3) function can be used to send the output of
-\fBmalloc_info\fP() directly into a buffer in memory, rather than to a file.
+\fBopen_memstream\fP(3) 関数を使うと、 \fBmalloc_info\fP() の出力を、
+ファイルではなくメモリ内のバッファに直接送ることができる。
-The \fBmalloc_info\fP() function is designed to address deficiencies in
-\fBmalloc_stats\fP(3) and \fBmallinfo\fP(3).
+\fBmalloc_info\fP() 関数は、 \fBmalloc_stats\fP(3) と \fBmallinfo\fP(3) の不備を解決するために設定された。
.SH 例
The program below takes up to four command\-line arguments, of which the
first three are mandatory. The first argument specifies the number of