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.c

    r647 r659  
    10541054}
    10551055
     1056////////////////////////////////////
     1057int giet_fat_opendir( char* pathname )
     1058{
     1059    return sys_call( SYSCALL_FAT_OPENDIR,
     1060                     (unsigned int)pathname,
     1061                     0, 0, 0 );
     1062}
     1063
     1064////////////////////////////////////
     1065int giet_fat_closedir( unsigned int fd_id )
     1066{
     1067    return sys_call( SYSCALL_FAT_CLOSEDIR,
     1068                     (unsigned int)fd_id,
     1069                     0, 0, 0 );
     1070}
     1071
     1072////////////////////////////////////
     1073int giet_fat_readdir( unsigned int  fd_id,
     1074                      fat_dirent_t* entry )
     1075{
     1076    return sys_call( SYSCALL_FAT_READDIR,
     1077                     (unsigned int)fd_id,
     1078                     (unsigned int)entry,
     1079                     0, 0 );
     1080}
     1081
    10561082/////////////////////////////////////
    10571083int giet_fat_list( char* pathname )
Note: See TracChangeset for help on using the changeset viewer.