Skip to content

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

Merged
jerpelea merged 1 commit into
apache:masterfrom
xiaoxiang781216:libc2
Sep 15, 2026
Merged

jerpelea merged 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
@acassis

acassis commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

@simbit18 PTAL

@jerpelea
jerpelea merged commit 144d9df into apache:master Sep 15, 2026
53 checks passed
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.

4 participants