format of fortune.dat files

Dan Cross crossd at
Thu Nov 13 15:03:52 PST 2014

On Thu, Nov 13, 2014 at 6:01 PM, Dan Cross <crossd at> wrote:
> 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."

I should mention my sources:
vs strfile.h from

         - Dan C.

(PS: The Linux version is definitely descended from the BSD version; I was
wrong about that.)

On Thu, Nov 13, 2014 at 5:45 PM, Pierre Abbat <phma at>
> 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: <>

More information about the Users mailing list