On 11 January 2012 01:32, Bruno Haible <br...@clisp.org> wrote: > > errno describes _what_ error occurred. The error message also contains > information about _when_ it occurred.
Actually, the error codes returned by qcopy_file_preserving contain all the information about when the error occurred, as you can see in copy_file_preserving. All that copy_file_preserving does is turn error codes into error messages, just like strerror, only it conflates producing the strings and raising an error, so it's less flexible. I was thinking that a gnulib strerror could add support for these error messages without the need for extra functions like copy_file_preserving, and hence without the need for ugly names like qcopy_file_preserving. -- http://rrt.sc3d.org