Lines Matching refs:path
157 static char path[PATH_MAX * 2];
162 /* Set the original executable path in the environment. */
163 status = _NSGetExecutablePath(path, &size);
171 * as a cleaned up absolute path though,
172 * therefore call realpath on dirname(path)
174 char* slash = strrchr(path, '/');
179 if (realpath(path, real_path) == NULL) {
180 err(1, "realpath: %s", path);
185 err(1, "realpath: %s", path);
190 err(1, "realpath: %s", path);
194 err(1, "realpath: %s", path);
196 if (strlcat(real_path, path, sizeof(real_path)) > sizeof(real_path)) {
198 err(1, "realpath: %s", path);