Home
last modified time | relevance | path

Searched refs:pidstr (Results 1 – 9 of 9) sorted by relevance

/external/strace/tests/
Dqual_fault.c165 char pidstr[sizeof(ret) * 3]; in main() local
166 int len = snprintf(pidstr, sizeof(pidstr), "%d", ret); in main()
167 assert(len > 0 && len < (int) sizeof(pidstr)); in main()
168 assert(write(pidfd, pidstr, len) == len); in main()
/external/strace/tests-mx32/
Dqual_fault.c165 char pidstr[sizeof(ret) * 3]; in main() local
166 int len = snprintf(pidstr, sizeof(pidstr), "%d", ret); in main()
167 assert(len > 0 && len < (int) sizeof(pidstr)); in main()
168 assert(write(pidfd, pidstr, len) == len); in main()
/external/strace/tests-m32/
Dqual_fault.c165 char pidstr[sizeof(ret) * 3]; in main() local
166 int len = snprintf(pidstr, sizeof(pidstr), "%d", ret); in main()
167 assert(len > 0 && len < (int) sizeof(pidstr)); in main()
168 assert(write(pidfd, pidstr, len) == len); in main()
/external/iproute2/ip/
Dipnetns.c471 int netns_identify_pid(const char *pidstr, char *name, int len) in netns_identify_pid() argument
481 snprintf(net_path, sizeof(net_path), "/proc/%s/ns/net", pidstr); in netns_identify_pid()
531 const char *pidstr; in netns_identify() local
536 pidstr = "self"; in netns_identify()
541 pidstr = argv[0]; in netns_identify()
542 if (!is_pid(pidstr)) { in netns_identify()
544 pidstr); in netns_identify()
549 rc = netns_identify_pid(pidstr, name, sizeof(name)); in netns_identify()
Dip_common.h90 int netns_identify_pid(const char *pidstr, char *name, int len);
/external/toybox/lib/
Dlib.c902 int sig_to_num(char *pidstr) in sig_to_num() argument
906 if (pidstr) { in sig_to_num()
909 i = estrtol(pidstr, &s, 10); in sig_to_num()
912 if (!strncasecmp(pidstr, "sig", 3)) pidstr+=3; in sig_to_num()
915 if (!pidstr) xputs(signames[i].name); in sig_to_num()
916 else if (!strcasecmp(pidstr, signames[i].name)) return signames[i].num; in sig_to_num()
Dlib.h367 int sig_to_num(char *pidstr);
/external/openssh/
Dssh-agent.c1213 char *shell, *format, *pidstr, *agentsocket = NULL; in main() local
1309 pidstr = getenv(SSH_AGENTPID_ENV_NAME); in main()
1310 if (pidstr == NULL) { in main()
1315 pid = (int)strtonum(pidstr, 2, INT_MAX, &errstr); in main()
1319 SSH_AGENTPID_ENV_NAME, pidstr, errstr); in main()
/external/linux-kselftest/tools/testing/selftests/x86/
Dprotection_keys.c123 char pidstr[32]; in tracing_on() local
128 sprintf(pidstr, "%d", getpid()); in tracing_on()
137 cat_into_file(pidstr, TRACEDIR "/set_ftrace_pid"); in tracing_on()