--- ray/src/rt/rcmain.c 2016/03/10 18:25:46 2.15 +++ ray/src/rt/rcmain.c 2017/11/30 23:31:34 2.17 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: rcmain.c,v 2.15 2016/03/10 18:25:46 schorsch Exp $"; +static const char RCSid[] = "$Id: rcmain.c,v 2.17 2017/11/30 23:31:34 greg Exp $"; #endif /* * rcmain.c - main for rtcontrib ray contribution tracer @@ -180,6 +180,9 @@ main(int argc, char *argv[]) progname = argv[0] = fixargv0(argv[0]); gargv = argv; gargc = argc; +#if defined(_WIN32) || defined(_WIN64) + _setmaxstdio(2048); /* increase file limit to maximum */ +#endif /* initialize calcomp routines early */ initfunc(); setcontext(RCCONTEXT); @@ -363,7 +366,7 @@ main(int argc, char *argv[]) badopt: fprintf(stderr, -"Usage: %s [-n nprocs][-V][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", +"Usage: %s [-n nprocs][-V][-c count][-r][-e expr][-f source][-o ospec][-p p1=V1,p2=V2][-b binv][-bn N] {-m mod | -M file} [rtrace options] octree\n", progname); sprintf(errmsg, "command line error at '%s'", argv[i]); error(USER, errmsg);