Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b2a294b

Browse files
author
Siva Chandra Reddy
committedOct 18, 2022
[libc] Add termios.h and the implementation of functions declared in it.
Reviewed By: lntue, michaelrj Differential Revision: https://reviews.llvm.org/D136143
1 parent bcc4c90 commit b2a294b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1332
-0
lines changed
 

‎libc/config/linux/api.td

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,3 +293,7 @@ def SysUtsNameAPI : PublicAPI<"sys/utsname.h"> {
293293
def SpawnAPI : PublicAPI<"spawn.h"> {
294294
let Types = ["mode_t", "pid_t", "posix_spawnattr_t", "posix_spawn_file_actions_t"];
295295
}
296+
297+
def TermiosAPI : PublicAPI<"termios.h"> {
298+
let Types = ["cc_t", "pid_t", "speed_t", "struct termios", "tcflag_t"];
299+
}

‎libc/config/linux/x86_64/entrypoints.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,19 @@ set(TARGET_LIBC_ENTRYPOINTS
141141
libc.src.sys.wait.wait4
142142
libc.src.sys.wait.waitpid
143143

144+
# termios.h entrypoints
145+
libc.src.termios.cfgetispeed
146+
libc.src.termios.cfgetospeed
147+
libc.src.termios.cfsetispeed
148+
libc.src.termios.cfsetospeed
149+
libc.src.termios.tcgetattr
150+
libc.src.termios.tcgetsid
151+
libc.src.termios.tcdrain
152+
libc.src.termios.tcflow
153+
libc.src.termios.tcflush
154+
libc.src.termios.tcsendbreak
155+
libc.src.termios.tcsetattr
156+
144157
# unistd.h entrypoints
145158
libc.src.unistd.access
146159
libc.src.unistd.chdir

0 commit comments

Comments
 (0)
Please sign in to comment.