Lines Matching defs:shells
61 #define _PATH_SHELLS "/etc/shells"
73 * Local shells should NOT be added here. They should be added in
74 * /etc/shells.
78 static char **curshell, **shells, *strings;
82 * Get a list of shells from _PATH_SHELLS, if it exists.
100 if (shells != NULL)
101 free(shells);
102 shells = NULL;
127 free(shells);
128 shells = NULL;
137 shells = calloc(nsh + 1, sizeof(*shells));
138 if(shells == NULL)
143 free(shells);
144 shells = NULL;
148 for(sp = shells, cp = strings; *cp; cp += strlen(cp) + 1, sp++)
161 shells = calloc((unsigned)statb.st_size / 3, sizeof (char *));
162 if (shells == NULL) {
168 sp = shells;
183 return (shells);