summaryrefslogtreecommitdiff
path: root/src/template/bsdi-3.0
diff options
context:
space:
mode:
authorMichael Paquier2025-12-25 23:41:56 +0000
committerMichael Paquier2025-12-25 23:41:56 +0000
commitbde3a4616072534fd03c75f9019d5165665ed211 (patch)
tree9747f51218d58f898c62c7349e05d3c9bbf61ab2 /src/template/bsdi-3.0
parenteee19a30d60dacf571f44c252f3f8d455fee2b4f (diff)
Upgrade BufFile to use int64 for byte positionsHEADmaster
This change has the advantage of removing some weird type casts, caused by offset calculations based on pgoff_t but saved as int (on older branches we use off_t, which could be 4 or 8 bytes depending on the environment). These are safe currently because capped by MAX_PHYSICAL_FILESIZE, but we would run into problems when to make MAX_PHYSICAL_FILESIZE larger or allow callers of these routines to use a larger physical max size on demand. While on it, this improves BufFileDumpBuffer() so as we do not use an offset for "availbytes". It is not a file offset per-set, but a number of available bytes. This change should lead to no functional changes. Author: Chao Li <li.evan.chao@gmail.com> Discussion: https://postgr.es/m/aUStrqoOCDRFAq1M@paquier.xyz
Diffstat (limited to 'src/template/bsdi-3.0')
0 files changed, 0 insertions, 0 deletions