pglob 152 maint/gnulib/lib/glob.c # define GL_READDIR(pglob, stream) ((pglob)->gl_readdir (stream)) pglob 207 maint/gnulib/lib/glob.c glob_lstat (glob_t *pglob, int flags, const char *fullname) pglob 217 maint/gnulib/lib/glob.c ? pglob->GLOB_LSTAT (fullname, &ust.st) pglob 246 maint/gnulib/lib/glob.c glob_t *pglob, size_t alloca_used); pglob 254 maint/gnulib/lib/glob.c is_dir (char const *filename, int flags, glob_t const *pglob) pglob 259 maint/gnulib/lib/glob.c ? pglob->gl_stat (filename, &st) == 0 && S_ISDIR (st.st_mode) pglob 302 maint/gnulib/lib/glob.c glob_t *pglob) pglob 316 maint/gnulib/lib/glob.c if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0) pglob 330 maint/gnulib/lib/glob.c pglob->gl_offs = 0; pglob 334 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 336 maint/gnulib/lib/glob.c pglob->gl_pathv = NULL; pglob 341 maint/gnulib/lib/glob.c if (pglob->gl_offs >= ~((size_t) 0) / sizeof (char *)) pglob 344 maint/gnulib/lib/glob.c pglob->gl_pathv = (char **) malloc ((pglob->gl_offs + 1) pglob 346 maint/gnulib/lib/glob.c if (pglob->gl_pathv == NULL) pglob 349 maint/gnulib/lib/glob.c for (i = 0; i <= pglob->gl_offs; ++i) pglob 350 maint/gnulib/lib/glob.c pglob->gl_pathv[i] = NULL; pglob 436 maint/gnulib/lib/glob.c firstc = pglob->gl_pathc; pglob 449 maint/gnulib/lib/glob.c errfunc, pglob); pglob 458 maint/gnulib/lib/glob.c globfree (pglob); pglob 459 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 476 maint/gnulib/lib/glob.c if (pglob->gl_pathc != firstc) pglob 485 maint/gnulib/lib/glob.c oldcount = pglob->gl_pathc + pglob->gl_offs; pglob 598 maint/gnulib/lib/glob.c int val = __glob (dirname, flags | GLOB_MARK, errfunc, pglob); pglob 600 maint/gnulib/lib/glob.c pglob->gl_flags = ((pglob->gl_flags & ~GLOB_MARK) pglob 607 maint/gnulib/lib/glob.c oldcount = pglob->gl_pathc + pglob->gl_offs; pglob 913 maint/gnulib/lib/glob.c size_t newcount = pglob->gl_pathc + pglob->gl_offs; pglob 919 maint/gnulib/lib/glob.c free (pglob->gl_pathv); pglob 920 maint/gnulib/lib/glob.c pglob->gl_pathv = NULL; pglob 921 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 926 maint/gnulib/lib/glob.c new_gl_pathv = realloc (pglob->gl_pathv, pglob 930 maint/gnulib/lib/glob.c pglob->gl_pathv = new_gl_pathv; pglob 932 maint/gnulib/lib/glob.c if (flags & GLOB_MARK && is_dir (dirname, flags, pglob)) pglob 935 maint/gnulib/lib/glob.c pglob->gl_pathv[newcount] = malloc (dirlen + 2); pglob 936 maint/gnulib/lib/glob.c if (pglob->gl_pathv[newcount] == NULL) pglob 938 maint/gnulib/lib/glob.c p = mempcpy (pglob->gl_pathv[newcount], dirname, dirlen); pglob 947 maint/gnulib/lib/glob.c pglob->gl_pathv[newcount] = dirname; pglob 950 maint/gnulib/lib/glob.c pglob->gl_pathv[newcount] = strdup (dirname); pglob 951 maint/gnulib/lib/glob.c if (pglob->gl_pathv[newcount] == NULL) pglob 955 maint/gnulib/lib/glob.c pglob->gl_pathv[++newcount] = NULL; pglob 956 maint/gnulib/lib/glob.c ++pglob->gl_pathc; pglob 957 maint/gnulib/lib/glob.c pglob->gl_flags = flags; pglob 990 maint/gnulib/lib/glob.c dirs.gl_opendir = pglob->gl_opendir; pglob 991 maint/gnulib/lib/glob.c dirs.gl_readdir = pglob->gl_readdir; pglob 992 maint/gnulib/lib/glob.c dirs.gl_closedir = pglob->gl_closedir; pglob 993 maint/gnulib/lib/glob.c dirs.gl_stat = pglob->gl_stat; pglob 994 maint/gnulib/lib/glob.c dirs.gl_lstat = pglob->gl_lstat; pglob 1018 maint/gnulib/lib/glob.c old_pathc = pglob->gl_pathc; pglob 1022 maint/gnulib/lib/glob.c errfunc, pglob, alloca_used); pglob 1030 maint/gnulib/lib/glob.c globfree (pglob); pglob 1031 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 1038 maint/gnulib/lib/glob.c &pglob->gl_pathv[old_pathc + pglob->gl_offs], pglob 1039 maint/gnulib/lib/glob.c pglob->gl_pathc - old_pathc)) pglob 1042 maint/gnulib/lib/glob.c globfree (pglob); pglob 1043 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 1054 maint/gnulib/lib/glob.c if (pglob->gl_pathc + pglob->gl_offs == oldcount) pglob 1060 maint/gnulib/lib/glob.c size_t newcount = pglob->gl_pathc + pglob->gl_offs; pglob 1071 maint/gnulib/lib/glob.c new_gl_pathv = realloc (pglob->gl_pathv, pglob 1075 maint/gnulib/lib/glob.c pglob->gl_pathv = new_gl_pathv; pglob 1077 maint/gnulib/lib/glob.c pglob->gl_pathv[newcount] = strdup (pattern); pglob 1078 maint/gnulib/lib/glob.c if (pglob->gl_pathv[newcount] == NULL) pglob 1081 maint/gnulib/lib/glob.c globfree (pglob); pglob 1082 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 1087 maint/gnulib/lib/glob.c ++pglob->gl_pathc; pglob 1090 maint/gnulib/lib/glob.c pglob->gl_pathv[newcount] = NULL; pglob 1091 maint/gnulib/lib/glob.c pglob->gl_flags = flags; pglob 1105 maint/gnulib/lib/glob.c size_t old_pathc = pglob->gl_pathc; pglob 1131 maint/gnulib/lib/glob.c status = glob_in_dir (filename, dirname, flags, errfunc, pglob, pglob 1136 maint/gnulib/lib/glob.c && pglob->gl_pathc + pglob->gl_offs == oldcount) pglob 1151 maint/gnulib/lib/glob.c &pglob->gl_pathv[old_pathc + pglob->gl_offs], pglob 1152 maint/gnulib/lib/glob.c pglob->gl_pathc - old_pathc)) pglob 1154 maint/gnulib/lib/glob.c globfree (pglob); pglob 1155 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 1167 maint/gnulib/lib/glob.c for (i = oldcount; i < pglob->gl_pathc + pglob->gl_offs; ++i) pglob 1168 maint/gnulib/lib/glob.c if (is_dir (pglob->gl_pathv[i], flags, pglob)) pglob 1170 maint/gnulib/lib/glob.c size_t len = strlen (pglob->gl_pathv[i]) + 2; pglob 1171 maint/gnulib/lib/glob.c char *new = realloc (pglob->gl_pathv[i], len); pglob 1174 maint/gnulib/lib/glob.c globfree (pglob); pglob 1175 maint/gnulib/lib/glob.c pglob->gl_pathc = 0; pglob 1180 maint/gnulib/lib/glob.c pglob->gl_pathv[i] = new; pglob 1187 maint/gnulib/lib/glob.c qsort (&pglob->gl_pathv[oldcount], pglob 1188 maint/gnulib/lib/glob.c pglob->gl_pathc + pglob->gl_offs - oldcount, pglob 1282 maint/gnulib/lib/glob.c glob_t *pglob, size_t alloca_used) pglob 1334 maint/gnulib/lib/glob.c if (glob_lstat (pglob, flags, fullname) == 0 pglob 1346 maint/gnulib/lib/glob.c ? (*pglob->gl_opendir) (directory) pglob 1366 maint/gnulib/lib/glob.c d = convert_dirent (GL_READDIR (pglob, stream)); pglob 1416 maint/gnulib/lib/glob.c if (SIZE_MAX - pglob->gl_offs <= nfound) pglob 1439 maint/gnulib/lib/glob.c if (SIZE_MAX / sizeof (char *) - pglob->gl_pathc pglob 1440 maint/gnulib/lib/glob.c < pglob->gl_offs + nfound + 1) pglob 1444 maint/gnulib/lib/glob.c = realloc (pglob->gl_pathv, pglob 1445 maint/gnulib/lib/glob.c (pglob->gl_pathc + pglob->gl_offs + nfound + 1) pglob 1480 maint/gnulib/lib/glob.c new_gl_pathv[pglob->gl_offs + pglob->gl_pathc++] pglob 1499 maint/gnulib/lib/glob.c pglob->gl_pathv = new_gl_pathv; pglob 1501 maint/gnulib/lib/glob.c pglob->gl_pathv[pglob->gl_offs + pglob->gl_pathc] = NULL; pglob 1503 maint/gnulib/lib/glob.c pglob->gl_flags = flags; pglob 1511 maint/gnulib/lib/glob.c (*pglob->gl_closedir) (stream); pglob 28 maint/gnulib/lib/globfree.c globfree (glob_t *pglob) pglob 30 maint/gnulib/lib/globfree.c if (pglob->gl_pathv != NULL) pglob 33 maint/gnulib/lib/globfree.c for (i = 0; i < pglob->gl_pathc; ++i) pglob 34 maint/gnulib/lib/globfree.c free (pglob->gl_pathv[pglob->gl_offs + i]); pglob 35 maint/gnulib/lib/globfree.c free (pglob->gl_pathv); pglob 36 maint/gnulib/lib/globfree.c pglob->gl_pathv = NULL;