Lines Matching refs:environ
74 extern char **environ;
78 * populate the environment "environ"
94 if (environ == NULL) {
95 environ = (char **)calloc(MALSIZ, sizeof (char *));
96 if (environ == NULL) {
108 for (i = 0; environ[i]; i++) {
109 if (strncmp(environ[i], param, n) == 0 &&
110 (environ[i][n] == '=')) {
111 if (strcmp((environ[i]) + n + 1, value) == 0)
114 free(environ[i]);
133 if (environ[i]) {
134 environ[i] = pt;
142 environ[i++] = pt;
144 environ = (char **)realloc((void *)environ,
146 if (environ == NULL) {
153 environ[i] = (char *)NULL;