[libc-commits] [PATCH] D152664: [libc] Fix argument types for {f, }truncate specs

Sam James via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jun 12 10:00:57 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG08da9ceb6475: [libc] Fix argument types for {f,}truncate specs (authored by alfredfo, committed by thesamesam).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152664/new/

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<ConstCharPtr>, ArgSpec<OffTType>]
         >,
         FunctionSpec<
           "unlink",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152664.530565.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230612/7f71fac3/attachment.bin>


More information about the libc-commits mailing list