/* Status codes, exceptions and other constants for Mailfromd. -*- mfl -*- Copyright (C) 2007-2020 Sergey Poznyakoff This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ module 'status'. /* Earlier versions would fail on dclex statements below */ #pragma prereq 7.0.94 /* This prefix will be prepended to each const identifier below when creating a corresponding C define. */ #prefix _MFL_ # Socket families const FAMILY_STDIO 0 const FAMILY_UNIX 1 const FAMILY_INET 2 const FAMILY_INET6 3 # Access modes const R_OK 4 /* Test for read permission. */ const W_OK 2 /* Test for write permission. */ const X_OK 1 /* Test for execute permission. */ const F_OK 0 /* Test for existence. */ # Shutdown modes const SHUT_RD 0 const SHUT_WR 1 const SHUT_RDWR 2 # Burst error actions const BURST_ERR_FAIL 0 const BURST_ERR_IGNORE 1 const BURST_ERR_BODY 2 const BURST_ERR_MASK 0x0f const BURST_DECODE 0x10 # DKIM verification codes const DKIM_VERIFY_OK 0 const DKIM_VERIFY_PERMFAIL 1 const DKIM_VERIFY_TEMPFAIL 2 # DKIM explanatory codes const DKIM_EXPL_OK 0 const DKIM_EXPL_NO_SIG 1 const DKIM_EXPL_INTERNAL_ERROR 2 const DKIM_EXPL_SIG_SYNTAX 3 const DKIM_EXPL_SIG_MISS 4 const DKIM_EXPL_DOMAIN_MISMATCH 5 const DKIM_EXPL_BAD_VERSION 6 const DKIM_EXPL_BAD_ALGORITHM 7 const DKIM_EXPL_BAD_QUERY 8 const DKIM_EXPL_FROM 9 const DKIM_EXPL_EXPIRED 10 const DKIM_EXPL_DNS_UNAVAIL 11 const DKIM_EXPL_DNS_NOTFOUND 12 const DKIM_EXPL_KEY_SYNTAX 13 const DKIM_EXPL_KEY_REVOKED 14 const DKIM_EXPL_BAD_BODY 15 const DKIM_EXPL_BAD_BASE64 16 const DKIM_EXPL_BAD_SIG 17 # Exception codes dclex e_success dclex e_not_found dclex e_failure dclex e_temp_failure dclex e_ston_conv dclex e_divzero dclex e_regcomp dclex e_invip dclex e_invcidr dclex e_invtime dclex e_dbfailure dclex e_range dclex e_url dclex e_noresolve dclex e_io dclex e_macroundef dclex e_eof dclex e_exists dclex e_format dclex e_badmmq # `Status' definitions const success e_success const not_found e_not_found const failure e_failure const temp_failure e_temp_failure