From nobody Tue Dec 23 18:18:34 2025 X-Original-To: bugs@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 4dbNYQ2JDlz6K7Hm for ; Tue, 23 Dec 2025 18:18:34 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dbNYQ1R1xz3gsm for ; Tue, 23 Dec 2025 18:18:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766513914; 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=11zKqPnHPGteOtqhFKdVVysC+g/OZ8QHqViyfMKAYa0=; b=rQi1J6YP4e9N73m5qOdxNnv7Wnl0FcQSXlf9MEYbdTpAIYumAYuaya2GHzKYUeNioEGT7Q NNXi/fCVZe0GsDnCtilgNIlAOH5VZvEgqIwtITHOlrOWOqeBVttk442ZTOoabYlfmUYYrh ulIyaSao4EMP6aUVMNvpY10mLOgWYhKTwgUpSrQvHiEp1giYzxngtNBbaSrOf4UsIldHT6 yOsqrQEnUcl2YAf1UGC6bccMOMaaFsG5g6U/BxtzwHx8rQiZlFrMXPe++cpdEMlsUkT7hN 1zfdT7G9/G6n3pT5q+ZrYv1zFvW3VbP0hktJly2Dkq6XNQB+Vk8z1iScs/s14Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766513914; 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=11zKqPnHPGteOtqhFKdVVysC+g/OZ8QHqViyfMKAYa0=; b=AT15anTXiZmsnBMlrS9HZsXnxDCWM30YqU+rjhN0kIOsvVHtZC/rfR7smoOKKrfB2zqv79 PacV6Gxy8cPttlT/IHB+VupEsyS2SdRxQYiIGSFtu4KEkPxrYwUwlHs4TQTK8mTd4cwzE6 xwqZ9qIG8QeCAxIC+ZWQLBUDUtccCrIQTYA/OZdG6ijRMQI5LJAx0tJJizb01mko2H17Ih nauzzZTcEzgwQrUe7SY5StTwQSAw74l946iUZzkxz52m+uWv8p++JMbS2U+Tf6oZb03Yj/ uXm/LedN4tp428CIMlzbW+0/09P1yC6aWXk5tUaOgQUimIzw5zbzrrxiFQaJIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766513914; a=rsa-sha256; cv=none; b=wqJE4Fji2DBQraOg7RrlbO1rEapeOAS/DK2w9h0GlsDsq+I3smw8fY0qBIGyTS/GT4Ks1+ gqmCOYV+CJvZ2NtejMf4NvY3AI9abFJFe9qgW4hh1SdInlUlYiQ3+3YQDgfuW83nuCYaN4 ZSWTKRI3dFWt0oheoyfRzj3pmiTt0c45Qrsa9y37ccKdGwrF1MhiqZ0cQl0XBOd9ZDhDlO sa8lGPGP7RMGA/cT0gzOEray3Graae/pwfa4Jt29d5EK91vmPwgRwKqedJ7/uP+sC05qWe 8BKG8JlY6CzU25K2NOBFOXfscRdd8McaucskMRzKO6uw6+m5jrT8Qw82Ixk+CQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dbNYQ0d4xz1M77 for ; Tue, 23 Dec 2025 18:18:34 +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 5BNIIXHZ071134 for ; Tue, 23 Dec 2025 18:18:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5BNIIXBt071133 for bugs@FreeBSD.org; Tue, 23 Dec 2025 18:18:33 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: bugs@FreeBSD.org Subject: [Bug 291610] libc stdio breaks when file descriptor greater than 32767 Date: Tue, 23 Dec 2025 18:18:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: kris@tranception.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D291610 --- Comment #2 from Kristofer Peterson --- I have uploaded a patch consisting of two commits against CURRENT for this = bug to phabricator below. https://reviews.freebsd.org/D54354 https://reviews.freebsd.org/D54355 Rather than simply widening the _file field, the patch keeps the old short field for compatibility and add a new int field for the file descriptor at = the end of struct __sFILE. The field have been renamed from _file to _fileno to ensure that any source code which mucks directly with the internal _file field will break at compilation rather than build successfully only to break mysteriously later= at runtime. --=20 You are receiving this mail because: You are the assignee for the bug.=