Changeset 7bb6b06 in mainline for kernel/generic/src
- Timestamp:
- 2006-09-10T21:21:39Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9a5b556
- Parents:
- 208fa65
- Location:
- kernel/generic/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/printf_core.c
r208fa65 r7bb6b06 393 393 * FLAGS:@n 394 394 * - "#" Force to print prefix. 395 * For conversion \%o the prefix is 0, for %x and \%X prefixes are 0x and 0X395 * For conversion \%o the prefix is 0, for \%x and \%X prefixes are 0x and 0X 396 396 * and for conversion \%b the prefix is 0b. 397 397 * -
kernel/generic/src/proc/task.c
r208fa65 r7bb6b06 68 68 * @li the tasks_lock is held, 69 69 * @li the task's lock is held when task's lock is acquired before releasing tasks_lock or 70 * @li the task's refcount is gr ater than 070 * @li the task's refcount is greater than 0 71 71 * 72 72 */ … … 436 436 * and no new threads can be created. 437 437 */ 438 438 439 439 ipc_cleanup(); 440 440 futex_cleanup(); -
kernel/generic/src/sysinfo/sysinfo.c
r208fa65 r7bb6b06 79 79 80 80 if (subtree == NULL) { 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 81 sysinfo_item_t *item = malloc(sizeof(sysinfo_item_t), 0); 82 int i = 0, j; 83 84 ASSERT(item); 85 *psubtree = item; 86 item->next = NULL; 87 item->val_type = SYSINFO_VAL_UNDEFINED; 88 item->subinfo.table = NULL; 89 90 while (name[i] && (name[i] != '.')) 91 i++; 92 93 item->name = malloc(i, 0); 94 ASSERT(item->name); 95 96 for (j = 0; j < i; j++) 97 item->name[j] = name[j]; 98 item->name[j] = 0; 99 100 if (name[i]) { /* =='.' */ 101 item->subinfo_type = SYSINFO_SUBINFO_TABLE; 102 return sysinfo_create_path(name + i + 1, &(item->subinfo.table)); 103 } 104 item->subinfo_type = SYSINFO_SUBINFO_NONE; 105 return item; 106 106 } 107 107
Note:
See TracChangeset
for help on using the changeset viewer.