1 Submitted By: Dan Nicholson <dnicholson at linuxfromscratch dot org>
3 Initial Package Version: 2.3.6
4 Origin: udev-096, syscall functions generated by Alexander E. Patrakov
5 Upstream Status: Added to syscall list in 2.4
6 Description: Adds inotify syscall functions for use in userspace. Minimal
7 syscall functions borrowed from udev local implementation to
8 provide system inotify support.
9 Testcase: dovecot-1.0rc2, ./configure --with-notify=inotify
11 diff -pNur glibc-2.3.6.orig/sysdeps/unix/sysv/linux/inotify.h glibc-2.3.6/sysdeps/unix/sysv/linux/inotify.h
12 --- glibc-2.3.6.orig/sysdeps/unix/sysv/linux/inotify.h 1970-01-01 00:00:00.000000000 +0000
13 +++ glibc-2.3.6/sysdeps/unix/sysv/linux/inotify.h 2006-08-01 05:48:27.000000000 +0000
16 + * Inode based directory notification for Linux
18 + * Copyright (C) 2005 John McCutchan
21 +#ifndef _SYS_INOTIFY_H
22 +#define _SYS_INOTIFY_H
25 +#include <linux/inotify.h>
26 +#include <asm/unistd.h>
28 +extern long int syscall (long int __sysno, ...) __THROW;
30 +static inline int inotify_init(void)
32 + return syscall(__NR_inotify_init);
35 +static inline int inotify_add_watch(int fd, const char *name, uint32_t mask)
37 + return syscall(__NR_inotify_add_watch, fd, name, mask);
40 +static inline int inotify_rm_watch (int fd, uint32_t wd)
42 + return syscall(__NR_inotify_rm_watch, fd, wd);
45 +#endif /* _SYS_INOTIFY_H */