Ignore:
Timestamp:
Feb 3, 2016, 9:59:18 AM (9 years ago)
Author:
meunier
Message:
  • Ajout de l'application rosenfeld
  • Changement du nom du flag O_CREATE en O_CREAT
File:
1 edited

Legend:

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

    r761 r772  
    27212721// This function implements the giet_fat_open() system call.
    27222722// The semantic is similar to the UNIX open() function, with some limitations:
    2723 // - only the O_CREATE, O_RDONLY, and O_TRUNC flags are supported.
     2723// - only the O_CREAT, O_RDONLY, and O_TRUNC flags are supported.
    27242724// - the UNIX access rights are not supported.
    27252725// If the file does not exist in the specified directory, it is created when
    2726 // the O_CREATE flag is set.
     2726// the O_CREAT flag is set.
    27272727// If the specified directory does not exist, an error is returned.
    27282728// It allocates a file descriptor to the calling task, for the file identified
     
    27402740///////////////////////////////////////////////////////////////////////////////
    27412741int _fat_open( char*        pathname,     // absolute path from root
    2742                unsigned int flags )       // O_CREATE and O_RDONLY
     2742               unsigned int flags )       // O_CREAT and O_RDONLY
    27432743{
    27442744    unsigned int         fd_id;            // index in File-Descriptor-Array
     
    27492749   
    27502750    // get flags
    2751     unsigned int create    = ((flags & O_CREATE) != 0);
     2751    unsigned int create    = ((flags & O_CREAT) != 0);
    27522752    unsigned int read_only = ((flags & O_RDONLY) != 0);
    27532753    unsigned int truncate  = ((flags & O_TRUNC)  != 0);
Note: See TracChangeset for help on using the changeset viewer.