summaryrefslogtreecommitdiff
path: root/libc/spec
diff options
context:
space:
mode:
authorCaslyn Tonelli <caslyn@google.com>2023-04-10 20:24:58 +0000
committerCaslyn Tonelli <caslyn@google.com>2023-04-10 23:37:51 +0000
commit1a3e760eda9713d806ae55688ce3df35ef57ab1e (patch)
tree3937f3c8eec0e393d92f0133e76f90460234cad4 /libc/spec
parent420526fb22f35df4750063ef4783b3774eaa371a (diff)
downloadllvm-1a3e760eda9713d806ae55688ce3df35ef57ab1e.tar.gz
[libc] Add swab implementation
Swab implementation is added to libc/src/unistd. Differential Revision: https://reviews.llvm.org/D147970
Diffstat (limited to 'libc/spec')
-rw-r--r--libc/spec/posix.td5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/spec/posix.td b/libc/spec/posix.td
index fc3fe421ca91..ccbba46cc214 100644
--- a/libc/spec/posix.td
+++ b/libc/spec/posix.td
@@ -545,6 +545,11 @@ def POSIX : StandardSpec<"POSIX"> {
[ArgSpec<ConstCharPtr>]
>,
FunctionSpec<
+ "swab",
+ RetValSpec<VoidType>,
+ [ArgSpec<ConstVoidRestrictedPtr>, ArgSpec<VoidPtr>, ArgSpec<SSizeTType>]
+ >,
+ FunctionSpec<
"symlink",
RetValSpec<IntType>,
[ArgSpec<ConstCharPtr>, ArgSpec<ConstCharPtr>]