aboutsummaryrefslogtreecommitdiff
path: root/contrib/btree_gist/btree_gist.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2025-07-01 12:08:20 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2025-07-01 12:08:20 -0400
commit29213636e6cddcb7b2c877bff8cb9ba470d392db (patch)
tree304f4e570f17ecf841775a25f129b683e9b93761 /contrib/btree_gist/btree_gist.c
parent8af0d0ab01b406b8671ff4426acfe9b1d2af30d8 (diff)
downloadpostgresql-29213636e6cddcb7b2c877bff8cb9ba470d392db.tar.gz
postgresql-29213636e6cddcb7b2c877bff8cb9ba470d392db.zip
Make safeguard against incorrect flags for fsync more portable.
The existing code assumed that O_RDONLY is defined as 0, but this is not required by POSIX and is not true on GNU Hurd. We can avoid the assumption by relying on O_ACCMODE to mask the fcntl() result. (Hopefully, all supported platforms define that.) Author: Michael Banck <mbanck@gmx.net> Co-authored-by: Samuel Thibault Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/6862e8d1.050a0220.194b8d.76fa@mx.google.com Discussion: https://postgr.es/m/68480868.5d0a0220.1e214d.68a6@mx.google.com Backpatch-through: 13
Diffstat (limited to 'contrib/btree_gist/btree_gist.c')
0 files changed, 0 insertions, 0 deletions