This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] error.h
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 17 May 2011 23:35:16 -0400
- Subject: Re: [PATCH] error.h
- References: <1305678052.6192.5.camel@YAAKOV04>
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