diff options
author | Reuben Thomas <rrt@sc3d.org> | 2012-01-12 03:04:49 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-01-12 03:04:49 +0100 |
commit | 24a2f3c6ac107e6b35f1ac9f273b691738ef3f9a (patch) | |
tree | 3bf98a715d004876e9e2aaa06c1659c377046e5b /ChangeLog | |
parent | dd5c6076e60de0237ab75d5a3a77070231d6c0fd (diff) | |
download | gnulib-24a2f3c6ac107e6b35f1ac9f273b691738ef3f9a.tar.gz |
copy-file: add error-code-returning variant.
* lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
(qcopy_file_preserving): New declaration.
* lib/copy-file.c (qcopy_file_preserving): Renamed from
copy_file_preserving. Change return type to 'int'. Don't emit an error
message here.
(copy_file_preserving): New function.
* tests/test-copy-file.c: Include <stdlib.h>.
(main): Test qcopy_file_preserving if the environment variable
NO_STDERR_OUTPUT is set.
* tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
with NO_STDERR_OUTPUT
* tests/test-copy-file-2.sh: Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1,3 +1,20 @@ +2012-01-11 Reuben Thomas <rrt@sc3d.org> + Bruno Haible <bruno@clisp.org> + + copy-file: add error-code-returning variant. + * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items. + (qcopy_file_preserving): New declaration. + * lib/copy-file.c (qcopy_file_preserving): Renamed from + copy_file_preserving. Change return type to 'int'. Don't emit an error + message here. + (copy_file_preserving): New function. + * tests/test-copy-file.c: Include <stdlib.h>. + (main): Test qcopy_file_preserving if the environment variable + NO_STDERR_OUTPUT is set. + * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time, + with NO_STDERR_OUTPUT + * tests/test-copy-file-2.sh: Likewise. + 2012-01-10 Bruno Haible <bruno@clisp.org> copy-file: Use 'quote' module consistently. |