diff options
author | Caslyn Tonelli <caslyn@google.com> | 2023-04-10 20:24:58 +0000 |
---|---|---|
committer | Caslyn Tonelli <caslyn@google.com> | 2023-04-10 23:37:51 +0000 |
commit | 1a3e760eda9713d806ae55688ce3df35ef57ab1e (patch) | |
tree | 3937f3c8eec0e393d92f0133e76f90460234cad4 /libc/spec | |
parent | 420526fb22f35df4750063ef4783b3774eaa371a (diff) | |
download | llvm-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.td | 5 |
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>] |