Lines Matching refs:argv
146 char** save_ps_args(int argc, char** argv) in save_ps_args() argument
149 save_argv = argv; in save_ps_args()
166 if (i != 0 && end_of_area + 1 != argv[i]) { in save_ps_args()
169 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
186 ps_buffer = argv[0]; in save_ps_args()
187 ps_buffer_size = end_of_area - argv[0]; in save_ps_args()
230 new_argv[i] = strdup(argv[i]); in save_ps_args()
246 argv = new_argv; in save_ps_args()
265 return argv; in save_ps_args()
277 return argv; in save_ps_args()
435 void cleanup_ps_args(char **argv) in cleanup_ps_args() argument
459 for (i=0; argv[i] != NULL; i++) in cleanup_ps_args()
460 free(argv[i]); in cleanup_ps_args()
461 free(argv); in cleanup_ps_args()