Searched refs:endptr (Results 1 – 11 of 11) sorted by relevance
/system/core/toolbox/ |
D | chown.c | 43 char* endptr; in chown_main() local 44 uid = (int) strtoul(user, &endptr, 0); in chown_main() 45 if (endptr == user) { // no conversion in chown_main() 56 char* endptr; in chown_main() local 57 gid = (int) strtoul(group, &endptr, 0); in chown_main() 58 if (endptr == group) { // no conversion in chown_main()
|
D | sleep.c | 46 char *endptr; in sleep_main() local 52 seconds = strtoul(argv[1], &endptr, 10); in sleep_main() 54 if (endptr == argv[1]) { in sleep_main()
|
D | kill.c | 109 char *endptr; in kill_main() local 122 sig = strtol(arg, &endptr, 10); in kill_main() 123 if (*endptr != '\0') { in kill_main()
|
D | lsof.c | 223 char* endptr; in lsof_main() local 225 pid = strtol(argv[1], &endptr, 10); in lsof_main() 245 pid = strtol(de->d_name, &endptr, 10); in lsof_main() 246 if (*endptr != '\0') in lsof_main()
|
/system/core/init/ |
D | ueventd.c | 119 char *endptr; in set_device_permission() local 157 perm = strtol(args[1], &endptr, 8); in set_device_permission() 158 if (!endptr || *endptr != '\0') { in set_device_permission()
|
/system/core/fastboot/ |
D | fastboot.c | 762 char *endptr; in parse_num() local 765 num = strtoull(arg, &endptr, 0); in parse_num() 766 if (endptr == arg) { in parse_num() 770 if (*endptr == 'k' || *endptr == 'K') { in parse_num() 775 endptr++; in parse_num() 776 } else if (*endptr == 'm' || *endptr == 'M') { in parse_num() 781 endptr++; in parse_num() 782 } else if (*endptr == 'g' || *endptr == 'G') { in parse_num() 787 endptr++; in parse_num() 790 if (*endptr != '\0') { in parse_num() [all …]
|
/system/core/libsysutils/src/ |
D | FrameworkListener.cpp | 132 char *endptr; in dispatchCommand() local 133 int cmdNum = (int)strtol(tmp, &endptr, 0); in dispatchCommand() 134 if (endptr == NULL || *endptr != '\0') { in dispatchCommand()
|
/system/extras/ext4_utils/ |
D | ext4_utils.c | 432 char *endptr; in parse_num() local 433 u64 num = strtoull(arg, &endptr, 10); in parse_num() 434 if (*endptr == 'k' || *endptr == 'K') in parse_num() 436 else if (*endptr == 'm' || *endptr == 'M') in parse_num() 438 else if (*endptr == 'g' || *endptr == 'G') in parse_num()
|
/system/extras/procmem/ |
D | procmem.c | 74 char *endptr; in main() local 96 pid = (pid_t)strtol(argv[argc - 1], &endptr, 10); in main() 97 if (*endptr != '\0') { in main()
|
/system/vold/ |
D | CommandListener.cpp | 347 char *endptr; in runCommand() local 348 gid_t gid = (gid_t) strtoul(argv[3], &endptr, 10); in runCommand() 349 if (*endptr != '\0') { in runCommand()
|
/system/core/sdcard/ |
D | sdcard.c | 1318 char* endptr = NULL; in main() local 1320 uid = strtoul(arg, &endptr, 10); in main() 1321 if (*endptr != '\0' || errno != 0) { in main() 1326 char* endptr = NULL; in main() local 1328 gid = strtoul(arg, &endptr, 10); in main() 1329 if (*endptr != '\0' || errno != 0) { in main()
|