Changeset a6fc88a in mainline for uspace/app/tester/vfs/vfs1.c


Ignore:
Timestamp:
2017-04-03T21:15:17Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8fe46a0
Parents:
ea4a3f0
Message:

Let vfs_link() and vfs_link_path() return the linked file handle

Add an output argument to both vfs_link() and vfs_link_path() so that the
client may receive the file handle of the linked file or directory. This
makes it easy to work with the new file or directory as it is ready to be
opened or in case of a directory to use it as a parent for further
operations without the need for additional vfs_lookup().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/vfs/vfs1.c

    rea4a3f0 ra6fc88a  
    7171        int rc;
    7272
    73         rc = vfs_link_path(TEST_DIRECTORY, KIND_DIRECTORY);
     73        rc = vfs_link_path(TEST_DIRECTORY, KIND_DIRECTORY, NULL);
    7474        if (rc != EOK) {
    7575                TPRINTF("rc=%d\n", rc);
Note: See TracChangeset for help on using the changeset viewer.