Changeset 059a8e4 in mainline
- Timestamp:
- 2012-03-22T10:30:51Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4567b31c, 6514d1f, e0fe4ab
- Parents:
- 971cc0cc
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/str.h
r971cc0cc r059a8e4 97 97 extern bool wstr_remove(wchar_t *str, size_t pos); 98 98 99 extern int str_uint64 (const char *, char **, unsigned int, bool, uint64_t *);99 extern int str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *); 100 100 101 101 extern void order_suffix(const uint64_t, uint64_t *, char *); -
kernel/generic/src/console/cmd.c
r971cc0cc r059a8e4 906 906 ((char *) argv->buffer)[0] <= '9') { 907 907 uint64_t value; 908 rc = str_uint64 ((char *) argv->buffer, NULL, 0, true, &value);908 rc = str_uint64_t((char *) argv->buffer, NULL, 0, true, &value); 909 909 if (rc == EOK) 910 910 addr = (uintptr_t) value; -
kernel/generic/src/console/kconsole.c
r971cc0cc r059a8e4 472 472 /* It's a number - convert it */ 473 473 uint64_t value; 474 int rc = str_uint64 (text, NULL, 0, true, &value);474 int rc = str_uint64_t(text, NULL, 0, true, &value); 475 475 switch (rc) { 476 476 case EINVAL: -
kernel/generic/src/lib/str.c
r971cc0cc r059a8e4 893 893 * 894 894 */ 895 int str_uint64 (const char *nptr, char **endptr, unsigned int base,895 int str_uint64_t(const char *nptr, char **endptr, unsigned int base, 896 896 bool strict, uint64_t *result) 897 897 { -
kernel/generic/src/sysinfo/stats.c
r971cc0cc r059a8e4 474 474 /* Parse the task ID */ 475 475 task_id_t task_id; 476 if (str_uint64 (name, NULL, 0, true, &task_id) != EOK)476 if (str_uint64_t(name, NULL, 0, true, &task_id) != EOK) 477 477 return ret; 478 478 … … 545 545 /* Parse the thread ID */ 546 546 thread_id_t thread_id; 547 if (str_uint64 (name, NULL, 0, true, &thread_id) != EOK)547 if (str_uint64_t(name, NULL, 0, true, &thread_id) != EOK) 548 548 return ret; 549 549 … … 662 662 /* Parse the exception number */ 663 663 uint64_t excn; 664 if (str_uint64 (name, NULL, 0, true, &excn) != EOK)664 if (str_uint64_t(name, NULL, 0, true, &excn) != EOK) 665 665 return ret; 666 666 -
uspace/lib/c/generic/str.c
r971cc0cc r059a8e4 1535 1535 * 1536 1536 */ 1537 int str_uint64 (const char *nptr, char **endptr, unsigned int base,1537 int str_uint64_t(const char *nptr, char **endptr, unsigned int base, 1538 1538 bool strict, uint64_t *result) 1539 1539 { -
uspace/lib/c/include/str.h
r971cc0cc r059a8e4 106 106 extern int str_uint16_t(const char *, char **, unsigned int, bool, uint16_t *); 107 107 extern int str_uint32_t(const char *, char **, unsigned int, bool, uint32_t *); 108 extern int str_uint64 (const char *, char **, unsigned int, bool, uint64_t *);108 extern int str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *); 109 109 extern int str_size_t(const char *, char **, unsigned int, bool, size_t *); 110 110 -
uspace/lib/usb/src/dev.c
r971cc0cc r059a8e4 122 122 char *ptr; 123 123 124 rc = str_uint64 (path, &ptr, 10, false, &sid);124 rc = str_uint64_t(path, &ptr, 10, false, &sid); 125 125 if (rc != EOK) { 126 126 return false;
Note:
See TracChangeset
for help on using the changeset viewer.