Lines Matching refs:argv
147 char** save_ps_args(int argc, char** argv) in save_ps_args() argument
150 save_argv = argv; in save_ps_args()
167 if (i != 0 && end_of_area + 1 != argv[i]) { in save_ps_args()
170 end_of_area = argv[i] + strlen(argv[i]); in save_ps_args()
187 ps_buffer = argv[0]; in save_ps_args()
188 ps_buffer_size = end_of_area - argv[0]; in save_ps_args()
231 new_argv[i] = strdup(argv[i]); in save_ps_args()
247 argv = new_argv; in save_ps_args()
266 return argv; in save_ps_args()
278 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()