Skip to content

libc: add paths.h, sys/ttydefaults.h and termios IUTF8 - #20029

Open
xiaoxiang781216 wants to merge 1 commit into
apache:masterfrom
xiaoxiang781216:libc2
Open

libc: add paths.h, sys/ttydefaults.h and termios IUTF8#20029
xiaoxiang781216 wants to merge 1 commit into
apache:masterfrom
xiaoxiang781216:libc2

Conversation

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

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_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.

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:nsh successfully with the new headers in place.

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>
@github-actions github-actions Bot added Area: OS Components OS Components issues Size: M The size of the change in this PR is medium labels Sep 1, 2026
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

MemBrowse Memory Report

No memory changes detected for:

@acassis
acassis requested a review from simbit18 September 4, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants