Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 1997 19:10:01 -0800 (PST)
From:      Garrett Wollman <wollman@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
Message-ID:  <199712150310.TAA26636@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712150310.TAA26636>