Ignore:
Timestamp:
04/24/11 04:01:38 (2 years ago)
Author:
reyalP
Message:

change dryos directory wrappers to allow readdir on multiple directories. May fix some problems with "purge raw" in dryos.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/stdlib.h

    r1151 r1152  
    203203}; 
    204204#else 
     205// NOTE this is not complete and may not be accurate for all versions 
    205206struct dirent { 
    206207    char                d_name[13]; 
     
    214215#endif 
    215216 
    216 // NOTE this is NOT the actual structure returned by dryos opendir! 
     217#if !CAM_DRYOS 
    217218typedef struct { 
    218     unsigned int        fd; // first member is an fd from Open in dryos 
     219    unsigned int        fd; 
    219220    unsigned int        loc; 
    220221    struct dirent       dir; 
    221222} DIR; 
    222  
     223#else 
     224// structure returned by dryos 
     225// actual size may vary depending on version 
     226typedef struct { 
     227    int fh; 
     228    int unk[4]; 
     229} DIR_dryos; 
     230 
     231// struct returned by our wrappers around opendir 
     232typedef struct { 
     233    DIR_dryos *dh; 
     234#ifdef CAM_DRYOS_2_3_R39 
     235    char de_buf[64]; 
     236#else 
     237    char de_buf[40]; 
     238#endif 
     239} DIR; 
     240#endif 
    223241 
    224242extern DIR*           opendir (const char* name); 
Note: See TracChangeset for help on using the changeset viewer.