krb5_warn, krb5_warnx, krb5_vwarn, krb5_vwarnx, krb5_err, krb5_errx,
krb5_verr, krb5_verrx, krb5_set_warn_dest -- Heimdal warning and error
functions
Kerberos 5 Library (libkrb5, -lkrb5)
#include <krb5.h>
krb5_error_code
krb5_err(krb5_context context, int eval, krb5_error_code code,
const char *format, ...);
krb5_error_code
krb5_errx(krb5_context context, int eval, const char *format, ...);
krb5_error_code
krb5_verr(krb5_context context, int eval, krb5_error_code code,
const char *format, va_list ap);
krb5_error_code
krb5_verrx(krb5_context context, int eval, const char *format,
va_list ap);
krb5_error_code
krb5_vwarn(krb5_context context, krb5_error_code code,
const char *format, va_list ap);
krb5_error_code
krb5_vwarnx(krb5_context context, const char *format, va_list ap);
krb5_error_code
krb5_warn(krb5_context context, krb5_error_code code, const char *format,
...);
krb5_error_code
krb5_warnx(krb5_context context, const char *format, ...);
krb5_error_code
krb5_set_warn_dest(krb5_context context, krb5_log_facility *facility);
char *
krb5_get_err_text(krb5_context context, krb5_error_code code);
These functions prints a warning message to some destination. format is
a printf style format specifying the message to print. The forms not ending
in an ``x'' prints the error string associated with code along with
the message. The ``err'' functions exits with exit status eval after
printing the message.
The krb5_set_warn_func() function sets the destination for warning messages
to the specified facility. Messages logged with the ``warn'' functions
have a log level of 1, while the ``err'' functions logs with level
0.
krb5_get_err_text() fetches the human readable strings describing the
error-code.
krb5_openlog(3)
HEIMDAL August 8, 1997 HEIMDAL
[ Back ] |