version 1.10, 1998/04/25 00:40:18 |
version 1.11, 1998/07/13 02:11:33 |
|
|
(void)signal(SIGQUIT, onintr); |
(void)signal(SIGQUIT, onintr); |
|
|
while (--bl >= 0) { |
while (--bl >= 0) { |
if (lseek(wfd, bl * sizeof(buf), L_SET) == -1 || |
if (lseek(wfd, bl * sizeof(buf), SEEK_SET) == -1 || |
(bytes = read(wfd, buf, sizeof(buf))) == -1) |
(bytes = read(wfd, buf, sizeof(buf))) == -1) |
err(1, "%s", file); |
err(1, "%s", file); |
for (bp = &buf[bytes / sizeof(buf[0]) - 1]; bp >= buf; --bp) { |
for (bp = &buf[bytes / sizeof(buf[0]) - 1]; bp >= buf; --bp) { |