OSDN Git Service

Update draft pages
[linuxjm/LDP_man-pages.git] / draft / man3 / assert_perror.3
index 14d3cf3..8b26374 100644 (file)
@@ -1,5 +1,6 @@
 .\" Copyright (C) 2002 Andries Brouwer <aeb@cwi.nl>
 .\"
+.\" %%%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.
 .\"
 .\" Formatted or processed versions of this manual, if unaccompanied by
 .\" the source, must acknowledge the copyright and authors of this work.
+.\" %%%LICENSE_END
 .\"
 .\" This replaces an earlier man page written by Walter Harms
 .\" <walter.harms@informatik.uni-oldenburg.de>.
 .\"
+.\"*******************************************************************
+.\"
+.\" This file was generated with po4a. Translate the source file.
+.\"
+.\"*******************************************************************
+.\"
 .\" Japanese Version Copyright (c) 2003  Akihiro MOTOKI
 .\"         all rights reserved.
 .\" Translated Tue Jul  8 05:09:37 JST 2003
 .\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
 .\"
-.TH ASSERT_PERROR 3  2002-08-25 "GNU" "Linux Programmer's Manual"
-.\"O .SH NAME
-.\"O assert_perror \- test errnum and abort
+.TH ASSERT_PERROR 3 2013\-09\-26 GNU "Linux Programmer's Manual"
 .SH 名前
 assert_perror \- test errnum and abort
-.\"O .SH SYNOPSIS
 .SH 書式
 .nf
-.\"O .BR "#define _GNU_SOURCE" "         /* See feature_test_macros(7) */"
-.BR "#define _GNU_SOURCE" "         /* feature_test_macros(7) 参照 */"
-.B #include <assert.h>
+\fB#define _GNU_SOURCE\fP         /* feature_test_macros(7) 参照 */
+\fB#include <assert.h>\fP
 .sp
-.BI "void assert_perror(int " errnum );
+\fBvoid assert_perror(int \fP\fIerrnum\fP\fB);\fP
 .fi
-.\"O .SH DESCRIPTION
 .SH 説明
-.\"O If the macro
-.\"O .B NDEBUG
-.\"O was defined at the moment
-.\"O .I <assert.h>
-.\"O was last included, the macro
-.\"O .BR assert_perror ()
-.\"O generates no code, and hence does nothing at all.
-最後に
-.I <assert.h>
-がインクルードされた時にマクロ
-.B NDEBUG
-が定義されていた場合、マクロ
-.BR assert_perror ()
-は何のコードも生成せず、したがって全く何もしない。
-.\"O Otherwise, the macro
-.\"O .BR assert_perror ()
-.\"O prints an error message to standard error and terminates the program
-.\"O by calling
-.\"O .BR abort (3)
-.\"O if
-.\"O .I errnum
-.\"O is nonzero.
-.\"O The message contains the filename, function name and
-.\"O line number of the macro call, and the output of
-.\"O .IR strerror(errnum) .
-そうでない場合、マクロ
-.BR assert_perror ()
-は標準エラーにエラー・メッセージを表示し、
-.I errnum
-が 0 でない場合には
-.BR abort (3)
-を呼び出してプログラムを終了させる。
-メッセージには、ファイル名、マクロ呼び出しがあった関数名と行番号、
-.I strerror(errnum)
-の出力が含まれる。
-.\"O .SH "RETURN VALUE"
+最後に \fI<assert.h>\fP がインクルードされた時にマクロ \fBNDEBUG\fP が定義されていた場合、マクロ
+\fBassert_perror\fP()  は何のコードも生成せず、したがって全く何もしない。 そうでない場合、マクロ \fBassert_perror\fP()
+は標準エラーにエラー・メッセージを表示し、 \fIerrnum\fP が 0 でない場合には \fBabort\fP(3)  を呼び出してプログラムを終了させる。
+メッセージには、ファイル名、マクロ呼び出しがあった関数名と行番号、 \fIstrerror(errnum)\fP の出力が含まれる。
 .SH 返り値
-.\"O No value is returned.
-返り値はない。
-.\"O .SH "CONFORMING TO"
+値は返されない。
 .SH 準拠
-.\"O This is a GNU extension.
 これは GNU による拡張である。
-.\"O .SH BUGS
 .SH バグ
-.\"O The purpose of the assert macros is to help the programmer find bugs in
-.\"O his program, things that cannot happen unless there was a coding mistake.
-.\"O However, with system or library calls the situation is rather different,
-.\"O and error returns can happen, and will happen, and should be tested for.
-.\"O Not by an assert, where the test goes away when
-.\"O .B NDEBUG
-.\"O is defined,
-.\"O but by proper error handling code.
-.\"O Never use this macro.
-assert マクロの目的は、プログラマがプログラム中のバグを探す手助けをすること
-であり、コーディング間違いがない場合には何が起こることはありえない。
+assert マクロの目的は、プログラマがプログラム中のバグを探す手助けをすることであり、コーディング間違いがない場合には何が起こることはありえない。
 しかしながら、システムコールやライブラリコールの場合、状況がかなり違っていて、
-エラーが返されることがありえるし、実際あるだろう。そしてそのような状況でも
-テストされるべきである。この場合には、
-.B NDEBUG
-を定義することで無効にできる
-assert ではなく、適切なエラー処理コードで対処すべきである。
-このマクロは決して使わないこと。
-.\"O .SH "SEE ALSO"
+エラーが返されることがありえるし、実際あるだろう。そしてそのような状況でも テストされるべきである。この場合には、 \fBNDEBUG\fP
+を定義することで無効にできる assert ではなく、適切なエラー処理コードで対処すべきである。 このマクロは決して使わないこと。
 .SH 関連項目
-.BR abort (3),
-.BR assert (3),
-.BR exit (3),
-.BR strerror (3)
+\fBabort\fP(3), \fBassert\fP(3), \fBexit\fP(3), \fBstrerror\fP(3)
+.SH この文書について
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
+である。プロジェクトの説明とバグ報告に関する情報は
+http://www.kernel.org/doc/man\-pages/ に書かれている。