Home
last modified time | relevance | path

Searched refs:endptr (Results 1 – 19 of 19) sorted by relevance

/system/core/libpackagelistparser/
Dpackagelistparser.c63 char *endptr; in parse_gids() local
72 gid = strtoul(token, &endptr, 10); in parse_gids()
73 if (*endptr != '\0') { in parse_gids()
97 char *endptr; in packagelist_parse() local
141 tmp = strtoul(cur, &endptr, 10); in packagelist_parse()
142 if (*endptr != '\0') { in packagelist_parse()
164 tmp = strtoul(cur, &endptr, 10); in packagelist_parse()
165 if (*endptr != '\0') { in packagelist_parse()
/system/core/metricsd/
Dmetrics_client.cc55 char *endptr; in ParseInt() local
56 int value = strtol(arg, &endptr, 0); in ParseInt()
57 if (*endptr != '\0') { in ParseInt()
65 char *endptr; in ParseDouble() local
66 double value = strtod(arg, &endptr); in ParseDouble()
67 if (*endptr != '\0') { in ParseDouble()
/system/vold/
DScryptParameters.cpp35 char *endptr; in parse_scrypt_parameters() local
36 params[i] = strtol(token, &endptr, 10); in parse_scrypt_parameters()
41 if ((*token == '\0') || (*endptr != '\0') || params[i] < 0 || params[i] > 255) { in parse_scrypt_parameters()
DCommandListener.cpp440 char *endptr; in runCommand() local
441 gid_t gid = (gid_t) strtoul(argv[3], &endptr, 10); in runCommand()
442 if (*endptr != '\0') { in runCommand()
/system/core/init/
Dueventd.cpp105 char *endptr; in set_device_permission() local
147 perm = strtol(args[1], &endptr, 8); in set_device_permission()
148 if (!endptr || *endptr != '\0') { in set_device_permission()
/system/core/libsysutils/src/
DFrameworkListener.cpp154 char *endptr; in dispatchCommand() local
155 int cmdNum = (int)strtol(tmp, &endptr, 0); in dispatchCommand()
156 if (endptr == NULL || *endptr != '\0') { in dispatchCommand()
/system/extras/simpleperf/
Dcmd_record.cpp305 char* endptr; in ParseOptions() local
306 sample_period_ = strtoull(args[i].c_str(), &endptr, 0); in ParseOptions()
307 if (*endptr != '\0' || sample_period_ == 0) { in ParseOptions()
324 char* endptr; in ParseOptions() local
325 uint64_t size = strtoull(strs[1].c_str(), &endptr, 0); in ParseOptions()
326 if (*endptr != '\0' || size > UINT_MAX) { in ParseOptions()
359 char* endptr; in ParseOptions() local
360 sample_freq_ = strtoull(args[i].c_str(), &endptr, 0); in ParseOptions()
361 if (*endptr != '\0' || sample_freq_ == 0) { in ParseOptions()
386 char* endptr; in ParseOptions() local
[all …]
Devent_type.cpp51 char* endptr; in GetTracepointEventTypes() local
52 uint64_t id = strtoull(id_content.c_str(), &endptr, 10); in GetTracepointEventTypes()
53 if (endptr == id_content.c_str()) { in GetTracepointEventTypes()
/system/core/libcutils/
Dtrace-dev.c122 char *endptr; in atrace_get_property() local
127 tags = strtoull(value, &endptr, 0); in atrace_get_property()
128 if (value[0] == '\0' || *endptr != '\0') { in atrace_get_property()
/system/core/fastboot/
Dfastboot.cpp1263 char *endptr; in parse_num() local
1266 num = strtoull(arg, &endptr, 0); in parse_num()
1267 if (endptr == arg) { in parse_num()
1271 if (*endptr == 'k' || *endptr == 'K') { in parse_num()
1276 endptr++; in parse_num()
1277 } else if (*endptr == 'm' || *endptr == 'M') { in parse_num()
1282 endptr++; in parse_num()
1283 } else if (*endptr == 'g' || *endptr == 'G') { in parse_num()
1288 endptr++; in parse_num()
1291 if (*endptr != '\0') { in parse_num()
[all …]
/system/extras/ext4_utils/
Dext4_utils.c583 char *endptr; in parse_num() local
584 u64 num = strtoull(arg, &endptr, 10); in parse_num()
585 if (*endptr == 'k' || *endptr == 'K') in parse_num()
587 else if (*endptr == 'm' || *endptr == 'M') in parse_num()
589 else if (*endptr == 'g' || *endptr == 'G') in parse_num()
/system/netd/server/
DNetdConstants.cpp196 char *endptr; in parsePrefix() local
198 templen = strtoul(prefixlenString, &endptr, 10); in parsePrefix()
199 if (*endptr || templen > 255) { in parsePrefix()
/system/extras/perfprofd/quipper/original-kernel-headers/tools/perf/util/include/linux/kernel/
Dkernel.h98 simple_strtoul(const char *nptr, char **endptr, int base) in simple_strtoul() argument
100 return strtoul(nptr, endptr, base); in simple_strtoul()
/system/extras/procmem/
Dprocmem.c75 char *endptr; in main() local
97 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); in main()
98 if (*endptr != '\0') { in main()
/system/extras/verity/fec/
Dmain.cpp120 char* endptr; in parse_arg() local
123 unsigned long long int value = strtoull(arg, &endptr, 0); in parse_arg()
125 if (arg[0] == '\0' || *endptr != '\0' || in parse_arg()
/system/extras/verity/
Dbuild_verity_tree.cpp182 char* endptr; in main() local
184 unsigned long long int inSize = strtoull(optarg, &endptr, 0); in main()
185 if (optarg[0] == '\0' || *endptr != '\0' || in main()
/system/bt/osi/src/
Dconfig.c160 char *endptr; in config_get_int() local
161 int ret = strtol(entry->value, &endptr, 0); in config_get_int()
162 return (*endptr == '\0') ? ret : def_value; in config_get_int()
/system/core/logcat/tests/
Dlogcat_test.cpp644 char* endptr; in TEST() local
645 const long int suffix_value = strtol(rotated_log_filename_suffix, &endptr, 10); in TEST()
646 EXPECT_EQ(rotated_log_filename_suffix + 2, endptr); in TEST()
/system/bt/btif/src/
Dbtif_dm.c2918 char* endptr; in btif_dm_get_smp_config() local
2924 p_cfg->ble_auth_req = (UINT8) strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2929 p_cfg->ble_io_cap = (UINT8) strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2934 p_cfg->ble_init_key = (UINT8) strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2939 p_cfg->ble_resp_key = (UINT8) strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()
2944 p_cfg->ble_max_key_size = (UINT8) strtoul(pch, &endptr, 16); in btif_dm_get_smp_config()