From 51f039867aa3abe82485256e2bf9a13e0bdd705b Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Thu, 7 Feb 2008 00:13:35 -0800 Subject: [PATCH] --- yaml --- r: 83744 b: refs/heads/master c: e9b1a4d160f68397d29183ce76af1cc774508aba h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/Documentation/00-INDEX | 2 -- trunk/Documentation/filesystems/00-INDEX | 2 ++ trunk/Documentation/{ => filesystems}/dnotify.txt | 10 +++++----- 4 files changed, 8 insertions(+), 8 deletions(-) rename trunk/Documentation/{ => filesystems}/dnotify.txt (99%) diff --git a/[refs] b/[refs] index 34e2451c1aa2..2117e454d8bf 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4a6b88ca3d9a301b496d6bfc18bc40c78fbb3669 +refs/heads/master: e9b1a4d160f68397d29183ce76af1cc774508aba diff --git a/trunk/Documentation/00-INDEX b/trunk/Documentation/00-INDEX index c1067e48b529..bb5e21034209 100644 --- a/trunk/Documentation/00-INDEX +++ b/trunk/Documentation/00-INDEX @@ -126,8 +126,6 @@ devices.txt - plain ASCII listing of all the nodes in /dev/ with major minor #'s. digiepca.txt - info on Digi Intl. {PC,PCI,EISA}Xx and Xem series cards. -dnotify.txt - - info about directory notification in Linux. dontdiff - file containing a list of files that should never be diff'ed. driver-model/ diff --git a/trunk/Documentation/filesystems/00-INDEX b/trunk/Documentation/filesystems/00-INDEX index 1de155e2dc36..632fe3f376eb 100644 --- a/trunk/Documentation/filesystems/00-INDEX +++ b/trunk/Documentation/filesystems/00-INDEX @@ -32,6 +32,8 @@ directory-locking - info about the locking scheme used for directory operations. dlmfs.txt - info on the userspace interface to the OCFS2 DLM. +dnotify.txt + - info about directory notification in Linux. ecryptfs.txt - docs on eCryptfs: stacked cryptographic filesystem for Linux. ext2.txt diff --git a/trunk/Documentation/dnotify.txt b/trunk/Documentation/filesystems/dnotify.txt similarity index 99% rename from trunk/Documentation/dnotify.txt rename to trunk/Documentation/filesystems/dnotify.txt index 6984fca6002a..9f5d338ddbb8 100644 --- a/trunk/Documentation/dnotify.txt +++ b/trunk/Documentation/filesystems/dnotify.txt @@ -69,24 +69,24 @@ Example #include #include #include - + static volatile int event_fd; - + static void handler(int sig, siginfo_t *si, void *data) { event_fd = si->si_fd; } - + int main(void) { struct sigaction act; int fd; - + act.sa_sigaction = handler; sigemptyset(&act.sa_mask); act.sa_flags = SA_SIGINFO; sigaction(SIGRTMIN + 1, &act, NULL); - + fd = open(".", O_RDONLY); fcntl(fd, F_SETSIG, SIGRTMIN + 1); fcntl(fd, F_NOTIFY, DN_MODIFY|DN_CREATE|DN_MULTISHOT);