From owner-svn-src-all@FreeBSD.ORG Wed May 6 17:23:43 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A801D178; Wed, 6 May 2015 17:23:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 96C00134C; Wed, 6 May 2015 17:23:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t46HNhr1020937; Wed, 6 May 2015 17:23:43 GMT (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t46HNhQZ020935; Wed, 6 May 2015 17:23:43 GMT (envelope-from jhb@FreeBSD.org) Message-Id: <201505061723.t46HNhQZ020935@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jhb set sender to jhb@FreeBSD.org using -f From: John Baldwin Date: Wed, 6 May 2015 17:23:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282560 - head/lib/libc/gen X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 May 2015 17:23:43 -0000 Author: jhb Date: Wed May 6 17:23:42 2015 New Revision: 282560 URL: https://svnweb.freebsd.org/changeset/base/282560 Log: Tweak the comment here some more. In particular, the previous opening sentence was a bit confusing. Noted by: kib Modified: head/lib/libc/gen/telldir.c Modified: head/lib/libc/gen/telldir.c ============================================================================== --- head/lib/libc/gen/telldir.c Wed May 6 16:43:44 2015 (r282559) +++ head/lib/libc/gen/telldir.c Wed May 6 17:23:42 2015 (r282560) @@ -125,13 +125,13 @@ _seekdir(dirp, loc) } /* - * A call to telldir after readdir returns the last entry in a block - * returns a location that is after the end of the last entry in that - * block. However, that location doesn't refer to a valid directory - * entry. Instead, these locations should refer to the first entry in - * the next block. That location is not known until the next block is - * read, so readdir calls this function after fetching a new block to - * fix any such telldir locations. + * After readdir returns the last entry in a block, a call to telldir + * returns a location that is after the end of that last entry. + * However, that location doesn't refer to a valid directory entry. + * Ideally, the call to telldir would return a location that refers to + * the first entry in the next block. That location is not known + * until the next block is read, so readdir calls this function after + * fetching a new block to fix any such telldir locations. */ void _fixtelldir(DIR *dirp, long oldseek, long oldloc)