15 #ifndef _RTEMS_SCORE_STATUS_H 16 #define _RTEMS_SCORE_STATUS_H 33 STATUS_CLASSIC_INCORRECT_STATE = 14,
34 STATUS_CLASSIC_INTERNAL_ERROR = 13,
35 STATUS_CLASSIC_INVALID_NUMBER = 10,
36 STATUS_CLASSIC_INVALID_PRIORITY = 19,
37 STATUS_CLASSIC_INVALID_SIZE = 8,
38 STATUS_CLASSIC_NO_MEMORY = 26,
39 STATUS_CLASSIC_NOT_DEFINED = 11,
40 STATUS_CLASSIC_NOT_OWNER_OF_RESOURCE = 23,
41 STATUS_CLASSIC_OBJECT_WAS_DELETED = 7,
42 STATUS_CLASSIC_PROXY_BLOCKING = 29,
43 STATUS_CLASSIC_RESOURCE_IN_USE = 12,
44 STATUS_CLASSIC_SUCCESSFUL = 0,
45 STATUS_CLASSIC_TIMEOUT = 6,
46 STATUS_CLASSIC_TOO_MANY = 5,
47 STATUS_CLASSIC_UNSATISFIED = 13
55 #define STATUS_BUILD( classic_status, posix_status ) \ 56 ( ( ( posix_status ) * 256 ) | ( classic_status ) ) 61 #define STATUS_GET_CLASSIC( status ) \ 69 #define STATUS_GET_POSIX( status ) \ 76 STATUS_BARRIER_AUTOMATICALLY_RELEASED =
77 STATUS_BUILD( STATUS_CLASSIC_SUCCESSFUL, PTHREAD_BARRIER_SERIAL_THREAD ),
79 STATUS_BUILD( STATUS_CLASSIC_INCORRECT_STATE, EDEADLK ),
81 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, EAGAIN ),
82 STATUS_INCORRECT_STATE =
83 STATUS_BUILD( STATUS_CLASSIC_INCORRECT_STATE, EINVAL ),
85 STATUS_BUILD( STATUS_CLASSIC_INTERNAL_ERROR, EINTR ),
86 STATUS_INVALID_NUMBER =
87 STATUS_BUILD( STATUS_CLASSIC_INVALID_NUMBER, EINVAL ),
88 STATUS_INVALID_PRIORITY =
89 STATUS_BUILD( STATUS_CLASSIC_INVALID_PRIORITY, EINVAL ),
90 STATUS_MAXIMUM_COUNT_EXCEEDED =
91 STATUS_BUILD( STATUS_CLASSIC_INTERNAL_ERROR, EOVERFLOW ),
92 STATUS_MESSAGE_INVALID_SIZE =
93 STATUS_BUILD( STATUS_CLASSIC_INVALID_SIZE, EMSGSIZE ),
94 STATUS_MESSAGE_QUEUE_INVALID_NUMBER =
95 STATUS_BUILD( STATUS_CLASSIC_INVALID_NUMBER, ENOSPC ),
96 STATUS_MESSAGE_QUEUE_INVALID_SIZE =
97 STATUS_BUILD( STATUS_CLASSIC_INVALID_SIZE, ENOSPC ),
98 STATUS_MESSAGE_QUEUE_NO_MEMORY =
99 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, ENOSPC ),
100 STATUS_MESSAGE_QUEUE_WAIT_IN_ISR =
101 STATUS_BUILD( STATUS_CLASSIC_INTERNAL_ERROR, EAGAIN ),
102 STATUS_MESSAGE_QUEUE_WAS_DELETED =
103 STATUS_BUILD( STATUS_CLASSIC_OBJECT_WAS_DELETED, EBADF ),
106 STATUS_MUTEX_CEILING_VIOLATED =
107 STATUS_BUILD( STATUS_CLASSIC_INVALID_PRIORITY, EINVAL ),
108 STATUS_NESTING_NOT_ALLOWED =
109 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, EDEADLK ),
111 STATUS_BUILD( STATUS_CLASSIC_NO_MEMORY, EINVAL ),
113 STATUS_BUILD( STATUS_CLASSIC_NOT_DEFINED, EINVAL ),
115 STATUS_BUILD( STATUS_CLASSIC_NOT_OWNER_OF_RESOURCE, EPERM ),
116 STATUS_OBJECT_WAS_DELETED =
117 STATUS_BUILD( STATUS_CLASSIC_OBJECT_WAS_DELETED, EINVAL ),
118 STATUS_PROXY_BLOCKING =
119 STATUS_BUILD( STATUS_CLASSIC_PROXY_BLOCKING, EINVAL ),
120 STATUS_RESOURCE_IN_USE =
121 STATUS_BUILD( STATUS_CLASSIC_RESOURCE_IN_USE, EBUSY ),
122 STATUS_RESULT_TOO_LARGE =
123 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, ERANGE ),
125 STATUS_BUILD( STATUS_CLASSIC_SUCCESSFUL, 0 ),
127 STATUS_BUILD( STATUS_CLASSIC_TIMEOUT, ETIMEDOUT ),
129 STATUS_BUILD( STATUS_CLASSIC_TOO_MANY, EAGAIN ),
131 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, EBUSY ),
133 STATUS_BUILD( STATUS_CLASSIC_UNSATISFIED, EAGAIN )
This header file provides basic definitions used by the API and the implementation.