Home
last modified time | relevance | path

Searched refs:numstr (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/testing/selftests/pidfd/
Dpidfd_open_test.c24 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()
/linux-6.12.1/tools/testing/selftests/net/af_unix/
Dscm_pidfd.c34 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()
/linux-6.12.1/samples/landlock/
Dsandboxer.c63 static int str2num(const char *numstr, __u64 *num_dst) in str2num() argument
70 num = strtoull(numstr, &endptr, 10); in str2num()
74 else if ((*numstr == '\0') || (*endptr != '\0')) in str2num()
/linux-6.12.1/tools/perf/util/
Ddata-convert-bt.c267 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()