* 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.
This commit is contained in:
Corinna Vinschen
2003-11-06 21:31:24 +00:00
parent 6ef3b76be2
commit 3e68e19f05
4 changed files with 123 additions and 1 deletions

View File

@ -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 <sys/cdefs.h>
#include <stdarg.h>
__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 */