28 |
|
#include "view.h" |
29 |
|
#include "random.h" |
30 |
|
#include "paths.h" |
31 |
+ |
#include "rtmisc.h" /* myhostname() */ |
32 |
|
|
33 |
|
|
34 |
|
#define RFTEMPLATE "rfXXXXXX" |
150 |
|
void |
151 |
|
report() /* report progress */ |
152 |
|
{ |
152 |
– |
extern char *myhostname(); |
153 |
|
double u, s; |
154 |
|
#ifdef BSD |
155 |
|
struct rusage rubuf; |
413 |
|
if (i >= vres) |
414 |
|
goto alldone; |
415 |
|
if (zfd != -1 && i > 0 && |
416 |
< |
lseek(zfd, (off_t)i*hres*sizeof(float), 0) < 0) |
416 |
> |
lseek(zfd, (off_t)i*hres*sizeof(float), SEEK_SET) < 0) |
417 |
|
error(SYSTEM, "z-file seek error in render"); |
418 |
|
pctdone = 100.0*i/vres; |
419 |
|
if (ralrm > 0) /* report init stats */ |