Changes between Version 8 and Version 9 of library_stdio


Ignore:
Timestamp:
Aug 6, 2014, 11:41:15 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v8 v9  
    6666The Giet-VM supports a FAT32 file system.
    6767
     68 === int giet_fat_open( const char* pathname, unsigned int flags ) ===
     69Open a file identified by the ''pathname'' argument. The read/write ''flags''  are not supported yet: no effect.
     70Return -1 in case or error.
     71
     72 === void giet_fat_read( unsigned int fd, void* buffer, unsigned int count, unsigned int offset ) ===
     73Read ''count'' sectors from a file identified by the ''fd'' argument, skipping ''offset'' sectors in file, and writing into the user memory ''buffer''. The user buffer base address should be 64 bytes aligned.
     74In case or error, it makes a giet_exit().
     75
     76 === void giet_fat_write( unsigned int fd, void* buffer, unsigned int count, unsigned int offset ) ===
     77Write ''count'' sectors into a file identified by the ''fd'' argument, skipping ''offset'' sectors in file, and reading from the user memory ''buffer''. The user buffer base address should be 64 bytes aligned.
     78In case or error, it makes a giet_exit().
     79
     80 === void giet_fat_close( unsigned int fd ) ===
     81Close a file identified by the ''fd'' file descriptor.
     82
     83
    6884 == __5) Network related system calls__ ==
    6985