Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2005 17:46:48 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/fifofs fifo_vnops.c
Message-ID:  <200509131746.j8DHkmVU071792@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2005-09-13 17:46:48 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
  Log:
  Trim down now (believed to be) unused fifo_ioctl() and
  fifo_kqfilter() VOP implementations, since they in theory are used
  only on open file descriptors, in which case the ioctls are via
  fifo_ioctl_f() and kqueue requests are via fifo_kqfilter_f().
  Generate warnings if they are entered for now.  These printf()
  calls should become panic() calls.
  
  Annotate and re-implement fifo_ioctl_f(): don't arbitrarily
  forward ioctls to the socket layer, only forward the ones we
  explicitly support for fifos.  In the case of FIONREAD, don't
  forward the request to the write socket on a read-write fifo, or
  the read result is overwritten.  Annotate a nasty case for the
  undefined POSIX O_RDWR on fifos, in which failure of the second
  ioctl will result in the socket pair being in an inconsistent
  state.
  
  Assert copyright as I find myself rewriting non-trivial parts of
  fifofs.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.124     +75 -65    src/sys/fs/fifofs/fifo_vnops.c



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