Changeset f1d6866 in mainline for uspace/lib/c
- Timestamp:
- 2011-09-18T21:22:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcc44ca1
- Parents:
- 85ff862 (diff), 45a9cf4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/lib/c
- Files:
-
- 2 added
- 8 edited
-
Makefile (modified) (1 diff)
-
generic/adt/hash_table.c (modified) (3 diffs)
-
generic/as.c (modified) (1 diff)
-
generic/cfg.c (added)
-
generic/io/io.c (modified) (1 diff)
-
generic/ns.c (modified) (1 diff)
-
include/adt/list.h (modified) (2 diffs)
-
include/as.h (modified) (1 diff)
-
include/cfg.h (added)
-
include/ipc/loc.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/Makefile
r85ff862 rf1d6866 63 63 generic/as.c \ 64 64 generic/cap.c \ 65 generic/cfg.c \ 65 66 generic/clipboard.c \ 66 67 generic/devman.c \ -
uspace/lib/c/generic/adt/hash_table.c
r85ff862 rf1d6866 152 152 153 153 if (keys == h->max_keys) { 154 link_t *cur;155 156 154 /* 157 155 * All keys are known, hash_table_find() can be used to find the … … 159 157 */ 160 158 161 cur = hash_table_find(h, key);159 link_t *cur = hash_table_find(h, key); 162 160 if (cur) { 163 161 list_remove(cur); … … 174 172 hash_index_t chain; 175 173 for (chain = 0; chain < h->entries; chain++) { 176 link_t *cur; 177 178 for (cur = h->entry[chain].head.next; cur != &h->entry[chain].head; 174 for (link_t *cur = h->entry[chain].head.next; 175 cur != &h->entry[chain].head; 179 176 cur = cur->next) { 180 177 if (h->op->compare(key, keys, cur)) { -
uspace/lib/c/generic/as.c
r85ff862 rf1d6866 123 123 * @retval ENOENT Mapping not found. 124 124 */ 125 int as_get_physical_mapping( void *address, uintptr_t *frame)125 int as_get_physical_mapping(const void *address, uintptr_t *frame) 126 126 { 127 127 uintptr_t tmp_frame; -
uspace/lib/c/generic/io/io.c
r85ff862 rf1d6866 418 418 419 419 bytes_used = stream->buf_head - stream->buf_tail; 420 if (bytes_used == 0)421 return;422 420 423 421 /* If buffer has prefetched read data, we need to seek back. */ 424 if ( stream->buf_state == _bs_read)422 if (bytes_used > 0 && stream->buf_state == _bs_read) 425 423 lseek(stream->fd, - (ssize_t) bytes_used, SEEK_CUR); 426 424 427 425 /* If buffer has unwritten data, we need to write them out. */ 428 if ( stream->buf_state == _bs_write)426 if (bytes_used > 0 && stream->buf_state == _bs_write) 429 427 (void) _fwrite(stream->buf_tail, 1, bytes_used, stream); 430 428 -
uspace/lib/c/generic/ns.c
r85ff862 rf1d6866 52 52 { 53 53 async_exch_t *exch = async_exchange_begin(session_ns); 54 if (!exch) 55 return NULL; 54 56 async_sess_t *sess = 55 57 async_connect_me_to(mgmt, exch, service, arg2, arg3); 56 58 async_exchange_end(exch); 59 60 if (!sess) 61 return NULL; 57 62 58 63 /* -
uspace/lib/c/include/adt/list.h
r85ff862 rf1d6866 173 173 * 174 174 */ 175 static inline int list_empty( list_t *list)175 static inline int list_empty(const list_t *list) 176 176 { 177 177 return (list->head.next == &list->head); … … 186 186 * 187 187 */ 188 static inline link_t *list_first( list_t *list)188 static inline link_t *list_first(const list_t *list) 189 189 { 190 190 return ((list->head.next == &list->head) ? NULL : list->head.next); -
uspace/lib/c/include/as.h
r85ff862 rf1d6866 60 60 extern void *set_maxheapsize(size_t); 61 61 extern void *as_get_mappable_page(size_t); 62 extern int as_get_physical_mapping( void *, uintptr_t *);62 extern int as_get_physical_mapping(const void *, uintptr_t *); 63 63 64 64 #endif -
uspace/lib/c/include/ipc/loc.h
r85ff862 rf1d6866 97 97 98 98 #endif 99 100 /** @} 101 */
Note:
See TracChangeset
for help on using the changeset viewer.
