From nobody Fri Sep 15 14:57:42 2023 X-Original-To: standards@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 4RnHNk2M3Nz4sj2n for ; Fri, 15 Sep 2023 14:57:42 +0000 (UTC) (envelope-from bugzilla-noreply@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 4RnHNj6NMWz4McS for ; Fri, 15 Sep 2023 14:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694789861; a=rsa-sha256; cv=none; b=Yt4FyDPUXYR0ZCmlm5PBPKpKsvPow2Ga8aaGlkCO9dzr01t8cdWbqge4ocxVE9GpIMG8oo goiumyY2xVYppo9I6Km8xp9iraQ9GDmNwKpOLE3jVF0qG4O/fnVgSCLvb/nlStBvdNCJ6F 9qCEksqD/ZDXFCLb+O1a7PbS9X2nxQTnce0zk41VzZwtk87OYPf5/FcLQEMPT8Rv/m1VKP ULJMUqiLdIJ+SQwt/szxXT7ysE04NQ6mM9Ct5EwLBmYJrQ1T49AxvBrIkDZCZP+naGi6Dm ngUhZDdXNBe91NZRjBM01XZgBsZUI+TEMZGS9X60WAyUoWpihfyaD85dytm5yg== 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=1694789861; 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: in-reply-to:in-reply-to:references:references; bh=opssVbFlyPCHPtV6TjT9zWZ55rX6QayCLUKM4+Hf+3A=; b=qwFbsWOwjf9PWlr3SyH2bgzuQCQp+Rku+GFLILVGvNRgJzkvF5TrszO8Ik1zUs7y0OgkH8 QPNpnt+OOrDgn1pW48883WbqRKfPUdKoOBtHf5/ibI9DHKCWSGgg3rnb4TJ1v1Hvpp+JmX dejH7LJj4G7NwoT7rszBgsqdhy14/jRsMYyk4mmpbfFlwwXVJDy3Br2lzFGO20MIcUBqKZ kMW0hGwypf/3ijDXln0WWFEIGtVh7HnaZQuYDkx/pF/DL0v0II3PTiItiw6HkUGo9Sq8vx BJB6l8snTmeUx/8rqDO4Ufypg4deSMThfGvGKp0r2bTcaA2CEVK3AGBMA3yrZw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4RnHNj5SZNzCvc for ; Fri, 15 Sep 2023 14:57:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38FEvf2O075242 for ; Fri, 15 Sep 2023 14:57:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38FEvfdc075241 for standards@FreeBSD.org; Fri, 15 Sep 2023 14:57:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 273711] off64_t abuse in for native API Date: Fri, 15 Sep 2023 14:57:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: standards X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: imp@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: standards@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Standards compliance List-Archive: https://lists.freebsd.org/archives/freebsd-standards List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-standards@freebsd.org X-BeenThere: freebsd-standards@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273711 Warner Losh changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imp@FreeBSD.org --- Comment #2 from Warner Losh --- So.... these should be in the _BSD_VISIBLE namespace. They aren't today, wh= ich is why we have the problem... 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 . should do fix the problem. --=20 You are receiving this mail because: You are the assignee for the bug.=