Deleted Added
full compact
posix_fallocate.2 (261280) posix_fallocate.2 (261560)
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)open.2 8.2 (Berkeley) 11/16/93
1.\" Copyright (c) 1980, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 12 unchanged lines hidden (view full) ---

21.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26.\" SUCH DAMAGE.
27.\"
28.\" @(#)open.2 8.2 (Berkeley) 11/16/93
29.\" $FreeBSD: stable/10/lib/libc/sys/posix_fallocate.2 261280 2014-01-30 05:35:12Z pluknet $
29.\" $FreeBSD: stable/10/lib/libc/sys/posix_fallocate.2 261560 2014-02-06 19:47:17Z kib $
30.\"
31.Dd January 23, 2014
32.Dt POSIX_FALLOCATE 2
33.Os
34.Sh NAME
35.Nm posix_fallocate
36.Nd pre-allocate storage for a range in a file
37.Sh LIBRARY

--- 40 unchanged lines hidden (view full) ---

78.Xr ftruncate 2
79that reduces the file size to a size smaller than
80.Fa offset +
81.Fa len .
82.Sh RETURN VALUES
83If successful,
84.Fn posix_fallocate
85returns zero.
30.\"
31.Dd January 23, 2014
32.Dt POSIX_FALLOCATE 2
33.Os
34.Sh NAME
35.Nm posix_fallocate
36.Nd pre-allocate storage for a range in a file
37.Sh LIBRARY

--- 40 unchanged lines hidden (view full) ---

78.Xr ftruncate 2
79that reduces the file size to a size smaller than
80.Fa offset +
81.Fa len .
82.Sh RETURN VALUES
83If successful,
84.Fn posix_fallocate
85returns zero.
86It returns -1 on failure, and sets
87.Va errno
88to indicate the error.
86It returns an error on failure, without setting
87.Va errno .
89.Sh ERRORS
90Possible failure conditions:
91.Bl -tag -width Er
92.It Bq Er EBADF
93The
94.Fa fd
95argument is not a valid file descriptor.
96.It Bq Er EBADF

--- 49 unchanged lines hidden ---
88.Sh ERRORS
89Possible failure conditions:
90.Bl -tag -width Er
91.It Bq Er EBADF
92The
93.Fa fd
94argument is not a valid file descriptor.
95.It Bq Er EBADF

--- 49 unchanged lines hidden ---