Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | truncate: Work around trailing slash bug in truncate() on AIX 7.2. | Bruno Haible | 2021-01-05 | 1 | -0/+33 |
| | | | | | | | | | | * m4/truncate.m4 (gl_FUNC_TRUNCATE): Add a test whether truncate rejects trailing slashes. Set REPLACE_TRUNCATE and define TRUNCATE_TRAILING_SLASH_BUG if not. * lib/truncate.c (orig_truncate): New function. (truncate): Add alternative implementation when TRUNCATE_TRAILING_SLASH_BUG is defined. * modules/truncate (Depends-on): Add sys_stat, stat. | ||||
* | maint: run 'make update-copyright' | Paul Eggert | 2020-12-31 | 1 | -1/+1 |
| | |||||
* | truncate: Make more robust in multithreaded applications. | Bruno Haible | 2020-05-28 | 1 | -2/+2 |
| | | | | * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open(). | ||||
* | maint: Run 'make update-copyright' | Paul Eggert | 2019-12-31 | 1 | -1/+1 |
| | |||||
* | maint: Run 'make update-copyright' | Paul Eggert | 2019-01-01 | 1 | -1/+1 |
| | |||||
* | maint: Run 'make update-copyright' | Paul Eggert | 2018-01-01 | 1 | -1/+1 |
| | |||||
* | all: prefer https: URLs | Paul Eggert | 2017-09-13 | 1 | -1/+1 |
| | |||||
* | truncate: New module. | Bruno Haible | 2017-05-13 | 1 | -0/+51 |
* 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. |