File: error.3

package info (click to toggle)
manpages-ja 0.5.0.0.20061115-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 19,788 kB
  • ctags: 4
  • sloc: sh: 13,215; perl: 157; makefile: 117
file content (127 lines) | stat: -rw-r--r-- 4,248 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
.\" Copyright (C) 2006 Justin Pryzby <pryzbyj@justinpryzby.com>
.\" and Copyright (C) 2006 Michael Kerrisk <mtk-manpages@gmx.net>
.\"
.\" Permission is hereby granted, free of charge, to any person obtaining
.\" a copy of this software and associated documentation files (the
.\" "Software"), to deal in the Software without restriction, including
.\" without limitation the rights to use, copy, modify, merge, publish,
.\" distribute, sublicense, and/or sell copies of the Software, and to
.\" permit persons to whom the Software is furnished to do so, subject to
.\" the following conditions:
.\"
.\" The above copyright notice and this permission notice shall be
.\" included in all copies or substantial portions of the Software.
.\"
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
.\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
.\" IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
.\" CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
.\" TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
.\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
.\"
.\" References:
.\"   glibc manual and source
.\"
.\" Japanese Version Copyright (c) 2006 Yuichi SATO
.\"         all rights reserved.
.\" Translated 2006-08-04 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.36
.\"
.TH ERROR 3 "2006-04-25" GNU "Linux Programmer's Manual"
.SH ̾
error, error_at_line, error_message_count, error_on_per_line, error_print_progname \- glibc Υ顼񤭽Фؿ
.SH 
.nf
\fB#include <error.h>

\fBvoid error(int \fIstatus, \fBint\fI errnum, \
\fBconst char *\fIformat, \fB...);

\fBvoid error_at_line(int \fIstatus, \fBint \fIerrnum, \
\fBconst char *\fIfilename, 
                   \fBunsigned int \fIlinenum, \
\fBconst char *\fIformat, \fB...);

\fBextern unsigned int \fIerror_message_count\fP;

\fBextern int \fIerror_one_per_line\fP;

\fBextern void (* \fIerror_print_progname\fB) (void);
.fi
.SH 
\fBerror\fP() Ūʥ顼񤭽ФؿǤ롣
δؿɸ
.RI ( stdout )
˽񤭽ФƤ顢ɸ२顼
.RI ( stderr )
˽񤭽Ф
񤭽ФƤϡץ̾󡦥ڡ\fBprintf\fR(3) 
եޥåʸ \fIformat\fP ǻꤵ줿åǤ롣
\fIerrnum\fP  0 ʳξ硢2 ܤΥȥڡθ
\fBperror(\fIerrnum\fB)\fR
ǻꤵ줿ʸ񤭽Ф
.I format 
ɬפǤդΰꥹȤ
.I format
θ³
Ϥνüˤϲʸդ

.BR error ()
ǽϤץ̾ϡѿ
.BR program_invocation_name (3)
ͤǤ롣
.I program_invocation_name 
νͤ
.IR main ()

.I argv[0]
ͤ
ѿͤѹǽǤꡢѹ
.BR error ()
νϤѤ롣

\fIstatus\fP  0 ʳξ硢
.BR error ()

.BR exit (3)
ƤӽФơꤵ줿λơǥץλ롣

\fBerror_at_line\fP() ؿϡ
.I filename

.IR linenum 
ɲäƤʳϡ\fBerror\fP() ƱǤ롣
Ϥϡץ̾θ
\fIfilename\fR ͡\fIlinenum\fR ͤ񤭽Фʳϡ
.BR error ()
ƱǤ롣
ץץå \fB__LINE__\fP  \fB__FILE__\fP ϡ
\fBerror_at_line\fP() ƤӽФȤΩġ
¾ΥץץåͤȤȤǤ롣
㤨Сΰϥեˤ֤򻲾ȤǤ롣

ѿ \fIerror_one_per_line\fP  0 ʳꤵƤ硢
\fIfilename\fP  \fIlinenum\fP ͤ
\fBerror_at_line\fP() θƤӽФϡ
1 Ĥ (ǽ) åνϤˤޤȤ롣

ѿ \fIerror_message_count\fP ϡ
\fBerror\fP()  \fBerror_at_line\fP() ǽϤ줿åοɽ

ѿ \fIerror_print_progname\fP 
ؿΥɥ쥹ƤƤ (Ĥޤ NULL ǤϤʤ)
å˥ץ̾ȥ񤭽ФΤǤϤʤ
δؿƤӽФ
δؿɸ२顼
.RI ( stderr )
ФƤŬڤʸ񤭽ФʤФʤʤ
.SH 
δؿѿ GNU ˤĥǤꡢ
ܿͤץǤϻѤ٤ǤϤʤ
.SH Ϣ
.BR err (3),
.BR errno (3),
.BR exit (3),
.BR perror (3),
.BR program_invocation_name (3),
.BR strerror (3)