Index: MultiSource/Applications/lua/loslib.c =================================================================== --- MultiSource/Applications/lua/loslib.c +++ MultiSource/Applications/lua/loslib.c @@ -36,7 +36,9 @@ static int os_execute (lua_State *L) { - lua_pushinteger(L, system(luaL_optstring(L, 1, NULL))); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// lua_pushinteger(L, system(luaL_optstring(L, 1, NULL))); return 1; } Index: MultiSource/Applications/siod/slibu.c =================================================================== --- MultiSource/Applications/siod/slibu.c +++ MultiSource/Applications/siod/slibu.c @@ -119,7 +119,10 @@ {int retval; long iflag; iflag = no_interrupt(1); - retval = system(get_c_string(string_append(args))); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + retval = 0; +// retval = system(get_c_string(string_append(args))); no_interrupt(iflag); if (retval < 0) return(cons(flocons(retval),llast_c_errmsg(-1))); Index: MultiSource/Benchmarks/DOE-ProxyApps-C++/HPCCG/CMakeLists.txt =================================================================== --- MultiSource/Benchmarks/DOE-ProxyApps-C++/HPCCG/CMakeLists.txt +++ MultiSource/Benchmarks/DOE-ProxyApps-C++/HPCCG/CMakeLists.txt @@ -1,4 +1,5 @@ set(PROG HPCCG) +list(APPEND CXXFLAGS -DREDSTORM) # -DREDSTORM for mkdir list(APPEND LDFLAGS -lm) set(RUN_OPTIONS 50 50 50) llvm_multisource() Index: MultiSource/Benchmarks/DOE-ProxyApps-C++/miniFE/CMakeLists.txt =================================================================== --- MultiSource/Benchmarks/DOE-ProxyApps-C++/miniFE/CMakeLists.txt +++ MultiSource/Benchmarks/DOE-ProxyApps-C++/miniFE/CMakeLists.txt @@ -1,5 +1,5 @@ set(PROG miniFE) -list(APPEND CXXFLAGS -I. -DMINIFE_SCALAR=double -DMINIFE_LOCAL_ORDINAL=int -DMINIFE_GLOBAL_ORDINAL=int -DMINIFE_CSR_MATRIX) +list(APPEND CXXFLAGS -I. -DMINIFE_SCALAR=double -DMINIFE_LOCAL_ORDINAL=int -DMINIFE_GLOBAL_ORDINAL=int -DMINIFE_CSR_MATRIX -DREDSTORM) # -DREDSTORM for mkdir list(APPEND LDFLAGS -lm) set(RUN_OPTIONS -nx 64 -ny 64 -nz 64) llvm_multisource() Index: MultiSource/Benchmarks/MiBench/consumer-typeset/z03.c =================================================================== --- MultiSource/Benchmarks/MiBench/consumer-typeset/z03.c +++ MultiSource/Benchmarks/MiBench/consumer-typeset/z03.c @@ -844,7 +844,9 @@ } else { - system(buff); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// system(buff); fp = fopen(LOUT_EPS, READ_TEXT); *compressed = TRUE; } Index: MultiSource/Benchmarks/MiBench/consumer-typeset/z40.c =================================================================== --- MultiSource/Benchmarks/MiBench/consumer-typeset/z40.c +++ MultiSource/Benchmarks/MiBench/consumer-typeset/z40.c @@ -149,7 +149,10 @@ else { /* execute the command, echo error messages, and exit if status problem */ - status = system( (char *) command); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + status = 0; +// status = system( (char *) command); err_fp = StringFOpen(FILTER_ERR, READ_TEXT); if( err_fp != NULL ) { while( fgets(line, MAX_LINE, err_fp) != NULL ) Index: MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/finalout.c =================================================================== --- MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/finalout.c +++ MultiSource/Benchmarks/Prolangs-C/TimberWolfMC/finalout.c @@ -109,10 +109,12 @@ redoFlag = 0 ; addpins() ; + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); sprintf( command , "cp %s.cfs cfss1", cktName ) ; - system( command ) ; +// system( command ) ; sprintf( command , "cp %s.cfb cfbb1", cktName ) ; - system( command ) ; +// system( command ) ; for( c = 1 ; c <= doCompaction ; c++ ) { @@ -206,10 +208,12 @@ rmain() ; redoFlag = 0 ; + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); sprintf( command , "cp %s.cfs cfss%d", cktName , c + 1) ; - system( command ) ; +// system( command ) ; sprintf( command , "cp %s.cfb cfbb%d", cktName , c + 1) ; - system( command ) ; +// system( command ) ; } subpins() ; fprintf(fpo,"\n\nCORE Bounding Box: l:%d r:%d b:%d t:%d\n\n", Index: MultiSource/Benchmarks/Prolangs-C/assembler/assem.c =================================================================== --- MultiSource/Benchmarks/Prolangs-C/assembler/assem.c +++ MultiSource/Benchmarks/Prolangs-C/assembler/assem.c @@ -86,20 +86,12 @@ /* -------------------------------- Delete the temporary output file */ if (!DEBUG_FLAG_1) { - char *TEMP; - TEMP = (char *) malloc((unsigned int) - (4+strlen(TEMP_OUTPUT_FILE_NAME))); - (void) sprintf(TEMP,"rm %s",TEMP_OUTPUT_FILE_NAME); - (void) system(TEMP); + (void) remove(TEMP_OUTPUT_FILE_NAME); } /* -------------------------------- If errors, delete the object file */ if (ERROR) { - char *TEMP; - TEMP = (char *) malloc((unsigned int) - (4+strlen(OBJECT_FILE))); - (void) sprintf(TEMP,"rm %s",OBJECT_FILE); - (void) system(TEMP); + (void) remove(OBJECT_FILE); (void) printf("Errors detected. Deleted object file.\n"); } } Index: MultiSource/Benchmarks/mafft/pairlocalalign.c =================================================================== --- MultiSource/Benchmarks/mafft/pairlocalalign.c +++ MultiSource/Benchmarks/mafft/pairlocalalign.c @@ -118,7 +118,10 @@ fclose( fp ); sprintf( com, "env PATH=%s foldalign210 %s _foldalignin > _foldalignout ", whereispairalign, foldalignopt ); - res = system( com ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + res = 0; +// res = system( com ); if( res ) { fprintf( stderr, "Error in foldalign\n" ); @@ -152,7 +155,10 @@ // fprintf( stderr, "calling LaRA\n" ); sprintf( com, "env PATH=%s:/bin:/usr/bin mafft_lara -i _larain -w _laraout -o _lara.params %s", whereispairalign, laraarg ); - res = system( com ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + res = 0; +// res = system( com ); if( res ) { fprintf( stderr, "Error in lara\n" ); @@ -306,7 +312,9 @@ fprintf( fp, *bpp2++ ); fclose( fp ); - system( "tr -d '\\r' < _bpporg > _bpp" ); // for cygwin, wakaran + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// system( "tr -d '\\r' < _bpporg > _bpp" ); // for cygwin, wakaran t2u( *mseq1 ); t2u( *mseq2 ); @@ -324,10 +332,15 @@ write1seq( fp, *mseq2 ); fclose( fp ); - system( "tr -d '\\r' < _mxscarnainorg > _mxscarnain" ); // for cygwin, wakaran + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// system( "tr -d '\\r' < _mxscarnainorg > _mxscarnain" ); // for cygwin, wakaran sprintf( com, "env PATH=%s mxscarnamod -readbpp _mxscarnain > _mxscarnaout 2>_dum", whereispairalign ); - res = system( com ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + res = 0; +// res = system( com ); if( res ) { fprintf( stderr, "Error in mxscarna\n" ); @@ -379,7 +392,10 @@ fclose( fp ); sprintf( com, "env PATH=%s mxscarnamod _mxscarnain > _mxscarnaout 2>_dum", whereispairalign ); - res = system( com ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); + res = 0; +// res = system( com ); if( res ) { fprintf( stderr, "Error in mxscarna\n" ); Index: MultiSource/Benchmarks/mafft/rna.c =================================================================== --- MultiSource/Benchmarks/mafft/rna.c +++ MultiSource/Benchmarks/mafft/rna.c @@ -220,7 +220,9 @@ fclose( fp ); sprintf( cmd, "RNAalifold -p %s", fnamein ); - system( cmd ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// system( cmd ); fp = fopen( "alifold.out", "r" ); if( !fp ) @@ -280,7 +282,9 @@ } fclose( fp ); sprintf( cmd, "rm -f %s", fnamein ); - system( cmd ); + fprintf(stderr, "Cannot execute system calls!\n"); + abort(); +// system( cmd ); for( i=0; i