HP-UX Reference (11i v1 05/09) - 2 System Calls (vol 5)
t
truncate( ) truncate( )
HP-UX EXTENSIONS
SYNOPSIS
int truncate(const char *path, size_t length);
int ftruncate(int fildes, size_t length);
ERRORS
If truncate() fails, errno is set to one of the following values:
[EACCES] MAC access is denied on the file.
[EDQUOT] The user’s disk quota block limit has been reached for this file system.
[EFAULT] path points outside the process’s allocated address space. The reliable detection of this
error is implementation dependent.
[EINVAL] length was greater than the maximum file size.
[ETXTBSY] The file is a pure procedure (shared text) file that is being executed.
If
ftruncate() fails, errno is set to one of the following values:
[EDQUOT] The user’s disk quota block limit has been reached for this file system.
AUTHOR
truncate() was developed by the University of California, Berkeley.
SEE ALSO
ftruncate64(2), open(2), truncate64(2).
STANDARDS CONFORMANCE
truncate(): AES ftruncate(): AES, SVID3
Section 2−−434 Hewlett-Packard Company − 1 − HP-UX 11i Version 1: September 2005