Home | History | Annotate | Download | only in glob

Lines Matching refs:directory

297 static int glob_in_dir __P ((const char *pattern, const char *directory,
355 If a directory cannot be opened or read and ERRFUNC is not nil,
520 case is nothing but a notation for a directory. */
616 /* Look up home directory. */
697 /* Now construct the full directory. */
738 /* Look up specific user's home directory. */
772 /* If we found a home directory use this. */
792 home directory. */
805 /* Return the directory if we don't check for error or if it exists. */
854 /* The directory name contains metacharacters, so we
855 have to glob for the directory, and then glob for
856 the pattern in each directory found. */
867 /* We have successfully globbed the preceding directory name.
894 /* No matches in this directory. Try the next. */
904 /* Stick the directory on the front of each name. */
953 /* First check whether this really is a directory. */
957 /* No directory, ignore this entry. */
1007 /* Stick the directory on the front of each name. */
1025 /* Append slashes to directory names. */
1209 and matches are searched for in DIRECTORY.
1213 glob_in_dir (pattern, directory, flags, errfunc, pglob)
1215 const char *directory;
1233 if (*directory == 0)
1234 directory = "[]";
1250 size_t dirlen = strlen (directory);
1254 mempcpy (mempcpy (mempcpy (fullname, directory, dirlen),
1258 memcpy (fullname, directory, dirlen);
1290 ? (*pglob->gl_opendir) (directory)
1291 : (__ptr_t) opendir (directory));
1295 && ((errfunc != NULL && (*errfunc) (directory, errno))