]> git.pld-linux.org Git - packages/uClibc.git/blob - uClibc-inotify_init1.patch
- updated to 0.9.32
[packages/uClibc.git] / uClibc-inotify_init1.patch
1 --- uClibc-0.9.30.2/libc/sysdeps/linux/common/inotify.c~        2010-01-13 22:22:31.000000000 +0100
2 +++ uClibc-0.9.30.2/libc/sysdeps/linux/common/inotify.c 2010-01-19 17:20:39.994833811 +0100
3 @@ -15,6 +15,10 @@
4  _syscall0(int, inotify_init)
5  #endif
6  
7 +#ifdef __NR_inotify_init1
8 +_syscall1(int, inotify_init1, int, flags)
9 +#endif
10 +
11  #ifdef __NR_inotify_add_watch
12  _syscall3(int, inotify_add_watch, int, fd, const char *, path, uint32_t, mask)
13  #endif
14 --- uClibc-0.9.30.2/libc/sysdeps/linux/common/sys/inotify.h~    2010-01-13 22:22:31.000000000 +0100
15 +++ uClibc-0.9.30.2/libc/sysdeps/linux/common/sys/inotify.h     2010-01-19 17:21:14.199833529 +0100
16 @@ -73,6 +73,9 @@
17                           | IN_MOVED_TO | IN_CREATE | IN_DELETE               \
18                           | IN_DELETE_SELF | IN_MOVE_SELF)
19  
20 +/* Flags for the parameter of inotify_init1.  */
21 +#define IN_CLOEXEC     02000000
22 +#define IN_NONBLOCK    04000
23  
24  __BEGIN_DECLS
25  
26 @@ -79,6 +79,8 @@
27  /* Create and initialize inotify instance.  */
28  extern int inotify_init (void) __THROW;
29  
30 +extern int inotify_init1 (int flags) __THROW;
31 +
32  /* Add watch of object NAME to inotify instance FD.  Notify about
33     events specified by MASK.  */
34  extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
This page took 0.04368 seconds and 3 git commands to generate.