HP-UX Reference (11i v1 00/12) - 2 System Calls (vol 5)

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man2/!!!intro.2
________________________________________________________________
___ ___
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 2412 1 HP-UX Release 11i: December 2000
___
___