[PATCH] error.h
Charles Wilson
cygwin@cwilson.fastmail.fm
Wed May 18 03:35:00 GMT 2011
On 5/17/2011 8:20 PM, Yaakov (Cygwin/X) wrote:
> This patch series adds error.h and the error(3) functions, a GNU
> extension:
>
> http://www.kernel.org/doc/man-pages/online/pages/man3/error.3.html
>
> I implemented this within Cygwin itself instead of newlib, because it is
> a GNU extension which depends on program_invocation_name, another GNU
> extension available only in Cygwin.
>
> Patches for winsup/cygwin and winsup/doc, the new error.h header, and a
> test application, attached.
Shouldn't the definitions in error.h be guarded by #ifdef GNU_SOURCE or
something -- or are we relying on error.h itself, as a non-standard
header, "hiding" the symbols implicitly? E.g. if you don't want the
functions, don't include <error.h>?
--
Chuck
More information about the Cygwin-patches
mailing list