aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Threading.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2022-12-01 14:48:20 -0800
committerRyan Prichard <rprichard@google.com>2022-12-01 14:48:20 -0800
commit6c44ccab43e99e1a48db917b4229ca651b303c3f (patch)
tree3656639222e5ff11ddd9b0b71f280b4e8e1e551b /llvm/lib/Support/Threading.cpp
parent5e50b8089aee249d77542ea858d956568ec6581f (diff)
downloadllvm-6c44ccab43e99e1a48db917b4229ca651b303c3f.zip
llvm-6c44ccab43e99e1a48db917b4229ca651b303c3f.tar.gz
llvm-6c44ccab43e99e1a48db917b4229ca651b303c3f.tar.bz2
[libc++] Fix 64-bit file creation for Bionic and Windows
Bionic didn't add fopen64 until API 24, but there's no meaningful distinction between them with Bionic, so just use fopen instead. On Windows, use _chsize_s instead of _chsize. _chsize uses a 32-bit `long` size argument, while _chsize_s uses __int64 instead. Factor out utils::{off64_t, fopen64, ftruncate64} for use within the create_file function. Reviewed By: ldionne, #libc, mstorsjo Differential Revision: https://reviews.llvm.org/D137132
Diffstat (limited to 'llvm/lib/Support/Threading.cpp')
0 files changed, 0 insertions, 0 deletions