bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: copy_file_preserving variant that doesn't exit on error?


From: Reuben Thomas
Subject: Re: copy_file_preserving variant that doesn't exit on error?
Date: Wed, 11 Jan 2012 11:27:08 +0000

On 11 January 2012 01:32, Bruno Haible <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]