OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / inotify_init.2
1 .\" man2/inotify_init.2 - inotify_init man page
2 .\"
3 .\" Copyright (C) 2005 Robert Love
4 .\"
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
9 .\"
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
14 .\"
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 .\" GNU General Public License for more details.
19 .\"
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, write to the Free
22 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" USA.
24 .\"
25 .\" 2005-07-19 Robert Love <rlove@rlove.org> - initial version
26 .\" 2006-02-07 mtk, minor changes
27 .\" 2008-10-10 mtk: add description of inotify_init1()
28 .\"
29 .\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI
30 .\"         all rights reserved.
31 .\" Translated 2006-08-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.39
32 .\" Updated 2008-11-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.12
33 .\"
34 .TH INOTIFY_INIT 2 2008-10-10 "Linux" "Linux Programmer's Manual"
35 .SH Ì¾Á°
36 inotify_init, inotify_init1 \- inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ò½é´ü²½¤¹¤ë
37 .SH ½ñ¼°
38 .nf
39 .B #include <sys/inotify.h>
40 .sp
41 .B "int inotify_init(void);"
42 .BI "int inotify_init1(int " flags );
43 .fi
44 .SH ÀâÌÀ
45 .BR inotify_init ()
46 ¤Ï¡¢¿·µ¬¤Î inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ò½é´ü²½¤·¡¢ºîÀ®¤µ¤ì¤¿ inotify ¥¤¥Ù¥ó¥È¥­¥å¡¼
47 ¤ËÂбþ¤¹¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£
48
49 .BR inotify_init1 ()
50 ¤Ï¡¢
51 .I flags
52 ¤¬ 0 ¤Î¾ì¹ç¡¢
53 .BR inotify_init ()
54 ¤ÈƱ¤¸¤Ç¤¢¤ë¡£
55 .I flags
56 ¤Ë°Ê²¼¤ÎÃͤò¥Ó¥Ã¥ÈËè¤ÎÏÀÍýÏ (OR) ¤Ç»ØÄꤹ¤ë¤³¤È¤Ç¡¢
57 °Û¤Ê¤ëÆ°ºî¤ò¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
58 .TP 12
59 .B IN_NONBLOCK
60 ¿·¤·¤¯À¸À®¤µ¤ì¤ë¥ª¡¼¥×¥ó¥Õ¥¡¥¤¥ëµ­½Ò (open file description) ¤Î
61 BR O_NONBLOCK
62 ¥Õ¥¡¥¤¥ë¥¹¥Æ¡¼¥¿¥¹¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¡£
63 ¤³¤Î¥Õ¥é¥°¤ò»È¤¦¤³¤È¤Ç¡¢
64 .B O_NONBLOCK
65 ¤ò¥»¥Ã¥È¤¹¤ë¤¿¤á¤Ë
66 .BR fcntl (2)
67 ¤òÄɲäǸƤӽФ¹É¬Íפ¬¤Ê¤¯¤Ê¤ë¡£
68 .TP
69 .B IN_CLOEXEC
70 ¿·¤·¤¤¥Õ¥¡¥¤¥ë¡¦¥Ç¥£¥¹¥¯¥ê¥×¥¿¡¼¤ËÂФ·¤Æ
71 close-on-exec
72 .RB ( FD_CLOEXEC )
73 ¥Õ¥é¥°¤ò¥»¥Ã¥È¤¹¤ë¡£
74 ¤³¤Î¥Õ¥é¥°¤¬Ìò¤ËΩ¤ÄÍýͳ¤Ë¤Ä¤¤¤Æ¤Ï¡¢
75 .BR open (2)
76 ¤Î
77 .B O_CLOEXEC
78 ¥Õ¥é¥°¤ÎÀâÌÀ¤ò»²¾È¤Î¤³¤È¡£
79 .SH ÊÖ¤êÃÍ
80 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï¿·¤·¤¤¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤òÊÖ¤¹¡£
81 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤òÊÖ¤·¡¢
82 .I errno
83 ¤ò¥¨¥é¡¼¤ò¼¨¤¹ÃͤËÀßÄꤹ¤ë¡£
84 .SH ¥¨¥é¡¼
85 .TP
86 .B EINVAL
87 .RB ( inotify_init1 ())
88 ̵¸ú¤ÊÃͤ¬
89 .I flags
90 ¤Ë»ØÄꤵ¤ì¤¿¡£
91 .TP
92 .B EMFILE
93 inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÁí¿ô¤¬¥æ¡¼¥¶Ã±°Ì¤Î¾å¸Â¤Ë㤷¤Æ¤¤¤¿¡£
94 .TP
95 .B ENFILE
96 inotify ¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÁí¿ô¤¬¥·¥¹¥Æ¥à¤Î¾å¸Â¤Ë㤷¤Æ¤¤¤¿¡£
97 .TP
98 .B ENOMEM
99 ¥«¡¼¥Í¥ë¥á¥â¥ê¤¬½½Ê¬¤Ë¤Ê¤«¤Ã¤¿¡£
100 .SH ¥Ð¡¼¥¸¥ç¥ó
101 .BR inotify_init ()
102 ¤Ï Linux 2.6.13 ¤Ç½é¤á¤ÆÅо줷¤¿¡£
103 .BR inotify_init1 ()
104 ¤Ï Linux 2.6.27 ¤ÇÄɲ䵤줿¡£
105 .SH ½àµò
106 ¤³¤ì¤é¤Î¥·¥¹¥Æ¥à¥³¡¼¥ë¤Ï Linux Æȼ«¤Ç¤¢¤ë¡£
107 .SH ´ØÏ¢¹àÌÜ
108 .BR inotify_add_watch (2),
109 .BR inotify_rm_watch (2),
110 .BR inotify (7)