cvs commit: src/sys/miscfs/procfs procfs_regs.c

From: Jacques Vidrine <nectar_at_FreeBSD.org>
Date: Sat, 4 Oct 2003 08:50:35 -0700 (PDT)
nectar      2003/10/04 08:50:35 PDT

  FreeBSD src repository

  Modified files:        (Branch: RELENG_4)
    sys/miscfs/procfs    procfs_regs.c 
  Log:
  Revision 1.10.2.4 introduced a regression: the offset was ignored.
  This could cause a reader of /proc/*/regs to spin, because read(2)
  would never return end-of-file.  In practice, this has much less
  impact than I would expect.  Tools such as truss(1) make only a
  single, fixed-size read (into a `struct reg').  (Similarly for
  write(2).)
  
  The cause was a sort of typo: `uiomove_frombuf' was spelled
  `uiomove'.
  
  Noticed by:     David Rhodus <drhodus_at_catpa.com>
  Approved by:    re (implicitly)
  
  Revision  Changes    Path
  1.10.2.5  +1 -3      src/sys/miscfs/procfs/procfs_regs.c
Received on Sat Oct 04 2003 - 08:50:36 UTC