- Notifications
You must be signed in to change notification settings - Fork28
Commit12ac252
committed
Fix failure-to-read-man-page in commit899bd78.
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 seemsto 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 testfor ENOSYS; we expect that glibc will mask that for posix_fallocate,though it does not for fallocate. Keep the test for EINTR, becausePOSIX specifies that as a possible result, and buildfarm resultssuggest that it can happen in practice.Back-patch to 9.4, like the previous commit.Thomas MunroDiscussion:https://postgr.es/m/1002664500.12301802.1471008223422.JavaMail.yahoo@mail.yahoo.com1 parent1750612 commit12ac252
1 file changed
+7
-10
lines changedLines changed: 7 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
425 | 425 |
| |
426 | 426 |
| |
427 | 427 |
| |
428 |
| - | |
| 428 | + | |
429 | 429 |
| |
430 |
| - | |
431 |
| - | |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 |
| - | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
439 | 436 |
| |
440 | 437 |
| |
441 | 438 |
| |
|
0 commit comments
Comments
(0)