Ignore:
Timestamp:
Jul 24, 2015, 3:10:49 PM (9 years ago)
Author:
guerin
Message:

stdio: add giet_fat_opendir, giet_fat_closedir, giet_fat_readdir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/stdio.h

    r654 r659  
    6060#define SYSCALL_FAT_MKDIR            0x28
    6161#define SYSCALL_FAT_LIST             0x29
    62 //                                   0x2A
    63 //                                   0x2B
    64 //                                   0x2C
     62#define SYSCALL_FAT_OPENDIR          0x2A
     63#define SYSCALL_FAT_CLOSEDIR         0x2B
     64#define SYSCALL_FAT_READDIR          0x2C
    6565//                                   0x2D
    6666//                                   0x2E
     
    9696    unsigned int is_dir;
    9797}   fat_file_info_t;
     98
     99typedef struct fat_dirent_s
     100{
     101    unsigned int cluster;
     102    unsigned int size;
     103    unsigned int is_dir;
     104    char name[36];
     105}   fat_dirent_t;
    98106
    99107#define SEEK_SET            0          // argument for giet_fat_lseek()
     
    310318extern int giet_fat_close( unsigned int fd_id );
    311319
    312 extern int giet_fat_file_info( unsigned int             fd_id,
    313                                struct fat_file_info_s* info );
     320extern int giet_fat_file_info( unsigned int     fd_id,
     321                               fat_file_info_t* info );
    314322
    315323extern int giet_fat_read( unsigned int fd_id,
     
    332340
    333341extern int giet_fat_mkdir( char* pathname );
     342
     343extern int giet_fat_opendir( char* pathname );
     344
     345extern int giet_fat_closedir( unsigned int fd_id );
     346
     347extern int giet_fat_readdir( unsigned int  fd_id,
     348                             fat_dirent_t* entry );
    334349
    335350extern int giet_fat_list( char* pathname );
Note: See TracChangeset for help on using the changeset viewer.