Author: jhb
Date: Wed Apr 15 19:10:37 2009
New Revision: 191113
URL: http://svn.freebsd.org/changeset/base/191113

Log:
  Update comment above _fget() for earlier change to FWRITE failures return
  EBADF rather than EINVAL.
  
  Submitted by: Jaakko Heinonen  jh saunalahti fi
  MFC after:    1 month

Modified:
  head/sys/kern/kern_descrip.c

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c        Wed Apr 15 18:15:29 2009        
(r191112)
+++ head/sys/kern/kern_descrip.c        Wed Apr 15 19:10:37 2009        
(r191113)
@@ -2027,10 +2027,8 @@ finit(struct file *fp, u_int flag, short
  * Extract the file pointer associated with the specified descriptor for the
  * current user process.
  *
- * If the descriptor doesn't exist, EBADF is returned.
- *
- * If the descriptor exists but doesn't match 'flags' then return EBADF for
- * read attempts and EINVAL for write attempts.
+ * If the descriptor doesn't exist or doesn't match 'flags', EBADF is
+ * returned.
  *
  * If 'hold' is set (non-zero) the file's refcount will be bumped on return.
  * It should be dropped with fdrop().  If it is not set, then the refcount
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to