Changeset 8f466fc in mainline
- Timestamp:
- 2011-05-13T14:48:09Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e0f52bf
- Parents:
- 56273bb
- Location:
- uspace/lib/c/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/adt/fifo.h
r56273bb r8f466fc 51 51 typedef unsigned long fifo_index_t; 52 52 53 #define FIFO_CREATE_STATIC(name, t, itms) 54 struct { 55 t fifo[(itms)]; 56 fifo_count_t items; 57 fifo_index_t head; 58 fifo_index_t tail; 53 #define FIFO_CREATE_STATIC(name, t, itms) \ 54 struct { \ 55 t fifo[(itms)]; \ 56 fifo_count_t items; \ 57 fifo_index_t head; \ 58 fifo_index_t tail; \ 59 59 } name 60 60 -
uspace/lib/c/include/adt/list.h
r56273bb r8f466fc 47 47 * 48 48 * @param name Name of the new statically allocated list. 49 * 49 50 */ 50 51 #define LIST_INITIALIZE(name) link_t name = { \ … … 58 59 * 59 60 * @param link Pointer to link_t structure to be initialized. 61 * 60 62 */ 61 63 static inline void link_initialize(link_t *link) … … 70 72 * 71 73 * @param head Pointer to link_t structure representing head of the list. 74 * 72 75 */ 73 76 static inline void list_initialize(link_t *head) … … 83 86 * @param link Pointer to link_t structure to be added. 84 87 * @param head Pointer to link_t structure representing head of the list. 88 * 85 89 */ 86 90 static inline void list_prepend(link_t *link, link_t *head) … … 98 102 * @param link Pointer to link_t structure to be added. 99 103 * @param head Pointer to link_t structure representing head of the list. 104 * 100 105 */ 101 106 static inline void list_append(link_t *link, link_t *head) … … 123 128 * Remove item from doubly-linked circular list. 124 129 * 125 * @param link Pointer to link_t structure to be removed from the list it is contained in. 130 * @param link Pointer to link_t structure to be removed from the list 131 * it is contained in. 132 * 126 133 */ 127 134 static inline void list_remove(link_t *link) … … 137 144 * 138 145 * @param head Pointer to link_t structure representing head of the list. 146 * 139 147 */ 140 148 static inline int list_empty(link_t *head) … … 142 150 return ((head->next == head) ? 1 : 0); 143 151 } 144 145 152 146 153 /** Split or concatenate headless doubly-linked circular list … … 151 158 * concatenates splitted lists and splits concatenated lists. 152 159 * 153 * @param part1 Pointer to link_t structure leading the first (half of the headless) list. 154 * @param part2 Pointer to link_t structure leading the second (half of the headless) list. 160 * @param part1 Pointer to link_t structure leading the first 161 * (half of the headless) list. 162 * @param part2 Pointer to link_t structure leading the second 163 * (half of the headless) list. 164 * 155 165 */ 156 166 static inline void headless_list_split_or_concat(link_t *part1, link_t *part2) … … 165 175 } 166 176 167 168 177 /** Split headless doubly-linked circular list 169 178 * 170 179 * Split headless doubly-linked circular list. 171 180 * 172 * @param part1 Pointer to link_t structure leading the first half of the headless list. 173 * @param part2 Pointer to link_t structure leading the second half of the headless list. 181 * @param part1 Pointer to link_t structure leading 182 * the first half of the headless list. 183 * @param part2 Pointer to link_t structure leading 184 * the second half of the headless list. 185 * 174 186 */ 175 187 static inline void headless_list_split(link_t *part1, link_t *part2) … … 182 194 * Concatenate two headless doubly-linked circular lists. 183 195 * 184 * @param part1 Pointer to link_t structure leading the first headless list. 185 * @param part2 Pointer to link_t structure leading the second headless list. 196 * @param part1 Pointer to link_t structure leading 197 * the first headless list. 198 * @param part2 Pointer to link_t structure leading 199 * the second headless list. 200 * 186 201 */ 187 202 static inline void headless_list_concat(link_t *part1, link_t *part2) … … 190 205 } 191 206 192 #define list_get_instance(link, type, member) ((type *) (((void *)(link)) - ((void *) &(((type *) NULL)->member)))) 207 #define list_get_instance(link, type, member) \ 208 ((type *) (((void *)(link)) - ((void *) &(((type *) NULL)->member)))) 193 209 194 210 extern int list_member(const link_t *link, const link_t *head); -
uspace/lib/c/include/adt/measured_strings.h
r56273bb r8f466fc 61 61 extern measured_string_t *measured_string_create_bulk(const uint8_t *, size_t); 62 62 extern measured_string_t *measured_string_copy(measured_string_t *); 63 63 64 extern int measured_strings_receive(measured_string_t **, uint8_t **, size_t); 64 65 extern int measured_strings_reply(const measured_string_t *, size_t); -
uspace/lib/c/include/fibril.h
r56273bb r8f466fc 70 70 int (*func)(void *); 71 71 tcb_t *tcb; 72 72 73 73 struct fibril *clean_after_me; 74 74 int retval; 75 75 int flags; 76 76 77 77 fibril_owner_info_t *waits_for; 78 78 } fibril_t;
Note:
See TracChangeset
for help on using the changeset viewer.