Lines Matching refs:i
154 int i; in save_ps_args() local
159 for (i = 0; (non_contiguous_area == 0) && (i < argc); i++) in save_ps_args()
161 if (i != 0 && end_of_area + 1 != argv[i]) in save_ps_args()
163 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
169 for (i = 0; (non_contiguous_area == 0) && (environ[i] != NULL); i++) in save_ps_args()
171 if (end_of_area + 1 != environ[i]) in save_ps_args()
173 end_of_area = environ[i] + strlen(environ[i]); in save_ps_args()
185 new_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
186 frozen_environ = (char **) malloc((i + 1) * sizeof(char *)); in save_ps_args()
189 for (i = 0; environ[i] != NULL; i++) in save_ps_args()
191 new_environ[i] = strdup(environ[i]); in save_ps_args()
192 if (!new_environ[i]) in save_ps_args()
195 new_environ[i] = NULL; in save_ps_args()
197 memcpy((char *)frozen_environ, (char *)new_environ, sizeof(char *) * (i + 1)); in save_ps_args()
215 int i; in save_ps_args() local
220 for (i = 0; i < argc; i++) in save_ps_args()
222 new_argv[i] = strdup(argv[i]); in save_ps_args()
223 if (!new_argv[i]) in save_ps_args()
244 int i; in save_ps_args() local
245 for (i = 1; i < save_argc; i++) in save_ps_args()
246 save_argv[i] = ps_buffer + ps_buffer_size; in save_ps_args()
414 int i; in cleanup_ps_args() local
415 for (i = 0; frozen_environ[i] != NULL; i++) in cleanup_ps_args()
416 free(frozen_environ[i]); in cleanup_ps_args()
427 int i; in cleanup_ps_args() local
428 for (i=0; argv[i] != NULL; i++) in cleanup_ps_args()
429 free(argv[i]); in cleanup_ps_args()