mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [patch] posix_fallocate.3: add note about error codes for musl.
@ 2020-09-13  8:06 Érico Rolim
  2020-09-13 14:18 ` Rich Felker
  0 siblings, 1 reply; 5+ messages in thread
From: Érico Rolim @ 2020-09-13  8:06 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, musl, ericonr

As can be seen in

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

musl returns the syscall's errors directly, which means it doesn't
perform the same emulation as glibc, and, more relevant to this change,
it can return more errors than the ones currently listed in ERRORS.
---
 man3/posix_fallocate.3 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man3/posix_fallocate.3 b/man3/posix_fallocate.3
index 58338d673..2e440b3e1 100644
--- a/man3/posix_fallocate.3
+++ b/man3/posix_fallocate.3
@@ -101,6 +101,10 @@ referred to by
 .B ESPIPE
 .I fd
 refers to a pipe.
+.TP
+Libraries that don't perform the emulation shown in NOTES, such as musl libc,
+may also return the error codes listed in
+.BR fallocate (2).
 .SH VERSIONS
 .BR posix_fallocate ()
 is available since glibc 2.1.94.
-- 
2.28.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-27  7:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-13  8:06 [musl] [patch] posix_fallocate.3: add note about error codes for musl Érico Rolim
2020-09-13 14:18 ` Rich Felker
2020-09-13 15:49   ` [musl] [PATCH v2] posix_fallocate.3: add EOPNOTSUPP error code Érico Rolim
2020-10-26 23:21     ` [musl] Re: [PATCH v3] " Érico Rolim
2020-10-27  7:02       ` Michael Kerrisk (man-pages)

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).