~ubuntu-branches/ubuntu/intrepid/djbdns/intrepid-security

« back to all changes in this revision

Viewing changes to error.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerrit Pape
  • Date: 2008-03-02 23:22:04 UTC
  • Revision ID: james.westby@ubuntu.com-20080302232204-wa3owprcpeiyu8kj
Tags: upstream-1.05
ImportĀ upstreamĀ versionĀ 1.05

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <errno.h>
 
2
#include "error.h"
 
3
 
 
4
/* warning: as coverage improves here, should update error_{str,temp} */
 
5
 
 
6
int error_intr =
 
7
#ifdef EINTR
 
8
EINTR;
 
9
#else
 
10
-1;
 
11
#endif
 
12
 
 
13
int error_nomem =
 
14
#ifdef ENOMEM
 
15
ENOMEM;
 
16
#else
 
17
-2;
 
18
#endif
 
19
 
 
20
int error_noent = 
 
21
#ifdef ENOENT
 
22
ENOENT;
 
23
#else
 
24
-3;
 
25
#endif
 
26
 
 
27
int error_txtbsy =
 
28
#ifdef ETXTBSY
 
29
ETXTBSY;
 
30
#else
 
31
-4;
 
32
#endif
 
33
 
 
34
int error_io =
 
35
#ifdef EIO
 
36
EIO;
 
37
#else
 
38
-5;
 
39
#endif
 
40
 
 
41
int error_exist =
 
42
#ifdef EEXIST
 
43
EEXIST;
 
44
#else
 
45
-6;
 
46
#endif
 
47
 
 
48
int error_timeout =
 
49
#ifdef ETIMEDOUT
 
50
ETIMEDOUT;
 
51
#else
 
52
-7;
 
53
#endif
 
54
 
 
55
int error_inprogress =
 
56
#ifdef EINPROGRESS
 
57
EINPROGRESS;
 
58
#else
 
59
-8;
 
60
#endif
 
61
 
 
62
int error_wouldblock =
 
63
#ifdef EWOULDBLOCK
 
64
EWOULDBLOCK;
 
65
#else
 
66
-9;
 
67
#endif
 
68
 
 
69
int error_again =
 
70
#ifdef EAGAIN
 
71
EAGAIN;
 
72
#else
 
73
-10;
 
74
#endif
 
75
 
 
76
int error_pipe =
 
77
#ifdef EPIPE
 
78
EPIPE;
 
79
#else
 
80
-11;
 
81
#endif
 
82
 
 
83
int error_perm =
 
84
#ifdef EPERM
 
85
EPERM;
 
86
#else
 
87
-12;
 
88
#endif
 
89
 
 
90
int error_acces =
 
91
#ifdef EACCES
 
92
EACCES;
 
93
#else
 
94
-13;
 
95
#endif
 
96
 
 
97
int error_nodevice =
 
98
#ifdef ENXIO
 
99
ENXIO;
 
100
#else
 
101
-14;
 
102
#endif
 
103
 
 
104
int error_proto =
 
105
#ifdef EPROTO
 
106
EPROTO;
 
107
#else
 
108
-15;
 
109
#endif
 
110
 
 
111
int error_isdir =
 
112
#ifdef EISDIR
 
113
EISDIR;
 
114
#else
 
115
-16;
 
116
#endif
 
117
 
 
118
int error_connrefused =
 
119
#ifdef ECONNREFUSED
 
120
ECONNREFUSED;
 
121
#else
 
122
-17;
 
123
#endif