OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man3 / on_exit.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\"
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
6 .\"
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
11 .\"
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein.  The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
18 .\" professionally.
19 .\"
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
22 .\"
23 .\" References consulted:
24 .\"     Linux libc source code
25 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
26 .\"     386BSD man pages
27 .\" Modified 1993-04-02, David Metcalfe
28 .\" Modified 1993-07-25, Rik Faith (faith@cs.unc.edu)
29 .\"
30 .\" Japanese Version Copyright (c) 1997 Seiichi Yoshida
31 .\"       all rights reserved.
32 .\" Translated 1997-02-14, Seiichi Yoshida <seiichi@muraoka.info.waseda.ac.jp>
33 .\" Updated 2002-09-27, Kentaro Shirakata <argrath@ub32.org>
34 .\" Updated 2005-02-26, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\" Updated 2008-12-26, Akihiro MOTOKI, LDP v3.15
36 .\"
37 .TH ON_EXIT 3  2008-12-05 "GNU" "Linux Programmer's Manual"
38 .SH Ì¾Á°
39 on_exit \- ¥×¥í¥»¥¹¤¬Àµ¾ï¤Ë½ªÎ»¤·¤¿ºÝ¤Ë¸Æ¤Ð¤ì¤ë´Ø¿ô¤òÅÐÏ¿¤¹¤ë
40 .SH ½ñ¼°
41 .nf
42 .B #include <stdlib.h>
43 .sp
44 .BI "int on_exit(void (*" function ")(int , void *), void *" arg );
45 .fi
46 .sp
47 .in -4n
48 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
49 .RB ( feature_test_macros (7)
50 »²¾È):
51 .in
52 .sp
53 .BR on_exit ():
54 _BSD_SOURCE || _SVID_SOURCE
55 .SH ÀâÌÀ
56 .BR on_exit ()
57 ´Ø¿ô¤Ï¡¢»ØÄꤵ¤ì¤¿´Ø¿ô \fIfunction\fP ¤ò¡¢¥×¥í¥»¥¹¤¬
58 Àµ¾ï¤Ë½ªÎ»¤·¤¿ºÝ¤Ë¸Æ¤Ð¤ì¤ë´Ø¿ô¤È¤·¤ÆÅÐÏ¿¤¹¤ë¡£Àµ¾ï¤Ê½ªÎ»¤È¤Ï¡¢
59 .BR exit (3)
60 ¤Þ¤¿¤Ï¥×¥í¥°¥é¥à¤Î \fImain\fP()
61 ´Ø¿ô¤ÎÃæ¤Î return Ì¿Îá¤Ë¤è¤ë½ªÎ»¤Ç¤¢¤ë¡£
62 ´Ø¿ô \fIfunction\fP ¤Ë¤Ï¡¢Ä¾¶á¤Î
63 .BR exit (3)
64 ¤Î¸Æ¤Ó½Ð¤·¤ÇÅϤµ¤ì¤¿ status °ú¿ô¤È
65 .BR on_exit ()
66 ¤Î \fIarg\fP °ú¿ô¤¬ÅϤµ¤ì¤ë¡£
67
68 Ʊ¤¸´Ø¿ô¤òÊ£¿ô²óÅÐÏ¿¤·¤Æ¤â¤è¤¤¡£
69 ÅÐÏ¿¤µ¤ì¤¿´Ø¿ô¤ÏÅÐÏ¿ 1 ²ó¤Ë¤Ä¤­ 1 ²ó¸Æ¤Ó½Ð¤µ¤ì¤ë¡£
70
71 .BR fork (2)
72 ·Ðͳ¤ÇºîÀ®¤µ¤ì¤¿»Ò¥×¥í¥»¥¹¤Ï¡¢¿Æ¥×¥í¥»¥¹¤ÎÅÐÏ¿¤Î¥³¥Ô¡¼¤ò·Ñ¾µ¤¹¤ë¡£
73 .BR exec (3)
74 ·²¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤ËÀ®¸ù¤¹¤ë¤È¡¢Á´¤Æ¤ÎÅÐÏ¿¤¬ºï½ü¤µ¤ì¤ë¡£
75 .SH ÊÖ¤êÃÍ
76 .BR on_exit ()
77 ´Ø¿ô¤Ï¡¢À®¸ù¤·¤¿¤é 0 ¤ò¡¢¤½¤¦¤Ç¤Ê¤±¤ì¤Ð 0 °Ê³°¤òÊÖ¤¹¡£
78 .SH ½àµò
79 ¤³¤Î´Ø¿ô¤Ï SunOS 4 Í³Íè¤Ç¤¢¤ë¤¬¡¢libc4, libc5, glibc ¤Ë¤â¸ºß¤¹¤ë¡£
80 Solaris (SunOS 5) ¤Ë¤Ï¤â¤Ï¤ä¸ºß¤·¤Ê¤¤¡£
81 ¤³¤Î´Ø¿ô¤Î»ÈÍѤÏÈò¤±¡¢Âå¤ï¤ê¤Ëɸ½à¤Î
82 .BR atexit (3)
83 ¤ò»È¤¦¤³¤È¡£
84 .SH ´ØÏ¢¹àÌÜ
85 .BR _exit (2),
86 .BR atexit (3),
87 .BR exit (3)