]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man2/inotify_init.2
Removed "." at end of SEE ALSO list
[thirdparty/man-pages.git] / man2 / inotify_init.2
CommitLineData
4d2b74dd
MK
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.\"
5c51897d 28.TH INOTIFY_INIT 2 2006-02-07 "Linux" "Linux Programmer's Manual"
4d2b74dd
MK
29.SH NAME
30inotify_init \- initialize an inotify instance
31.SH SYNOPSIS
6e969f22 32.B #include <sys/inotify.h>
4d2b74dd
MK
33.sp
34.BI "int inotify_init(void)"
35.SH DESCRIPTION
36.BR inotify_init ()
37initializes a new inotify instance and returns a file descriptor associated
38with a new inotify event queue.
39.SH "RETURN VALUE"
40On success,
41.BR inotify_init ()
42returns a new file descriptor, or \-1 if an error occurred (in which
43case,
44.I errno
45is set appropriately).
46.SH ERRORS
47.TP
48.B EMFILE
49The user limit on the total number of inotify instances has been reached.
50.TP
51.B ENFILE
52The system limit on the total number of file descriptors has been reached.
53.TP
54.B ENOMEM
55Insufficient kernel memory is available.
ff457ccb 56.SH VERSIONS
4d2b74dd
MK
57Inotify was merged into the 2.6.13 Linux kernel.
58.SH "CONFORMING TO"
59This system call is Linux specific.
60.SH "SEE ALSO"
61.BR inotify_add_watch (2),
c13182ef 62.BR inotify_rm_watch (2),
ccd2b351 63.BR inotify (7)