Changeset 659
- Timestamp:
- Jul 24, 2015, 3:10:49 PM (9 years ago)
- Location:
- soft/giet_vm/giet_libs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/stdio.c
r647 r659 1054 1054 } 1055 1055 1056 //////////////////////////////////// 1057 int giet_fat_opendir( char* pathname ) 1058 { 1059 return sys_call( SYSCALL_FAT_OPENDIR, 1060 (unsigned int)pathname, 1061 0, 0, 0 ); 1062 } 1063 1064 //////////////////////////////////// 1065 int 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 //////////////////////////////////// 1073 int 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 1056 1082 ///////////////////////////////////// 1057 1083 int giet_fat_list( char* pathname ) -
soft/giet_vm/giet_libs/stdio.h
r654 r659 60 60 #define SYSCALL_FAT_MKDIR 0x28 61 61 #define SYSCALL_FAT_LIST 0x29 62 //0x2A63 //0x2B64 //0x2C62 #define SYSCALL_FAT_OPENDIR 0x2A 63 #define SYSCALL_FAT_CLOSEDIR 0x2B 64 #define SYSCALL_FAT_READDIR 0x2C 65 65 // 0x2D 66 66 // 0x2E … … 96 96 unsigned int is_dir; 97 97 } fat_file_info_t; 98 99 typedef 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; 98 106 99 107 #define SEEK_SET 0 // argument for giet_fat_lseek() … … 310 318 extern int giet_fat_close( unsigned int fd_id ); 311 319 312 extern int giet_fat_file_info( unsigned int 313 struct fat_file_info_s*info );320 extern int giet_fat_file_info( unsigned int fd_id, 321 fat_file_info_t* info ); 314 322 315 323 extern int giet_fat_read( unsigned int fd_id, … … 332 340 333 341 extern int giet_fat_mkdir( char* pathname ); 342 343 extern int giet_fat_opendir( char* pathname ); 344 345 extern int giet_fat_closedir( unsigned int fd_id ); 346 347 extern int giet_fat_readdir( unsigned int fd_id, 348 fat_dirent_t* entry ); 334 349 335 350 extern int giet_fat_list( char* pathname );
Note: See TracChangeset
for help on using the changeset viewer.