Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/truncate.2
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 | .\" @(#)truncate.2 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd January 24, 2020 | .Dd March 30, 2020 | ||||
.Dt TRUNCATE 2 | .Dt TRUNCATE 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm truncate , | .Nm truncate , | ||||
.Nm ftruncate | .Nm ftruncate | ||||
.Nd truncate or extend a file to a specified length | .Nd truncate or extend a file to a specified length | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
▲ Show 20 Lines • Show All 72 Lines • ▼ Show 20 Lines | |||||
.Fa length | .Fa length | ||||
argument was greater than the maximum file size. | argument was greater than the maximum file size. | ||||
.It Bq Er EINVAL | .It Bq Er EINVAL | ||||
The | The | ||||
.Fa length | .Fa length | ||||
argument was less than 0. | argument was less than 0. | ||||
.It Bq Er EIO | .It Bq Er EIO | ||||
An I/O error occurred updating the inode. | An I/O error occurred updating the inode. | ||||
.It Bq Er EINTEGRITY | |||||
Corrupted data was detected while reading from the file system. | |||||
.It Bq Er EFAULT | .It Bq Er EFAULT | ||||
The | The | ||||
.Fa path | .Fa path | ||||
argument | argument | ||||
points outside the process's allocated address space. | points outside the process's allocated address space. | ||||
.El | .El | ||||
.Pp | .Pp | ||||
The | The | ||||
▲ Show 20 Lines • Show All 41 Lines • Show Last 20 Lines |