Lines Matching refs:tpath
35 static void get_exec_path(char *tpath, size_t size)
40 snprintf(tpath, size, "/proc/%d/exe", (int) getpid());
41 tpath[size - 1] = 0;
43 path = strdup(tpath);
46 len = readlink(path, tpath, size);
47 tpath[len] = 0;
55 char tpath[PATH_MAX];
60 memset(tpath, 0, sizeof(tpath));
61 get_exec_path(tpath, sizeof(tpath));
63 bfdf = bfd_openr(tpath, NULL);