Changeset eca9fd0 in mainline


Ignore:
Timestamp:
2017-03-07T17:00:09Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
48178b56
Parents:
930f5c3
git-author:
Jiri Zarevucky <zarevucky.jiri@…> (2017-03-07 17:00:09)
git-committer:
Jakub Jermar <jakub@…> (2017-03-07 17:00:09)
Message:

Cherry-pick changes from lp:~zarevucky-jiri/helenos/vfs-2.5/ revision 1928

Modifications:

vfs_lookup() instead of vcl_lookup()

Location:
uspace/lib/c
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    r930f5c3 reca9fd0  
    116116}
    117117
     118int vfs_lookup(const char *path)
     119{
     120        size_t size;
     121        char *p = vfs_absolutize(path, &size);
     122        if (!p) {
     123                return ENOMEM;
     124        }
     125        int rc = _vfs_walk(-1, p, 0);
     126        free(p);
     127        return rc;
     128}
     129
    118130int _vfs_open(int fildes, int mode)
    119131{
  • uspace/lib/c/include/vfs/vfs.h

    r930f5c3 reca9fd0  
    6565extern int _vfs_walk(int parent, const char *path, int flags);
    6666extern int _vfs_open(int file, int mode);
     67extern int vfs_lookup(const char *path);
    6768
    6869extern int vfs_pass_handle(async_exch_t *vfs_exch, int file, async_exch_t *exch);
Note: See TracChangeset for help on using the changeset viewer.