[libc] Fix argument types for {f,}truncate specs
authorAlfred Persson Forsberg <cat@catcream.org>
Mon, 12 Jun 2023 16:58:29 +0000 (17:58 +0100)
committerSam James <sam@gentoo.org>
Mon, 12 Jun 2023 17:00:35 +0000 (18:00 +0100)
commit08da9ceb647551d266d34ebdce47e6ca62a31ae0
tree5334fa65811b05d8fa97a5bf2190033b286ac02b
parent9c053e69939b9d36723f7d5a9b00a6e3f1a9c726
[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