truncate: New module.
commitf4d71054e7f7c36adf8fb4c3b953d725e9f9408d
authorBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:54:37 +0000 (13 02:54 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 00:54:37 +0000 (13 02:54 +0200)
tree5dd43b406878dead24d8b55f50d8cef5bcea3dd2
parent7d2f35f7f976cc29baf22fd0d4d1d58fc870ce64
truncate: New module.

* lib/unistd.in.h (truncate): New declaration.
* lib/truncate.c: New file.
* m4/truncate.m4: New file.
* m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
(gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
REPLACE_TRUNCATE.
* modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
HAVE_TRUNCATE, REPLACE_TRUNCATE.
* modules/truncate: New file.
* tests/test-unistd-c++.cc (truncate): Test signature.
* doc/posix-functions/truncate.texi: Mention the new module.
ChangeLog
doc/posix-functions/truncate.texi
lib/truncate.c [new file with mode: 0644]
lib/unistd.in.h
m4/truncate.m4 [new file with mode: 0644]
m4/unistd_h.m4
modules/truncate [new file with mode: 0644]
modules/unistd
tests/test-unistd-c++.cc