OSDN Git Service

(split) [JM:00085] Correct the translation of RETURN VALUE section.
[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)