Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jan 2006 22:20:31 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern sys_generic.c
Message-ID:  <200601052220.k05MKVAF048465@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2006-01-05 22:20:31 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             sys_generic.c 
  Log:
  Remove XXX comments complaining that write(2) on a read-only descriptor
  returns EBADF.  That errno is correct and is mandated by POSIX.  It also
  goes back to revision 1.1 of our CVS history (i.e. 4.4BSD).
  
  The _fget() function should probably also be upated as it currently returns
  EINVAL in that case rather than EBADF.  (It does return EBADF for reads
  on a write-only descriptor without any XXX comments oddly enough.)
  
  Discussed with: scottl, grog, mjacob, bde
  
  Revision  Changes    Path
  1.147     +2 -2      src/sys/kern/sys_generic.c



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