Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/ipc/vfs.h

    rf7376cbf r2b88074b  
    8686        VFS_OUT_MOUNTED,
    8787        VFS_OUT_UNMOUNT,
    88         VFS_OUT_UNMOUNTED,
    8988        VFS_OUT_SYNC,
    9089        VFS_OUT_STAT,
     
    101100 * No lookup flags used.
    102101 */
    103 #define L_NONE                  0
     102#define L_NONE  0
    104103
    105104/**
     
    108107 * with L_DIRECTORY.
    109108 */
    110 #define L_FILE                  1
     109#define L_FILE  1
    111110
    112111/**
    113  * Lookup will succeed only if the object is a directory. If L_CREATE is
     112 * Lookup wil succeed only if the object is a directory. If L_CREATE is
    114113 * specified, an empty directory will be created. This flag is mutually
    115114 * exclusive with L_FILE.
    116115 */
    117 #define L_DIRECTORY             2
    118 
    119 /**
    120  * Lookup will succeed only if the object is a root directory. The flag is
    121  * mutually exclusive with L_FILE and L_MP.
    122  */
    123 #define L_ROOT                  4
    124 
    125 /**
    126  * Lookup will succeed only if the object is a mount point. The flag is mutually
    127  * exclusive with L_FILE and L_ROOT.
    128  */
    129 #define L_MP                    8
    130 
     116#define L_DIRECTORY  2
    131117
    132118/**
     
    134120 * object already exists. L_EXCLUSIVE is implied when L_DIRECTORY is used.
    135121 */
    136 #define L_EXCLUSIVE             16
     122#define L_EXCLUSIVE  4
    137123
    138124/**
    139125 * L_CREATE is used for creating both regular files and directories.
    140126 */
    141 #define L_CREATE                32
     127#define L_CREATE  8
    142128
    143129/**
    144130 * L_LINK is used for linking to an already existing nodes.
    145131 */
    146 #define L_LINK                  64
     132#define L_LINK  16
    147133
    148134/**
     
    151137 * VFS_UNLINK.
    152138 */
    153 #define L_UNLINK                128
     139#define L_UNLINK  32
    154140
    155141/**
    156  * L_OPEN is used to indicate that the lookup operation is a part of VFS_IN_OPEN
     142 * L_OPEN is used to indicate that the lookup operation is a part of VFS_OPEN
    157143 * call from the client. This means that the server might allocate some
    158144 * resources for the opened file. This flag cannot be passed directly by the
    159145 * client.
    160146 */
    161 #define L_OPEN                  256
     147#define L_OPEN  64
    162148
    163149#endif
Note: See TracChangeset for help on using the changeset viewer.