summaryrefslogtreecommitdiff
path: root/libc/spec
diff options
context:
space:
mode:
Diffstat (limited to 'libc/spec')
-rw-r--r--libc/spec/posix.td5
-rw-r--r--libc/spec/stdc.td5
2 files changed, 10 insertions, 0 deletions
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index de160960ab6a..f59891c00c3a 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -1077,6 +1077,11 @@ def POSIX : StandardSpec<"POSIX"> {
RetValSpec<IntType>,
[ArgSpec<FILEPtr>]
>,
+ FunctionSpec<
+ "getchar_unlocked",
+ RetValSpec<IntType>,
+ [ArgSpec<VoidType>]
+ >,
]
>;
diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 56ee9a60d10a..ad29bb8b4be1 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -581,6 +581,11 @@ def StdC : StandardSpec<"stdc"> {
[ArgSpec<FILEPtr>]
>,
FunctionSpec<
+ "getchar",
+ RetValSpec<IntType>,
+ [ArgSpec<VoidType>]
+ >,
+ FunctionSpec<
"putc",
RetValSpec<IntType>,
[ArgSpec<IntType>,