format of fortune.dat files

Dan Cross crossd at gmail.com
Thu Nov 13 15:01:03 PST 2014


Don't go by the man page.  The Linux version specifies explicit type widths
for the files in strfile.h (specifically, it uses u_int32_t), while
Dragonfly uses "unsigned long."

On Thu, Nov 13, 2014 at 5:45 PM, Pierre Abbat <phma at leaf.dragonflybsd.org>
wrote:

> On Thursday, November 13, 2014 17:11:01 Dan Cross wrote:
> > Almost certainly a different header structure.  I don't think that the
> > Berkeley and Linux versions of fortune share much in the way of code, let
> > alone structure.  But I don't know.
>
> The header structure, as described in "man strfile", is the same. The only
> difference is the extra zeros and that the Linux file begins with 2, even
> though
> the man file says that the version is 1.
>
> Pierre
> --
> The Black Garden on the Mountain is not on the Black Mountain.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dragonflybsd.org/pipermail/users/attachments/20141113/ab8a677e/attachment-0003.html>


More information about the Users mailing list