X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=draft%2Fman3%2Fposix_memalign.3;h=dede68b64b43adfc2324b7b4ab721f00a0591a6a;hb=40274b7d79d419993de4a745e3ae86ca6d0f417f;hp=551ad8c6fd687c24395df41252e50b0848e8b4bc;hpb=ad24a8da2d0555b45e75db36ccc1b56d01cc68e6;p=linuxjm%2FLDP_man-pages.git diff --git a/draft/man3/posix_memalign.3 b/draft/man3/posix_memalign.3 index 551ad8c6..dede68b6 100644 --- a/draft/man3/posix_memalign.3 +++ b/draft/man3/posix_memalign.3 @@ -31,6 +31,18 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* +.\" +.\" Japanese Version Copyright (c) 2001 Akihiro MOTOKI +.\" all rights reserved. +.\" Translated 2001-11-05, Akihiro MOTOKI +.\" Updated 2003-09-05, Akihiro MOTOKI, catch up to v1.60 +.\" Updated 2005-11-19, Akihiro MOTOKI +.\" Updated 2010-04-18, Akihiro MOTOKI, LDP v3.24 +.\" Updated 2012-05-01, Akihiro MOTOKI +.\" Updated 2012-05-08, Akihiro MOTOKI +.\" Updated 2013-03-26, Akihiro MOTOKI +.\" Updated 2013-07-22, Akihiro MOTOKI +.\" .TH POSIX_MEMALIGN 3 2012\-03\-23 GNU "Linux Programmer's Manual" .SH 名前 posix_memalign, aligned_alloc, memalign, valloc, pvalloc \- アラインメント @@ -82,12 +94,11 @@ _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 || _XOPEN_SOURCE\ &&\ _XOPEN_SOURCE_EXTEND .PD .SH 説明 .\" glibc does this: -The function \fBposix_memalign\fP() allocates \fIsize\fP bytes and places the -address of the allocated memory in \fI*memptr\fP. The address of the allocated -memory will be a multiple of \fIalignment\fP, which must be a power of two and -a multiple of \fIsizeof(void\ *)\fP. If \fIsize\fP is 0, then \fBposix_memalign\fP() -returns either NULL, or a unique pointer value that can later be -successfully passed to \fBfree\fP(3). +関数 \fBposix_memalign\fP() は、 \fIsize\fP バイトのメモリを割り当て、割り当てられたメモリのアドレスを \fI*memptr\fP +に設定する。 割り当てられたメモリのアドレスは \fIalignment\fP の倍数になっているはずである。 \fIalignment\fP は 2 +のべき乗で、かつ \fIsizeof(void\ *)\fP の倍数でなければならない。 \fIsize\fP が 0 の場合、 +\fBposix_memalign\fP() は NULL か一意なポインタ値を返す。 このポインタ値は、後で \fBfree\fP(3) +に問題なく渡すことができる。 .\" The behavior of memalign() for size==0 is as for posix_memalign() .\" but no standards govern this. @@ -115,8 +126,7 @@ successfully passed to \fBfree\fP(3). .SH エラー .TP \fBEINVAL\fP -The \fIalignment\fP argument was not a power of two, or was not a multiple of -\fIsizeof(void\ *)\fP. +\fIalignment\fP 引き数が 2 のべき乗でなかったか、 \fIsizeof(void\ *)\fP の倍数でなかった。 .TP \fBENOMEM\fP 割り当て要求を満たすのに十分なメモリがなかった。 @@ -179,6 +189,6 @@ glibc の \fBmalloc\fP(3) は常に 8 バイトにアラインメントされた .SH 関連項目 \fBbrk\fP(2), \fBgetpagesize\fP(2), \fBfree\fP(3), \fBmalloc\fP(3) .SH この文書について -この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部 +この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部 である。プロジェクトの説明とバグ報告に関する情報は http://www.kernel.org/doc/man\-pages/ に書かれている。