Ignore:
Timestamp:
Dec 9, 2013, 5:26:37 PM (11 years ago)
Author:
devigne
Message:

Add a new syscall : giet_fat_fstat, allowing to a user application to know the
size (in sectors) of an open file.

File:
1 edited

Legend:

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

    r258 r260  
    744744                     0 );
    745745}
     746
     747///////////////////////////////////////////////////////////////////////////////////
     748// giet_fat_fstat()
     749///////////////////////////////////////////////////////////////////////////////////
     750// Return stats of a file identified by "fd".
     751// (Only the file_size in sectors for this moment)
     752///////////////////////////////////////////////////////////////////////////////////
     753int giet_fat_fstat( unsigned int fd )
     754{
     755    return sys_call( SYSCALL_FAT_FSTAT,
     756                     fd,
     757                     0, 0, 0 );
     758}
     759
    746760///////////////////////////////////////////////////////////////////////////////////
    747761// giet_fat_close()
Note: See TracChangeset for help on using the changeset viewer.