expand.c revision 965005c81e0f731867d47892b9fb677030b102df
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
#include "defs.h"
#include <dirent.h>
static void addg(unsigned char *, unsigned char *, unsigned char *,
int count;
unsigned char *rescan = 0;
unsigned char *slashsav = 0;
unsigned char *s, *cs;
unsigned char *s2 = 0;
int len;
slash = 0;
open = 0;
switch (wc) {
slash++;
open = 0;
open++;
if (open == 0)
cs--;
cs++;
} while (TRUE);
if (cs == s)
s = (unsigned char *)nullstr;
*cs = 0;
if (s == cs)
s = s2;
dir++;
if (s2)
s = as;
count = 0;
if (*cs == 0)
if (dir)
unsigned char *rs;
struct dirent *e;
*rs = 0;
gchain = 0;
} while (*rs++);
slashsav);
count++;
if (rescan)
if (count)
count = 0;
while (rchain)
if (slashsav)
return (count);
unsigned char *as4)
int len;
if (as4) {
while (c = *s1++)
*s2++ = c;
if (wc == 0) {
s1++;