diff options
author | Derek Mauro <dmauro@google.com> | 2023-06-12 08:11:36 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-06-12 08:12:42 -0700 |
commit | 4500c2fada4e952037c59bd65e8be1ba0b29f21e (patch) | |
tree | f0fc9618525470d34eb64fbd01235f0c7d5d88f1 /absl/strings | |
parent | 1feab4fff90f904518e66cf80971063486fbc984 (diff) |
DirectMmap: Use off_t instead of off64_t for the offset parameter
off_t is best for portability. Its size varies with the platform.
off64_t is non-standard, but is present in glibc and some BSDs.
It also matches the signature specified in the manual.
https://man7.org/linux/man-pages/man2/mmap.2.html
This is a re-spin of #1349, but correctly casts the type to the type
expected by the kernel for mmap2.
https://man7.org/linux/man-pages/man2/mmap2.2.html
Fixes #1473
PiperOrigin-RevId: 539656313
Change-Id: I7a30dd9d3eb6af03a99da0d93d721a86f6521b25
Diffstat (limited to 'absl/strings')
0 files changed, 0 insertions, 0 deletions