OSDN Git Service

(split) LDP: Update release pages based on LDP 3.54 release
[linuxjm/LDP_man-pages.git] / release / man2 / truncate.2
index 7367314..a6313c1 100644 (file)
@@ -1,6 +1,7 @@
 .\" Copyright (c) 1983, 1991 The Regents of the University of California.
 .\" All rights reserved.
 .\"
+.\" %%%LICENSE_START(BSD_4_CLAUSE_UCB)
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
 .\" are met:
@@ -28,6 +29,7 @@
 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
+.\" %%%LICENSE_END
 .\"
 .\"     @(#)truncate.2 6.9 (Berkeley) 3/10/91
 .\"
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH TRUNCATE 2 2011\-09\-08 Linux "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 1997 SUTO, Mitsuaki
+.\"         all rights reserved.
+.\" Translated 1997-06-26, SUTO, Mitsuaki <suto@av.crl.sony.co.jp>
+.\" Modified 2000-03-12, HANATAKA Shinya <hanataka@abyss.rim.or.jp>
+.\" Updated 2001-01-09, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2002-04-13, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2002-10-21, Kentaro Shirakata <argrath@ub32.org>
+.\" Updated 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\" Updated 2006-07-21, Akihiro MOTOKI, LDP v2.36
+.\" Updated 2012-04-30, Akihiro MOTOKI <amotoki@gmail.com>
+.\" Updated 2013-05-01, Akihiro MOTOKI <amotoki@gmail.com>
+.\"
+.TH TRUNCATE 2 2013\-04\-01 Linux "Linux Programmer's Manual"
 .SH 名前
 truncate, ftruncate \- 指定した長さにファイルを切り詰める
 .SH 書式
@@ -131,12 +146,13 @@ inode の更新時に I/O エラーが発生した。
 パス名の構成要素がディレクトリではない。
 .TP 
 \fBEPERM\fP
-.\" This happens for at least MSDOS and VFAT file systems
+.\" This happens for at least MSDOS and VFAT filesystems
 .\" on kernel 2.6.13
-下層にあるファイルシステムでは、現在のファイル長を越えて ファイルを伸長することができない。
+The underlying filesystem does not support extending a file beyond its
+current size.
 .TP 
 \fBEROFS\fP
-ファイルが読み込み専用 (read only) のファイル・システム上にある。
+The named file resides on a read\-only filesystem.
 .TP 
 \fBETXTBSY\fP
 指定されたファイルは実行されているファイルである。
@@ -167,15 +183,15 @@ inode の更新時に I/O エラーが発生した。
 4.4BSD, SVr4, POSIX.1\-2001 (これらのコールは 4.2BSD で初めて登場した)。
 .SH 注意
 .\" At the very least: OSF/1, Solaris 7, and FreeBSD conform, mtk, Jan 2002
-「説明」の節で述べた詳細は XSI 準拠のシステムについてのものである。
-XSI 非準拠のシステムの場合、POSIX 標準は \fBftruncate\fP() に対して \fIlength\fP が
-ファイルの長さより長かった場合、 エラーを返すかファイルを伸張するかの二つの
-動作を許容している。 \fBtruncate\fP() に対しては全く規定されていない。
-ほとんどの UNIX 実装と同様、Linux はネイティブ (Linux 由来) の ファイルシステム
-の扱いでは XSI 要求仕様にしたがっている。 しかしながら、いくつかの非ネイティブ
-のファイルシステムでは、 \fBtruncate\fP() や \fBftruncate\fP() を使って現在のファイル
-長を越えてファイルを伸長することができない。 Linux での有名な例としては
-VFAT がある。
+The details in DESCRIPTION are for XSI\-compliant systems.  For
+non\-XSI\-compliant systems, the POSIX standard allows two behaviors for
+\fBftruncate\fP()  when \fIlength\fP exceeds the file length (note that
+\fBtruncate\fP()  is not specified at all in such an environment): either
+returning an error, or extending the file.  Like most UNIX implementations,
+Linux follows the XSI requirement when dealing with native filesystems.
+However, some nonnative filesystems do not permit \fBtruncate\fP()  and
+\fBftruncate\fP()  to be used to extend a file beyond its current length: a
+notable example on Linux is VFAT.
 
 元々の Linux の \fBtruncate\fP() と \fBftruncate\fP() システムコールは
 大きなファイルオフセットを扱えるように設計されていなかった。
@@ -184,6 +200,9 @@ VFAT がある。
 ただし、glibc を使ったアプリケーションではこれらの詳細は気にする必要はない。
 glibc のラッパー関数は新しいシステムコールが利用できる場合にはそれらを利用する
 ようになっているからである。
+
+いくつかの 32 ビットアーキテクチャでは、これらのシステムコールの呼び出し時のシグネチャーが違っています。理由は \fBsyscall\fP(2)
+で説明されている通りです。
 .SH バグ
 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=12037
 glibc 2.12 のヘッダファイルにはバグがあり、 \fBftruncate\fP()  の宣言を公開するのに必要な \fB_POSIX_C_SOURCE\fP
@@ -191,6 +210,6 @@ glibc 2.12 のヘッダファイルにはバグがあり、 \fBftruncate\fP()  
 .SH 関連項目
 \fBopen\fP(2), \fBstat\fP(2), \fBpath_resolution\fP(7)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.54 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。