Searched refs:numstr (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_open_test.c | 24 static int safe_int(const char *numstr, int *converted) in safe_int() argument 30 sli = strtol(numstr, &err, 0); in safe_int() 37 if (err == numstr || *err != '\0') in safe_int() 102 char *numstr; in get_pid_from_fdinfo_file() local 107 numstr = trim_whitespace_in_place(line + 4); in get_pid_from_fdinfo_file() 108 ret = safe_int(numstr, &result); in get_pid_from_fdinfo_file()
|
/openbmc/linux/tools/testing/selftests/net/af_unix/ |
H A D | scm_pidfd.c | 34 static int safe_int(const char *numstr, int *converted) in safe_int() argument 40 sli = strtol(numstr, &err, 0); in safe_int() 47 if (err == numstr || *err != '\0') in safe_int() 110 char *numstr; in get_pid_from_fdinfo_file() local 115 numstr = trim_whitespace_in_place(line + 4); in get_pid_from_fdinfo_file() 116 ret = safe_int(numstr, &result); in get_pid_from_fdinfo_file()
|
/openbmc/qemu/ui/ |
H A D | ui-qmp-cmds.c | 68 const char *numstr = NULL; in qmp_expire_password() local 77 numstr = whenstr + 1; in qmp_expire_password() 80 numstr = whenstr; in qmp_expire_password() 83 if (numstr) { in qmp_expire_password() 84 if (qemu_strtou64(numstr, NULL, 10, &num) < 0) { in qmp_expire_password()
|
/openbmc/qemu/target/ppc/ |
H A D | ppc-qmp-cmds.c | 119 static int ppc_cpu_get_reg_num(const char *numstr, int maxnum, int *pregnum) in ppc_cpu_get_reg_num() argument 124 if (!*numstr) { in ppc_cpu_get_reg_num() 128 regnum = strtoul(numstr, &endptr, 10); in ppc_cpu_get_reg_num()
|
/openbmc/linux/tools/perf/util/ |
H A D | data-convert-bt.c | 267 char numstr[5]; in string_set_value() local 269 snprintf(numstr, sizeof(numstr), "\\x%02x", in string_set_value() 281 memcpy(buffer + p, numstr, 4); in string_set_value()
|