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
|
.\" man2/inotify_init.2 - inotify_init man page
.\"
.\" Copyright (C) 2005 Robert Love
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" The GNU General Public License's references to "object code"
.\" and "executables" are to be interpreted as the output of any
.\" document formatting or typesetting system, including
.\" intermediate and printed output.
.\"
.\" This manual is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public
.\" License along with this manual; if not, write to the Free
.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
.\" USA.
.\"
.\" 2005-07-19 Robert Love <rlove@rlove.org> - initial version
.\" 2006-02-07 mtk, minor changes
.\" 2008-10-10 mtk: add description of inotify_init1()
.\"
.\" Japanese Version Copyright (c) 2006 Akihiro MOTOKI
.\" all rights reserved.
.\" Translated 2006-08-15, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.39
.\" Updated 2008-11-10, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.12
.\"
.TH INOTIFY_INIT 2 2008-10-10 "Linux" "Linux Programmer's Manual"
.SH ̾
inotify_init, inotify_init1 \- inotify
.SH
.nf
.B #include <sys/inotify.h>
.sp
.B "int inotify_init(void);"
.BI "int inotify_init1(int " flags );
.fi
.SH
.BR inotify_init ()
ϡ inotify 줿 inotify ٥ȥ塼
бեǥץ֤
.BR inotify_init1 ()
ϡ
.I flags
0 ξ硢
.BR inotify_init ()
ƱǤ롣
.I flags
˰ʲͤӥå (OR) ǻꤹ뤳Ȥǡ
ۤʤư뤳ȤǤ롣
.TP 12
.B IN_NONBLOCK
륪ץե뵭 (open file description)
BR O_NONBLOCK
ե륹ơե饰åȤ롣
Υե饰ȤȤǡ
.B O_NONBLOCK
åȤ뤿
.BR fcntl (2)
ɲäǸƤӽФɬפʤʤ롣
.TP
.B IN_CLOEXEC
ե롦ǥץФ
close-on-exec
.RB ( FD_CLOEXEC )
ե饰åȤ롣
Υե饰ΩͳˤĤƤϡ
.BR open (2)
.B O_CLOEXEC
ե饰ȤΤȡ
.SH ֤
ȡΥƥॳϿեǥץ֤
顼ξ硢\-1 ֤
.I errno
顼ͤꤹ롣
.SH 顼
.TP
.B EINVAL
.RB ( inotify_init1 ())
̵ͤ
.I flags
˻ꤵ줿
.TP
.B EMFILE
inotify 桼ñ̤ξ¤ãƤ
.TP
.B ENFILE
inotify ƥξ¤ãƤ
.TP
.B ENOMEM
꤬ͥʬˤʤä
.SH С
.BR inotify_init ()
Linux 2.6.13 ǽо줷
.BR inotify_init1 ()
Linux 2.6.27 ɲä줿
.SH
Υƥॳ Linux ȼǤ롣
.SH Ϣ
.BR inotify_add_watch (2),
.BR inotify_rm_watch (2),
.BR inotify (7)
|