-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherrno.h
More file actions
25 lines (21 loc) · 759 Bytes
/
errno.h
File metadata and controls
25 lines (21 loc) · 759 Bytes
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
#ifndef BOLO_ERRNO_H
#define BOLO_ERRNO_H
#define BOLO_ERROR_BASE 512
#define __bolo_errno(n) ((n) + BOLO_ERROR_BASE)
#define BOLO_EUNKNOWN __bolo_errno(0)
#define BOLO_ENOTSET __bolo_errno(1)
#define BOLO_EBADHASH __bolo_errno(2)
#define BOLO_EBADTREE __bolo_errno(3)
#define BOLO_EBADSLAB __bolo_errno(4)
#define BOLO_EBLKFULL __bolo_errno(5)
#define BOLO_EBLKRANGE __bolo_errno(6)
#define BOLO_ENOMAINDB __bolo_errno(7)
#define BOLO_ENODBROOT __bolo_errno(8)
#define BOLO_EBADHMAC __bolo_errno(9)
#define BOLO_EENDIAN __bolo_errno(10)
#define BOLO_ENOSLAB __bolo_errno(11)
#define BOLO_ENOBLOCK __bolo_errno(12)
#define BOLO_EBLKCONT __bolo_errno(13)
#define BOLO_ERDONLY __bolo_errno(14)
#define BOLO_ERROR_TOP __bolo_errno(14)
#endif