From nobody Sun Nov 21 19:36:40 2021 X-Original-To: toolchain@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 9E67E18A4908 for ; Sun, 21 Nov 2021 19:36:40 +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 4Hy0yc0bHYz4g2Q for ; Sun, 21 Nov 2021 19:36:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 CD54F150D9 for ; Sun, 21 Nov 2021 19:36:39 +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 1ALJadd4022737 for ; Sun, 21 Nov 2021 19:36:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ALJadCi022736 for toolchain@FreeBSD.org; Sun, 21 Nov 2021 19:36:39 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: toolchain@FreeBSD.org Subject: [Bug 259975] sys/file.h fails when -D_POSIX_C_SOURCE=200809L is given Date: Sun, 21 Nov 2021 19:36:40 +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: 13.0-STABLE 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: toolchain@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Maintenance of FreeBSD s integrated toolchain List-Archive: https://lists.freebsd.org/archives/freebsd-toolchain List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259975 --- Comment #2 from Warner Losh --- (In reply to Warner Losh from comment #1) Also, the name u_int is only defined in sys/types.h, so this likely is unrelated to the POSIX_C_SOURCE stuff and instead based on the expectation = that sys/files.h is independently includable. But, u_int isn't visible when POSIX_C_SOURCE is defined (since it's hidden behind __BSD_VISIBLE. It also uses kvaddr_t, ksize_t and maybe a few others that should likely also be protected with __BSD_VISIBLE since POSIX_C_SOURCE says define what's in posix and nothing else. I'd wager the name-space-clean fix is to make xfile only __BSD_VISIBLE, but that too would likely break vtk since it's already doing dubious things wit= h it and including files that aren't defined in the posix standard. Most likely, though, it wants to use flock (also not defined in POSIX.1-200= 8), which is the only function I could find in base man pages that mention sys/file.h inclusion. However, if it wants this extension, shouldn't it not= be defining that it doesn't want extensions? --=20 You are receiving this mail because: You are the assignee for the bug.=