From nobody Fri Sep 8 10:16:09 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 4RhsT61SYDz4sgjT; Fri, 8 Sep 2023 10:16:10 +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 4RhsT611kbz4RGX; Fri, 8 Sep 2023 10:16:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694168170; 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=CRU9Tf3dMeJz2tgkGmAwLUZ3HDJSsa+u2e9/1+9baW8=; b=hTjz2eIvYjxRUjxsLfFWUcsL3A5U4KOC9lpMuWNbyd2z5YOSc/Vx2Pixi/N1NF/ivIEkSp ADO/ohm8UVkr9u6Pr1xGGiudYmdGukeEP0J3Nfbu+luVHq6F9fKNUme0G+cucBF7jfXynT sI1llbwLY2edVaVmZJMwChK376qRGUksxhMnEzyopLmZCG/hN3XdeGY7NfA+zyFUoN973l vBaoiiPMYuOL0h8zSio4bitYfLtoCwFP+hRZ4Wk6VmfK9L1ymim8mBcTFzjIb1a9zYa3Iu 0xLDtG3JnG+lbwKawyRbkAGTBeXSimEHL3q8Da9snuhQCB7N3e+DWni9PhNJYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694168170; a=rsa-sha256; cv=none; b=IRkB6k1+n/T0OMKLMAZacrYYYUGvh3Mfnxvkxubctc7dKNrBLQQlc0UFrzl9psWxvdgE0V xfvS5WPzBmPqALSou9h5ArDrL28UXXe/3pfGVEoRnbWIBecohc3frpe0PfDyfMuw4E4kAO V9PbSD9y/GdZ9mGHITMcAZflV1iHkEMY1rjQr7tb5YBC4dwu39KBjHZM65aYj0BRotvIIp UziYskyM1/JmDxxzb9hdDfQMxEqTKFjoU+DfwBiswooVKfM4u8jywqJCeuBTwMuwSNcGe4 cTnKqQIq32bal+Ljsxk5Ibarx4CTxrgR8x7wnA5tx7FWsLsPT6+1C6A+rDkK2w== 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=1694168170; 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=CRU9Tf3dMeJz2tgkGmAwLUZ3HDJSsa+u2e9/1+9baW8=; b=XMvEFF+67G7Knr9A4cPRUxPyFuW7ni/bcra7GYIznyWt+6y0BUs80vT+9LE0He7M5+2UYX qlWPWhL8ZZ+19c6iJMrfcTbPSReQ/Z0yyafpWv31QMb45iNYjZR3JlJ5mdmfb1sTHU8uuI QKhNHuigEgDFot0TzOcHRrrbam3klAyWirk3ybmp3IJQQqQ+RniVF4WL9HgCctXz1F5CiO 9QgoOK/PvoxU/zaeSejRcSOX3QDfL0JdUw5nQjKSK1+iCzP/dJ8QebtWUwhrFCTM/k2Wss 4gjw580+MZnmX+fWcwe0csXvudDZ0yvduYqDv0h9LE3Vbl2sILgpszc/PLWsoQ== 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 4RhsT605m0zdns; Fri, 8 Sep 2023 10:16:10 +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 388AG9ZX041885; Fri, 8 Sep 2023 10:16:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 388AG9SG041882; Fri, 8 Sep 2023 10:16:09 GMT (envelope-from git) Date: Fri, 8 Sep 2023 10:16:09 GMT Message-Id: <202309081016.388AG9SG041882@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: 1f4786b88485 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 1f4786b8848504ff1c30a87258275e24811b583a Auto-Submitted: auto-generated The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=1f4786b8848504ff1c30a87258275e24811b583a commit 1f4786b8848504ff1c30a87258275e24811b583a Author: Dag-Erling Smørgrav AuthorDate: 2023-09-01 20:56:17 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-08 10:15:58 +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 (cherry picked from commit 5a57401e7106132b61b16e34365cebf52b773007) libc: Further nit in fopen(3) man page. Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D41687 (cherry picked from commit c9f5889d05b5854be033849a4ff9985699071548) --- lib/libc/stdio/fopen.3 | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/libc/stdio/fopen.3 b/lib/libc/stdio/fopen.3 index 74da88efff0f..6f03443caf42 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 @@ -246,9 +248,10 @@ byte. .Sh RETURN VALUES Upon successful completion .Fn fopen , -.Fn fdopen -and +.Fn fdopen , .Fn freopen +and +.Fn fmemopen return a .Tn FILE pointer.