From nobody Wed Jun 01 16:16:58 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 682421B48B0D; Wed, 1 Jun 2022 16:16:58 +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 4LCvRZ2XT6z3RLv; Wed, 1 Jun 2022 16:16:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654100218; 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=N+GYNNfvMQyJJgyNXEx3N3myZDXq/UCejUSVz6ChlAg=; b=gDfheJT8nyBtOJIUkXsOfcpJ7D1o0yjEorkmn+wbRRoBPBfH5PrO0ACUpAFvIGGcxbAN5i 9xyGGNl/nUjN3aqCBXkHBpEXTd5Ik66daoKgZqmxh++acN3R6MZwW87FGUP+ZpQV+kaEMX rLbQPiSBUBcz2F4deKfCfseZqHcfalRjHyFerlnaK8P9sQdhG9i381i+czS994QGXUMoFS B7kHT+kQOgH1gWzH51kji/ogLbokjYTe4INBHWSOViSO/a8Yaw5JFRHeVfq2jkghNNIfum RoXDQpMVjXXN9lETaUTjZehapToSmWWyuphRk1ohKulxrr4RxD8GLuItEy6zsg== 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 32DBA23684; Wed, 1 Jun 2022 16:16:58 +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 251GGwB4085346; Wed, 1 Jun 2022 16:16:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 251GGwCc085345; Wed, 1 Jun 2022 16:16:58 GMT (envelope-from git) Date: Wed, 1 Jun 2022 16:16:58 GMT Message-Id: <202206011616.251GGwCc085345@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 49c937e7040c - main - 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/main X-Git-Reftype: branch X-Git-Commit: 49c937e7040c44afdcfccede57dcecaf9ff08ed6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1654100218; 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=N+GYNNfvMQyJJgyNXEx3N3myZDXq/UCejUSVz6ChlAg=; b=A7Sbh9tSiNDUNO5BN2l7vFwCw2u2Gp2kf4XukIQb2eg69yjsq7MjTAgGO44xNjKAwdbVXq SqgFD8yq1IQnkupqxyOIeEWZ+UXf2Eyf3UNdYXQnE/1nnQK/RsJ8ZLirFl3RB+XUd7lHDY ZReYoftn1K0JCoeSfCApa3CYlYvYLEpjUe+ZlLSTMMs7L0DEcO7NlMO8gA2+xdyU0EoEXR Z9rB/9N74Ro3/vNaVJ15OdlUSJ+h3zUZYsEs+DROEPf6Sxra7PyLBYYzApm2zgqClWnBIw 9q4l3KGdsJDhI5djuCbRCc8I9xAYc0c8g1T9hgbzbChZG82hITZR4Xvpua2ilw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1654100218; a=rsa-sha256; cv=none; b=AOzO4fT9HvdgIMb6oXjOSWVyhP1rW9NZq4R94IIOUWGZGjxdg11JJDAQLEFnBmmXKJNoBi BrRvxAkzeP60MNS29SXSuRdFJoc8jkzFVA0OYneoQivXwh5orb8juLnMh2nV0ZAfxpSnr1 RkMPhF2VzIwr/ATcs7++sYQV/mn+2P1PUbBjOX1PDLCsWb7GGq+71y9rG+LHsGm1dXbvcV NwUN7VxQOp7nyCZ6uu3dOkghlI67+b4Fa4YOgnNggvkThxW/UVxvXWNW8qDmZ/CmCRC5mc cnw0Hm1BBJRABHLQTDj7BXEBhBqp/wpOVFhTkDsPQB5lx5rnzza2Q36akCQNag== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=49c937e7040c44afdcfccede57dcecaf9ff08ed6 commit 49c937e7040c44afdcfccede57dcecaf9ff08ed6 Author: Ed Maste AuthorDate: 2022-05-30 19:34:34 +0000 Commit: Ed Maste CommitDate: 2022-06-01 16:16:26 +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 --- 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