From nobody Sun Sep 17 15:16:30 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 4RpWjW1hHHz4t3Tm; Sun, 17 Sep 2023 15:16:31 +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 4RpWjV5pcwz4Ln2; Sun, 17 Sep 2023 15:16:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1694963790; 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=EFG+rAQWUsgp/SpcW3rLO2iyxOjRU971SbhHjDDxgww=; b=upz4W1c/D+DQzzs7z9JOLas1eA2rebUUfg+IJ+4A2sAnmwwR1Y5QhdhoykTbdAFa+lSZva b7TkK5icsrYEPn2qzJ2aoq+L3liOl7Sav5EdB46p1kVxSXWwC6faW8C8fbDRRn+cvvfrCN Se0VGGRwFYXe3aLu5x4Xuie/5zh7nTKBAQ1zQ9tZwEc2Awh+YVn2tek12oQTKs9T0K7mMB xMBmBJ0IeQMTQKSl4rjPQEfvyEHJyRr0e8NMYi8vifvjQwSNAIb4huov3Om1o3KR3begiR kSzdf8VBLZtnDX+pFkQzamhesd7XnT0fFAqfgpE9q1deOiPbshIWqyGG+32a8A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694963790; a=rsa-sha256; cv=none; b=hXYsjuYp0NzEA4qjzab2ylQSlCwUIfizlsFrCDYZjf+K25h7b7F47Vl7OPsff75MpHGtkI AvIo6nhsPpAOwI9ocLFoR8V2ty7+zNWfmqEQ9boES1Yu7MRdJRUUZEowQ6FbKZm8tWobEL 9HTl1BPaIyuY2UlvA7qPnwFRmQ0KVqWebyQT0ut4ypWSajzrkYfdsHKmxAvHfp68MtXZiF +jaOEzY59Or2yiWfvUPq+So6v+D1TSiVit1GNU0Z3qLNev0xLMatmi3HHldvo01Otwg/wA uNUh6lufm16vZSIL0Ecr4H1vr2FOSwpS5NoCxYHqhIUksso2ESyOMelzqZ+lXA== 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=1694963790; 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=EFG+rAQWUsgp/SpcW3rLO2iyxOjRU971SbhHjDDxgww=; b=rQFB75zmnBVQQnNV7klVSBC2qPUXd3oDWw6E8E6nEdaWOV+rlikQlYvQEwRRfbbTpgQh+5 cqkfDPNh+OnOA41BSUmmJdEsLFQhOAsP21SJI/L9HjVl6vGYO/tSV6SFcH+mnsU0/wtSq+ jdc8y9AWi8flxq4ZS6scgK1jzgatK2CAe4AyoFVfsdyV+Niue8GPliCea1lBWCxrJ5Kog9 h338afA0xDPardFRFBsyYSutmqLWzrouPQV/r86IgEFt6BVJlw6Gd0wwxmx/fPqWfgU9e1 3cB3Npu1kKnRnoe6LZ0/vc2p0hiT5mDoA2uMQDXWoSPHd7qlOMhA7CWdHE40Sg== 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 4RpWjV4wkVztKm; Sun, 17 Sep 2023 15:16:30 +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 38HFGUR4089990; Sun, 17 Sep 2023 15:16:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38HFGUnx089987; Sun, 17 Sep 2023 15:16:30 GMT (envelope-from git) Date: Sun, 17 Sep 2023 15:16:30 GMT Message-Id: <202309171516.38HFGUnx089987@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 5d51862412a8 - main - Restrict the glibc compat cookie open functions to __BSD_VISIBLE 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: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5d51862412a8ad246f414c7071999b6815080884 Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=5d51862412a8ad246f414c7071999b6815080884 commit 5d51862412a8ad246f414c7071999b6815080884 Author: Warner Losh AuthorDate: 2023-09-15 16:13:11 +0000 Commit: Warner Losh CommitDate: 2023-09-17 15:11:57 +0000 Restrict the glibc compat cookie open functions to __BSD_VISIBLE Sponsored by: Netflix --- include/stdio.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/stdio.h b/include/stdio.h index b7c412c81da7..9881b3f07329 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -415,6 +415,7 @@ FILE *funopen(const void *, #define fropen(cookie, fn) funopen(cookie, fn, 0, 0, 0) #define fwopen(cookie, fn) funopen(cookie, 0, fn, 0, 0) +#if __BSD_VISIBLE typedef __ssize_t cookie_read_function_t(void *, char *, size_t); typedef __ssize_t cookie_write_function_t(void *, const char *, size_t); typedef int cookie_seek_function_t(void *, off64_t *, int); @@ -426,6 +427,7 @@ typedef struct { cookie_close_function_t *close; } cookie_io_functions_t; FILE *fopencookie(void *, const char *, cookie_io_functions_t); +#endif /* * Portability hacks. See .