summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-05-02 13:18:17 +0000
committerkib <kib@FreeBSD.org>2016-05-02 13:18:17 +0000
commit9eb6f0fde4c92d101df058d2ad6dea964988cebb (patch)
treeccd20e766ed513bf7959448d7f19259988ecb162 /lib/libc
parent5bc5df16639fd16299b315b38cdba281bf17a539 (diff)
downloadFreeBSD-src-9eb6f0fde4c92d101df058d2ad6dea964988cebb.zip
FreeBSD-src-9eb6f0fde4c92d101df058d2ad6dea964988cebb.tar.gz
Issue NOTE_EXTEND when a directory entry is added to or removed from
the monitored directory as the result of rename(2) operation. The renames staying in the directory are not reported. Submitted by: Vladimir Kondratyev <wulf@cicgroup.ru> MFC after: 2 weeks
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/kqueue.210
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/sys/kqueue.2 b/lib/libc/sys/kqueue.2
index 6efd60b..221f451 100644
--- a/lib/libc/sys/kqueue.2
+++ b/lib/libc/sys/kqueue.2
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 1, 2016
+.Dd May 2, 2016
.Dt KQUEUE 2
.Os
.Sh NAME
@@ -376,7 +376,13 @@ was called on the file referenced by the descriptor.
.It Dv NOTE_WRITE
A write occurred on the file referenced by the descriptor.
.It Dv NOTE_EXTEND
-The file referenced by the descriptor was extended.
+For regular file, the file referenced by the descriptor was extended.
+.Pp
+For directory, reports that a directory entry was added or removed,
+as the result of rename operation.
+The
+.Dv NOTE_EXTEND
+event is not reported when a name is changed inside the directory.
.It Dv NOTE_ATTRIB
The file referenced by the descriptor had its attributes changed.
.It Dv NOTE_LINK
OpenPOWER on IntegriCloud