File: status.mfl

package info (click to toggle)
mailfromd 9.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,512 kB
  • sloc: ansic: 56,882; sh: 22,979; yacc: 4,130; lex: 1,428; makefile: 928; lisp: 488; awk: 393; perl: 319; sed: 25
file content (118 lines) | stat: -rw-r--r-- 3,371 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
/* Status codes, exceptions and other constants for Mailfromd.  -*- mfl -*-
   Copyright (C) 2007-2025 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 <http://www.gnu.org/licenses/>. */

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

# Resolve modes for DNS functions.  The values for IP4 and IP6 modes
# are deliberately selected to coincide with the corresponding socket
# families.
const RESOLVE_NONE 0  /* Do not resolve hostnames. */
const RESOLVE_DFL  1  /* Resolve hostnames according to the connection type. */
const RESOLVE_IP4  2  /* Resolve to IPv4 addresses (A records). */
const RESOLVE_IP6  3  /* Resolve to IPv6 addresses (AAAA records). */

# 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

# Buffering types
const BUFFER_NONE 0
const BUFFER_FULL 1
const BUFFER_LINE 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
const DKIM_EXPL_BAD_KEY_TYPE    18

# 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_too_many
dclex e_io
dclex e_macroundef
dclex e_eof
dclex e_exists
dclex e_format
dclex e_badmmq
dclex e_ilseq
dclex e_inval

# `Status' definitions
const success      e_success
const not_found    e_not_found
const failure      e_failure
const temp_failure e_temp_failure