~ubuntu-branches/ubuntu/jaunty/beagle/jaunty-security

« back to all changes in this revision

Viewing changes to glue/inotify-syscalls.h

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2009-02-24 14:47:25 UTC
  • mfrom: (1.1.23 upstream)
  • Revision ID: james.westby@ubuntu.com-20090224144725-7qpj70f3nrycq4bo
Tags: 0.3.9-0ubuntu1
* Fake merge from Debian packaging in pkg-cli-apps.  Remaining Ubuntu changes
  - debian/control:
    + Rename ice{weasel,dove}-beagle to {mozilla,thunderbird}-beagle 
      and update the dependencies accordingly.
    + Packages that Depend/Recommend/Suggest firefox (meta-package) must 
      alternatively Depend/Recommend/Suggest abrowser
  - debian/rules:
    + Install the mozilla-beagle and thunderbird-beagle extensions.
  - ice{dove,weasel}.dirs:
    + Renamed to {mozilla,thunderbird}-beagle.dirs.
    + Fixed paths to point to usr/lib/{firefox,thunderbird}
  - Adjust build-dependencies for gnome-sharp2 transition.
  - Build-Depend on libgmime2.2a-cil rather than libgmime2.2-cil for the 
    Mono 2.0 transition
* New Debian changes:
* New upstream bugfix release. (LP: #329205)
* New upstream fixes crash when collapsing categories. (LP: #277083)
* debian/patches/beagle_secure_scripts:
  + Update for new upstream changes
  + Add informative header
* debian/patches/enhanced_logging_support:
  + Remove.  Upstream now handles --debug passed to daemon
* debian/patches/fix_Util.dll.config
  + Update for new upstream
  + Add header, because "no description" irks me.
* debian/patches/fix_Beagle.Search.exe.config:
  + More dllmap madness!
* debian/control:
  + Add explicit libexif-dev build-depends.  Util.dll DllImports this library
    and explicit is better than implicit.
  + Add explicit libgnome-desktop-dev depends.  Beagle.Search.exe DllImports
    this library.
  + libevolution3.0-cil -> libevolution5.0-cil (LP: 332784)
* New Ubuntu changes:
* debian/mozilla-beagle.links:
  + Link extension to /usr/lib/firefox-addons/extensions, following the
    example of ubufox.  Makes firefox actually see the plugin (LP: #245052)
* debian/patches/fix_Beagle.Search.exe.config:
  + Use libgnome-desktop-2's Ubuntu SONAME
* debian/control:
  + Add gnome-web-photo to Suggests (LP: #49512)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef _LINUX_INOTIFY_SYSCALLS_H
2
 
#define _LINUX_INOTIFY_SYSCALLS_H
3
 
 
4
 
#include <sys/syscall.h>
5
 
 
6
 
#if defined(__i386__)
7
 
# define __NR_inotify_init      291
8
 
# define __NR_inotify_add_watch 292
9
 
# define __NR_inotify_rm_watch  293
10
 
#elif defined(__x86_64__)
11
 
# define __NR_inotify_init      253
12
 
# define __NR_inotify_add_watch 254
13
 
# define __NR_inotify_rm_watch  255
14
 
#elif defined(__powerpc__) || defined(__powerpc64__)
15
 
# define __NR_inotify_init      275
16
 
# define __NR_inotify_add_watch 276
17
 
# define __NR_inotify_rm_watch  277
18
 
#elif defined (__ia64__)
19
 
# define __NR_inotify_init      1277
20
 
# define __NR_inotify_add_watch 1278
21
 
# define __NR_inotify_rm_watch  1279
22
 
#elif defined (__s390__) || defined (__s390x__)
23
 
# define __NR_inotify_init      284
24
 
# define __NR_inotify_add_watch 285
25
 
# define __NR_inotify_rm_watch  286
26
 
#elif defined (__alpha__)
27
 
# define __NR_inotify_init      444
28
 
# define __NR_inotify_add_watch 445
29
 
# define __NR_inotify_rm_watch  446
30
 
#elif defined (__sparc__) || defined (__sparc64__)
31
 
# define __NR_inotify_init      151
32
 
# define __NR_inotify_add_watch 152
33
 
# define __NR_inotify_rm_watch  156
34
 
#elif defined (__arm__)
35
 
# define __NR_inotify_init      316
36
 
# define __NR_inotify_add_watch 317
37
 
# define __NR_inotify_rm_watch  318
38
 
#elif defined (__SH4__)
39
 
# define __NR_inotify_init      290
40
 
# define __NR_inotify_add_watch 291
41
 
# define __NR_inotify_rm_watch  292
42
 
#elif defined (__SH5__)
43
 
# define __NR_inotify_init      318
44
 
# define __NR_inotify_add_watch 319
45
 
# define __NR_inotify_rm_watch  320
46
 
#else
47
 
# error "Unsupported architecture!"
48
 
#endif
49
 
 
50
 
static inline int inotify_init (void)
51
 
{
52
 
        return syscall (__NR_inotify_init);
53
 
}
54
 
 
55
 
static inline int inotify_add_watch (int fd, const char *name, __u32 mask)
56
 
{
57
 
        return syscall (__NR_inotify_add_watch, fd, name, mask);
58
 
}
59
 
 
60
 
static inline int inotify_rm_watch (int fd, __u32 wd)
61
 
{
62
 
        return syscall (__NR_inotify_rm_watch, fd, wd);
63
 
}
64
 
 
65
 
#endif /* _LINUX_INOTIFY_SYSCALLS_H */