8 int i, argc = 0, res = -1, status;
9 ssize_t len_program, len_arguments;
21 if( application==program->
data )
26 application[len_program] = 0;
35 arguments = alloca( len_arguments + 1 );
37 arguments[len_arguments] = 0;
54 argv = alloca(
sizeof(
char*) * (argc + 1 ));
57 argv[0] = application;
61 for( i=1 ; i<argc; i++) {
78 execvp( application, argv );
89 }
else if( (waitpid(pid, &status, 0) > 0) && WIFEXITED(status) ) {
90 res = WEXITSTATUS(status);
98 res = execvp( application, argv );