File: _exit.2

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (141 lines) | stat: -rw-r--r-- 4,151 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" This manpage is Copyright (C) 1992 Drew Eckhardt;
.\"                               1993 Michael Haardt, Ian Jackson.
.\"
.\" 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.
.\"
.\" Modified Wed Jul 21 23:02:38 1993 by Rik Faith <faith@cs.unc.edu>
.\" Modified 2001-11-17, aeb
.\"
.\" Japanese Version Copyright (c) 1997 KUNIMOTO Yasuhiro, all rights reserved.
.\" Translated Jun 27, 1997 by KUNIMOTO Yasuhiro (hiro@kthree.co.jp)
.\"
.\" Modified  Jun 28, 1997 by Yoshiki Sugiura (yox@in.aix.or.jp)
.\" Modified  Jul  6, 1997 by Yoshiki Sugiura (yox@in.aix.or.jp)
.\" Updated & Modified Sun Dec  9 20:02:10 JST 2001
.\"         by Yuichi SATO <ysato@h4.dion.ne.jp>
.\" Updated Sat Sep  3 04:26:00 JST 2005
.\"         by Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
.\"
.\"WORD	    descriptors ǥץ
.\"
.TH _EXIT 2 2008-11-27 "Linux" "Linux Programmer's Manual"
.SH ̾
_exit, _Exit \- ƤӽФΥץλ
.SH 
.B #include <unistd.h>
.sp
.BI "void _exit(int " status );
.sp
.B #include <stdlib.h>
.sp
.BI "void _Exit(int " status );
.sp
.in -4n
glibc εǽޥ׷
.RB ( feature_test_macros (7)
):
.in
.sp
.BR _Exit ():
_XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE; ޤ
.I cc\ -std=c99
.SH 
.BR _exit ()
ϡƤץľˡ׽λ롣
κݡΥץͭƤǥץ (descriptor) ǡ
ץ󤵤ƤΤƥ롣
ޤΥץͭҥץơץֹ 1
Ĥޤ
.I init
ץˤäƷѾ졢ΥץοƥץФ
.B SIGCHLD
ʥ뤬Ф롣
.LP
.I status
ͤϡΥץνλ֤ȤƤοƥץФ֤졢
.BR wait (2)
ϴؿѤ뤳ȤˤäƼ뤳ȤǤ롣
.LP
ؿ
.BR _Exit ()

.BR _exit ()
Ǥ롣
.SH ֤
δؿ֤ͤʤ
.SH 
SVr4, POSIX.1-2001, 4.3BSD.
ؿ
.BR _Exit ()
 C99 Ƴ줿
.SH 
exit 䡦λ֤μϤ
ӥץʥФʤɤˤĤƤεϡ
.BR exit (3)
򻲾Ȥ뤳ȡ
.LP
ؿ
.BR _exit ()

.BR exit (3)
˻Ƥ뤬ANSI C 
.BR atexit (3)

.BR on_exit (3)
ˤäϿ줿ʤؿƤӽФʤ
ɸ I/O ХåեΥեå䡢
.BR tmpfile (3)
Ǻ줿ƥݥեκԤɤϡ˰¸롣
ǡ
.BR _exit ()
ϥץ󤵤Ƥեǥץ򥯥ʤᡢ
̤ˤʤäƤϤեå夵ΤԤĤΤԳ٤줬ȯ롣
٤ȯʤС
.BR _exit ()

.BR tcflush (3)
Τ褦ʴؿƤӽФФ褤
.BR _exit ()
ƤӽФ줿Ȥˡ
̤ˤʤäƤƤ I/O 󥻥뤵Τ
ޤɤ I/O 󥻥뤵Τϼ˰¸롣

С 2.3  glibc Ǥϡ
.BR _exit ()
ΥåѡؿƱ̾Υͥ롦ƥॳưƤ
glibc 2.3 ʹߤǤϡץƤΥåɤλ뤿ˡ
åѡؿ
.BR exit_group (2)
ư롣
.SH Ϣ
.BR execve (2),
.BR exit_group (2),
.BR fork (2),
.BR kill (2),
.BR wait (2),
.BR wait4 (2),
.BR waitpid (2),
.BR atexit (3),
.BR exit (3),
.BR on_exit (3),
.BR termios (3)