[v2] posix_fallocate.3: add EOPNOTSUPP error code.

Submitted by √Črico Rolim on Sept. 13, 2020, 3:49 p.m.


Message ID CAFDeuWM5Bu1Hq7FFUBvoxHJfEUTD=FDK35aJUQEYFGyCnx37NQ@mail.gmail.com
State New
Series "posix_fallocate.3: add note about error codes for musl."
Headers show

Commit Message

√Črico Rolim Sept. 13, 2020, 3:49 p.m.
As can be seen in


musl libc returns the syscall's errors directly, which means it doesn't
perform the same emulation as glibc, and can return EOPNOTSUPP to an
application, which isnt't listed in ERRORS.

This patch replaces "[patch] posix_fallocate.3: add note about error
codes for musl." from

posix_fallocate(3p) doesn't list EOPNOTSUPP as an error that can be
returned to applications. Should it be noted in the man page that this
is something added/required by Linux? (I might be mistaken regarding
this assumption).

 man3/posix_fallocate.3 | 7 +++++++
 1 file changed, 7 insertions(+)

 refers to a pipe.

Patch hide | download patch | download mbox

diff --git a/man3/posix_fallocate.3 b/man3/posix_fallocate.3
index 58338d673..125bcc12b 100644
--- a/man3/posix_fallocate.3
+++ b/man3/posix_fallocate.3
@@ -98,6 +98,13 @@  There is not enough space left on the device
containing the file
 referred to by
 .IR fd .
+The filesystem containing the file referred to by
+.IR fd
+does not support this operation.
+This error code can be returned by libc's that don't perform the
+emulation shown in NOTES, such as musl libc.
 .I fd