From 08da9ceb647551d266d34ebdce47e6ca62a31ae0 Mon Sep 17 00:00:00 2001 From: Alfred Persson Forsberg Date: Mon, 12 Jun 2023 17:58:29 +0100 Subject: [PATCH] [libc] Fix argument types for {f,}truncate specs 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. Reviewed By: michaelrj, thesamesam, sivachandra Differential Revision: https://reviews.llvm.org/D152664 --- libc/spec/posix.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/spec/posix.td b/libc/spec/posix.td index ee17de8..54c6eb5 100644 --- a/libc/spec/posix.td +++ b/libc/spec/posix.td @@ -425,7 +425,7 @@ def POSIX : StandardSpec<"POSIX"> { FunctionSpec< "ftruncate", RetValSpec, - [ArgSpec, ArgSpec] + [ArgSpec, ArgSpec] >, FunctionSpec< "geteuid", @@ -580,7 +580,7 @@ def POSIX : StandardSpec<"POSIX"> { FunctionSpec< "truncate", RetValSpec, - [ArgSpec, ArgSpec] + [ArgSpec, ArgSpec] >, FunctionSpec< "unlink", -- 2.7.4