OSDN Git Service

Update release for LDP 3.67
[linuxjm/LDP_man-pages.git] / release / man2 / _syscall.2
index f4898c1..c693492 100644 (file)
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
+.\"
+.\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
+.\"         all rights reserved.
+.\" Translated 2008-02-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
+.\"
 .TH _SYSCALL 2 2007\-12\-19 Linux "Linux Programmer's Manual"
 .SH 名前
 _syscall \- ライブラリのサポートなしでシステムコールを起動する (昔の方法)
@@ -83,13 +88,11 @@ _syscall\fIX\fP(\fItype\fP,\fIname\fP,\fItype1\fP,\fIarg1\fP,\fItype2\fP,\fIarg2
 _syscall() マクロはプロトタイプを「生成しない」。 ユーザはプロトタイプを自分で書かなければならないかもしれない。 とりわけ C++
 ユーザの場合はそうであろう。
 
-System calls are not required to return only positive or negative error
-codes.  You need to read the source to be sure how it will return errors.
-Usually, it is the negative of a standard error code, for example, i
-\-\fIEPERM\fP.  The _syscall() macros will return the result \fIr\fP of the system
-call when \fIr\fP is nonnegative, but will return \-1 and set the variable
-\fIerrno\fP to \-\fIr\fP when \fIr\fP is negative.  For the error codes, see
-\fBerrno\fP(3).
+システムコールは、正のエラーコードのみ、または負のエラーコードのみを返すように
+定められている訳ではない。そのシステムコールがどのようなエラーコードを返すかを
+確認するには、そのソースコードを読む必要がある。たいていの場合は、標準のエラー コードを負にしたものである (例えば \-\fIEPERM\fP)。
+_syscall() マクロは、そのシステムコールの返り値 \fIr\fP が負でない場合、その値 をそのまま返す。一方、\fIr\fP が負の場合には、変数
+\fIerrno\fP に \-\fIr\fP を設定し、\-1 を返す。 エラーコードについては \fBerrno\fP(3)  を参照。
 
 .\" The preferred way to invoke system calls that glibc does not know
 .\" about yet is via
@@ -151,6 +154,6 @@ Number of processes = 40
 .SH 関連項目
 \fBintro\fP(2), \fBsyscall\fP(2), \fBerrno\fP(3)
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.52 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。