proc_path 723 lib/common/utils.c char proc_path[PATH_MAX], exe_path[PATH_MAX]; proc_path 726 lib/common/utils.c snprintf(proc_path, sizeof(proc_path), "/proc/%lu/exe", (long unsigned int)getpid()); proc_path 729 lib/common/utils.c if(readlink(proc_path, exe_path, PATH_MAX - 1) < 0) { proc_path 745 lib/common/utils.c char proc_path[PATH_MAX], exe_path[PATH_MAX], myexe_path[PATH_MAX]; proc_path 748 lib/common/utils.c snprintf(proc_path, sizeof(proc_path), "/proc/%lu/exe", pid); proc_path 750 lib/common/utils.c rc = readlink(proc_path, exe_path, PATH_MAX - 1); proc_path 752 lib/common/utils.c crm_perror(LOG_INFO, "Could not read from %s", proc_path); proc_path 755 lib/common/utils.c crm_perror(LOG_ERR, "Could not read from %s", proc_path); proc_path 763 lib/common/utils.c rc = snprintf(myexe_path, sizeof(proc_path), CRM_DAEMON_DIR"/%s", daemon); proc_path 766 lib/common/utils.c rc = snprintf(myexe_path, sizeof(proc_path), "%s", daemon);