Lines Matching defs:path

58 static char	lpath[PATH_MAX];	/* for ept->path */
71 * Description: copy path limiting size to destination capacity
74 * Pointer to first byte of path to copy
81 /* assure return path does not overflow */ \
85 /* copy return path to local storage */ \
96 * path - (char *) - [RO, *RO]
97 * - path to search for in contents file
98 * - If path is "*", then the next entry is returned;
99 * the next entry always matches this path
108 * - specified path not in the contents file
110 * - specified path found in contents file
111 * - this value is always returned if path is "*" and the
118 * - NOTE: the ept->path item points to a path that is statically
120 * - NOTE: the ept->ainfo.local item points to a path that is
125 srchcfile(struct cfent *ept, char *path, PKGserver server)
162 ept->path = (char *)NULL;
206 /* if the path to scan for is empty, act like no path was specified */
208 if ((path != NULL) && (*path == '\0')) {
209 path = NULL;
213 * if path to search for is "*", then we will return the first path
217 if ((path != NULL) && (path[0] != '/')) {
218 if (strcmp(path, "*") != 0) {
225 /* attempt to narrow down the search for the specified path */
227 if (anypath == 0 && path == NULL)
232 curbuf = pkggetentry_named(server, path, &linelen, &cpath_len);
240 * current entry DOES start with absolute path
241 * set ept->path to point to lpath
245 /* copy first token into path element of passed structure */
251 ept->path = lpath;
253 /* copy path found to 'lpath' */
256 /* get first character following the end of the path */
261 * we want to return information about this path in
262 * the structure provided, so parse any local path
266 /* parse local path specification */