libc: add paths.h, sys/ttydefaults.h and termios IUTF8 - #20029
Open
xiaoxiang781216 wants to merge 1 commit into
Open
libc: add paths.h, sys/ttydefaults.h and termios IUTF8#20029xiaoxiang781216 wants to merge 1 commit into
xiaoxiang781216 wants to merge 1 commit into
Conversation
Add commonly required POSIX/BSD interfaces that portable command-line utilities expect but that were missing from the C library: - include/paths.h: _PATH_DEFPATH and the other standard default paths. - include/sys/ttydefaults.h: BSD default control-character and terminal flag definitions. - include/termios.h: define the IUTF8 input flag. Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
xiaoxiang781216
requested review from
Donny9,
jerpelea and
masayuki2009
as code owners
September 1, 2026 11:54
acassis
approved these changes
Sep 4, 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.
Summary
Add commonly required POSIX/BSD interfaces that portable command-line utilities expect but that were missing from the C library:
include/paths.h:_PATH_DEFPATHand the other standard default paths.include/sys/ttydefaults.h: BSD default control-character and terminal flag definitions.include/termios.h: define theIUTF8input flag.Impact
New header files only, no existing code is modified. Required by portable command-line utilities (e.g. toybox) that include these headers unconditionally.
Testing
Built and booted
sim:nshsuccessfully with the new headers in place.