[all-commits] [llvm/llvm-project] cda5b2: [libc] Change fcntl cmd when only fcntl64 is avail...
Mikhail R. Gadelha via All-commits
all-commits at lists.llvm.org
Mon Jul 22 08:19:09 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cda5b2b4b843635f0824c228f14f747361727a5e
https://github.com/llvm/llvm-project/commit/cda5b2b4b843635f0824c228f14f747361727a5e
Author: Mikhail R. Gadelha <mikhail at igalia.com>
Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths:
M libc/src/__support/OSUtil/linux/fcntl.cpp
Log Message:
-----------
[libc] Change fcntl cmd when only fcntl64 is available (#99675)
In some systems like rv32, only fcntl64 is available and it employs a different structure for file locking and the correspoding F_GETLK64, F_SETLK64, and F_SETLKW64 commands.
So if we use fcntl64, the F_GETLK, F_SETLK, and F_SETLKW commands need to be changed to their 64 versions. This patch adds new cases to the swich(cmd) in our implementation of fcntl to do that.
The default case was moved to outside the switch, so we don't need to change anything, the F_GETLK, F_SETLK, and F_SETLKW commands will just go through the old implementation.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list