From 3e68e19f056aa97f40dce239f0475bebc88441d7 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 6 Nov 2003 21:31:24 +0000 Subject: * bsdlib.cc (_vwarnx): New function. (vwarn): Ditto. (vwarnx): Ditto. (warn): Ditto. (warnx): Ditto. (verr): Ditto. (verrx): Ditto. (err): Ditto. (errx): Ditto. * cygwin.din: Export above functions. * include/err.h: New file. * include/cygwin/version.h: Bump API minor number. --- winsup/cygwin/include/cygwin/version.h | 3 ++- winsup/cygwin/include/err.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 winsup/cygwin/include/err.h (limited to 'winsup/cygwin/include') diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h index d26ec4bc8..d692a397e 100644 --- a/winsup/cygwin/include/cygwin/version.h +++ b/winsup/cygwin/include/cygwin/version.h @@ -225,13 +225,14 @@ details. */ 98: Export _tmpfile64. 99: CW_GET_POSIX_SECURITY_ATTRIBUTE addition to external.cc. 100: CW_GET_SHMLBA addition to external.cc. + 101: Export err, errx, verr, verrx, warn, warnx, vwarn, vwarnx. */ /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */ #define CYGWIN_VERSION_API_MAJOR 0 -#define CYGWIN_VERSION_API_MINOR 100 +#define CYGWIN_VERSION_API_MINOR 101 /* There is also a compatibity version number associated with the shared memory regions. It is incremented when incompatible diff --git a/winsup/cygwin/include/err.h b/winsup/cygwin/include/err.h new file mode 100644 index 000000000..d1002c527 --- /dev/null +++ b/winsup/cygwin/include/err.h @@ -0,0 +1,33 @@ +/* err.h + + Copyright 2003 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 _ERR_H +#define _ERR_H + +#include +#include + +__BEGIN_DECLS + +extern void warn (const char *fmt, ...); +extern void warnx (const char *fmt, ...); + +extern void err (int eval, const char *fmt, ...); +extern void errx (int eval, const char *fmt, ...); + +extern void vwarn (const char *fmt, va_list ap); +extern void vwarnx (const char *fmt, va_list ap); + +extern void verr (int eval, const char *fmt, va_list ap); +extern void verrx (int eval, const char *fmt, va_list ap); + +__END_DECLS + +#endif /* _ERR_H */ -- cgit v1.2.3