Next: truncf
, Previous: trunc
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
truncate
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html
Gnulib module: truncate
Portability problems fixed by Gnulib:
AC_SYS_LARGEFILE
in effect.
off_t
is a 32-bit type, this function is not
applicable to arbitrary lengths for files larger than 2 GB. The fix is to
use the AC_SYS_LARGEFILE
macro.
Portability problems not fixed by Gnulib: