Lines Matching refs:shells
43 static char **curshell, **shells; variable
67 if ((s = shells)) in endusershell()
70 free(shells); in endusershell()
71 shells = NULL; in endusershell()
90 free(shells); in initshells()
91 shells = NULL; in initshells()
99 shells = reallocarray(NULL, nalloc, sizeof (char *)); in initshells()
100 if (shells == NULL) in initshells()
107 if (!(shells[nshells] = strdup(line))) in initshells()
111 char **new = reallocarray(shells, nalloc * 2, sizeof(char *)); in initshells()
114 shells = new; in initshells()
120 shells[nshells] = NULL; in initshells()
122 return (shells); in initshells()
127 free(shells[nshells--]); in initshells()
128 free(shells); in initshells()
129 shells = NULL; in initshells()