Lines Matching refs:shells
78 static char **curshell, **shells, *strings; variable
100 if (shells != NULL) in endusershell()
101 free(shells); in endusershell()
102 shells = NULL; in endusershell()
127 free(shells); in initshells()
128 shells = NULL; in initshells()
137 shells = calloc(nsh + 1, sizeof(*shells)); in initshells()
138 if(shells == NULL) in initshells()
143 free(shells); in initshells()
144 shells = NULL; in initshells()
148 for(sp = shells, cp = strings; *cp; cp += strlen(cp) + 1, sp++) in initshells()
161 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *)); in initshells()
162 if (shells == NULL) { in initshells()
168 sp = shells; in initshells()
183 return (shells); in initshells()