ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rholo.c
(Generate patch)

Comparing ray/src/hd/rholo.c (file contents):
Revision 3.52 by greg, Sat Feb 22 02:07:25 2003 UTC vs.
Revision 3.55 by schorsch, Sun Jun 8 12:03:10 2003 UTC

# Line 45 | Line 45 | time_t starttime;              /* time we got started */
45   time_t  endtime;                /* time we should end by */
46   time_t  reporttime;             /* time for next report */
47  
48 < long    maxdisk;                /* maximum file space (bytes) */
48 > off_t   maxdisk;                /* maximum file space (bytes) */
49  
50   int     rtargc = 1;             /* rtrace command */
51   char    *rtargv[128] = {"rtrace", NULL};
# Line 152 | Line 152 | userr:
152   }
153  
154  
155 + void
156   onsig(signo)                            /* fatal signal */
157   int  signo;
158   {
# Line 214 | Line 215 | initrholo()                    /* get our holodeck running */
215                  init_global();
216                                                  /* record disk space limit */
217          if (!vdef(DISKSPACE))
218 <                maxdisk = (1L<<(sizeof(long)*8-2)) - 1024;
218 >                maxdisk = (1L<<(sizeof(off_t)*8-2)) - 1024;
219          else
220                  maxdisk = 1024.*1024.*vflt(DISKSPACE);
221                                                  /* set up memory cache */
# Line 287 | Line 288 | rholo()                                /* holodeck main loop */
288          static long     nextfragwarn = 100*(1L<<20);
289          static int      idle = 0;
290          PACKET  *pl = NULL, *plend;
291 <        long    fsiz;
291 >        off_t   fsiz;
292          int     pksiz;
293          register PACKET *p;
294          time_t  t;
# Line 475 | Line 476 | char   *s;
476  
477   loadholo()                      /* start loading a holodeck from fname */
478   {
478        extern long     ftell();
479          FILE    *fp;
480          int     fd;
481          int     n;
# Line 531 | Line 531 | PACKET *pl;
531          while (pl != NULL) {
532                  p = pl; pl = p->next; p->next = NULL;
533                  if (p->nr > 0) {                /* add to holodeck */
534 <                        bcopy((char *)p->ra,
535 <                                (char *)hdnewrays(hdlist[p->hd],p->bi,p->nr),
534 >                        bcopy((void *)p->ra,
535 >                                (void *)hdnewrays(hdlist[p->hd],p->bi,p->nr),
536                                  p->nr*sizeof(RAYVAL));
537                          if (outdev != NULL)     /* display it */
538                                  disp_packet((PACKHEAD *)p);
# Line 608 | Line 608 | int    ec;
608                  if (nprocs > 0)
609                          status = done_rtrace();         /* calls hdsync() */
610                  if (ncprocs > 0 & force >= 0 && vdef(REPORT)) {
611 <                        long    fsiz, fuse;
611 >                        off_t   fsiz, fuse;
612                          fsiz = hdfilen(hdlist[0]->fd);
613                          fuse = hdfiluse(hdlist[0]->fd, 1);
614                          fprintf(stderr,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines