From nobody Thu Jun 16 12:51:44 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 798668370AA; Thu, 16 Jun 2022 12:51:45 +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 4LP29r6nHpz4ldZ; Thu, 16 Jun 2022 12:51:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655383905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DyTvR4I+OqKbia/UiUrDkMmA0wTWDYIXnFOlc8m0AP0=; b=aJO9y4HlDFKM+sJSN70NgFENnq09NEg66bSrGfbubx0OQyTavYwcKd46lNufzuqdphBPrM 9mEcAlEa55ZlqRWbCq6J8Rt1HHQGFOmDsmxbjMmVivtjW50NHTo18MRCgDs/2DV7NNzmHr +La+1QlFCNebXWtV5rCM5I8ymH1RpO7NMumtt0HwDiVNrI5aFUyGqa+weLN0fssWN5anUM ruqtVCeUhmdbpK7uOEfBudNNrN9FDJBGA34iCNa1WP596usqxzK1PVI4o+13tU7O5C3HKt ipa+Wga4t6QIHnnb+Q7vzxltUyFz/zf6setDNGUXjS/DysxRMDkDlAaVkQHiCQ== 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 9368930D2; Thu, 16 Jun 2022 12:51:44 +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 25GCpiVp014471; Thu, 16 Jun 2022 12:51:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25GCpiul014470; Thu, 16 Jun 2022 12:51:44 GMT (envelope-from git) Date: Thu, 16 Jun 2022 12:51:44 GMT Message-Id: <202206161251.25GCpiul014470@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 94da8ba11dc0 - stable/13 - getpagesize(3): add .Xr to sysconf(3) List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 94da8ba11dc065b049967beee06183b94ad40496 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655383905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=DyTvR4I+OqKbia/UiUrDkMmA0wTWDYIXnFOlc8m0AP0=; b=Jxm0hsYGcwxLxsaGBIrMHOitNbVgfcZFhhOJq+TNSlBm/T5+5pk8LtW+WB1gFsKNi+/lo3 qY5mFc4/oOEeVW41iavdHLxmal2ou3qhzZ9VgBiyK80L/H+H0/128QNnjZB69bL2GhYUU9 sBuyBBmaVh87E0LeQl++HC1zaLz5ARZXsPspkynIydr0kVYK2TV8Bea2DGkENKmYBDB1x4 krQ1FsLfnKoigemUhvRT5PsXo9g4yroaXgshXTre3I0hwM4gW9ggo+d0DJAVlKYShKnpch 0AyP/sMtOvkn3A8nQMdsgz2/xlepjF/WWPwv02Rz/b82B0FUmmlk44LA0Zjpiw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655383905; a=rsa-sha256; cv=none; b=Z4ZB3hV9hsi7FVHDg/ei8DLEvPbgVgOTP/3xJCljmmYv4Xtbr0VxhMN9lbd4iHDUV3VX9U bVy4pvQunDhsdKybkdahWBj5hPSSfsKJlLuEgMVTWN5Jvj03ophEKXjNcDEOZ6X4HNIY9W Gn8lgjyPhjhpEwFt9n097LyQVYPb41fxj/z9SqWTF0veAEqs7sMBHtZcxMocyNlttoSyBi qSwQ47YsqqdJEJ6kmzde8C4SYZPTadHTKN84emeOmhBDT/vAmjPsAkZQnZm6pfb55lNXvF L5e6p/Qs6QySYZ90fe1qAUAvftz7s066KGd3iKipGi7wKGZMjVVv7lCZbIks4w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=94da8ba11dc065b049967beee06183b94ad40496 commit 94da8ba11dc065b049967beee06183b94ad40496 Author: Ed Maste AuthorDate: 2022-05-30 19:34:34 +0000 Commit: Ed Maste CommitDate: 2022-06-16 12:50:00 +0000 getpagesize(3): add .Xr to sysconf(3) POSIX deprecated getpagesize(3). The portable way to obtain the page size is `sysconf(_SC_PAGESIZE)`. Reviewed by: cperciva (earlier), imp Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D35352 (cherry picked from commit 49c937e7040c44afdcfccede57dcecaf9ff08ed6) --- lib/libc/gen/getpagesize.3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/getpagesize.3 b/lib/libc/gen/getpagesize.3 index eeea6854a258..4c57f7474208 100644 --- a/lib/libc/gen/getpagesize.3 +++ b/lib/libc/gen/getpagesize.3 @@ -28,7 +28,7 @@ .\" @(#)getpagesize.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd April 26, 2017 +.Dd June 1, 2022 .Dt GETPAGESIZE 3 .Os .Sh NAME @@ -51,9 +51,17 @@ management calls. The page size is a system page size and may not be the same as the underlying hardware page size. +.Pp +.St -p1003.1-2001 +removed +.Nm . +Portable applications should use +.Ql sysconf(_SC_PAGESIZE) +instead. .Sh SEE ALSO .Xr pagesize 1 , -.Xr sbrk 2 +.Xr sbrk 2 , +.Xr sysconf 3 .Sh HISTORY The .Fn getpagesize