OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[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 .\"
37 .TH ABORT 3  2007-12-15 "GNU" "Linux Programmer's Manual"
38 .\"O .SH NAME
39 .SH Ì¾Á°
40 .\"O abort \- cause abnormal process termination
41 abort \- ¥×¥í¥»¥¹¤Î°Û¾ï½ªÎ»¤òÀ¸¤¸¤µ¤»¤ë
42 .\"O .SH SYNOPSIS
43 .SH ½ñ¼°
44 .nf
45 .B #include <stdlib.h>
46 .sp
47 .B void abort(void);
48 .fi
49 .\"O .SH DESCRIPTION
50 .SH ÀâÌÀ
51 .\"O The
52 .\"O .BR abort ()
53 .\"O first unblocks the
54 .\"O .B SIGABRT
55 .\"O signal, and then raises that signal for the calling process.
56 .\"O This results in the abnormal termination of the process unless the
57 .\"O .B SIGABRT
58 .\"O signal is caught and the signal handler does not return
59 .\"O (see
60 .\"O .BR longjmp (3)).
61 .BR abort ()
62 ´Ø¿ô¤Ï¡¢¤Þ¤º
63 .B SIGABRT
64 ¤Î¶Ø»ß (block) ¤ò²ò½ü¤·¤Æ¤«¤é¡¢¸Æ¤Ó½Ð¤·¸µ¤Î¥×¥í¥»¥¹¤Ë
65 .B SIGABRT
66 ¥·¥°¥Ê¥ë¤ò¾å¤²¤ë¡£¤½¤Î·ë²Ì¡¢
67 .B SIGABRT
68 ¥·¥°¥Ê¥ë¤¬¤òÊ᪠(caught) ¤µ¤ì¤Æ¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¡¼¤¬Ê֤äÆÍè¤Ê¤¤
69 ¾ì¹ç¤ò½ü¤¤¤Æ¡¢¥×¥í¥°¥é¥à¤Î°Û¾ï½ªÎ»¤¬µ¯¤³¤ë
70 .RB ( longjmp (3)
71 »²¾È)¡£
72 .PP
73 .\"O If the
74 .\"O .BR abort ()
75 .\"O function causes process termination,
76 .\"O all open streams are closed and flushed.
77 .BR abort ()
78 ´Ø¿ô¤Ë¤è¤Ã¤Æ¥×¥í¥»¥¹¤Î½ªÎ»¤¬°ú¤­µ¯¤³¤µ¤ì¤¿¤È¤­¤Ë¤Ï¡¢
79 ¤¹¤Ù¤Æ¤Î³«¤¤¤Æ¤¤¤ë¥¹¥È¥ê¡¼¥à¤ÏÊĤ¸¤é¤ì¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£
80 .PP
81 .\"O If the
82 .\"O .B SIGABRT
83 .\"O signal is ignored, or caught by a handler that returns, the
84 .\"O .BR abort ()
85 .\"O function will still terminate the process.
86 .\"O It does this by restoring the default disposition for
87 .\"O .B SIGABRT
88 .\"O and then raising the signal for a second time.
89 .B SIGABRT
90 ¥·¥°¥Ê¥ë¤¬Ìµ»ë¡¢¤Þ¤¿¤ÏÊ֤äÆÍè¤ë¥·¥°¥Ê¥ë¡¦¥Ï¥ó¥É¥é¡¼¤Ç
91 Ê᪤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ç¤¢¤Ã¤Æ¤â¡¢
92 .BR abort ()
93 ´Ø¿ô¤Ï¤½¤Î¥×¥í¥»¥¹¤ò½ªÎ»¤¹¤ë¡£
94 .B SIGABRT
95 ¥·¥°¥Ê¥ë¤ËÂФ¹¤ë½èÍýÊýË¡¤ò¥Ç¥Õ¥©¥ë¥È¤ËÌᤷ¤Æ¤«¤é¡¢ºÆÅÙ
96 .B SIGABRT
97 ¥·¥°¥Ê¥ë¤ò¾å¤²¤ë¤³¤È¤Ç¡¢¤³¤Î¤è¤¦¤ÊÆ°ºî¤Ë¤Ê¤ë¡£
98 .\"O .SH "RETURN VALUE"
99 .SH ÊÖ¤êÃÍ
100 .\"O The
101 .\"O .BR abort ()
102 .\"O function never returns.
103 .BR abort ()
104 ´Ø¿ô¤Ï¡¢²¿¤âÊÖ¤µ¤Ê¤¤¡£
105 .\"O .SH "CONFORMING TO"
106 .SH ½àµò
107 SVr4, POSIX.1-2001, 4.3BSD, C89, C99.
108 .\"O .SH "SEE ALSO"
109 .SH ´ØÏ¢¹àÌÜ
110 .BR gdb (1),
111 .BR sigaction (2),
112 .BR exit (3),
113 .BR longjmp (3),
114 .BR raise (3)