commit 9aeab972b614f1021f8b25f20ae23937f78f68c0 from: Martijn van Duren date: Thu Aug 22 11:42:24 2019 UTC Document osmtpd_err{,x} commit - c6cb29f36fce4c54f745d6743846afe78f59b50c commit + 9aeab972b614f1021f8b25f20ae23937f78f68c0 blob - 020ded614a3dc0f198eb0e09e69551cc13dca896 blob + fa067aa263e49955b1470cbd6195469f20e00ea0 --- osmtpd_run.3 +++ osmtpd_run.3 @@ -57,6 +57,8 @@ .Nm osmtpd_filter_rewrite , .Nm osmtpd_filter_dataline , .Nm osmtpd_run +.Nm osmtpd_err +.Nm osmtpd_errx .Nd C filter API for .Xr smtpd 8 .Sh SYNOPSIS @@ -220,6 +222,10 @@ .Fn osmtpd_filter_dataline "struct osmtpd_ctx *ctx" "const char *line" ... .Ft void .Fn osmtpd_run void +.Ft void +.Fn osmtpd_err "int eval" "const char *fmt" ... +.Ft void +.Fn osmtpd_errx "int eval" "const char *fmt" ... .Sh DESCRIPTION The .Nm osmtpd @@ -487,6 +493,15 @@ functions' callbacks without argument can't use .Nm osmtpd_register_filter_dataline Ns 's callback can only use osmtpd_filter_dataline. .El +.Pp +.Nm osmtpd_err +and +.Nm osmtpd_errx +can be used as a standin for +.Xr err 3 +and +.Xr errx 3 +without printing the program name to stderr. .Sh SEE ALSO .Xr event_init 3 , .Xr smtpd.conf 5