5 |
|
* Generate sections of a picture. |
6 |
|
*/ |
7 |
|
|
8 |
+ |
#include "platform.h" |
9 |
|
#include "standard.h" |
10 |
|
|
11 |
|
#ifndef F_SETLKW |
506 |
|
filerr("lock"); |
507 |
|
#endif |
508 |
|
/* write new piece to file */ |
509 |
< |
if (lseek(outfd, (off_t)fls.l_start, 0) < 0) |
509 |
> |
if (lseek(outfd, (off_t)fls.l_start, SEEK_SET) < 0) |
510 |
|
filerr("seek"); |
511 |
|
if (hmult == 1) { |
512 |
|
if (writebuf(outfd, (char *)pbuf, |
519 |
|
filerr("write"); |
520 |
|
if (y < vr-1 && lseek(outfd, |
521 |
|
(off_t)(hmult-1)*hr*sizeof(COLR), |
522 |
< |
1) < 0) |
522 |
> |
SEEK_CUR) < 0) |
523 |
|
filerr("seek"); |
524 |
|
} |
525 |
|
#if NFS |