From owner-svn-src-head@FreeBSD.ORG Tue Nov 15 01:48:53 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D4FF5106566B; Tue, 15 Nov 2011 01:48:53 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id BBC948FC0A; Tue, 15 Nov 2011 01:48:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pAF1mrG4075328; Tue, 15 Nov 2011 01:48:53 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pAF1mrCd075326; Tue, 15 Nov 2011 01:48:53 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201111150148.pAF1mrCd075326@svn.freebsd.org> From: "David E. O'Brien" Date: Tue, 15 Nov 2011 01:48:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227518 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2011 01:48:54 -0000 Author: obrien Date: Tue Nov 15 01:48:53 2011 New Revision: 227518 URL: http://svn.freebsd.org/changeset/base/227518 Log: Reformat comment to be more readable in standard Xterm. (while I'm here, wrap other long lines) Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Tue Nov 15 01:39:02 2011 (r227517) +++ head/sys/kern/kern_descrip.c Tue Nov 15 01:48:53 2011 (r227518) @@ -838,12 +838,12 @@ do_dup(struct thread *td, int flags, int if (flags & DUP_FIXED) { if (new >= fdp->fd_nfiles) { /* - * The resource limits are here instead of e.g. fdalloc(), - * because the file descriptor table may be shared between - * processes, so we can't really use racct_add()/racct_sub(). - * Instead of counting the number of actually allocated - * descriptors, just put the limit on the size of the file - * descriptor table. + * The resource limits are here instead of e.g. + * fdalloc(), because the file descriptor table may be + * shared between processes, so we can't really use + * racct_add()/racct_sub(). Instead of counting the + * number of actually allocated descriptors, just put + * the limit on the size of the file descriptor table. */ #ifdef RACCT PROC_LOCK(p); @@ -1516,7 +1516,7 @@ fdalloc(struct thread *td, int minfd, in FILEDESC_XLOCK_ASSERT(fdp); if (fdp->fd_freefile > minfd) - minfd = fdp->fd_freefile; + minfd = fdp->fd_freefile; PROC_LOCK(p); maxfd = min((int)lim_cur(p, RLIMIT_NOFILE), maxfilesperproc); @@ -2248,7 +2248,7 @@ closef(struct file *fp, struct thread *t /* * Initialize the file pointer with the specified properties. - * + * * The ops are set with release semantics to be certain that the flags, type, * and data are visible when ops is. This is to prevent ops methods from being * called with bad data. @@ -3758,28 +3758,32 @@ SYSINIT(select, SI_SUB_LOCK, SI_ORDER_FI /*-------------------------------------------------------------------*/ static int -badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, int flags, struct thread *td) +badfo_readwrite(struct file *fp, struct uio *uio, struct ucred *active_cred, + int flags, struct thread *td) { return (EBADF); } static int -badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, struct thread *td) +badfo_truncate(struct file *fp, off_t length, struct ucred *active_cred, + struct thread *td) { return (EINVAL); } static int -badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, struct thread *td) +badfo_ioctl(struct file *fp, u_long com, void *data, struct ucred *active_cred, + struct thread *td) { return (EBADF); } static int -badfo_poll(struct file *fp, int events, struct ucred *active_cred, struct thread *td) +badfo_poll(struct file *fp, int events, struct ucred *active_cred, + struct thread *td) { return (0); @@ -3793,7 +3797,8 @@ badfo_kqfilter(struct file *fp, struct k } static int -badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, struct thread *td) +badfo_stat(struct file *fp, struct stat *sb, struct ucred *active_cred, + struct thread *td) { return (EBADF);