OSDN Git Service

e1a777179516a4c5b7a1bd2e30d679a6a8fe8144
[linuxjm/LDP_man-pages.git] / draft / man3 / abort.3
1 .\" Copyright 2007 (C) Michael Kerrisk <mtk.manpages@gmail.com>
2 .\" some parts Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
3 .\"
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
7 .\"
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
12 .\"
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein.  The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
19 .\" professionally.
20 .\"
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
23 .\"
24 .\" References consulted:
25 .\"     Linux libc source code
26 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
27 .\"     386BSD man pages
28 .\" Modified Sat Jul 24 21:46:21 1993 by Rik Faith (faith@cs.unc.edu)
29 .\" Modified Fri Aug  4 10:51:53 2000 - patch from Joseph S. Myers
30 .\" 2007-12-15, mtk, Mostly rewritten
31 .\"
32 .\" Japanese Version Copyright (c) 1996 Kentaro OGAWA
33 .\"         all rights reserved.
34 .\" Translated 1996-07-13, Kentaro OGAWA <k_ogawa@oyna.cc.muroran-it.ac.jp>
35 .\" Updated 2008-02-09, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
36 .\" Updated 2010-12-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
37 .\"
38 .TH ABORT 3  2007-12-15 "GNU" "Linux Programmer's Manual"
39 .\"O .SH NAME
40 .SH 名前
41 .\"O abort \- cause abnormal process termination
42 abort \- プロセスの異常終了を生じさせる
43 .\"O .SH SYNOPSIS
44 .SH 書式
45 .nf
46 .B #include <stdlib.h>
47 .sp
48 .B void abort(void);
49 .fi
50 .\"O .SH DESCRIPTION
51 .SH 説明
52 .\"O The
53 .\"O .BR abort ()
54 .\"O first unblocks the
55 .\"O .B SIGABRT
56 .\"O signal, and then raises that signal for the calling process.
57 .\"O This results in the abnormal termination of the process unless the
58 .\"O .B SIGABRT
59 .\"O signal is caught and the signal handler does not return
60 .\"O (see
61 .\"O .BR longjmp (3)).
62 .BR abort ()
63 関数は、まず
64 .B SIGABRT
65 の禁止 (block) を解除してから、呼び出し元のプロセスに
66 .B SIGABRT
67 シグナルを上げる。その結果、
68 .B SIGABRT
69 シグナルが捕捉 (caught) されて対応するシグナル・ハンドラーが
70 返って来ない場合以外は、プログラムの異常終了が起こる
71 .RB ( longjmp (3)
72 参照)。
73 .PP
74 .\"O If the
75 .\"O .BR abort ()
76 .\"O function causes process termination,
77 .\"O all open streams are closed and flushed.
78 .BR abort ()
79 関数によってプロセスの終了が引き起こされたときには、
80 すべての開いているストリームは閉じられフラッシュされる。
81 .PP
82 .\"O If the
83 .\"O .B SIGABRT
84 .\"O signal is ignored, or caught by a handler that returns, the
85 .\"O .BR abort ()
86 .\"O function will still terminate the process.
87 .\"O It does this by restoring the default disposition for
88 .\"O .B SIGABRT
89 .\"O and then raising the signal for a second time.
90 .B SIGABRT
91 シグナルが無視、または返って来るシグナル・ハンドラーで
92 捕捉されるようになっている場合であっても、
93 .BR abort ()
94 関数はそのプロセスを終了する。
95 .B SIGABRT
96 シグナルに対する処理方法をデフォルトに戻してから、再度
97 .B SIGABRT
98 シグナルを上げることで、このような動作になる。
99 .\"O .SH "RETURN VALUE"
100 .SH 返り値
101 .\"O The
102 .\"O .BR abort ()
103 .\"O function never returns.
104 .BR abort ()
105 関数が返ることはない。
106 .\"O .SH "CONFORMING TO"
107 .SH 準拠
108 SVr4, POSIX.1-2001, 4.3BSD, C89, C99.
109 .\"O .SH "SEE ALSO"
110 .SH 関連項目
111 .BR gdb (1),
112 .BR sigaction (2),
113 .BR exit (3),
114 .BR longjmp (3),
115 .BR raise (3)