Lines Matching refs:i
158 int i; in save_ps_args() local
163 for (i = 0; (non_contiguous_area == 0) && (i < argc); i++) in save_ps_args()
165 if (i != 0 && end_of_area + 1 != argv[i]) in save_ps_args()
167 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
173 for (i = 0; (non_contiguous_area == 0) && (environ[i] != NULL); i++) in save_ps_args()
175 if (end_of_area + 1 != environ[i]) in save_ps_args()
177 end_of_area = environ[i] + strlen(environ[i]); in save_ps_args()
189 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
190 frozen_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
193 for (i = 0; environ[i] != NULL; i++) in save_ps_args()
195 new_environ[i] = strdup(environ[i]); in save_ps_args()
196 if (!new_environ[i]) in save_ps_args()
199 new_environ[i] = NULL; in save_ps_args()
201 memcpy((char *)frozen_environ, (char *)new_environ, sizeof(char *) * (i + 1)); in save_ps_args()
219 int i; in save_ps_args() local
224 for (i = 0; i < argc; i++) in save_ps_args()
226 new_argv[i] = strdup(argv[i]); in save_ps_args()
227 if (!new_argv[i]) { in save_ps_args()
250 int i; in save_ps_args() local
251 for (i = 1; i < save_argc; i++) in save_ps_args()
252 save_argv[i] = ps_buffer + ps_buffer_size; in save_ps_args()
441 int i; in cleanup_ps_args() local
442 for (i = 0; frozen_environ[i] != NULL; i++) in cleanup_ps_args()
443 free(frozen_environ[i]); in cleanup_ps_args()
454 int i; in cleanup_ps_args() local
455 for (i=0; argv[i] != NULL; i++) in cleanup_ps_args()
456 free(argv[i]); in cleanup_ps_args()