From nobody Sun Sep 10 20:26:24 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 4RkLwJ6qWHz4sMC5 for ; Sun, 10 Sep 2023 20:26:24 +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 4RkLwJ4fzKz3cFb for ; Sun, 10 Sep 2023 20:26:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1694377584; a=rsa-sha256; cv=none; b=Pj17/2fVZnFcW6MRHT0g+DfPaHZ/CC7Uw9eXV46cyfMg416kO8SBTh8Ps8gBehOpVSkCwH S8BQ1w8cJWNQAPrKXqmY6L2TKumhy5OeETX+OQvHe5+MBixo7xutqRC6yyQdtyIt365frp hUXeWN3R978dg45geb+ymtu11gbX3MqnP+B4JPKHj6tr2Z65XUKGWMSdvbLRJlZxlovLNS sJK8fut7yryjoieAyGE4mXcyoQa/z5H1RAvl1yeO0Z/Cn3COIdM0mCbgOJPOm1Qd4KFbFY JI9y9o7bxNJWoor6HJJD4kuacAUn5WisJRjpyGmyAieu9wCI1hT3sP9nzuKcBg== 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=1694377584; 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=/r47cSjicJ45/K6aynXJ4jtbQMvCpvy/ys2ls5XOT5o=; b=gUGqIJ2Qm1vb2zCPU1XuD1B7KAL1X66CgPGQCy7QtGvP/GJvFjXiDKoJPY7RVOQbYlyw3L OnMeWmwUSSkEZ/yg9cNVdd9Bk8PydJu44rnTNyBgeZDVHTOjREIgWonqx0dnGA5hHU7LAY vSzxzBrIK0Yvv/e0GqEg70xq4l/yI7U3Dhz+BFvutHoER2rPXtt4KO7wUJ5piH0T6DPsOb WJFshm/oAq2G4XFhg/+h7hHqzDIqMolEnc3rlxWejG3mmNA2oKNyXmdaK+BMoCwtYaPeMt oVtUEwu7ZV96ngws++eiNT2h/570FH7QrakJ7B1Ysa/YW9+Pw+nGK6EKft5lsQ== 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 4RkLwJ3l3tz64V for ; Sun, 10 Sep 2023 20:26:24 +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 38AKQODO036045 for ; Sun, 10 Sep 2023 20:26:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38AKQOPm036044 for standards@FreeBSD.org; Sun, 10 Sep 2023 20:26:24 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: Sun, 10 Sep 2023 20:26:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: jbeich@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: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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 Bug ID: 273711 Summary: off64_t abuse in for native API Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: standards Assignee: standards@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: cem@freebsd.org When upstreaming BSD support I'd like to disable off64_t for compatibility = with DragonFly, NetBSD, OpenBSD. Unfortunately, this no longer works: $ cat a.c #include int main() {} $ cc -D_OFF64_T_DECLARED a.c In file included from a.c:1: /usr/include/stdio.h:420:44: error: unknown type name 'off64_t' typedef int cookie_seek_function_t(void *, off64_t *, int); ^ 1 error generated. base 6710d21d9f7fc added off64_t alias to improve portability without supporting the whole LFS64 API i.e., stat64, fseek64, etc. are still missin= g. However, base 9183be81a7999 introduced dependency on off64_t for fopencookie(3). musl (Alpine, Chimera, KISS, Void, etc.) also supports[1] fopencookie(3) and like BSDs has 64-bit off_t[2] but LFS64 API isn't expose= d by default[3]. [1] https://git.musl-libc.org/cgit/musl/commit/?id=3D061843340fbf [2] https://git.musl-libc.org/cgit/musl/commit/?id=3D2dd8d5e1b8ba [3] https://git.musl-libc.org/cgit/musl/commit/?id=3D25e6fee27f4a --=20 You are receiving this mail because: You are the assignee for the bug.=