version 1.10, 2004/08/23 17:56:20 |
version 1.11, 2006/04/02 00:55:32 |
|
|
|
|
if (!seekable(f)) |
if (!seekable(f)) |
return (0); |
return (0); |
if (lseek(f, (off_t)0, 0) == BAD_LSEEK) |
if (lseek(f, (off_t)0, SEEK_SET) == BAD_LSEEK) |
return (0); |
return (0); |
n = read(f, data, sizeof(data)); |
n = read(f, data, sizeof(data)); |
for (i = 0; i < n; i++) |
for (i = 0; i < n; i++) |
|
|
{ |
{ |
off_t spos; |
off_t spos; |
|
|
spos = lseek(f, (off_t)0, 2); |
spos = lseek(f, (off_t)0, SEEK_END); |
if (spos == BAD_LSEEK) |
if (spos == BAD_LSEEK) |
return (NULL_POSITION); |
return (NULL_POSITION); |
return ((POSITION) spos); |
return ((POSITION) spos); |