Repository navigation
Fix the ioctl configure check on bionic - #137198
Merged
Merged
Conversation
Bionic declares a second, overloaded ioctl, so check_symbol_exists can't take its address and HAVE_IOCTL ends up 0. SystemNative_GetWindowSize then always fails, and Console.WindowWidth/Height fall back to terminfo's 80x24 on linux-bionic.
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Member
|
check_symbol_exists is normally preferred over check_function_exists, I wonder if we should just set BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD for this detection? |
Contributor
Author
|
Good idea, done. Same result on Android (HAVE_IOCTL=1). |
akoeplinger
approved these changes
Nov 10, 2026
Member
|
/ba-g unrelated failures on non-bionic jobs |
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bionic declares a second, overloaded
ioctl(bits/ioctl.h, unlessBIONIC_IOCTL_NO_SIGNEDNESS_OVERLOADis defined), socheck_symbol_exists(ioctl ...)can't take its address andHAVE_IOCTLis 0.SystemNative_GetWindowSizethen always returnsENOTSUP, and on linux-bionicConsole.WindowWidth/WindowHeightfall back to terminfo's 80x24 and never follow a resize. PowerShell's line editor draws in the wrong row as a result.Defining
BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOADfor this check only hides the overload. Verified with a 10.0.13 source build on Android (Termux): the window size now matchesstty sizeand follows the soft keyboard.