Home | History | Annotate | Download | only in gen

Lines Matching defs:Char

38 static char sccsid[] = "@(#)glob.c	8.3 (Berkeley) 10/13/93";
135 typedef unsigned short Char;
139 #define M_QUOTE (Char)0x80
140 #define M_PROTECT (Char)0x40
141 #define M_MASK (Char)0xff
142 #define M_ASCII (Char)0x7f
144 typedef char Char;
149 #define CHAR(c) ((Char)((c)&M_ASCII))
150 #define META(c) ((Char)((c)|M_QUOTE))
161 static int g_Ctoc(const Char *, char *, size_t);
162 static int g_lstat(Char *, __gl_stat_t *, glob_t *);
163 static DIR *g_opendir(Char *, glob_t *);
164 static Char *g_strchr(const Char *, int);
165 static int g_stat(Char *, __gl_stat_t *, glob_t *);
166 static int glob0(const Char *, glob_t *, struct glob_limit *);
167 static int glob1(Char *, glob_t *, struct glob_limit *);
168 static int glob2(Char *, Char *, Char *, const Char *, glob_t *,
170 static int glob3(Char *, Char *, Char *, const Char *, const Char *,
171 const Char *, glob_t *, struct glob_limit *);
172 static int globextend(const Char *, glob_t *, struct glob_limit *);
173 static int globtilde(const Char **, const Char *, Char *, size_t,
175 static int globexp1(const Char *, glob_t *, struct glob_limit *);
176 static int globexp2(const Char *, const Char *, glob_t *, int *,
178 static int match(const Char *, const Char *, const Char *);
180 static void qprintf(const char *, Char *);
184 glob(const char * __restrict pattern, int flags, int (*errfunc)(const char *,
187 const unsigned char *patnext;
189 Char *bufnext, *bufend, patbuf[MAXPATHLEN+1];
194 patnext = (const unsigned char *) pattern;
237 globexp1(const Char *pattern, glob_t *pglob, struct glob_limit *limit)
239 const Char* ptr = pattern;
255 while ((ptr = (const Char *) g_strchr(ptr, LBRACE)) != NULL)
269 globexp2(const Char *ptr, const Char *pattern, glob_t *pglob, int *rv,
273 Char *lm, *ls;
274 const Char *pe, *pm, *pl;
275 Char patbuf[MAXPATHLEN + 1];
383 globtilde(const Char **qpatnext, const Char *pattern, Char *patbuf,
387 const char *h;
388 const Char *p;
389 Char *b;
390 char *d;
391 Char *pend = &patbuf[patsize / sizeof(Char)];
394 char pwbuf[1024];
408 for (p = pattern + 1, d = (char *)(void *)patbuf;
409 d < (char *)(void *)pend && *p && *p != SLASH;
413 if (d == (char *)(void *)pend)
417 d = (char *)(void *)patbuf;
478 glob0(const Char *pattern, glob_t *pglob, struct glob_limit *limit)
480 const Char *qpatnext;
483 Char *bufnext, patbuf[MAXPATHLEN+1];
513 *bufnext++ = CHAR(c);
517 *bufnext++ = CHAR(c);
540 *bufnext++ = CHAR(c);
569 (size_t)pglob->gl_pathc - oldpathc, sizeof(char *),
583 return strcoll(*(const char * const *)p, *(const char * const *)q);
587 glob1(Char *pattern, glob_t *pglob, struct glob_limit *limit)
589 Char pathbuf[MAXPATHLEN+1];
612 glob2(Char *pathbuf, Char *pathend, Char *pathlim, const Char *pattern,
616 const Char *p;
617 Char *q;
686 glob3(Char *pathbuf, Char *pathend, Char *pathlim, const Char *pattern,
687 const Char *restpattern, const Char *pglobstar, glob_t *pglob,
694 char buf[MAXPATHLEN];
697 const Char *termstar = NULL;
777 unsigned char *sc;
778 Char *dc;
808 for (sc = (unsigned char *) dp->d_name, dc = pathend;
891 globextend(const Char *path, glob_t *pglob, struct glob_limit *limit)
893 char **pathv;
895 char *copy;
896 const Char *p;
946 match(const Char *name, const Char *pat, const Char *patend)
949 Char c, k;
950 const Char *patNext, *nameNext, *nameStart, *nameEnd;
1017 char **pp;
1034 glob_pattern_p(const char *pattern, int quote)
1066 g_opendir(Char *str, glob_t *pglob)
1068 char buf[MAXPATHLEN];
1087 g_lstat(Char *fn, __gl_stat_t *sb, glob_t *pglob)
1089 char buf[MAXPATHLEN];
1103 g_stat(Char *fn, __gl_stat_t *sb, glob_t *pglob)
1105 char buf[MAXPATHLEN];
1118 static Char *
1119 g_strchr(const Char *str, int ch)
1132 g_Ctoc(const Char *str, char *buf, size_t len)
1134 char *dc;
1150 qprintf(const char *str, Char *s)
1152 Char *p;
1159 (void)printf("%c", CHAR(*p));