aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-09-26 13:42:53 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-09-26 13:43:17 -0400
commite5c058e2eed865114886823d010cece747914f8d (patch)
treefad0b80a15f863ec4a5614e22b813b4c459194b6 /src/backend/utils/adt/jsonfuncs.c
parent3a07a6f3e8d204e2141f09c20de4caecd998fa3f (diff)
downloadpostgresql-e5c058e2eed865114886823d010cece747914f8d.tar.gz
postgresql-e5c058e2eed865114886823d010cece747914f8d.zip
Fix failure-to-read-man-page in commit 899bd785c.
posix_fallocate() is not quite a drop-in replacement for fallocate(), because it is defined to return the error code as its function result, not in "errno". I (tgl) missed this because RHEL6's version seems to set errno as well. That is not the case on more modern Linuxen, though, as per buildfarm results. Aside from fixing the return-convention confusion, remove the test for ENOSYS; we expect that glibc will mask that for posix_fallocate, though it does not for fallocate. Keep the test for EINTR, because POSIX specifies that as a possible result, and buildfarm results suggest that it can happen in practice. Back-patch to 9.4, like the previous commit. Thomas Munro Discussion: https://postgr.es/m/1002664500.12301802.1471008223422.JavaMail.yahoo@mail.yahoo.com
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions