From owner-dev-commits-src-all@freebsd.org Fri Aug 6 23:10:26 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 20C2B660787; Fri, 6 Aug 2021 23:10:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GhLmf09B0z3mGl; Fri, 6 Aug 2021 23:10:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E224716520; Fri, 6 Aug 2021 23:10:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 176NAPWq043871; Fri, 6 Aug 2021 23:10:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 176NAPf2043870; Fri, 6 Aug 2021 23:10:25 GMT (envelope-from git) Date: Fri, 6 Aug 2021 23:10:25 GMT Message-Id: <202108062310.176NAPf2043870@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ka Ho Ng Subject: git: fd0ffba3b4c9 - main - Fix pathconf.2 documentation error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: khng X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fd0ffba3b4c9edfc79590f98729dfa34abba6100 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2021 23:10:26 -0000 The branch main has been updated by khng: URL: https://cgit.FreeBSD.org/src/commit/?id=fd0ffba3b4c9edfc79590f98729dfa34abba6100 commit fd0ffba3b4c9edfc79590f98729dfa34abba6100 Author: Ka Ho Ng AuthorDate: 2021-08-06 23:09:57 +0000 Commit: Ka Ho Ng CommitDate: 2021-08-06 23:09:57 +0000 Fix pathconf.2 documentation error _PC_MIN_HOLE_SIZE and _PC_DEALLOC_PRESENT were mixed somehow before this fix. Sponsored by: The FreeBSD Foundation Reviewed by: delphij Differential Revision: https://reviews.freebsd.org/D31436 --- lib/libc/sys/pathconf.2 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2 index c5a7ba1be3c5..5586e460185b 100644 --- a/lib/libc/sys/pathconf.2 +++ b/lib/libc/sys/pathconf.2 @@ -28,7 +28,7 @@ .\" @(#)pathconf.2 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd March 30, 2020 +.Dd August 6, 2021 .Dt PATHCONF 2 .Os .Sh NAME @@ -166,9 +166,6 @@ specified file, otherwise 0. .It Li _PC_MIN_HOLE_SIZE If a file system supports the reporting of holes (see .Xr lseek 2 ) , -.It Li _PC_DEALLOC_PRESENT -If a file system supports hole-punching (see -.Xr fspacectl 2 ) , .Fn pathconf and .Fn fpathconf @@ -177,6 +174,10 @@ bytes. The offsets of holes returned will be aligned to this same value. A special value of 1 is returned if the file system does not specify the minimum hole size but still reports holes. +.It Li _PC_DEALLOC_PRESENT +Return 1 if a file system supports hole-punching (see +.Xr fspacectl 2 ) , +otherwise 0. .El .Sh RETURN VALUES If the call to