Re: [AD] About findfirst (2)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In light of the ongoing discussion on the file_time() function, I think we
should choose a consistent format for times in Allegro, namely the ANSI
time_t.

This means applying Stepan's patch and modifying the proposed al_ffblk
structure:

    struct al_ffblk
    {
       unsigned char ff_attrib;
       unsigned time_t ff_ftime;
       unsigned long ff_fsize;
       char ff_name[1024];
       void *ff_info;
    };

The Windows _findfirst() and the POSIX stat() both use time_t as their
native time format, and this will likely make things simpler for MacOS. Only
DOS will have to do the conversion.

---
Eric Botcazou
ebotcazou@xxxxxxxxxx



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/