ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Linux-Inotify2/inotify-syscalls.h
(Generate patch)

Comparing Linux-Inotify2/inotify-syscalls.h (file contents):
Revision 1.1 by root, Mon Aug 22 09:51:38 2005 UTC vs.
Revision 1.2 by root, Fri Sep 29 14:41:33 2006 UTC

1#ifndef _LINUX_INOTIFY_SYSCALLS_H 1#ifndef _LINUX_INOTIFY_SYSCALLS_H
2#define _LINUX_INOTIFY_SYSCALLS_H 2#define _LINUX_INOTIFY_SYSCALLS_H
3 3
4/*
5 * This file originally came from
6 * http://kernel.org/pub/linux/kernel/people/rml/inotify/headers/
7 * courtesy of Robert Love.
8 * But it has been modified since then.
9 */
10
4#include <sys/syscall.h> 11#include <sys/syscall.h>
12#include <unistd.h>
5 13
6#if defined(__i386__) 14#if defined (__alpha__)
15# define __NR_inotify_init 444
16# define __NR_inotify_add_watch 445
17# define __NR_inotify_rm_watch 446
18
19#elif defined (__arm__)
20# define __NR_inotify_init (__NR_SYSCALL_BASE+316)
21# define __NR_inotify_add_watch (__NR_SYSCALL_BASE+317)
22# define __NR_inotify_rm_watch (__NR_SYSCALL_BASE+318)
23
24#elif defined (__frv__)
7# define __NR_inotify_init 291 25# define __NR_inotify_init 291
8# define __NR_inotify_add_watch 292 26# define __NR_inotify_add_watch 292
9# define __NR_inotify_rm_watch 293 27# define __NR_inotify_rm_watch 293
28
29#elif defined(__i386__)
30# define __NR_inotify_init 291
31# define __NR_inotify_add_watch 292
32# define __NR_inotify_rm_watch 293
33
34#elif defined (__ia64__)
35# define __NR_inotify_init 1277
36# define __NR_inotify_add_watch 1278
37# define __NR_inotify_rm_watch 1279
38
39#elif defined (__mips__)
40# if _MIPS_SIM == _MIPS_SIM_ABI32
41# define __NR_inotify_init (__NR_Linux + 284)
42# define __NR_inotify_add_watch (__NR_Linux + 285)
43# define __NR_inotify_rm_watch (__NR_Linux + 286)
44# endif
45# if _MIPS_SIM == _MIPS_SIM_ABI64
46# define __NR_inotify_init (__NR_Linux + 243)
47# define __NR_inotify_add_watch (__NR_Linux + 243)
48# define __NR_inotify_rm_watch (__NR_Linux + 243)
49# endif
50# if _MIPS_SIM == _MIPS_SIM_NABI32
51# define __NR_inotify_init (__NR_Linux + 247)
52# define __NR_inotify_add_watch (__NR_Linux + 248)
53# define __NR_inotify_rm_watch (__NR_Linux + 249)
54# endif
55
56#elif defined(__parisc__)
57# define __NR_inotify_init (__NR_Linux + 269)
58# define __NR_inotify_add_watch (__NR_Linux + 270)
59# define __NR_inotify_rm_watch (__NR_Linux + 271)
60
61#elif defined(__powerpc__) || defined(__powerpc64__)
62# define __NR_inotify_init 275
63# define __NR_inotify_add_watch 276
64# define __NR_inotify_rm_watch 277
65
66#elif defined (__s390__)
67# define __NR_inotify_init 284
68# define __NR_inotify_add_watch 285
69# define __NR_inotify_rm_watch 286
70
71#elif defined (__sh__)
72# define __NR_inotify_init 290
73# define __NR_inotify_add_watch 291
74# define __NR_inotify_rm_watch 292
75
76#elif defined (__sh64__)
77# define __NR_inotify_init 318
78# define __NR_inotify_add_watch 319
79# define __NR_inotify_rm_watch 320
80
81#elif defined (__sparc__) || defined (__sparc64__)
82# define __NR_inotify_init 151
83# define __NR_inotify_add_watch 152
84# define __NR_inotify_rm_watch 156
85
10#elif defined(__x86_64__) 86#elif defined(__x86_64__)
11# define __NR_inotify_init 253 87# define __NR_inotify_init 253
12# define __NR_inotify_add_watch 254 88# define __NR_inotify_add_watch 254
13# define __NR_inotify_rm_watch 255 89# define __NR_inotify_rm_watch 255
14#elif defined(__powerpc__) || defined(__powerpc64__) 90
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__)
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 (__sh__)
39# define __NR_inotify_init 290
40# define __NR_inotify_add_watch 291
41# define __NR_inotify_rm_watch 292
42#else 91#else
43# error "Unsupported architecture!" 92# error "Unsupported architecture!"
44#endif 93#endif
45 94
46static inline int inotify_init (void) 95static inline int inotify_init (void)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines