maintainer-makefile: Prohibit BSD4.3/SysV u_char etc types.
[gnulib.git] / modules / truncate
blobc6a108720b715803217eda34968375a3e219103d
1 Description:
2 truncate() function: truncate a file to a specified length.
4 Files:
5 lib/truncate.c
6 m4/truncate.m4
8 Depends-on:
9 unistd
10 sys_types
11 largefile
12 sys_stat
13 stat            [test $REPLACE_TRUNCATE = 1]
14 open            [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1]
15 ftruncate       [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1]
17 configure.ac:
18 gl_FUNC_TRUNCATE
19 gl_CONDITIONAL([GL_COND_OBJ_TRUNCATE],
20                [test $HAVE_DECL_TRUNCATE = 0 || test $REPLACE_TRUNCATE = 1])
21 AM_COND_IF([GL_COND_OBJ_TRUNCATE], [
22   gl_PREREQ_TRUNCATE
24 gl_UNISTD_MODULE_INDICATOR([truncate])
26 Makefile.am:
27 if GL_COND_OBJ_TRUNCATE
28 lib_SOURCES += truncate.c
29 endif
31 Include:
32 <unistd.h>
34 License:
35 GPL
37 Maintainer:
38 all