]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/posix_fallocate.3
des_crypt.3: Minor wording fix in VERSIONS
[thirdparty/man-pages.git] / man3 / posix_fallocate.3
index 409cb3a27f6555f97cf1041b1cc2e1d5ddfc1124..58338d673f85ad4270340cd5f846390d5b9ad52b 100644 (file)
 .\" the source, must acknowledge the copyright and authors of this work.
 .\" %%%LICENSE_END
 .\"
-.TH POSIX_FALLOCATE 3  2015-12-05 "GNU" "Linux Programmer's Manual"
+.TH POSIX_FALLOCATE 3  2017-09-15 "GNU" "Linux Programmer's Manual"
 .SH NAME
 posix_fallocate \- allocate file space
 .SH SYNOPSIS
 .nf
 .B #include <fcntl.h>
-.sp
+.PP
 .BI "int posix_fallocate(int " fd ", off_t " offset ", off_t " len );
 .fi
-.sp
+.PP
 .ad l
 .in -4n
 Feature Test Macro Requirements for glibc (see
 .BR feature_test_macros (7)):
 .in
-.sp
+.PP
 .BR posix_fallocate ():
 .RS 4
-_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
+_POSIX_C_SOURCE\ >=\ 200112L
 .RE
 .ad
 .SH DESCRIPTION
 The function
 .BR posix_fallocate ()
 ensures that disk space is allocated for the file referred to by the
-descriptor
+file descriptor
 .I fd
 for the bytes in the range starting at
 .I offset
@@ -58,7 +58,7 @@ After a successful call to
 .BR posix_fallocate (),
 subsequent writes to bytes in the specified range are
 guaranteed not to fail because of lack of disk space.
-
+.PP
 If the size of the file is less than
 .IR offset + len ,
 then the file is increased to this size;
@@ -79,6 +79,9 @@ is not a valid file descriptor, or is not opened for writing.
 .I offset+len
 exceeds the maximum file size.
 .TP
+.B EINTR
+A signal was caught during execution.
+.TP
 .B EINVAL
 .I offset
 was less than 0, or
@@ -115,7 +118,7 @@ T}  Thread safety   MT-Safe (but see NOTES)
 .TE
 .SH CONFORMING TO
 POSIX.1-2001.
-
+.PP
 POSIX.1-2008 says that an implementation
 .I shall
 give the
@@ -163,8 +166,8 @@ has been opened with the
 .B O_APPEND
 or
 .B O_WRONLY
-flags, the function will fail with the error
-.B EBADF.
+flags, the function fails with the error
+.BR EBADF .
 .PP
 In general, the emulation is not MT-safe.
 On Linux, applications may use