OSDN Git Service

Retire LDP man-pages repository
[linuxjm/LDP_man-pages.git] / release / man3 / exit.3
diff --git a/release/man3/exit.3 b/release/man3/exit.3
deleted file mode 100644 (file)
index 55e970c..0000000
+++ /dev/null
@@ -1,110 +0,0 @@
-.\" Copyright (C) 2001 Andries Brouwer <aeb@cwi.nl>.
-.\"
-.\" %%%LICENSE_START(VERBATIM)
-.\" Permission is granted to make and distribute verbatim copies of this
-.\" manual provided the copyright notice and this permission notice are
-.\" preserved on all copies.
-.\"
-.\" Permission is granted to copy and distribute modified versions of this
-.\" manual under the conditions for verbatim copying, provided that the
-.\" entire resulting derived work is distributed under the terms of a
-.\" permission notice identical to this one.
-.\"
-.\" Since the Linux kernel and libraries are constantly changing, this
-.\" manual page may be incorrect or out-of-date.  The author(s) assume no
-.\" responsibility for errors or omissions, or for damages resulting from
-.\" the use of the information contained herein.  The author(s) may not
-.\" have taken the same level of care in the production of this manual,
-.\" which is licensed free of charge, as they might when working
-.\" professionally.
-.\"
-.\" Formatted or processed versions of this manual, if unaccompanied by
-.\" the source, must acknowledge the copyright and authors of this work.
-.\" %%%LICENSE_END
-.\"
-.\" FIXME . There are a lot of other process termination actions that
-.\" could be listed on this page. See, for example, the list in the
-.\" POSIX exit(3p) page.
-.\"
-.\"*******************************************************************
-.\"
-.\" This file was generated with po4a. Translate the source file.
-.\"
-.\"*******************************************************************
-.\"
-.\" Japanese Version Copyright (c) 1997 HORIMOTO Masafumi
-.\"         all rights reserved.
-.\" Translated 1997-09-10, HORIMOTO Masafumi
-.\" Updated & Modified 2001-10-27, Yuichi SATO <ysato@h4.dion.ne.jp>
-.\" Updated & Modified 2001-12-09, Yuichi SATO
-.\" Updated & Modified 2005-09-06, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
-.\" Updated 2007-06-18, Akihiro MOTOKI, LDP v2.57
-.\" Updated 2013-05-01, Akihiro MOTOKI <amotoki@gmail.com>
-.\"
-.TH EXIT 3 2014\-03\-25 Linux "Linux Programmer's Manual"
-.SH 名前
-exit \- プロセスの正常終了
-.SH 書式
-.nf
-\fB#include <stdlib.h>\fP
-.sp
-\fBvoid exit(int \fP\fIstatus\fP\fB);\fP
-.fi
-.SH 説明
-\fBexit\fP()  関数は、プロセスを正常に終了させ、 \fIstatus & 0377\fP という値を親プロセスへ返す (\fBwait\fP(2)
-を参照)。
-.LP
-\fBatexit\fP(3)  や \fBon_exit\fP(3)  によって 登録された全ての関数は、それらが登録された順番と逆順にコールされる。
-(登録された関数の中で \fBatexit\fP(3)  or \fBon_exit\fP(3)  を使って exit
-処理中に実行される追加の関数を登録することができる; 新規に登録された関数は、この後で実行される関数リストの先頭に 追加される。)
-これらの関数の一つが返らなかった場合 (例えば、その関数が \fB_exit\fP(2)  を呼び出したり、シグナルで自分自身を kill した場合)、
-残りの関数はどれも呼び出されず、それ以降の exit 処理 (特に \fBstdio\fP(3)  ストリームのフラッシュなど) は中止される。 ある関数が
-\fBatexit\fP(3)  や \fBon_exit\fP(3)  を使って複数回登録されていた場合、 その関数は登録されたのと同じ回数だけ呼び出される。
-.LP
-オープン中の \fBstdio\fP(3)  ストリームは全てフラッシュされて、クローズされる。 \fBtmpfile\fP(3)
-によって作成されたファイルは削除される。
-.LP
-C 標準では \fBEXIT_SUCCESS\fP と \fBEXIT_FAILURE\fP という 2つの定数が
-定義されている。それぞれ正常終了と異常終了を示すもので、 \fBexit\fP()  として渡すことができる。
-.SH 返り値
-\fBexit\fP()  関数は返らない。
-.SH 属性
-.SS "マルチスレッディング (pthreads(7) 参照)"
-\fBexit\fP() 関数は保護されていないグローバル変数を使用しているため、スレッドセーフではない。
-.SH 準拠
-SVr4, 4.3BSD, POSIX.1\-2001, C89, C99.
-.SH 注意
-.LP
-\fBatexit\fP(3)  や \fBon_exit\fP(3)  を使って登録された関数の中で \fBexit\fP() か \fBlongjmp\fP(3)
-が呼び出された場合、 何が起こるかは未定義である。 \fBexecve\fP(2) を呼び出すと、 \fBatexit\fP(3) や \fBon_exit\fP(3)
-を使って登録された関数が削除される点に注意すること。
-.LP
-\fBEXIT_SUCCESS\fP と \fBEXIT_FAILURE\fP を使うと、0 や (1 や \-1 といった) 0 以外の値を使うのに比べて
-(UNIX 以外の環境に) 移植するのがいくらか簡単になる。 特に VMS は別の方式を用いている。
-.LP
-BSD は終了コードを標準化しようとしている; \fI<sysexits.h>\fP を参照すること。
-.LP
-\fBexit\fP()  の後、親プロセスに終了ステータスが渡されなければならない。 終了ステータスの渡し方には 3 つの場合がある。 親プロセスが
-\fBSA_NOCLDWAIT\fP を設定した場合、 または \fBSIGCHLD\fP ハンドラーを \fBSIG_IGN\fP に設定した場合、
-ステータスは破棄される。 親プロセスが子プロセスの終了を待っている場合、 親プロセスに終了ステータスが伝えられる。 どちらの場合でも exit
-のプロセスは直ちに終了する。 「終了ステータスを関知せず終了も待たない」 ということを親プロセスが指示していない場合、 exit プロセスは
-(終了ステータスを表す 1 バイトのみを保持する)  「ゾンビ」プロセスになる。 これにより、後から \fBwait\fP(2)  関数を呼び出すことで、
-親プロセスは終了ステータスを知ることができる。
-.LP
-\fBSIGCHLD\fP シグナルのサポートが実装されている場合、 このシグナルは親プロセスに送られる。 親プロセスが \fBSA_NOCLDWAIT\fP
-を設定した場合、 \fBSIGCHLD\fP シグナルが送られるかどうかは定義されていない。
-.LP
-そのプロセスがセッションのリーダーで、 そのプロセスの制御端末がそのセッションの制御端末である場合、
-この制御端末のフォアグラウンドプロセスグループにある 各プロセスに \fBSIGHUP\fP シグナルが送られ、端末がセッションから切り離される。
-これにより新しい制御プロセスを取得することができる。
-.LP
-プロセスが終了することにより、プロセスグループが孤立して、 そのグループのメンバーのうちのどれかが停止した場合、 プロセスグループの各プロセスに対して
-\fBSIGHUP\fP シグナルが送られ、続いて \fBSIGCONT\fP シグナルが送られる。 孤立した (orphaned) プロセスグループの説明は
-\fBsetpgid\fP(2)  を参照。
-.SH 関連項目
-\fB_exit\fP(2), \fBsetpgid\fP(2), \fBwait\fP(2), \fBatexit\fP(3), \fBon_exit\fP(3),
-\fBtmpfile\fP(3)
-.SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.79 の一部
-である。プロジェクトの説明とバグ報告に関する情報は
-http://www.kernel.org/doc/man\-pages/ に書かれている。