* commit 'd19f2d859f744ded5a70cf0d8a23427eac7ec817': The err family allow null format strings.
This commit is contained in:
commit
210a842354
@ -40,43 +40,18 @@
|
|||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
__noreturn void err(int, const char *, ...)
|
/* printf's format string isn't nullable; the err family's one is,
|
||||||
__printflike(2, 3);
|
* so we can't use __errlike here. */
|
||||||
__noreturn void verr(int, const char *, __va_list)
|
#define __errlike(x, y) __attribute__((__format__(printf, x, y)))
|
||||||
__printflike(2, 0);
|
|
||||||
__noreturn void errx(int, const char *, ...)
|
|
||||||
__printflike(2, 3);
|
|
||||||
__noreturn void verrx(int, const char *, __va_list)
|
|
||||||
__printflike(2, 0);
|
|
||||||
void warn(const char *, ...)
|
|
||||||
__printflike(1, 2);
|
|
||||||
void vwarn(const char *, __va_list)
|
|
||||||
__printflike(1, 0);
|
|
||||||
void warnx(const char *, ...)
|
|
||||||
__printflike(1, 2);
|
|
||||||
void vwarnx(const char *, __va_list)
|
|
||||||
__printflike(1, 0);
|
|
||||||
|
|
||||||
/*
|
__noreturn void err(int, const char *, ...) __errlike(2, 3);
|
||||||
* The _* versions are for use in library functions so user-defined
|
__noreturn void verr(int, const char *, __va_list) __errlike(2, 0);
|
||||||
* versions of err*,warn* do not get used.
|
__noreturn void errx(int, const char *, ...) __errlike(2, 3);
|
||||||
*/
|
__noreturn void verrx(int, const char *, __va_list) __errlike(2, 0);
|
||||||
__noreturn void _err(int, const char *, ...)
|
void warn(const char *, ...) __errlike(1, 2);
|
||||||
__printflike(2, 3);
|
void vwarn(const char *, __va_list) __errlike(1, 0);
|
||||||
__noreturn void _verr(int, const char *, __va_list)
|
void warnx(const char *, ...) __errlike(1, 2);
|
||||||
__printflike(2, 0);
|
void vwarnx(const char *, __va_list) __errlike(1, 0);
|
||||||
__noreturn void _errx(int, const char *, ...)
|
|
||||||
__printflike(2, 3);
|
|
||||||
__noreturn void _verrx(int, const char *, __va_list)
|
|
||||||
__printflike(2, 0);
|
|
||||||
void _warn(const char *, ...)
|
|
||||||
__printflike(1, 2);
|
|
||||||
void _vwarn(const char *, __va_list)
|
|
||||||
__printflike(1, 0);
|
|
||||||
void _warnx(const char *, ...)
|
|
||||||
__printflike(1, 2);
|
|
||||||
void _vwarnx(const char *, __va_list)
|
|
||||||
__printflike(1, 0);
|
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user