Lines Matching refs:path
166 // 2=make path (already exists is ok)
168 // returns 0 = path ok, 1 = error
174 // mkdir -p one/two/three is not an error if the path already exists,
188 // find next '/', but don't try to mkdir "" at start of absolute path
217 // Split a path into linked list of components, tracking head and tail of list.
219 struct string_list **splitpath(char *path, struct string_list **list)
221 char *new = path;
227 if (*path && *path != '/') continue;
228 len = path-new;
236 new = path+1;
237 } while (*path++);
242 // Find all file in a colon-separated path with access type "type" (generally
246 struct string_list *find_in_path(char *path, char *filename)
251 if (!path) return 0;
255 char *res, *next = strchr(path, ':');
256 int len = next ? next-path : strlen(path);
264 memcpy(res = rnext->str, path, len);
278 path += len;
279 path++;
373 // fast path ASCII
1115 // Fast path: only matching a filename (no path) that fits in comm.
1120 // If we have a path to existing file only match if same inode
1320 int readlinkat0(int dirfd, char *path, char *buf, int len)
1324 len = readlinkat(dirfd, path, buf, len-1);
1331 int readlink0(char *path, char *buf, int len)
1333 return readlinkat0(AT_FDCWD, path, buf, len);