static void axfr_error(****) __attribute__ ((__noreturn__)); 这是什么声明?
一个 .c file , 如下代码
声明后 定义。 请问声明后面的 __attribute__((__noreturn__)) 是
什么意思啊??
static void axfr_error(TASK *, const char *, ...) __attribute__ ((__noreturn__));
static void
axfr_error(TASK *t, const char *fmt, ...)
{
va_list ap;
char msg[BUFSIZ];
va_start(ap, fmt);
vsnprintf(msg, sizeof(msg), fmt, ap);
va_end(ap);
if (t)
Warnx("%s: %s", desctask(t), msg);
else
Warnx("%s", msg);
#if HAVE_SHUTDOWN
shutdown(t->fd, 2);
#endif
close(t->fd);
_exit(EXIT_FAILURE);
}