| 10 |
|
|
| 11 |
|
#include "standard.h" |
| 12 |
|
#include <fcntl.h> |
| 13 |
+ |
|
| 14 |
+ |
#ifndef F_SETLKW |
| 15 |
+ |
|
| 16 |
+ |
main(argc, argv) |
| 17 |
+ |
int argc; |
| 18 |
+ |
char *argv[]; |
| 19 |
+ |
{ |
| 20 |
+ |
fprintf(stderr, "%s: no NFS lock manager on this machine\n", argv[0]); |
| 21 |
+ |
exit(1); |
| 22 |
+ |
} |
| 23 |
+ |
|
| 24 |
+ |
#else |
| 25 |
+ |
|
| 26 |
|
#include <signal.h> |
| 27 |
|
#include "color.h" |
| 28 |
|
#include "view.h" |
| 258 |
|
return(0); |
| 259 |
|
} |
| 260 |
|
} |
| 261 |
< |
sprintf(buf, "%d %d\n%d %d\n", hmult, vmult, *xp, *yp); |
| 261 |
> |
sprintf(buf, "%4d %4d\n%4d %4d\n", hmult, vmult, *xp, *yp); |
| 262 |
|
lseek(syncfd, 0L, 0); /* write new position */ |
| 263 |
|
write(syncfd, buf, strlen(buf)); |
| 264 |
|
fls.l_type = F_UNLCK; /* release sync file */ |
| 418 |
|
fprintf(stderr, "%s: write error on file \"%s\"\n", progname, outfile); |
| 419 |
|
_exit(1); |
| 420 |
|
} |
| 421 |
+ |
|
| 422 |
+ |
#endif |