Rev 103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 103 | Rev 106 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | /**
|
3 | /**
|
4 | * \file inotify-cxx.cpp
|
4 | * \file inotify-cxx.cpp
|
5 | *
|
5 | *
|
6 | * inotify C++ interface
|
6 | * inotify C++ interface
|
7 | *
|
7 | *
|
8 | * Copyright (C) 2006, 2007, 2009 Lukas Jelinek <lukas@aiken.cz>
|
8 | * Copyright (C) 2006, 2007, 2009, 2012 Lukas Jelinek <lukas@aiken.cz>
|
9 | *
|
9 | *
|
10 | * This program is free software; you can redistribute it and/or
|
10 | * This program is free software; you can redistribute it and/or
|
11 | * modify it under the terms of one of the following licenses:
|
11 | * modify it under the terms of one of the following licenses:
|
12 | *
|
12 | *
|
13 | * \li 1. X11-style license (see LICENSE-X11)
|
13 | * \li 1. X11-style license (see LICENSE-X11)
|
Line 17... | Line 17... | ||
17 | * If you want to help with choosing the best license for you,
|
17 | * If you want to help with choosing the best license for you,
|
18 | * please visit http://www.gnu.org/licenses/license-list.html.
|
18 | * please visit http://www.gnu.org/licenses/license-list.html.
|
19 | *
|
19 | *
|
20 | * Credits:
|
20 | * Credits:
|
21 | * Mike Frysinger (cleanup of includes)
|
21 | * Mike Frysinger (cleanup of includes)
|
- | 22 | * Christian Ruppert (new include to build with GCC 4.4+)
|
|
22 | *
|
23 | *
|
23 | */
|
24 | */
|
24 | 25 | ||
25 | 26 | ||
26 | #include <errno.h>
|
27 | #include <errno.h>
|
27 | #include <unistd.h>
|
28 | #include <unistd.h>
|
28 | #include <fcntl.h>
|
29 | #include <fcntl.h>
|
29 | #include <fstream>
|
30 | #include <fstream>
|
- | 31 | #include <cstdio>
|
|
30 | 32 | ||
31 | #include <sys/syscall.h>
|
33 | #include <sys/syscall.h>
|
32 | 34 | ||
33 | // Use this if syscalls not defined
|
35 | // Use this if syscalls not defined
|
34 | #ifndef __NR_inotify_init
|
36 | #ifndef __NR_inotify_init
|