]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
posix_fallocate.3: ffix + wfix
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 5 Oct 2015 08:57:11 +0000 (09:57 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 5 Oct 2015 09:00:29 +0000 (10:00 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/posix_fallocate.3

index f1dad617e02cf4b93d9fd2f1a8f6bdbc2438deb4..67bceb9098683c8e382006ee1bdcaa65ad010dcf 100644 (file)
@@ -141,31 +141,39 @@ equals zero.
 .SH NOTES
 In the glibc implementation,
 .BR posix_fallocate ()
-is implemented using
-.BR fallocate (2).
-If the underlying filesystem does not support the
+is implemented using the
 .BR fallocate (2)
-syscall then the operation is emulated with the following caveats:
+system call.
+If the underlying filesystem does not support
+.BR fallocate (2),
+then the operation is emulated with the following caveats:
 .IP * 2
 The emulation is inefficient.
 .IP *
 There is a race condition where concurrent writes from another thread or
 process could be overwritten with null bytes.
 .IP *
-There is a race condition where concurrent file size increase by
+There is a race condition where concurrent file size increases by
 another thread or process could result in a file whose size is smaller
 than expected.
 .IP *
-If fd has been opened with the O_APPEND or O_WRONLY flags the function
-will fail with
+If
+.I fd
+has been opened with the
+.B O_APPEND
+or
+.B O_WRONLY
+flags, the function will fail with the error
 .B EBADF.
 .PP
-In general the emulation is not MT-safe. On Linux, applications may use
+In general, the emulation is not MT-safe.
+On Linux, applications may use
 .BR fallocate (2)
-if they cannot work around the emulation caveats. In general this is
+if they cannot work around the emulation caveats.
+In general, this is
 only recommended if the application plans to terminate the operation if
 .B EOPNOTSUPP
-is returned, otherwise the application itself will need to implement an
+is returned, otherwise the application itself will need to implement a
 fallback with all the same problems as the emulation provided by glibc.
 .SH SEE ALSO
 .BR fallocate (1),