POK
errno.h
1 /*
2  * POK header
3  *
4  * The following file is a part of the POK project. Any modification should
5  * made according to the POK licence. You CANNOT use this file or a part of
6  * this file is this part of a file for your own project
7  *
8  * For more information on the POK licence, please see our LICENCE FILE
9  *
10  * Please follow the coding guidelines described in doc/CODING_GUIDELINES
11  *
12  * Copyright (c) 2007-2009 POK team
13  *
14  * Created by julien on Thu Jan 15 23:34:13 2009
15  */
16 
17 #include <types.h>
18 
19 extern uint32_t errno;
20 
21 #ifndef __POK_ERRNO_H__
22 #define __POK_ERRNO_H__
23 
24 typedef enum
25 {
26  POK_ERRNO_OK = 0,
27  POK_ERRNO_EINVAL = 1,
28 
29  POK_ERRNO_UNAVAILABLE = 2,
30  POK_ERRNO_TOOMANY = 5,
31  POK_ERRNO_EPERM = 6,
32  POK_ERRNO_EXISTS = 7,
33 
34 
35  POK_ERRNO_ERANGE = 8,
36  POK_ERRNO_EDOM = 9,
37  POK_ERRNO_HUGE_VAL = 10,
38 
39  POK_ERRNO_EFAULT = 11,
40 
41  POK_ERRNO_THREAD = 49,
42  POK_ERRNO_THREADATTR = 50,
43 
44  POK_ERRNO_TIME = 100,
45 
46  POK_ERRNO_PARTITION_ATTR = 200,
47 
48  POK_ERRNO_PORT = 301,
49  POK_ERRNO_NOTFOUND = 302,
50  POK_ERRNO_DIRECTION = 303,
51  POK_ERRNO_SIZE = 304,
52  POK_ERRNO_DISCIPLINE = 305,
53  POK_ERRNO_PORTPART = 307,
54  POK_ERRNO_EMPTY = 308,
55  POK_ERRNO_KIND = 309,
56  POK_ERRNO_FULL = 311,
57  POK_ERRNO_READY = 310,
58  POK_ERRNO_TIMEOUT = 250,
59  POK_ERRNO_MODE = 251,
60 
61  POK_ERRNO_LOCKOBJ_UNAVAILABLE = 500,
62  POK_ERRNO_LOCKOBJ_NOTREADY = 501,
63  POK_ERRNO_LOCKOBJ_KIND = 502,
64  POK_ERRNO_LOCKOBJ_POLICY = 503,
65 
66  POK_ERRNO_PARTITION_MODE = 601,
67 
68  POK_ERRNO_PARTITION = 401
69 } pok_ret_t;
70 
71 
72 #endif