[PATCH] error.h

Christopher Faylor cgf-use-the-mailinglist-please@cygwin.com
Wed May 18 01:21:00 GMT 2011


On Tue, May 17, 2011 at 07:20:47PM -0500, 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.
>
>
>Yaakov
>

>http://www.kernel.org/doc/man-pages/online/pages/man3/error.3.html
>
>2011-05-17  Yaakov Selkowitz  <yselkowitz@...>
>
>	* cygwin.din (error): Export.
>	(error_at_line): Export.
>	(error_message_count): Export.
>	(error_one_per_line): Export.
>	(error_print_progname): Export.
>	* errno.cc (error_message_count): Define.
>	(error_one_per_line): Define.
>	(error_print_progname): Define.
>	(_verror): New static function.
>	(error): New function.
>	(error_at_line): New function.
>	* posix.sgml (std-gnu): Add error, error_at_line.
>	* include/error.h: New header.
>	* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

Looks good.  Please check in.

cgf



More information about the Cygwin-patches mailing list