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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.10 by greg, Thu Jul 16 16:47:28 1992 UTC vs.
Revision 2.11 by greg, Thu Jul 16 19:44:46 1992 UTC

# Line 7 | Line 7 | static char SCCSid[] = "$SunId$ LBL";
7   /*
8   *  ambient.c - routines dealing with ambient (inter-reflected) component.
9   *
10 *  The macro AMBFLUSH (if defined) is the number of ambient values
11 *      to wait before flushing to the ambient file.
12 *
10   *     5/9/86
11   */
12  
# Line 324 | Line 321 | int  creat;
321                  putc('\n', ambfp);
322                  putambmagic(ambfp);
323                  fflush(ambfp);
324 + #ifndef  NIX
325 +                sync();                 /* protect against NFS buffering */
326 + #endif
327          } else if (checkheader(ambfp, AMBFMT, NULL) < 0 || !hasambmagic(ambfp))
328                  error(USER, "bad ambient file");
329   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines