BSDI fseeko

Russ Allbery rra at stanford.edu
Tue Aug 29 23:25:27 UTC 2000


Kenichi Okada <okada at opaopa.org> writes:

> Aug 28 13:51:24 tetoron innfeed[20448]: ME oserr fseek /usr/local/news/spool/innfeed/news.ksw.feedmania.org.input,1250751,SEEK_SET : Invalid argument

> The next patch seems to be needed on BSD/OS.

> % uname -a
> BSD/OS tetoron.media.kyoto-u.ac.jp 4.0 BSDI BSD/OS 4.0 

> *** include/clibrary.h-orig	Mon Aug 28 13:45:48 2000
> --- include/clibrary.h	Mon Aug 28 13:48:55 2000
> ***************
> *** 123,128 ****
> --- 123,129 ----
>   /* Large file support.  Always use the off_t versions, which we provide if
>      not available. */
>   #undef fseek
> + extern int fseeko(FILE *stream, off_t pos, int whence);
>   #undef ftell
>   #define fseek fseeko
>   #define ftell ftello

Thanks... added something like that to the STABLE branch.  This should
have already been fixed in CURRENT.

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the inn-workers mailing list