Lines Matching refs:tpath
36 static void get_exec_path(char *tpath, size_t size)
41 snprintf(tpath, size, "/proc/%d/exe", (int) getpid());
42 tpath[size - 1] = 0;
44 path = strdup(tpath);
47 len = readlink(path, tpath, size);
48 tpath[len] = 0;
56 char tpath[PATH_MAX];
61 memset(tpath, 0, sizeof(tpath));
62 get_exec_path(tpath, sizeof(tpath));
64 bfdf = bfd_openr(tpath, NULL);