Lines Matching defs:environ
98 char **environ;
216 for (num_entries = 0; environ[num_entries] != NULL; num_entries++) {
217 node = rb_tree_find_node(&env_tree, environ[num_entries]);
233 if (environ == allocated_environ) {
235 (void)memset(&environ[num_entries + 1], 0,
237 sizeof(*environ));
261 while (environ[num_entries] != NULL) {
262 if (strncmp(environ[num_entries], name, l_name) == 0 &&
263 environ[num_entries][l_name] == '=') {
274 /* Does the environ need scrubbing? */
275 if (environ != allocated_environ && allocated_environ != NULL)
280 if (environ == allocated_environ &&
298 if (environ == allocated_environ) {
299 new_environ = realloc(environ,
311 (void)memcpy(new_environ, environ,
320 environ = allocated_environ = new_environ;
334 return (offset != -1) ? environ[offset] + l_name + 1 : NULL;
353 return environ[offset] + l_name + 1;