MCPcopy Create free account
hub / github.com/acl-dev/acl / acl_process_path

Function acl_process_path

lib_acl/src/stdlib/sys/acl_process.c:46–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45#ifdef ACL_LINUX
46const char *acl_process_path(void)
47{
48 const char *myname = "acl_process_path";
49 char *buf_ptr = get_tls_buf();
50 int ret;
51
52 ret = readlink("/proc/self/exe", buf_ptr, BUF_SIZE);
53 if (ret < 0) {
54 acl_msg_error("%s(%d): readlink error(%s)",
55 myname, __LINE__, acl_last_serror());
56 return (NULL);
57 }
58 return (buf_ptr);
59}
60
61const char *acl_getcwd(void)
62{

Callers 6

run_aloneMethod · 0.85
mainFunction · 0.85
run_aloneMethod · 0.85
run_aloneMethod · 0.85
globalMethod · 0.85
mainFunction · 0.85

Calls 3

get_tls_bufFunction · 0.85
acl_msg_errorFunction · 0.85
acl_last_serrorFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…