.\" all rights reserved.
.\" Translated 2003-03-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
-.TH ERR 3 2012\-03\-15 Linux "Linux Programmer's Manual"
+.TH ERR 3 2013\-12\-30 Linux "Linux Programmer's Manual"
.SH 名前
err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- エラーメッセージを整形する
.SH 書式
.in +4n
.nf
-if ((p = malloc(size)) == NULL)
+p = malloc(size);
+if (p == NULL)
err(1, NULL);
-if ((fd = open(file_name, O_RDONLY, 0)) == \-1)
+fd = open(file_name, O_RDONLY, 0);
+if (fd == \-1)
err(1, "%s", file_name);
.fi
.in
.in +4n
.nf
-if ((fd = open(raw_device, O_RDONLY, 0)) == \-1)
+fd = open(raw_device, O_RDONLY, 0);
+if (fd == \-1)
warnx("%s: %s: trying the block device",
raw_device, strerror(errno));
-if ((fd = open(block_device, O_RDONLY, 0)) == \-1)
+fd = open(block_device, O_RDONLY, 0);
+if (fd == \-1)
err(1, "%s", block_device);
.fi
.in
.SH 関連項目
\fBerror\fP(3), \fBexit\fP(3), \fBperror\fP(3), \fBprintf\fP(3), \fBstrerror\fP(3)
.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.78 の一部
である。プロジェクトの説明とバグ報告に関する情報は
http://www.kernel.org/doc/man\-pages/ に書かれている。