From nobody Fri Sep 01 20:56:37 2023 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 4Rcr1K46M7z4rbBF; Fri, 1 Sep 2023 20:56:37 +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 4Rcr1K3XPVz4fNj; Fri, 1 Sep 2023 20:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693601797; 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=VR6oS9Of05Se3BULUTrcUhDVWTPkwI7nxx8ShsNsq8w=; b=aILwFIfrzIanlS7KEAURXkp3tjA2F3pFjZPH9IFgdWoBMQfJUyE+uxdLHhPPoIfu/NP1hw LoX894HV0TX2vDeVh9LDx2w6lNo5KB9IH87i7kMfxEt4PLzZDkYVgJ02kYSmWFxvPFlMn/ bZy/fpllw/gPnrPG+SvivqpfS3V4ByoUHRGxcA9CNFbLK8n/gslOeYtzH0NHe9M76gYUsz Gpdo3u2MqPL8aZGcL/GuY8Jx/4+wd2ZhcMX13uZepxAVKQW4GFSexN57aLn9NkT6nEi44R m6yQyfupWdBnph+fuKJbRPSiQglRO+8K4t4p+humByEO3TWCXs3XAyODX46HWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693601797; a=rsa-sha256; cv=none; b=t6aChL/3A9GkzMuLhA7XAi7MrvvhVh1OY5vIyp9UfKHK5kGui6jYcxttww6rZP7UXQaRH0 +cwAYjYurE+kVY/piUBYKincKtLL4c1ol7FpVFoSK2QeHdQGKuPM9z0Ma+gZjJfTk4JvND 8WeXU2nDCMtui7+vFXRssRwLdWEfV+digX6PsJjDe4ahUv8hEJ9a20Pb/fU5cP/KxNZPDp vkidS+PWi/1R3iu0tG3QguchOC5nCFIoSqfObNTJ/KQxM460vgsRcFPPId+ZU1LKbHl5MS Dj1ZN/A1+oK84kZ1DnqQuqIz78l8tgzf55eHWN+6gKAa5KNU4Vu1H+Sckkd+RQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693601797; 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=VR6oS9Of05Se3BULUTrcUhDVWTPkwI7nxx8ShsNsq8w=; b=WR9Ti6PFB9Hun9AQWLkl9NCrP1WwaUHeRSkcFHraz/MYihXoRhDdFPOJHndsvQ9o/rOS9L qAdqoktAASgsPwn9qnI3XmLAOs9gOV7jI1cV0Vut0wz96XhanK1cKPUbNA1hbDTrL0u2rN 1F5nVvuxox/9AEYTjLsQKFN2B0nLo23zjQ4vSyNWeVnRF9Oq1RQVJjvPZ/wukiAj8ZPxOl EMKVZV/XXF82LjoE8b1cJYe2ID0gdOpEdUtRUb/1p73frzGSrWZ6mB4fL/ryOKj4mqtw9M 3zbWtxJ3VCyjIY0GCHJBXFXMbf5RciZnlWO3i9sf5QYcnU4joKnN31cVPjXthg== 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 4Rcr1K2ZyTz1LR; Fri, 1 Sep 2023 20:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 381Kub6s068969; Fri, 1 Sep 2023 20:56:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 381KubPa068965; Fri, 1 Sep 2023 20:56:37 GMT (envelope-from git) Date: Fri, 1 Sep 2023 20:56:37 GMT Message-Id: <202309012056.381KubPa068965@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 5a57401e7106 - main - libc: Fix fmemopen(3) prototype in fopen(3) man page. 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: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5a57401e7106132b61b16e34365cebf52b773007 Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=5a57401e7106132b61b16e34365cebf52b773007 commit 5a57401e7106132b61b16e34365cebf52b773007 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-01 20:56:17 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-01 20:56:26 +0000 libc: Fix fmemopen(3) prototype in fopen(3) man page. While here, also update a mention of ANSI C. Sponsored by: Klara, Inc. Reviewed by: kevans, markj Differential Revision: https://reviews.freebsd.org/D41686 --- lib/libc/stdio/fopen.3 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3 index 74da88efff0f..7012e565d7fe 100644 --- a/lib/libc/stdio/fopen.3 +++ b/lib/libc/stdio/fopen.3 @@ -31,7 +31,7 @@ .\" .\" @(#)fopen.3 8.1 (Berkeley) 6/4/93 .\" -.Dd May 1, 2020 +.Dd September 1, 2023 .Dt FOPEN 3 .Os .Sh NAME @@ -51,7 +51,7 @@ .Ft FILE * .Fn freopen "const char *path" "const char *mode" "FILE *stream" .Ft FILE * -.Fn fmemopen "void *restrict *buf" "size_t size" "const char * restrict mode" +.Fn fmemopen "void * restrict buf" "size_t size" "const char * restrict mode" .Sh DESCRIPTION The .Fn fopen @@ -144,8 +144,10 @@ Reads and writes may be intermixed on read/write streams in any order, and do not require an intermediate seek as in previous versions of .Em stdio . This is not portable to other systems, however; -.Tn ANSI C -requires that +.St -isoC +and +.St -p1003.1 +both require that a file positioning function intervene between output and input, unless an input operation encounters end-of-file. .Pp