annotate error.c @ 3:c7c914a43c06

fix errno conflict (twice?)
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 29 Jan 2025 12:37:44 +0000
parents 2cb46628feec
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
1 /* warning: as coverage improves here, should update error_{str,temp} */
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 #include <errno.h>
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
4 int error_intr = EINTR;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
6 int error_nomem = ENOMEM;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
8 int error_noent = ENOENT;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
10 int error_txtbsy = ETXTBSY;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
11
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
12 int error_io = EIO;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
13
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
14 int error_exist = EEXIST;
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
15
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
16 int error_timeout = ETIMEDOUT;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
17
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
18 int error_inprogress = EINPROGRESS;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
19
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
20 int error_wouldblock = EWOULDBLOCK;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
21
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
22 int error_again = EAGAIN;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
23
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
24 int error_pipe = EPIPE;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
25
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
26 int error_perm = EPERM;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
27
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
28 int error_acces = EACCES;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
29
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
30 int error_nodevice = ENXIO;
0
2cb46628feec from cdb-0.75 per http://cr.yp.to/cdb.html,
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
31
3
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
32 int error_proto = EPROTO;
c7c914a43c06 fix errno conflict (twice?)
Henry S. Thompson <ht@inf.ed.ac.uk>
parents: 0
diff changeset
33