summaryrefslogtreecommitdiff
path: root/doc/posix-functions/truncate.texi
blob: 8ee1fa7d18561e4e9c7a910cd287cff716c0afcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@node truncate
@section @code{truncate}
@findex truncate

POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html}

Gnulib module: truncate

Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw, MSVC 14, Android 4.4 with @code{AC_SYS_LARGEFILE} in effect.
@item
On platforms where @code{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 @code{AC_SYS_LARGEFILE} macro.
@item
This function does not fail when the file name argument ends in a slash
and (without the slash) names a non-directory, on some platforms:
AIX 7.2.
@end itemize

Portability problems not fixed by Gnulib:
@itemize
@end itemize