diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-05-18 05:25:41 +0400 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2011-05-18 05:25:41 +0400 |
commit | d470b53c98d32d2371d8d5465f849be11f80a696 (patch) | |
tree | cc44f6b2bd2b0947a0efd04b919e9e6653e0f9e8 /winsup/cygwin/include/error.h | |
parent | 7dd9fa7ffbcda908ac3724d5c41a98213d5c0598 (diff) |
* 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.
Diffstat (limited to 'winsup/cygwin/include/error.h')
-rw-r--r-- | winsup/cygwin/include/error.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/winsup/cygwin/include/error.h b/winsup/cygwin/include/error.h new file mode 100644 index 000000000..3f7f29a11 --- /dev/null +++ b/winsup/cygwin/include/error.h @@ -0,0 +1,30 @@ +/* error.h: GNU error reporting functions + + Copyright 2011 Red Hat, Inc. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#ifndef _ERROR_H +#define _ERROR_H + +#ifdef __cplusplus +extern "C" +{ +#endif + +void error (int, int, const char *, ...); +void error_at_line (int, int, const char *, unsigned int, const char *, ...); + +extern unsigned int error_message_count; +extern int error_one_per_line; +extern void (*error_print_progname) (void); + +#ifdef __cplusplus +} +#endif + +#endif /* _ERROR_H */ |