2 truncate() function: truncate a file to a specified length.
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]
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], [
24 gl_UNISTD_MODULE_INDICATOR([truncate])
27 if GL_COND_OBJ_TRUNCATE
28 lib_SOURCES += truncate.c