]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
posix_fallocate.3: add EOPNOTSUPP error code.
authorÉrico Rolim <erico.erc@gmail.com>
Mon, 26 Oct 2020 23:21:18 +0000 (20:21 -0300)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Tue, 27 Oct 2020 13:51:44 +0000 (14:51 +0100)
As can be seen in

https://git.musl-libc.org/cgit/musl/tree/src/fcntl/posix_fallocate.c?id=73cc775bee53300c7cf759f37580220b18ac13d3

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 isn't listed in ERRORS.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/posix_fallocate.3

index 3152dd54f60e70b8ea12f774fc05cedf274b1cba..8ea37261a2a7401f09c4d12a176724ff04953b1a 100644 (file)
@@ -98,6 +98,13 @@ There is not enough space left on the device containing the file
 referred to by
 .IR fd .
 .TP
+.B EOPNOTSUPP
+The filesystem containing the file referred to by
+.I 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.
+.TP
 .B ESPIPE
 .I fd
 refers to a pipe.