aboutsummaryrefslogtreecommitdiff
path: root/mflib/status.mf
blob: f35a67449c5b5dda1aa6ab6da6242cf384ddac10 (plain)
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
/* Status codes, exceptions and other constants for Mailfromd.  -*- mfl -*-
   Copyright (C) 2007-2011, 2015-2016 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

# 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

# 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

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

Return to:

Send suggestions and report system problems to the System administrator.