Ignore:
Timestamp:
Jul 18, 2015, 3:26:37 PM (9 years ago)
Author:
alain
Message:

Cosmetic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_fat32/fat32.c

    r626 r634  
    31093109// It transfers "count" bytes from the File_Cache associated to the file
    31103110// identified by "fd_id", to the user "buffer", from the current file offset.
    3111 // It has the same semantic as the UNIX "read()" function.
    31123111// In case of miss in the File_Cache, it loads all involved clusters into cache.
    31133112/////////////////////////////////////////////////////////////////////////////////
     
    31163115// Returns a negative value if error:
    31173116//   -1 :  "fat not initialised"
     3117//   -2 :  "illegal file descriptor"
    31183118//   -2 :  "file not open"
    31193119//   -3 :  "cannot load file from device"
     
    31343134    {
    31353135        _printf("\n[FAT ERROR] in _fat_read() : illegal file descriptor\n");
    3136         return -1;
     3136        return -2;
    31373137    }
    31383138
     
    31413141    {
    31423142        _printf("\n[FAT ERROR] in _fat_read() : file not open\n");
    3143         return -2;
     3143        return -3;
    31443144    }
    31453145
     
    31983198            _printf("\n[FAT ERROR] in _fat_read() : cannot load file <%s>\n",
    31993199                    inode->name );
    3200             return -3;
     3200            return -4;
    32013201        }
    32023202        cbuf = pdesc->buffer;
     
    32603260// It transfers "count" bytes to the fat_cache associated to the file
    32613261// identified by "fd_id", from the user "buffer", using the current file offset.
    3262 // It has the same semantic as the UNIX "write()" function.
    32633262// It increases the file size and allocate new clusters if (count + offset)
    32643263// is larger than the current file size. Then it loads and updates all
     
    41304129//   -4  : "Not a directory"
    41314130//   -5  : "Cannot access directory"
    4132 //   -6  : "Name too long truncated"
    41334131/////////////////////////////////////////////////////////////////////////////////
    41344132int _fat_list( char*  pathname )
Note: See TracChangeset for help on using the changeset viewer.