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

Comparing ray/src/rt/persist.c (file contents):
Revision 2.42 by greg, Wed Dec 15 17:24:29 2010 UTC vs.
Revision 2.43 by greg, Fri Nov 8 18:08:07 2013 UTC

# Line 44 | Line 44 | static rsighandler_t sig_io;
44   static rsighandler_t sig_alrm;
45  
46  
47 < extern void
47 > void
48   pfdetach(void)          /* release persist (and header) resources */
49   {
50          if (persistfd >= 0)
# Line 58 | Line 58 | pfdetach(void)         /* release persist (and header) resour
58   }
59  
60  
61 < extern void
61 > void
62   pfclean(void)           /* clean up persist files */
63   {
64          if (persistfd >= 0)
# Line 74 | Line 74 | pfclean(void)          /* clean up persist files */
74   }
75  
76  
77 < extern void
77 > void
78   pflock(         /* place or release exclusive lock on file */
79          int     lf
80   )
# Line 90 | Line 90 | pflock(                /* place or release exclusive lock on file */
90   }
91  
92  
93 < extern void
93 > void
94   persistfile(    /* open persist file and lock it */
95          char    *pfn
96   )
# Line 119 | Line 119 | static void sig_io(int i) { got_io++; }
119   static void sig_alrm(int i) { quit(0); }
120  
121  
122 < extern void
122 > void
123   pfhold(void)            /* holding pattern for idle rendering process */
124   {
125          rsighandler_t   *oldalrm;
126          char    buf[512];
127 <        register int    n;
127 >        int     n;
128                                  /* close input and output descriptors */
129          close(0);
130          close(1);
# Line 182 | Line 182 | createrr:
182   }
183  
184  
185 < extern void
185 > void
186   io_process(void)                /* just act as go-between for actual process */
187   {
188 <        register char   *cp;
189 <        register int    nr, n;
188 >        char    *cp;
189 >        int     nr, n;
190          char    buf[BUFSIZ], *pfin, *pfout, *pferr;
191          int     pid, nfds;
192          int     fdout, fderr = -1;
# Line 297 | Line 297 | io_process(void)               /* just act as go-between for actual
297                                  if (!strncmp(cp, progname, n) &&
298                                                  cp[n++] == ':' &&
299                                                  cp[n++] == ' ') {
300 <                                        register struct erract  *ep;
300 >                                        struct erract   *ep;
301                                          for (ep = erract; ep < erract+NERRS;
302                                                          ep++)
303                                                  if (ep->pre[0] &&
# Line 345 | Line 345 | writerr:
345  
346   #else
347  
348 < extern void pfclean(void) {}
348 > void pfclean(void) {}
349  
350   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines