diff options
author | Mikhail R. Gadelha <mikhail@igalia.com> | 2024-07-22 17:18:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 12:18:48 -0300 |
commit | cda5b2b4b843635f0824c228f14f747361727a5e (patch) | |
tree | 610cf474f9d57a9235a5fe7f05e61c0afb3dedbb /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 65825cd5431c64b3b2c0537e4ff01517d0b32061 (diff) | |
download | llvm-cda5b2b4b843635f0824c228f14f747361727a5e.zip llvm-cda5b2b4b843635f0824c228f14f747361727a5e.tar.gz llvm-cda5b2b4b843635f0824c228f14f747361727a5e.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions