Changeset c68edd2 in mainline


Ignore:
Timestamp:
2017-03-22T20:31:52Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9e3692
Parents:
e4e546b
Message:

Remove L_OPEN

Opens are now explicit in the interface and operate directly on file
handles, so there is no need to maintain an unused lookup flag.

Location:
uspace/lib
Files:
2 edited

Legend:

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

    re4e546b rc68edd2  
    156156#define L_UNLINK                64
    157157
    158 /**
    159  * L_OPEN is used to indicate that the lookup operation is a part of VFS_IN_OPEN
    160  * call from the client. This means that the server might allocate some
    161  * resources for the opened file. This flag cannot be passed directly by the
    162  * client.
    163  */
    164 #define L_OPEN                  128
    165 
    166158/*
    167159 * Walk flags.
  • uspace/lib/fs/libfs.c

    re4e546b rc68edd2  
    704704        }
    705705       
    706         if (lflag & L_OPEN) {
    707                 rc = ops->node_open(cur);
    708                 if (rc != EOK) {
    709                         async_answer_0(rid, rc);
    710                         goto out;
    711                 }
    712         }
    713        
    714706        int64_t size = ops->size_get(cur);
    715707        int32_t lsize = LOWER32(size);
Note: See TracChangeset for help on using the changeset viewer.