2003-11-07 05:31:24 +08:00
|
|
|
/* err.h
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2011-02-02 23:14:46 +08:00
|
|
|
extern void warn (const char *fmt, ...);
|
|
|
|
extern void warnx (const char *fmt, ...);
|
2003-11-07 05:31:24 +08:00
|
|
|
|
2011-02-02 18:16:30 +08:00
|
|
|
extern void err (int eval, const char *fmt, ...) __attribute__ ((__noreturn__));
|
|
|
|
extern void errx (int eval, const char *fmt, ...) __attribute__ ((__noreturn__));
|
2003-11-07 05:31:24 +08:00
|
|
|
|
|
|
|
extern void vwarn (const char *fmt, va_list ap);
|
|
|
|
extern void vwarnx (const char *fmt, va_list ap);
|
|
|
|
|
2011-02-02 18:16:30 +08:00
|
|
|
extern void verr (int eval, const char *fmt, va_list ap) __attribute__ ((__noreturn__));
|
|
|
|
extern void verrx (int eval, const char *fmt, va_list ap) __attribute__ ((__noreturn__));
|
2003-11-07 05:31:24 +08:00
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* _ERR_H */
|