From owner-svn-src-stable@FreeBSD.ORG Fri May 15 20:13:15 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94926106567A; Fri, 15 May 2009 20:13:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 82DCE8FC0C; Fri, 15 May 2009 20:13:15 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4FKDFLG033348; Fri, 15 May 2009 20:13:15 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4FKDFwh033347; Fri, 15 May 2009 20:13:15 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200905152013.n4FKDFwh033347@svn.freebsd.org> From: John Baldwin Date: Fri, 15 May 2009 20:13:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192155 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 20:13:16 -0000 Author: jhb Date: Fri May 15 20:13:15 2009 New Revision: 192155 URL: http://svn.freebsd.org/changeset/base/192155 Log: MFC: Update comment above _fget() now that FWRITE failures return EBADF. Modified: stable/7/sys/ (props changed) stable/7/sys/contrib/pf/ (props changed) stable/7/sys/dev/ath/ath_hal/ (props changed) stable/7/sys/dev/cxgb/ (props changed) stable/7/sys/kern/kern_descrip.c Modified: stable/7/sys/kern/kern_descrip.c ============================================================================== --- stable/7/sys/kern/kern_descrip.c Fri May 15 19:54:19 2009 (r192154) +++ stable/7/sys/kern/kern_descrip.c Fri May 15 20:13:15 2009 (r192155) @@ -2040,10 +2040,8 @@ closef(struct file *fp, struct thread *t * 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