From nobody Fri Sep 08 10:16:35 2023 X-Original-To: dev-commits-src-branches@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 4RhsTd1qbHz4sh7G; Fri, 8 Sep 2023 10:16: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 4RhsTc16Dxz4Rf4; Fri, 8 Sep 2023 10:16:36 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694168196; 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=XAXWkPC4jRWzxcbL47TIeB8wPYf/M9WNC180VZ1fW0M=; b=nMNPYMruVThydE2HoKl+UWYj5BwE/MdlOl2Bt0C2wWRLkBRsnCYiUj9Jc49X/QQ4lMBdBS +DXMv/t72IindRDxyT4bqjENkn1Z1jr9rm/Pgg/lC+zMqn+d0y6dwSosdZIJ2XKactM5gk zoreP9cllDB2HUbocZVipSmoWc8XLqxPz8DhEwM/dbNQwySnkvqoRTTgAKdGU1u6hIIUGT jGWt4xsdOqNiQ9FQVMqzEg73KoyV8chyJb7LR8N9sInoajQbz5kfbxExrcJyKUm6wc6FHw r7cwylg+v6r9v2Q0DdUCzANnVnxArW+2aQ6VjIhCq0AGNgtbUtPCU7/9XeMTNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694168196; a=rsa-sha256; cv=none; b=uBMm1HMluh+bo44D8rN/ZBZnK53pGfIh6QerSPmrq6XSb2PmOQAW1hnHf7/6yFuu44qxWB rEzuNoYPr93o6JxsfCfbFI+WKDov3gEqUBw1+QYxtOC2Ag1f0qQP+JjmDip48digW5wKQw 8k11UNv+DzhrlCZ04VM4HUs+gsiAwbbETN26lU4u2JMmnDl7Ax0DWtx7hwk91UQhZ0X8DS 5IszQ6xmTnnG7fblBfcJ1JtEO9nHL0ym8Oid7ZFGy/A+pDqhyUVFNfS4QEdFaxflxHiN5z 7XRH6FvfBhPutHoQ/+Lk0f9U7MLglEUFRDxx5zXAyBfim4Tq1hjkjiA94xAwiw== 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=1694168196; 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=XAXWkPC4jRWzxcbL47TIeB8wPYf/M9WNC180VZ1fW0M=; b=jDJ7nMhXWVwYbQcURajCu8R4Kid8lVjseB6mV35frbQiKL1umAyC/jAhTsxNwVPZrdNtJY yC99yIZoMLx11+Yb7KIy3TAva/0VbJkdB8CV2wPgJH4jIoKGYpPHD0U88+yusaWbF+bcKg uP1WA4pD5I9KcfjCD2mCd+J4IH9gVWm8aO+Jzqbm4NzdHtXVkgRhhfYN7itVeLCmYpy89y qbN16S05dxwRiribGJok6Zn91/J1LoLip7Bq/JeRsXZy/eY/aMokY3S95WPsPKAPwkIDaG PWzCY8vIRp/jZVD0EnY9nheDW58fNHLvKYGSPOPJR4vugY8xFehDMZQS7fjsJw== 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 4RhsTc08sQzdP2; Fri, 8 Sep 2023 10:16:36 +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 388AGZ1Z042092; Fri, 8 Sep 2023 10:16:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 388AGZsE042089; Fri, 8 Sep 2023 10:16:35 GMT (envelope-from git) Date: Fri, 8 Sep 2023 10:16:35 GMT Message-Id: <202309081016.388AGZsE042089@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: f0cfac77c6de - stable/12 - libc: Fix fmemopen(3) prototype in fopen(3) man page. List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/12 X-Git-Reftype: branch X-Git-Commit: f0cfac77c6ded1de7bb0bbacea1d63882e8be004 Auto-Submitted: auto-generated The branch stable/12 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=f0cfac77c6ded1de7bb0bbacea1d63882e8be004 commit f0cfac77c6ded1de7bb0bbacea1d63882e8be004 Author: Dag-Erling Smørgrav AuthorDate: 2023-09-01 20:56:17 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2023-09-08 10:16:22 +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 f984a7f9a27b..6e1dbe94729e 100644 --- a/lib/libc/stdio/fopen.3 +++ b/lib/libc/stdio/fopen.3 @@ -32,7 +32,7 @@ .\" @(#)fopen.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd May 1, 2020 +.Dd September 1, 2023 .Dt FOPEN 3 .Os .Sh NAME @@ -52,7 +52,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 @@ -145,8 +145,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 @@ -247,9 +249,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.