[libc-commits] [PATCH] D152664: [libc] Fix argument types for {f, }truncate specs
Alfred Persson Forsberg via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sun Jun 11 19:03:39 PDT 2023
alfredfo created this revision.
alfredfo added a reviewer: michaelrj.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
alfredfo requested review of this revision.
The current argument types are currently switched around for ftruncate
and truncate. Currently passes tests because the internal definitions
inside the __llvm_libc namespace are fine.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D152664
Files:
libc/spec/posix.td
Index: libc/spec/posix.td
===================================================================
--- libc/spec/posix.td
+++ libc/spec/posix.td
@@ -425,7 +425,7 @@
FunctionSpec<
"ftruncate",
RetValSpec<IntType>,
- [ArgSpec<ConstCharPtr>, ArgSpec<OffTType>]
+ [ArgSpec<IntType>, ArgSpec<OffTType>]
>,
FunctionSpec<
"geteuid",
@@ -580,7 +580,7 @@
FunctionSpec<
"truncate",
RetValSpec<IntType>,
- [ArgSpec<IntType>, ArgSpec<OffTType>]
+ [ArgSpec<ConstCharType>, ArgSpec<OffTType>]
>,
FunctionSpec<
"unlink",
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152664.530357.patch
Type: text/x-patch
Size: 657 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230612/00b4c542/attachment.bin>
More information about the libc-commits
mailing list