OSDN Git Service

(split) DP: release pages (catch up to 3.50).
[linuxjm/LDP_man-pages.git] / release / man3 / malloc.3
index e079868..7fb26f8 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
 .\"
+.\" %%%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.
@@ -19,7 +20,8 @@
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
-.\" License.
+.\" %%%LICENSE_END
+.\"
 .\" Modified Sat Jul 24 19:00:59 1993 by Rik Faith (faith@cs.unc.edu)
 .\" Clarification concerning realloc, iwj10@cus.cam.ac.uk (Ian Jackson), 950701
 .\" Documented MALLOC_CHECK_, Wolfram Gloger (wmglo@dent.med.uni-muenchen.de)
@@ -32,7 +34,7 @@
 .\"*******************************************************************
 .TH MALLOC 3 2012\-05\-10 GNU "Linux Programmer's Manual"
 .SH 名前
-malloc, free, calloc, realloc \- 動的なメモリの割り当てと解放を行う
+malloc, free, calloc, realloc \- allocate and free dynamic memory
 .SH 書式
 .nf
 \fB#include <stdlib.h>\fP
@@ -90,13 +92,13 @@ malloc, free, calloc, realloc \- 動的なメモリの割り当てと解放を
 .SH 準拠
 C89, C99.
 .SH 注意
-デフォルトでは、Linux は楽観的メモリ配置戦略を用いている。つまり、
-\fBmalloc\fP() が NULL でない値を返しても、そのメモリが実際に利用可能であること
-が保証されない。システムがメモリ不足状態になったとき、メモリ不足解決器 (OOM
-killer) によって一つまたは複数のプロセスが削除される。
-詳しい情報は、\fBproc\fP(5) の \fI/proc/sys/vm/overcommit_memory\fP と
-\fIproc/sys/vm/oom_adj\fP、およびカーネルのソースファイルの
-\fIDocumentation/vm/overcommit\-accounting\fP を参照のこと。
+By default, Linux follows an optimistic memory allocation strategy.  This
+means that when \fBmalloc\fP()  returns non\-NULL there is no guarantee that the
+memory really is available.  In case it turns out that the system is out of
+memory, one or more processes will be killed by the OOM killer.  For more
+information, see the description of \fI/proc/sys/vm/overcommit_memory\fP and
+\fI/proc/sys/vm/oom_adj\fP in \fBproc\fP(5), and the Linux kernel source file
+\fIDocumentation/vm/overcommit\-accounting\fP.
 
 通常、 \fBmalloc\fP()  は、ヒープからメモリを割り当て、必要に応じてヒープのサイズを \fBsbrk\fP(2)  を使って調節する。
 \fBMMAP_THRESHOLD\fP バイトよりも大きなメモリブロックを割り当てる場合、 glibc の \fBmalloc\fP()  実装は
@@ -135,10 +137,12 @@ Linux libc の新しいバージョン (5.4.23 より後) と glibc (2.x) には
 .\" malloc() Performance in a Multithreaded Linux Environment -
 .\"     Check Lever, David Boreham
 .\"
+.ad l
+.nh
 \fBbrk\fP(2), \fBmmap\fP(2), \fBalloca\fP(3), \fBmalloc_get_state\fP(3),
 \fBmalloc_info\fP(3), \fBmalloc_trim\fP(3), \fBmalloc_usable_size\fP(3),
 \fBmallopt\fP(3), \fBmcheck\fP(3), \fBmtrace\fP(3), \fBposix_memalign\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.41 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.50 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。