MCPcopy Index your code
hub / github.com/git/git / git_get_exec_path_procfs

Function git_get_exec_path_procfs

exec-cmd.c:93–102  ·  view source on GitHub ↗

* Resolves the executable path by examining a procfs symlink. * * Returns 0 on success, -1 on failure. */

Source from the content-addressed store, hash-verified

91 * Returns 0 on success, -1 on failure.
92 */
93static int git_get_exec_path_procfs(struct strbuf *buf)
94{
95 if (strbuf_realpath(buf, PROCFS_EXECUTABLE_PATH, 0)) {
96 trace_printf(
97 "trace: resolved executable path from procfs: %s\n",
98 buf->buf);
99 return 0;
100 }
101 return -1;
102}
103#endif /* PROCFS_EXECUTABLE_PATH */
104
105#ifdef HAVE_BSD_KERN_PROC_SYSCTL

Callers 1

exec-cmd.cFile · 0.85

Calls 1

strbuf_realpathFunction · 0.85

Tested by

no test coverage detected