Home | History | Annotate | Download | only in Glob

Lines Matching refs:Char

137 typedef u_short Char;

141 #define M_QUOTE (Char)0x80
142 #define M_PROTECT (Char)0x40
143 #define M_MASK (Char)0xff
144 #define M_ASCII (Char)0x7f
146 typedef char Char;
151 #define CHAR(c) ((Char)((c)&M_ASCII))
152 #define META(c) ((Char)((c)|M_QUOTE))
162 static int g_Ctoc(const Char *, char *, size_t);
163 static int g_lstat(Char *, __gl_stat_t *, glob_t *);
164 static DIR *g_opendir(Char *, glob_t *);
165 static Char *g_strchr(const Char *, int);
166 static int g_stat(Char *, __gl_stat_t *, glob_t *);
167 static int glob0(const Char *, glob_t *, size_t *);
168 static int glob1(Char *, glob_t *, size_t *);
169 static int glob2(Char *, Char *, Char *, Char *, glob_t *, size_t *);
170 static int glob3(Char *, Char *, Char *, Char *, Char *, glob_t *, size_t *);
171 static int globextend(const Char *, glob_t *, size_t *);
172 static const Char *globtilde(const Char *, Char *, size_t, glob_t *);
173 static int globexp1(const Char *, glob_t *, size_t *);
174 static int globexp2(const Char *, const Char *, glob_t *, int *, size_t *);
175 static int match(Char *, Char *, Char *);
177 static void qprintf(const char *, Char *);
182 const char *pattern,
184 int (*errfunc)(const char *, int),
190 Char *bufnext, *bufend, patbuf[MAXPATHLEN+1];
239 globexp1(const Char *pattern, glob_t *pglob, size_t *limit)
241 const Char* ptr = pattern;
251 while ((ptr = (const Char *) g_strchr(ptr, LBRACE)) != NULL)
265 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, int *rv,
269 Char *lm, *ls;
270 const Char *pe, *pm, *pl;
271 Char patbuf[MAXPATHLEN + 1];
378 static const Char *
379 globtilde(const Char *pattern, Char *patbuf, size_t patsize, glob_t *pglob)
381 const char *h;
382 const Char *p;
383 Char *b;
384 char *d;
385 Char *pend = &patbuf[patsize / sizeof(Char)];
397 for (p = pattern + 1, d = (char *)(void *)patbuf;
398 d < (char *)(void *)pend && *p && *p != SLASH;
402 if (d == (char *)(void *)pend)
406 d = (char *)(void *)patbuf;
450 glob0(const Char *pattern, glob_t *pglob, size_t *limit)
452 const Char *qpatnext;
455 Char *bufnext, patbuf[MAXPATHLEN+1];
485 *bufnext++ = CHAR(c);
489 *bufnext++ = CHAR(c);
509 *bufnext++ = CHAR(c);
538 (size_t)pglob->gl_pathc - oldpathc, sizeof(char *),
552 return strcoll(*(const char * const *)p, *(const char * const *)q);
556 glob1(Char *pattern, glob_t *pglob, size_t *limit)
558 Char pathbuf[MAXPATHLEN+1];
581 glob2(Char *pathbuf, Char *pathend, Char *pathlim, Char *pattern, glob_t *pglob,
585 Char *p, *q;
587 Char *pend;
673 glob3(Char *pathbuf, Char *pathend, Char *pathlim, Char *pattern,
674 Char *restpattern, glob_t *pglob, size_t *limit)
679 char buf[MAXPATHLEN];
727 Char *dc;
819 globextend(const Char *path, glob_t *pglob, size_t *limit)
821 char **pathv;
823 char *copy;
824 const Char *p;
871 match(Char *name, Char *pat, Char *patend)
874 Char c, k;
925 char **pp;
941 g_opendir(Char *str, glob_t *pglob)
943 char buf[MAXPATHLEN];
962 g_lstat(Char *fn, __gl_stat_t *sb, glob_t *pglob)
964 char buf[MAXPATHLEN];
978 g_stat(Char *fn, __gl_stat_t *sb, glob_t *pglob)
980 char buf[MAXPATHLEN];
993 static Char *
994 g_strchr(const Char *str, int ch)
1007 g_Ctoc(const Char *str, char *buf, size_t len)
1009 char *dc;
1025 qprintf(const char *str, Char *s)
1027 Char *p;
1034 (void)printf("%c", CHAR(*p));