OSDN Git Service

(split) LDP: Update the version to 3.53 in PO files
[linuxjm/LDP_man-pages.git] / release / man2 / _exit.2
1 .\" This manpage is Copyright (C) 1992 Drew Eckhardt;
2 .\"             and Copyright (C) 1993 Michael Haardt, Ian Jackson.
3 .\"
4 .\" %%%LICENSE_START(VERBATIM)
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\" %%%LICENSE_END
25 .\"
26 .\" Modified Wed Jul 21 23:02:38 1993 by Rik Faith <faith@cs.unc.edu>
27 .\" Modified 2001-11-17, aeb
28 .\"
29 .\"*******************************************************************
30 .\"
31 .\" This file was generated with po4a. Translate the source file.
32 .\"
33 .\"*******************************************************************
34 .TH _EXIT 2 2010\-09\-20 Linux "Linux Programmer's Manual"
35 .SH 名前
36 _exit, _Exit \- 呼び出し元のプロセスを終了させる
37 .SH 書式
38 \fB#include <unistd.h>\fP
39 .sp
40 \fBvoid _exit(int \fP\fIstatus\fP\fB);\fP
41 .sp
42 \fB#include <stdlib.h>\fP
43 .sp
44 \fBvoid _Exit(int \fP\fIstatus\fP\fB);\fP
45 .sp
46 .in -4n
47 glibc 向けの機能検査マクロの要件 (\fBfeature_test_macros\fP(7)  参照):
48 .in
49 .sp
50 .ad l
51 \fB_Exit\fP():
52 .RS 4
53 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE\ >=\ 200112L;
54 .br
55 または \fIcc\ \-std=c99\fP
56 .RE
57 .ad
58 .SH 説明
59 \fB_exit\fP()  は、それを呼んだプロセスを「直ちに」終了させる。 その際、このプロセスが所有しているディスクリプタ (descriptor)
60 で、 オープンされているものは全てクローズされる。 また、このプロセスが所有する子プロセスは全て、プロセス番号 1、 つまり \fIinit\fP
61 プロセスによって継承され、このプロセスの親プロセスに対して \fBSIGCHLD\fP シグナルが送出される。
62 .LP
63 \fIstatus\fP の値は、このプロセスの終了状態としてその親プロセスに対して返され、 \fBwait\fP(2)
64 系関数を利用することによって取得することができる。
65 .LP
66 関数 \fB_Exit\fP()  は \fB_exit\fP()  と等価である。
67 .SH 返り値
68 これらの関数は値を返さない。
69 .SH 準拠
70 SVr4, POSIX.1\-2001, 4.3BSD.  関数 \fB_Exit\fP()  は C99 で導入された。
71 .SH 注意
72 exit の効果、終了状態の受渡し、ゾンビプロセス、シグナル送出などに
73 ついての議論は、 \fBexit\fP(3) を参照すること。
74 .LP
75 関数 \fB_exit\fP()  は \fBexit\fP(3)  に似ているが、ANSI C の \fBatexit\fP(3)  や \fBon_exit\fP(3)
76 によって登録されたいかなる関数も呼び出さない。 標準 I/O バッファのフラッシュや、 \fBtmpfile\fP(3)
77 で作成されたテンポラリファイルの削除を行うかどうかは、実装に依存する。 一方で、 \fB_exit\fP()
78 はオープンされているファイルディスクリプタをクローズしないため、 未決定になっている出力がフラッシュされるのを待つのに不確定な遅れが発生する。
79 この遅れを発生させたくなければ、 \fB_exit\fP()  の前に \fBtcflush\fP(3)  のような関数を呼び出せばよい。 \fB_exit\fP()
80 が呼び出されたときに、 未決定になっている全ての I/O がキャンセルされるのか、 またどの I/O がキャンセルされるのかは実装に依存する。
81
82 バージョン 2.3 より前の glibc では、 \fB_exit\fP()  のラッパー関数は同じ名前のカーネル・システムコールを起動していた。 glibc
83 2.3 以降では、プロセス内の全てのスレッドを終了するために、 ラッパー関数は \fBexit_group\fP(2)  を起動する。
84 .SH 関連項目
85 \fBexecve\fP(2), \fBexit_group\fP(2), \fBfork\fP(2), \fBkill\fP(2), \fBwait\fP(2),
86 \fBwait4\fP(2), \fBwaitpid\fP(2), \fBatexit\fP(3), \fBexit\fP(3), \fBon_exit\fP(3),
87 \fBtermios\fP(3)
88 .SH この文書について
89 この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.53 の一部
90 である。プロジェクトの説明とバグ報告に関する情報は
91 http://www.kernel.org/doc/man\-pages/ に書かれている。