From owner-cvs-sys Sun Dec 14 19:12:59 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id TAA12115 for cvs-sys-outgoing; Sun, 14 Dec 1997 19:12:59 -0800 (PST) (envelope-from owner-cvs-sys) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id TAA12064; Sun, 14 Dec 1997 19:12:27 -0800 (PST) (envelope-from wollman@FreeBSD.org) From: Garrett Wollman Received: (from wollman@localhost) by freefall.freebsd.org (8.8.6/8.8.5) id TAA26636; Sun, 14 Dec 1997 19:10:01 -0800 (PST) Date: Sun, 14 Dec 1997 19:10:01 -0800 (PST) Message-Id: <199712150310.TAA26636@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-sys@FreeBSD.ORG Subject: cvs commit: src/sys/kern vfs_default.c vfs_subr.c src/sys/miscfs/deadfs dead_vnops.c src/sys/sys poll.h vnode.h src/sys/ufs/ufs ufs_readwrite.c ufs_vnops.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wollman 1997/12/14 19:10:01 PST Modified files: sys/kern vfs_default.c vfs_subr.c sys/miscfs/deadfs dead_vnops.c sys/sys poll.h vnode.h sys/ufs/ufs ufs_readwrite.c ufs_vnops.c Log: Add support for poll(2) on files. vop_nopoll() now returns POLLNVAL if one of the new poll types is requested; hopefully this will not break any existing code. (This is done so that programs have a dependable way of determining whether a filesystem supports the extended poll types or not.) The new poll types added are: POLLWRITE - file contents may have been modified POLLNLINK - file was linked, unlinked, or renamed POLLATTRIB - file's attributes may have been changed POLLEXTEND - file was extended Note that the internal operation of poll() means that it is impossible for two processes to reliably poll for the same event (this could be fixed but may not be worth it), so it is not possible to rewrite `tail -f' to use poll at this time. Revision Changes Path 1.9 +23 -2 src/sys/kern/vfs_default.c 1.115 +85 -1 src/sys/kern/vfs_subr.c 1.23 +20 -5 src/sys/miscfs/deadfs/dead_vnops.c 1.3 +13 -1 src/sys/sys/poll.h 1.59 +19 -1 src/sys/sys/vnode.h 1.34 +8 -2 src/sys/ufs/ufs/ufs_readwrite.c 1.72 +18 -1 src/sys/ufs/ufs/ufs_vnops.c